Package odata.msgraph.client.entity
Class ConversationThread
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ConversationThread
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ConversationThread extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversationThread.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<Recipient>ccRecipientsprotected StringccRecipientsNextLinkprotected BooleanhasAttachmentsprotected BooleanisLockedprotected OffsetDateTimelastDeliveredDateTimeprotected List<Post>postsprotected Stringpreviewprotected Stringtopicprotected List<Recipient>toRecipientsprotected StringtoRecipientsNextLinkprotected List<String>uniqueSendersprotected StringuniqueSendersNextLink-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConversationThread()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationThread.BuilderbuilderConversationThread()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.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<Boolean>getHasAttachments()Optional<Boolean>getIsLocked()Optional<OffsetDateTime>getLastDeliveredDateTime()PostCollectionRequestgetPosts()Org.OData.Capabilities.V1.ChangeTrackingOptional<String>getPreview()Optional<String>getTopic()com.github.davidmoten.odata.client.CollectionPage<Recipient>getToRecipients()com.github.davidmoten.odata.client.CollectionPage<Recipient>getToRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.CollectionPage<String>getUniqueSenders()com.github.davidmoten.odata.client.CollectionPage<String>getUniqueSenders(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ConversationThreadpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ConversationThreadput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnreply(Post post)StringtoString()ConversationThreadwithCcRecipients(List<Recipient> ccRecipients)ConversationThreadwithHasAttachments(Boolean hasAttachments)ConversationThreadwithIsLocked(Boolean isLocked)ConversationThreadwithLastDeliveredDateTime(OffsetDateTime lastDeliveredDateTime)ConversationThreadwithPosts(List<Post> posts)Returns an immutable copy ofthiswith just thepostsfield changed.ConversationThreadwithPreview(String preview)ConversationThreadwithTopic(String topic)ConversationThreadwithToRecipients(List<Recipient> toRecipients)ConversationThreadwithUniqueSenders(List<String> uniqueSenders)ConversationThreadwithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
ccRecipientsNextLink
protected String ccRecipientsNextLink
-
hasAttachments
protected Boolean hasAttachments
-
isLocked
protected Boolean isLocked
-
lastDeliveredDateTime
protected OffsetDateTime lastDeliveredDateTime
-
preview
protected String preview
-
topic
protected String topic
-
toRecipientsNextLink
protected String toRecipientsNextLink
-
uniqueSendersNextLink
protected String uniqueSendersNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderConversationThread
public static ConversationThread.Builder builderConversationThread()
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
-
getCcRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getCcRecipients()
-
withCcRecipients
public ConversationThread withCcRecipients(List<Recipient> ccRecipients)
-
getCcRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getCcRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withHasAttachments
public ConversationThread withHasAttachments(Boolean hasAttachments)
-
withIsLocked
public ConversationThread withIsLocked(Boolean isLocked)
-
getLastDeliveredDateTime
public Optional<OffsetDateTime> getLastDeliveredDateTime()
-
withLastDeliveredDateTime
public ConversationThread withLastDeliveredDateTime(OffsetDateTime lastDeliveredDateTime)
-
withPreview
public ConversationThread withPreview(String preview)
-
withTopic
public ConversationThread withTopic(String topic)
-
getToRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getToRecipients()
-
withToRecipients
public ConversationThread withToRecipients(List<Recipient> toRecipients)
-
getToRecipients
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getToRecipients(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getUniqueSenders
public com.github.davidmoten.odata.client.CollectionPage<String> getUniqueSenders()
-
withUniqueSenders
public ConversationThread withUniqueSenders(List<String> uniqueSenders)
-
getUniqueSenders
public com.github.davidmoten.odata.client.CollectionPage<String> getUniqueSenders(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public ConversationThread withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getPosts
public PostCollectionRequest getPosts()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Returns:
- navigational property posts
-
withPosts
public ConversationThread withPosts(List<Post> posts)
Returns an immutable copy ofthiswith just thepostsfield 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.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Parameters:
posts- new value ofpostsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepostsfield changed
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ConversationThread patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ConversationThread put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
reply
public com.github.davidmoten.odata.client.ActionRequestNoReturn reply(Post post)
-
-