Class Post
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.OutlookItem
-
- odata.msgraph.client.beta.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 ItemBodybodyprotected StringconversationIdprotected StringconversationThreadIdprotected Recipientfromprotected BooleanhasAttachmentsprotected Importanceimportanceprotected List<Recipient>newParticipantsprotected StringnewParticipantsNextLinkprotected OffsetDateTimereceivedDateTimeprotected Recipientsender-
Fields inherited from class odata.msgraph.client.beta.entity.OutlookItem
categories, categoriesNextLink, changeKey, createdDateTime, lastModifiedDateTime
-
Fields inherited from class odata.msgraph.client.beta.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()Optional<Importance>getImportance()PostRequestgetInReplyTo()Org.OData.Capabilities.V1.ChangeTrackingMentionCollectionRequestgetMentions()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()PostwithBody(ItemBody body)PostwithConversationId(String conversationId)PostwithConversationThreadId(String conversationThreadId)PostwithFrom(Recipient from)PostwithHasAttachments(Boolean hasAttachments)PostwithImportance(Importance importance)PostwithNewParticipants(List<Recipient> newParticipants)PostwithReceivedDateTime(OffsetDateTime receivedDateTime)PostwithSender(Recipient sender)PostwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.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
-
importance
protected Importance importance
-
newParticipantsNextLink
protected String newParticipantsNextLink
-
receivedDateTime
protected OffsetDateTime receivedDateTime
-
sender
protected Recipient sender
-
-
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
-
getImportance
public Optional<Importance> getImportance()
-
withImportance
public Post withImportance(Importance importance)
-
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, String 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
-
getMentions
public MentionCollectionRequest getMentions()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Returns:
- navigational property mentions
-
getMultiValueExtendedProperties
public MultiValueLegacyExtendedPropertyCollectionRequest getMultiValueExtendedProperties()
-
getSingleValueExtendedProperties
public SingleValueLegacyExtendedPropertyCollectionRequest getSingleValueExtendedProperties()
-
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
-
-