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 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

      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

      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

      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

      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

      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

      public MicrosoftGraphChatMessageType messageType()
      Get the messageType property: chatMessageType.
      Returns:
      the messageType value.
    • withMessageType

      public MicrosoftGraphChatMessage withMessageType(MicrosoftGraphChatMessageType messageType)
      Set the messageType property: chatMessageType.
      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

      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

      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

      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 class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphChatMessage withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: chatMessage.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      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 class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.