Package odata.msgraph.client.entity
Class AttachmentSession
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.AttachmentSession
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AttachmentSession extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttachmentSession.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcontentprotected OffsetDateTimeexpirationDateTimeprotected List<String>nextExpectedRangesprotected StringnextExpectedRangesNextLink-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttachmentSession()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentSession.BuilderbuilderAttachmentSession()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.internal.ChangedFieldsgetChangedFields()Optional<com.github.davidmoten.odata.client.StreamProvider>getContent()Optional<OffsetDateTime>getExpirationDateTime()com.github.davidmoten.odata.client.CollectionPage<String>getNextExpectedRanges()com.github.davidmoten.odata.client.CollectionPage<String>getNextExpectedRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AttachmentSessionpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>patchChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>patchContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>patchContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>postChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP POST.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>postContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP POST.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>postContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)voidpostInject(boolean addKeysToContextPath)AttachmentSessionput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>putChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>putContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)StringtoString()AttachmentSessionwithExpirationDateTime(OffsetDateTime expirationDateTime)AttachmentSessionwithNextExpectedRanges(List<String> nextExpectedRanges)AttachmentSessionwithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
content
protected String content
-
expirationDateTime
protected OffsetDateTime expirationDateTime
-
nextExpectedRangesNextLink
protected String nextExpectedRangesNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderAttachmentSession
public static AttachmentSession.Builder builderAttachmentSession()
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
-
getContent
public Optional<com.github.davidmoten.odata.client.StreamProvider> getContent()
-
patchContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.- Returns:
- a StreamUploader if upload permitted
-
patchChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.- Returns:
- a StreamUploaderChunked if upload permitted
-
patchContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
putContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.- Returns:
- a StreamUploader if upload permitted
-
putChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.- Returns:
- a StreamUploaderChunked if upload permitted
-
putContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
postContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP POST.- Returns:
- a StreamUploader if upload permitted
-
postChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP POST.- Returns:
- a StreamUploaderChunked if upload permitted
-
postContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
getExpirationDateTime
public Optional<OffsetDateTime> getExpirationDateTime()
-
withExpirationDateTime
public AttachmentSession withExpirationDateTime(OffsetDateTime expirationDateTime)
-
getNextExpectedRanges
public com.github.davidmoten.odata.client.CollectionPage<String> getNextExpectedRanges()
-
withNextExpectedRanges
public AttachmentSession withNextExpectedRanges(List<String> nextExpectedRanges)
-
getNextExpectedRanges
public com.github.davidmoten.odata.client.CollectionPage<String> getNextExpectedRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public AttachmentSession withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public AttachmentSession patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public AttachmentSession put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-