Package odata.msgraph.client.entity
Class ChatMessage
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ChatMessage
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ChatMessage extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatMessage.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<ChatMessageAttachment>attachmentsprotected StringattachmentsNextLinkprotected ItemBodybodyprotected ChannelIdentitychannelIdentityprotected StringchatIdprotected OffsetDateTimecreatedDateTimeprotected OffsetDateTimedeletedDateTimeprotected Stringetagprotected EventMessageDetaileventDetailprotected ChatMessageFromIdentitySetfromprotected ChatMessageImportanceimportanceprotected OffsetDateTimelastEditedDateTimeprotected OffsetDateTimelastModifiedDateTimeprotected Stringlocaleprotected List<ChatMessageMention>mentionsprotected StringmentionsNextLinkprotected ChatMessageTypemessageTypeprotected ChatMessagePolicyViolationpolicyViolationprotected List<ChatMessageReaction>reactionsprotected StringreactionsNextLinkprotected StringreplyToIdprotected Stringsubjectprotected Stringsummaryprotected StringwebUrl-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChatMessage()
-
Method Summary
-
-
-
Field Detail
-
attachments
protected List<ChatMessageAttachment> attachments
-
attachmentsNextLink
protected String attachmentsNextLink
-
body
protected ItemBody body
-
channelIdentity
protected ChannelIdentity channelIdentity
-
chatId
protected String chatId
-
createdDateTime
protected OffsetDateTime createdDateTime
-
deletedDateTime
protected OffsetDateTime deletedDateTime
-
etag
protected String etag
-
eventDetail
protected EventMessageDetail eventDetail
-
from
protected ChatMessageFromIdentitySet from
-
importance
protected ChatMessageImportance importance
-
lastEditedDateTime
protected OffsetDateTime lastEditedDateTime
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
locale
protected String locale
-
mentions
protected List<ChatMessageMention> mentions
-
mentionsNextLink
protected String mentionsNextLink
-
messageType
protected ChatMessageType messageType
-
policyViolation
protected ChatMessagePolicyViolation policyViolation
-
reactions
protected List<ChatMessageReaction> reactions
-
reactionsNextLink
protected String reactionsNextLink
-
replyToId
protected String replyToId
-
subject
protected String subject
-
summary
protected String summary
-
webUrl
protected String webUrl
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderChatMessage
public static ChatMessage.Builder builderChatMessage()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getAttachments
public com.github.davidmoten.odata.client.CollectionPage<ChatMessageAttachment> getAttachments()
-
withAttachments
public ChatMessage withAttachments(List<ChatMessageAttachment> attachments)
-
getAttachments
public com.github.davidmoten.odata.client.CollectionPage<ChatMessageAttachment> getAttachments(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withBody
public ChatMessage withBody(ItemBody body)
-
getChannelIdentity
public Optional<ChannelIdentity> getChannelIdentity()
-
withChannelIdentity
public ChatMessage withChannelIdentity(ChannelIdentity channelIdentity)
-
withChatId
public ChatMessage withChatId(String chatId)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public ChatMessage withCreatedDateTime(OffsetDateTime createdDateTime)
-
getDeletedDateTime
public Optional<OffsetDateTime> getDeletedDateTime()
-
withDeletedDateTime
public ChatMessage withDeletedDateTime(OffsetDateTime deletedDateTime)
-
withEtag
public ChatMessage withEtag(String etag)
-
getEventDetail
public Optional<EventMessageDetail> getEventDetail()
-
withEventDetail
public ChatMessage withEventDetail(EventMessageDetail eventDetail)
-
getFrom
public Optional<ChatMessageFromIdentitySet> getFrom()
-
withFrom
public ChatMessage withFrom(ChatMessageFromIdentitySet from)
-
getImportance
public Optional<ChatMessageImportance> getImportance()
-
withImportance
public ChatMessage withImportance(ChatMessageImportance importance)
-
getLastEditedDateTime
public Optional<OffsetDateTime> getLastEditedDateTime()
-
withLastEditedDateTime
public ChatMessage withLastEditedDateTime(OffsetDateTime lastEditedDateTime)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public ChatMessage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withLocale
public ChatMessage withLocale(String locale)
-
getMentions
public com.github.davidmoten.odata.client.CollectionPage<ChatMessageMention> getMentions()
-
withMentions
public ChatMessage withMentions(List<ChatMessageMention> mentions)
-
getMentions
public com.github.davidmoten.odata.client.CollectionPage<ChatMessageMention> getMentions(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getMessageType
public Optional<ChatMessageType> getMessageType()
-
withMessageType
public ChatMessage withMessageType(ChatMessageType messageType)
-
getPolicyViolation
public Optional<ChatMessagePolicyViolation> getPolicyViolation()
-
withPolicyViolation
public ChatMessage withPolicyViolation(ChatMessagePolicyViolation policyViolation)
-
getReactions
public com.github.davidmoten.odata.client.CollectionPage<ChatMessageReaction> getReactions()
-
withReactions
public ChatMessage withReactions(List<ChatMessageReaction> reactions)
-
getReactions
public com.github.davidmoten.odata.client.CollectionPage<ChatMessageReaction> getReactions(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withReplyToId
public ChatMessage withReplyToId(String replyToId)
-
withSubject
public ChatMessage withSubject(String subject)
-
withSummary
public ChatMessage withSummary(String summary)
-
withWebUrl
public ChatMessage withWebUrl(String webUrl)
-
withUnmappedField
public ChatMessage withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getHostedContents
public ChatMessageHostedContentCollectionRequest getHostedContents()
-
getReplies
public ChatMessageCollectionRequest getReplies()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ChatMessage patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ChatMessage put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-