Class MicrosoftGraphChatMessage

    • Constructor Detail

      • MicrosoftGraphChatMessage

        public MicrosoftGraphChatMessage()
    • 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.
      • 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.
      • 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.
      • 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.