Class Post
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.OutlookItem
-
- odata.msgraph.client.entity.Post
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Post extends OutlookItem implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPost.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<Attachment>attachmentsprotected ItemBodybodyprotected StringconversationIdprotected StringconversationThreadIdprotected List<Extension>extensionsprotected Recipientfromprotected BooleanhasAttachmentsprotected PostinReplyToprotected List<MultiValueLegacyExtendedProperty>multiValueExtendedPropertiesprotected List<Recipient>newParticipantsprotected StringnewParticipantsNextLinkprotected OffsetDateTimereceivedDateTimeprotected Recipientsenderprotected List<SingleValueLegacyExtendedProperty>singleValueExtendedProperties-
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 protectedPost()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Post.BuilderbuilderPost()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.ActionRequestNoReturnforward(String comment, List<Recipient> toRecipients)AttachmentCollectionRequestgetAttachments()Org.OData.Capabilities.V1.ChangeTrackingOptional<ItemBody>getBody()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getConversationId()Optional<String>getConversationThreadId()ExtensionCollectionRequestgetExtensions()Org.OData.Capabilities.V1.ChangeTrackingOptional<Recipient>getFrom()Optional<Boolean>getHasAttachments()PostRequestgetInReplyTo()Org.OData.Capabilities.V1.ChangeTrackingMultiValueLegacyExtendedPropertyCollectionRequestgetMultiValueExtendedProperties()com.github.davidmoten.odata.client.CollectionPage<Recipient>getNewParticipants()com.github.davidmoten.odata.client.CollectionPage<Recipient>getNewParticipants(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<OffsetDateTime>getReceivedDateTime()Optional<Recipient>getSender()SingleValueLegacyExtendedPropertyCollectionRequestgetSingleValueExtendedProperties()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()Postpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Postput()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()PostwithAttachments(List<Attachment> attachments)Returns an immutable copy ofthiswith just theattachmentsfield changed.PostwithBody(ItemBody body)PostwithConversationId(String conversationId)PostwithConversationThreadId(String conversationThreadId)PostwithExtensions(List<Extension> extensions)Returns an immutable copy ofthiswith just theextensionsfield changed.PostwithFrom(Recipient from)PostwithHasAttachments(Boolean hasAttachments)PostwithInReplyTo(Post inReplyTo)Returns an immutable copy ofthiswith just theinReplyTofield changed.PostwithMultiValueExtendedProperties(List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties)PostwithNewParticipants(List<Recipient> newParticipants)PostwithReceivedDateTime(OffsetDateTime receivedDateTime)PostwithSender(Recipient sender)PostwithSingleValueExtendedProperties(List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties)PostwithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.entity.OutlookItem
getCategories, getCategories, getChangeKey, getCreatedDateTime, getLastModifiedDateTime, withCategories, withChangeKey, withCreatedDateTime, withLastModifiedDateTime
-
-
-
-
Field Detail
-
body
protected ItemBody body
-
conversationId
protected String conversationId
-
conversationThreadId
protected String conversationThreadId
-
from
protected Recipient from
-
hasAttachments
protected Boolean hasAttachments
-
newParticipantsNextLink
protected String newParticipantsNextLink
-
receivedDateTime
protected OffsetDateTime receivedDateTime
-
sender
protected Recipient sender
-
attachments
protected List<Attachment> attachments
-
inReplyTo
protected Post inReplyTo
-
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
-
builderPost
public static Post.Builder builderPost()
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
-
getNewParticipants
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getNewParticipants()
-
getNewParticipants
public com.github.davidmoten.odata.client.CollectionPage<Recipient> getNewParticipants(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getReceivedDateTime
public Optional<OffsetDateTime> getReceivedDateTime()
-
withReceivedDateTime
public Post withReceivedDateTime(OffsetDateTime receivedDateTime)
-
withUnmappedField
public Post 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
-
getInReplyTo
public PostRequest getInReplyTo()
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.NavigationRestrictions
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Returns:
- navigational property inReplyTo
-
getMultiValueExtendedProperties
public MultiValueLegacyExtendedPropertyCollectionRequest getMultiValueExtendedProperties()
-
getSingleValueExtendedProperties
public SingleValueLegacyExtendedPropertyCollectionRequest getSingleValueExtendedProperties()
-
withAttachments
public Post 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 Post 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
-
withInReplyTo
public Post withInReplyTo(Post inReplyTo)
Returns an immutable copy ofthiswith just theinReplyTofield 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.NavigationRestrictions
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Parameters:
inReplyTo- new value ofinReplyTofield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinReplyTofield changed
-
withMultiValueExtendedProperties
public Post withMultiValueExtendedProperties(List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties)
-
withSingleValueExtendedProperties
public Post 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
-
patch
public Post 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 Post 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(String comment, List<Recipient> toRecipients)
-
reply
public com.github.davidmoten.odata.client.ActionRequestNoReturn reply(Post post)
-
toString
public String toString()
- Overrides:
toStringin classOutlookItem
-
-