Class MicrosoftGraphChatMessage
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChatMessage
chatMessage.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphChatMessage class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: chatMessage.Get the attachments property: Attached files.body()Get the body property: itemBody.Get the createdDateTime property: Read only.Get the deletedDateTime property: Read only.etag()Get the etag property: Read-only.from()Get the from property: identitySet.Get the hostedContents property: The hostedContents property.Get the importance property: chatMessageImportance.Get the lastEditedDateTime property: Read only.Get the lastModifiedDateTime property: Read only.locale()Get the locale property: Locale of the chat message set by the client.mentions()Get the mentions property: List of entities mentioned in the chat message.Get the messageType property: chatMessageType.Get the policyViolation property: chatMessagePolicyViolation.Get the reactions property: The reactions property.replies()Get the replies property: The replies property.Get the replyToId property: Read-only.subject()Get the subject property: The subject of the chat message, in plaintext.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.voidvalidate()Validates the instance.webUrl()Get the webUrl property: The webUrl property.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: chatMessage.withAttachments(List<MicrosoftGraphChatMessageAttachment> attachments) Set the attachments property: Attached files.Set the body property: itemBody.withCreatedDateTime(OffsetDateTime createdDateTime) Set the createdDateTime property: Read only.withDeletedDateTime(OffsetDateTime deletedDateTime) Set the deletedDateTime property: Read only.Set the etag property: Read-only.Set the from property: identitySet.withHostedContents(List<MicrosoftGraphChatMessageHostedContent> hostedContents) Set the hostedContents property: The hostedContents property.Set the id property: Read-only.withImportance(MicrosoftGraphChatMessageImportance importance) Set the importance property: chatMessageImportance.withLastEditedDateTime(OffsetDateTime lastEditedDateTime) Set the lastEditedDateTime property: Read only.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) Set the lastModifiedDateTime property: Read only.withLocale(String locale) Set the locale property: Locale of the chat message set by the client.withMentions(List<MicrosoftGraphChatMessageMention> mentions) Set the mentions property: List of entities mentioned in the chat message.withMessageType(MicrosoftGraphChatMessageType messageType) Set the messageType property: chatMessageType.withPolicyViolation(MicrosoftGraphChatMessagePolicyViolation policyViolation) Set the policyViolation property: chatMessagePolicyViolation.withReactions(List<MicrosoftGraphChatMessageReaction> reactions) Set the reactions property: The reactions property.withReplies(List<MicrosoftGraphChatMessage> replies) Set the replies property: The replies property.withReplyToId(String replyToId) Set the replyToId property: Read-only.withSubject(String subject) Set the subject property: The subject of the chat message, in plaintext.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.withWebUrl(String webUrl) Set the webUrl property: The webUrl property.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphChatMessage
public MicrosoftGraphChatMessage()Creates an instance of MicrosoftGraphChatMessage class.
-
-
Method Details
-
attachments
Get the attachments property: Attached files. Attachments are currently read-only – sending attachments is not supported.- Returns:
- the attachments value.
-
withAttachments
public MicrosoftGraphChatMessage withAttachments(List<MicrosoftGraphChatMessageAttachment> attachments) Set the attachments property: Attached files. Attachments are currently read-only – sending attachments is not supported.- Parameters:
attachments- the attachments value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
body
Get the body property: itemBody.- Returns:
- the body value.
-
withBody
Set the body property: itemBody.- Parameters:
body- the body value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
createdDateTime
Get the createdDateTime property: Read only. Timestamp of when the chat message was created.- Returns:
- the createdDateTime value.
-
withCreatedDateTime
Set the createdDateTime property: Read only. Timestamp of when the chat message was created.- Parameters:
createdDateTime- the createdDateTime value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
deletedDateTime
Get the deletedDateTime property: Read only. Timestamp at which the chat message was deleted, or null if not deleted.- Returns:
- the deletedDateTime value.
-
withDeletedDateTime
Set the deletedDateTime property: Read only. Timestamp at which the chat message was deleted, or null if not deleted.- Parameters:
deletedDateTime- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
etag
Get the etag property: Read-only. Version number of the chat message.- Returns:
- the etag value.
-
withEtag
Set the etag property: Read-only. Version number of the chat message.- Parameters:
etag- the etag value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
from
Get the from property: identitySet.- Returns:
- the from value.
-
withFrom
Set the from property: identitySet.- Parameters:
from- the from value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
importance
Get the importance property: chatMessageImportance.- Returns:
- the importance value.
-
withImportance
Set the importance property: chatMessageImportance.- Parameters:
importance- the importance value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
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:
- the lastEditedDateTime value.
-
withLastEditedDateTime
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:
lastEditedDateTime- the lastEditedDateTime value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
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:
- the lastModifiedDateTime value.
-
withLastModifiedDateTime
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:
lastModifiedDateTime- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
locale
Get the locale property: Locale of the chat message set by the client.- Returns:
- the locale value.
-
withLocale
Set the locale property: Locale of the chat message set by the client.- Parameters:
locale- the locale value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
mentions
Get the mentions property: List of entities mentioned in the chat message. Currently supports user, bot, team, channel.- Returns:
- the mentions value.
-
withMentions
Set the mentions property: List of entities mentioned in the chat message. Currently supports user, bot, team, channel.- Parameters:
mentions- the mentions value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
messageType
Get the messageType property: chatMessageType.- Returns:
- the messageType value.
-
withMessageType
Set the messageType property: chatMessageType.- Parameters:
messageType- the messageType value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
policyViolation
Get the policyViolation property: chatMessagePolicyViolation.- Returns:
- the policyViolation value.
-
withPolicyViolation
public MicrosoftGraphChatMessage withPolicyViolation(MicrosoftGraphChatMessagePolicyViolation policyViolation) Set the policyViolation property: chatMessagePolicyViolation.- Parameters:
policyViolation- the policyViolation value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
reactions
Get the reactions property: The reactions property.- Returns:
- the reactions value.
-
withReactions
Set the reactions property: The reactions property.- Parameters:
reactions- the reactions value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
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:
- the replyToId value.
-
withReplyToId
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:
replyToId- the replyToId value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
subject
Get the subject property: The subject of the chat message, in plaintext.- Returns:
- the subject value.
-
withSubject
Set the subject property: The subject of the chat message, in plaintext.- Parameters:
subject- the subject value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
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:
- the summary value.
-
withSummary
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:
summary- the summary value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
webUrl
Get the webUrl property: The webUrl property.- Returns:
- the webUrl value.
-
withWebUrl
Set the webUrl property: The webUrl property.- Parameters:
webUrl- the webUrl value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
hostedContents
Get the hostedContents property: The hostedContents property.- Returns:
- the hostedContents value.
-
withHostedContents
public MicrosoftGraphChatMessage withHostedContents(List<MicrosoftGraphChatMessageHostedContent> hostedContents) Set the hostedContents property: The hostedContents property.- Parameters:
hostedContents- the hostedContents value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
replies
Get the replies property: The replies property.- Returns:
- the replies value.
-
withReplies
Set the replies property: The replies property.- Parameters:
replies- the replies value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
additionalProperties
Get the additionalProperties property: chatMessage.- Overrides:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: chatMessage.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-