Package odata.msgraph.client.entity
Class Message
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.OutlookItem
-
- odata.msgraph.client.entity.Message
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
CalendarSharingMessage,EventMessage
public class Message extends OutlookItem implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.entity.OutlookItem
categories, categoriesNextLink, changeKey, createdDateTime, lastModifiedDateTime
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Message.BuilderbuilderMessage()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message>copy(String destinationId)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message>createForward(List<Recipient> toRecipients, Message message, String comment)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message>createReply(Message message, String comment)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message>createReplyAll(Message message, String comment)com.github.davidmoten.odata.client.ActionRequestNoReturnforward(List<Recipient> toRecipients, Message message, String comment)AttachmentCollectionRequestgetAttachments()Org.OData.Capabilities.V1.ChangeTrackingcom.github.davidmoten.odata.client.CollectionPage<Recipient>getBccRecipients()com.github.davidmoten.odata.client.CollectionPage<Recipient>getBccRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<ItemBody>getBody()Optional<String>getBodyPreview()com.github.davidmoten.odata.client.CollectionPage<Recipient>getCcRecipients()com.github.davidmoten.odata.client.CollectionPage<Recipient>getCcRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getConversationId()Optional<byte[]>getConversationIndex()ExtensionCollectionRequestgetExtensions()Org.OData.Capabilities.V1.ChangeTrackingOptional<FollowupFlag>getFlag()Optional<Recipient>getFrom()Optional<Boolean>getHasAttachments()Optional<Importance>getImportance()Optional<InferenceClassificationType>getInferenceClassification()com.github.davidmoten.odata.client.CollectionPage<InternetMessageHeader>getInternetMessageHeaders()com.github.davidmoten.odata.client.CollectionPage<InternetMessageHeader>getInternetMessageHeaders(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<String>getInternetMessageId()Optional<Boolean>getIsDeliveryReceiptRequested()Optional<Boolean>getIsDraft()Optional<Boolean>getIsRead()Optional<Boolean>getIsReadReceiptRequested()MultiValueLegacyExtendedPropertyCollectionRequestgetMultiValueExtendedProperties()Optional<String>getParentFolderId()Optional<OffsetDateTime>getReceivedDateTime()com.github.davidmoten.odata.client.CollectionPage<Recipient>getReplyTo()com.github.davidmoten.odata.client.CollectionPage<Recipient>getReplyTo(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<Recipient>getSender()Optional<OffsetDateTime>getSentDateTime()SingleValueLegacyExtendedPropertyCollectionRequestgetSingleValueExtendedProperties()Optional<com.github.davidmoten.odata.client.StreamProvider>getStream()If suitable metadata found a StreamProvider is returned otherwise returnsOptional.empty().Optional<String>getSubject()com.github.davidmoten.odata.client.CollectionPage<Recipient>getToRecipients()com.github.davidmoten.odata.client.CollectionPage<Recipient>getToRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<ItemBody>getUniqueBody()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getWebLink()com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message>move(String destinationId)StringodataTypeName()Messagepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Messageput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnreply(Message message, String comment)com.github.davidmoten.odata.client.ActionRequestNoReturnreplyAll(Message message, String comment)com.github.davidmoten.odata.client.ActionRequestNoReturnsend()StringtoString()MessagewithAttachments(List<Attachment> attachments)Returns an immutable copy ofthiswith just theattachmentsfield changed.MessagewithBccRecipients(List<Recipient> bccRecipients)MessagewithBody(ItemBody body)MessagewithBodyPreview(String bodyPreview)MessagewithCcRecipients(List<Recipient> ccRecipients)MessagewithConversationId(String conversationId)MessagewithConversationIndex(byte[] conversationIndex)MessagewithExtensions(List<Extension> extensions)Returns an immutable copy ofthiswith just theextensionsfield changed.MessagewithFlag(FollowupFlag flag)MessagewithFrom(Recipient from)MessagewithHasAttachments(Boolean hasAttachments)MessagewithImportance(Importance importance)MessagewithInferenceClassification(InferenceClassificationType inferenceClassification)MessagewithInternetMessageHeaders(List<InternetMessageHeader> internetMessageHeaders)MessagewithInternetMessageId(String internetMessageId)MessagewithIsDeliveryReceiptRequested(Boolean isDeliveryReceiptRequested)MessagewithIsDraft(Boolean isDraft)MessagewithIsRead(Boolean isRead)MessagewithIsReadReceiptRequested(Boolean isReadReceiptRequested)MessagewithMultiValueExtendedProperties(List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties)MessagewithParentFolderId(String parentFolderId)MessagewithReceivedDateTime(OffsetDateTime receivedDateTime)MessagewithReplyTo(List<Recipient> replyTo)MessagewithSender(Recipient sender)MessagewithSentDateTime(OffsetDateTime sentDateTime)MessagewithSingleValueExtendedProperties(List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties)MessagewithSubject(String subject)MessagewithToRecipients(List<Recipient> toRecipients)MessagewithUniqueBody(ItemBody uniqueBody)MessagewithUnmappedField(String name, Object value)MessagewithWebLink(String webLink)-
Methods inherited from class odata.msgraph.client.entity.OutlookItem
getCategories, getCategories, getChangeKey, getCreatedDateTime, getLastModifiedDateTime, withCategories, withChangeKey, withCreatedDateTime, withLastModifiedDateTime
-
-
-
-
Field Detail
-
bccRecipientsNextLink
protected String bccRecipientsNextLink
-
body
protected ItemBody body
-
bodyPreview
protected String bodyPreview
-
ccRecipientsNextLink
protected String ccRecipientsNextLink
-
conversationId
protected String conversationId
-
conversationIndex
protected byte[] conversationIndex
-
flag
protected FollowupFlag flag
-
from
protected Recipient from
-
hasAttachments
protected Boolean hasAttachments
-
importance
protected Importance importance
-
inferenceClassification
protected InferenceClassificationType inferenceClassification
-
internetMessageHeaders
protected List<InternetMessageHeader> internetMessageHeaders
-
internetMessageHeadersNextLink
protected String internetMessageHeadersNextLink
-
internetMessageId
protected String internetMessageId
-
isDeliveryReceiptRequested
protected Boolean isDeliveryReceiptRequested
-
isDraft
protected Boolean isDraft
-
isRead
protected Boolean isRead
-
isReadReceiptRequested
protected Boolean isReadReceiptRequested
-
parentFolderId
protected String parentFolderId
-
receivedDateTime
protected OffsetDateTime receivedDateTime
-
replyToNextLink
protected String replyToNextLink
-
sender
protected Recipient sender
-
sentDateTime
protected OffsetDateTime sentDateTime
-
subject
protected String subject
-
toRecipientsNextLink
protected String toRecipientsNextLink
-
uniqueBody
protected ItemBody uniqueBody
-
webLink
protected String webLink
-
attachments
protected List<Attachment> attachments
-
multiValueExtendedProperties
protected List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties
-
singleValueExtendedProperties
protected List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classOutlookItem
-
builderMessage
public static Message.Builder builderMessage()
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 classOutlookItem
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classOutlookItem
-
getBccRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getBccRecipients()
-
getBccRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getBccRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getCcRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getCcRecipients()
-
getCcRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getCcRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getConversationIndex
public Optional<byte[]> getConversationIndex()
-
withConversationIndex
public Message withConversationIndex(byte[] conversationIndex)
-
getFlag
public Optional<FollowupFlag> getFlag()
-
withFlag
public Message withFlag(FollowupFlag flag)
-
getImportance
public Optional<Importance> getImportance()
-
withImportance
public Message withImportance(Importance importance)
-
getInferenceClassification
public Optional<InferenceClassificationType> getInferenceClassification()
-
withInferenceClassification
public Message withInferenceClassification(InferenceClassificationType inferenceClassification)
-
getInternetMessageHeaders
public com.github.davidmoten.odata.client.CollectionPage<InternetMessageHeader> getInternetMessageHeaders()
-
withInternetMessageHeaders
public Message withInternetMessageHeaders(List<InternetMessageHeader> internetMessageHeaders)
-
getInternetMessageHeaders
public com.github.davidmoten.odata.client.CollectionPage<InternetMessageHeader> getInternetMessageHeaders(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withIsDeliveryReceiptRequested
public Message withIsDeliveryReceiptRequested(Boolean isDeliveryReceiptRequested)
-
withIsReadReceiptRequested
public Message withIsReadReceiptRequested(Boolean isReadReceiptRequested)
-
getReceivedDateTime
public Optional<OffsetDateTime> getReceivedDateTime()
-
withReceivedDateTime
public Message withReceivedDateTime(OffsetDateTime receivedDateTime)
-
getReplyTo
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getReplyTo()
-
getReplyTo
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getReplyTo(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getSentDateTime
public Optional<OffsetDateTime> getSentDateTime()
-
withSentDateTime
public Message withSentDateTime(OffsetDateTime sentDateTime)
-
getToRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getToRecipients()
-
getToRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getToRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public Message withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classOutlookItem
-
getAttachments
public AttachmentCollectionRequest getAttachments()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Returns:
- navigational property attachments
-
getExtensions
public ExtensionCollectionRequest getExtensions()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Returns:
- navigational property extensions
-
getMultiValueExtendedProperties
public MultiValueLegacyExtendedPropertyCollectionRequest getMultiValueExtendedProperties()
-
getSingleValueExtendedProperties
public SingleValueLegacyExtendedPropertyCollectionRequest getSingleValueExtendedProperties()
-
withAttachments
public Message withAttachments(List<Attachment> attachments)
Returns an immutable copy ofthiswith just theattachmentsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Parameters:
attachments- new value ofattachmentsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theattachmentsfield changed
-
withExtensions
public Message withExtensions(List<Extension> extensions)
Returns an immutable copy ofthiswith just theextensionsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Parameters:
extensions- new value ofextensionsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theextensionsfield changed
-
withMultiValueExtendedProperties
public Message withMultiValueExtendedProperties(List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties)
-
withSingleValueExtendedProperties
public Message withSingleValueExtendedProperties(List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classOutlookItem
-
getStream
public Optional<com.github.davidmoten.odata.client.StreamProvider> getStream()
If suitable metadata found a StreamProvider is returned otherwise returnsOptional.empty(). Normally for a stream to be available this entity needs to have been hydrated with full metadata. Consider calling the builder method.metadataFull()when getting this instance (either directly or as part of a collection).- Returns:
- StreamProvider if suitable metadata found otherwise returns
Optional.empty()
-
patch
public Message patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classOutlookItem- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public Message put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classOutlookItem- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
forward
public com.github.davidmoten.odata.client.ActionRequestNoReturn forward(List<Recipient> toRecipients, Message message, String comment)
-
copy
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message> copy(String destinationId)
-
move
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message> move(String destinationId)
-
createForward
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message> createForward(List<Recipient> toRecipients, Message message, String comment)
-
createReply
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message> createReply(Message message, String comment)
-
createReplyAll
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Message> createReplyAll(Message message, String comment)
-
reply
public com.github.davidmoten.odata.client.ActionRequestNoReturn reply(Message message, String comment)
-
replyAll
public com.github.davidmoten.odata.client.ActionRequestNoReturn replyAll(Message message, String comment)
-
send
public com.github.davidmoten.odata.client.ActionRequestNoReturn send()
-
toString
public String toString()
- Overrides:
toStringin classOutlookItem
-
-