Class MicrosoftGraphChatMessage
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChatMessage
-
public final class MicrosoftGraphChatMessage extends MicrosoftGraphEntity
chatMessage.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphChatMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: chatMessage.List<MicrosoftGraphChatMessageAttachment>
attachments()
Get the attachments property: Attached files.MicrosoftGraphItemBody
body()
Get the body property: itemBody.OffsetDateTime
createdDateTime()
Get the createdDateTime property: Read only.OffsetDateTime
deletedDateTime()
Get the deletedDateTime property: Read only.String
etag()
Get the etag property: Read-only.MicrosoftGraphIdentitySet
from()
Get the from property: identitySet.List<MicrosoftGraphChatMessageHostedContent>
hostedContents()
Get the hostedContents property: The hostedContents property.MicrosoftGraphChatMessageImportance
importance()
Get the importance property: The importance property.OffsetDateTime
lastEditedDateTime()
Get the lastEditedDateTime property: Read only.OffsetDateTime
lastModifiedDateTime()
Get the lastModifiedDateTime property: Read only.String
locale()
Get the locale property: Locale of the chat message set by the client.List<MicrosoftGraphChatMessageMention>
mentions()
Get the mentions property: List of entities mentioned in the chat message.MicrosoftGraphChatMessageType
messageType()
Get the messageType property: The messageType property.MicrosoftGraphChatMessagePolicyViolation
policyViolation()
Get the policyViolation property: chatMessagePolicyViolation.List<MicrosoftGraphChatMessageReaction>
reactions()
Get the reactions property: The reactions property.List<MicrosoftGraphChatMessage>
replies()
Get the replies property: The replies property.String
replyToId()
Get the replyToId property: Read-only.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.void
validate()
Validates the instance.String
webUrl()
Get the webUrl property: The webUrl property.MicrosoftGraphChatMessage
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: chatMessage.MicrosoftGraphChatMessage
withAttachments(List<MicrosoftGraphChatMessageAttachment> attachments)
Set the attachments property: Attached files.MicrosoftGraphChatMessage
withBody(MicrosoftGraphItemBody body)
Set the body property: itemBody.MicrosoftGraphChatMessage
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: Read only.MicrosoftGraphChatMessage
withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: Read only.MicrosoftGraphChatMessage
withEtag(String etag)
Set the etag property: Read-only.MicrosoftGraphChatMessage
withFrom(MicrosoftGraphIdentitySet from)
Set the from property: identitySet.MicrosoftGraphChatMessage
withHostedContents(List<MicrosoftGraphChatMessageHostedContent> hostedContents)
Set the hostedContents property: The hostedContents property.MicrosoftGraphChatMessage
withId(String id)
Set the id property: Read-only.MicrosoftGraphChatMessage
withImportance(MicrosoftGraphChatMessageImportance importance)
Set the importance property: The importance property.MicrosoftGraphChatMessage
withLastEditedDateTime(OffsetDateTime lastEditedDateTime)
Set the lastEditedDateTime property: Read only.MicrosoftGraphChatMessage
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the lastModifiedDateTime property: Read only.MicrosoftGraphChatMessage
withLocale(String locale)
Set the locale property: Locale of the chat message set by the client.MicrosoftGraphChatMessage
withMentions(List<MicrosoftGraphChatMessageMention> mentions)
Set the mentions property: List of entities mentioned in the chat message.MicrosoftGraphChatMessage
withMessageType(MicrosoftGraphChatMessageType messageType)
Set the messageType property: The messageType property.MicrosoftGraphChatMessage
withPolicyViolation(MicrosoftGraphChatMessagePolicyViolation policyViolation)
Set the policyViolation property: chatMessagePolicyViolation.MicrosoftGraphChatMessage
withReactions(List<MicrosoftGraphChatMessageReaction> reactions)
Set the reactions property: The reactions property.MicrosoftGraphChatMessage
withReplies(List<MicrosoftGraphChatMessage> replies)
Set the replies property: The replies property.MicrosoftGraphChatMessage
withReplyToId(String replyToId)
Set the replyToId property: Read-only.MicrosoftGraphChatMessage
withSubject(String subject)
Set the subject property: The subject of the chat message, in plaintext.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.MicrosoftGraphChatMessage
withWebUrl(String webUrl)
Set the webUrl property: The webUrl property.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
attachments
public List<MicrosoftGraphChatMessageAttachment> 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
public MicrosoftGraphItemBody body()
Get the body property: itemBody.- Returns:
- the body value.
-
withBody
public MicrosoftGraphChatMessage withBody(MicrosoftGraphItemBody body)
Set the body property: itemBody.- Parameters:
body
- the body value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
createdDateTime
public OffsetDateTime createdDateTime()
Get the createdDateTime property: Read only. Timestamp of when the chat message was created.- Returns:
- the createdDateTime value.
-
withCreatedDateTime
public MicrosoftGraphChatMessage withCreatedDateTime(OffsetDateTime createdDateTime)
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
public OffsetDateTime 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
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:
deletedDateTime
- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
etag
public String etag()
Get the etag property: Read-only. Version number of the chat message.- Returns:
- the etag value.
-
withEtag
public MicrosoftGraphChatMessage withEtag(String etag)
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
public MicrosoftGraphIdentitySet from()
Get the from property: identitySet.- Returns:
- the from value.
-
withFrom
public MicrosoftGraphChatMessage withFrom(MicrosoftGraphIdentitySet from)
Set the from property: identitySet.- Parameters:
from
- the from value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
importance
public MicrosoftGraphChatMessageImportance importance()
Get the importance property: The importance property.- Returns:
- the importance value.
-
withImportance
public MicrosoftGraphChatMessage withImportance(MicrosoftGraphChatMessageImportance importance)
Set the importance property: The importance property.- Parameters:
importance
- the importance value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
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:
- the lastEditedDateTime value.
-
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:
lastEditedDateTime
- the lastEditedDateTime value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
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:
- the lastModifiedDateTime value.
-
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:
lastModifiedDateTime
- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
locale
public String locale()
Get the locale property: Locale of the chat message set by the client.- Returns:
- the locale value.
-
withLocale
public MicrosoftGraphChatMessage withLocale(String locale)
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
public List<MicrosoftGraphChatMessageMention> mentions()
Get the mentions property: List of entities mentioned in the chat message. Currently supports user, bot, team, channel.- Returns:
- the mentions value.
-
withMentions
public MicrosoftGraphChatMessage withMentions(List<MicrosoftGraphChatMessageMention> mentions)
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
public MicrosoftGraphChatMessageType messageType()
Get the messageType property: The messageType property.- Returns:
- the messageType value.
-
withMessageType
public MicrosoftGraphChatMessage withMessageType(MicrosoftGraphChatMessageType messageType)
Set the messageType property: The messageType property.- Parameters:
messageType
- the messageType value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
policyViolation
public MicrosoftGraphChatMessagePolicyViolation 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
public List<MicrosoftGraphChatMessageReaction> reactions()
Get the reactions property: The reactions property.- Returns:
- the reactions value.
-
withReactions
public MicrosoftGraphChatMessage withReactions(List<MicrosoftGraphChatMessageReaction> reactions)
Set the reactions property: The reactions property.- Parameters:
reactions
- the reactions value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
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:
- the replyToId value.
-
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:
replyToId
- the replyToId value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
subject
public String subject()
Get the subject property: The subject of the chat message, in plaintext.- Returns:
- the subject value.
-
withSubject
public MicrosoftGraphChatMessage withSubject(String subject)
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
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:
- the summary value.
-
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:
summary
- the summary value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
webUrl
public String webUrl()
Get the webUrl property: The webUrl property.- Returns:
- the webUrl value.
-
withWebUrl
public MicrosoftGraphChatMessage withWebUrl(String webUrl)
Set the webUrl property: The webUrl property.- Parameters:
webUrl
- the webUrl value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
hostedContents
public List<MicrosoftGraphChatMessageHostedContent> 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
public List<MicrosoftGraphChatMessage> replies()
Get the replies property: The replies property.- Returns:
- the replies value.
-
withReplies
public MicrosoftGraphChatMessage withReplies(List<MicrosoftGraphChatMessage> replies)
Set the replies property: The replies property.- Parameters:
replies
- the replies value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: chatMessage.- Overrides:
additionalProperties
in classMicrosoftGraphEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphChatMessage withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: chatMessage.- Overrides:
withAdditionalProperties
in classMicrosoftGraphEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphChatMessage object itself.
-
withId
public MicrosoftGraphChatMessage withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-