你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphChatMessage Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphChatMessage
- com.
- com.
public final class MicrosoftGraphChatMessage
extends MicrosoftGraphEntity
chatMessage.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphChatMessage() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
List<Microsoft |
attachments()
Get the attachments property: Attached files. |
Microsoft |
body()
Get the body property: item |
Offset |
createdDateTime()
Get the created |
Offset |
deletedDateTime()
Get the deleted |
String |
etag()
Get the etag property: Read-only. |
Microsoft |
from()
Get the from property: identity |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
List<Microsoft |
hostedContents()
Get the hosted |
Microsoft |
importance()
Get the importance property: chat |
Offset |
lastEditedDateTime()
Get the last |
Offset |
lastModifiedDateTime()
Get the last |
String |
locale()
Get the locale property: Locale of the chat message set by the client. |
List<Microsoft |
mentions()
Get the mentions property: List of entities mentioned in the chat message. |
Microsoft |
messageType()
Get the message |
Microsoft |
policyViolation()
Get the policy |
List<Microsoft |
reactions()
Get the reactions property: The reactions property. |
List<Microsoft |
replies()
Get the replies property: The replies property. |
String |
replyToId()
Get the reply |
String |
subject()
Get the subject property: The subject of the chat message, in plaintext. |
String |
summary()
Get the summary property: Summary text of the chat message that could be used for push notifications and summary views or fall back views. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
webUrl()
Get the web |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAttachments(List<MicrosoftGraphChatMessageAttachment> attachments)
Set the attachments property: Attached files. |
Microsoft |
withBody(MicrosoftGraphItemBody body)
Set the body property: item |
Microsoft |
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the created |
Microsoft |
withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deleted |
Microsoft |
withEtag(String etag)
Set the etag property: Read-only. |
Microsoft |
withFrom(MicrosoftGraphIdentitySet from)
Set the from property: identity |
Microsoft |
withHostedContents(List<MicrosoftGraphChatMessageHostedContent> hostedContents)
Set the hosted |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withImportance(MicrosoftGraphChatMessageImportance importance)
Set the importance property: chat |
Microsoft |
withLastEditedDateTime(OffsetDateTime lastEditedDateTime)
Set the last |
Microsoft |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the last |
Microsoft |
withLocale(String locale)
Set the locale property: Locale of the chat message set by the client. |
Microsoft |
withMentions(List<MicrosoftGraphChatMessageMention> mentions)
Set the mentions property: List of entities mentioned in the chat message. |
Microsoft |
withMessageType(MicrosoftGraphChatMessageType messageType)
Set the message |
Microsoft |
withPolicyViolation(MicrosoftGraphChatMessagePolicyViolation policyViolation)
Set the policy |
Microsoft |
withReactions(List<MicrosoftGraphChatMessageReaction> reactions)
Set the reactions property: The reactions property. |
Microsoft |
withReplies(List<MicrosoftGraphChatMessage> replies)
Set the replies property: The replies property. |
Microsoft |
withReplyToId(String replyToId)
Set the reply |
Microsoft |
withSubject(String subject)
Set the subject property: The subject of the chat message, in plaintext. |
Microsoft |
withSummary(String summary)
Set the summary property: Summary text of the chat message that could be used for push notifications and summary views or fall back views. |
Microsoft |
withWebUrl(String webUrl)
Set the web |
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphChatMessage
public MicrosoftGraphChatMessage()
Creates an instance of MicrosoftGraphChatMessage class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: chatMessage.
Overrides:
MicrosoftGraphChatMessage.additionalProperties()Returns:
attachments
public List
Get the attachments property: Attached files. Attachments are currently read-only \u2013 sending attachments is not supported.
Returns:
body
public MicrosoftGraphItemBody body()
Get the body property: itemBody.
Returns:
createdDateTime
public OffsetDateTime createdDateTime()
Get the createdDateTime property: Read only. Timestamp of when the chat message was created.
Returns:
deletedDateTime
public OffsetDateTime deletedDateTime()
Get the deletedDateTime property: Read only. Timestamp at which the chat message was deleted, or null if not deleted.
Returns:
etag
public String etag()
Get the etag property: Read-only. Version number of the chat message.
Returns:
from
public MicrosoftGraphIdentitySet from()
Get the from property: identitySet.
Returns:
fromJson
public static MicrosoftGraphChatMessage fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphChatMessage from the JsonReader.
Parameters:
Returns:
Throws:
hostedContents
public List
Get the hostedContents property: The hostedContents property.
Returns:
importance
public MicrosoftGraphChatMessageImportance importance()
Get the importance property: chatMessageImportance.
Returns:
lastEditedDateTime
public OffsetDateTime lastEditedDateTime()
Get the lastEditedDateTime property: Read only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Microsoft Teams UI. If no edits are made the value is null.
Returns:
lastModifiedDateTime
public OffsetDateTime lastModifiedDateTime()
Get the lastModifiedDateTime property: Read only. Timestamp when the chat message is created (initial setting) or edited, including when a reaction is added or removed.
Returns:
locale
public String locale()
Get the locale property: Locale of the chat message set by the client.
Returns:
mentions
public List
Get the mentions property: List of entities mentioned in the chat message. Currently supports user, bot, team, channel.
Returns:
messageType
public MicrosoftGraphChatMessageType messageType()
Get the messageType property: chatMessageType.
Returns:
policyViolation
public MicrosoftGraphChatMessagePolicyViolation policyViolation()
Get the policyViolation property: chatMessagePolicyViolation.
Returns:
reactions
public List
Get the reactions property: The reactions property.
Returns:
replies
public List
Get the replies property: The replies property.
Returns:
replyToId
public String replyToId()
Get the replyToId property: Read-only. Id of the parent chat message or root chat message of the thread. (Only applies to chat messages in channels not chats).
Returns:
subject
public String subject()
Get the subject property: The subject of the chat message, in plaintext.
Returns:
summary
public String summary()
Get the summary property: Summary text of the chat message that could be used for push notifications and summary views or fall back views. Only applies to channel chat messages, not chat messages in a chat.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphChatMessage.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphChatMessage.validate()webUrl
public String webUrl()
Get the webUrl property: The webUrl property.
Returns:
withAdditionalProperties
public MicrosoftGraphChatMessage withAdditionalProperties(Map
Set the additionalProperties property: chatMessage.
Overrides:
MicrosoftGraphChatMessage.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withAttachments
public MicrosoftGraphChatMessage withAttachments(List
Set the attachments property: Attached files. Attachments are currently read-only \u2013 sending attachments is not supported.
Parameters:
Returns:
withBody
public MicrosoftGraphChatMessage withBody(MicrosoftGraphItemBody body)
Set the body property: itemBody.
Parameters:
Returns:
withCreatedDateTime
public MicrosoftGraphChatMessage withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: Read only. Timestamp of when the chat message was created.
Parameters:
Returns:
withDeletedDateTime
public MicrosoftGraphChatMessage withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: Read only. Timestamp at which the chat message was deleted, or null if not deleted.
Parameters:
Returns:
withEtag
public MicrosoftGraphChatMessage withEtag(String etag)
Set the etag property: Read-only. Version number of the chat message.
Parameters:
Returns:
withFrom
public MicrosoftGraphChatMessage withFrom(MicrosoftGraphIdentitySet from)
Set the from property: identitySet.
Parameters:
Returns:
withHostedContents
public MicrosoftGraphChatMessage withHostedContents(List
Set the hostedContents property: The hostedContents property.
Parameters:
Returns:
withId
public MicrosoftGraphChatMessage withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphChatMessage.withId(String id)Parameters:
withImportance
public MicrosoftGraphChatMessage withImportance(MicrosoftGraphChatMessageImportance importance)
Set the importance property: chatMessageImportance.
Parameters:
Returns:
withLastEditedDateTime
public MicrosoftGraphChatMessage withLastEditedDateTime(OffsetDateTime lastEditedDateTime)
Set the lastEditedDateTime property: Read only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Microsoft Teams UI. If no edits are made the value is null.
Parameters:
Returns:
withLastModifiedDateTime
public MicrosoftGraphChatMessage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the lastModifiedDateTime property: Read only. Timestamp when the chat message is created (initial setting) or edited, including when a reaction is added or removed.
Parameters:
Returns:
withLocale
public MicrosoftGraphChatMessage withLocale(String locale)
Set the locale property: Locale of the chat message set by the client.
Parameters:
Returns:
withMentions
public MicrosoftGraphChatMessage withMentions(List
Set the mentions property: List of entities mentioned in the chat message. Currently supports user, bot, team, channel.
Parameters:
Returns:
withMessageType
public MicrosoftGraphChatMessage withMessageType(MicrosoftGraphChatMessageType messageType)
Set the messageType property: chatMessageType.
Parameters:
Returns:
withPolicyViolation
public MicrosoftGraphChatMessage withPolicyViolation(MicrosoftGraphChatMessagePolicyViolation policyViolation)
Set the policyViolation property: chatMessagePolicyViolation.
Parameters:
Returns:
withReactions
public MicrosoftGraphChatMessage withReactions(List
Set the reactions property: The reactions property.
Parameters:
Returns:
withReplies
public MicrosoftGraphChatMessage withReplies(List
Set the replies property: The replies property.
Parameters:
Returns:
withReplyToId
public MicrosoftGraphChatMessage withReplyToId(String replyToId)
Set the replyToId property: Read-only. Id of the parent chat message or root chat message of the thread. (Only applies to chat messages in channels not chats).
Parameters:
Returns:
withSubject
public MicrosoftGraphChatMessage withSubject(String subject)
Set the subject property: The subject of the chat message, in plaintext.
Parameters:
Returns:
withSummary
public MicrosoftGraphChatMessage withSummary(String summary)
Set the summary property: Summary text of the chat message that could be used for push notifications and summary views or fall back views. Only applies to channel chat messages, not chat messages in a chat.
Parameters:
Returns:
withWebUrl
public MicrosoftGraphChatMessage withWebUrl(String webUrl)
Set the webUrl property: The webUrl property.
Parameters:
Returns: