Package odata.msgraph.client.complex
Class UploadSession
- java.lang.Object
-
- odata.msgraph.client.complex.UploadSession
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class UploadSession extends Object implements com.github.davidmoten.odata.client.ODataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUploadSession.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected OffsetDateTimeexpirationDateTimeprotected List<String>nextExpectedRangesprotected StringnextExpectedRangesNextLinkprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected StringuploadUrl
-
Constructor Summary
Constructors Modifier Constructor Description protectedUploadSession()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UploadSession.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).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()Optional<String>getUploadUrl()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)com.github.davidmoten.odata.client.StreamUploaderSingleCallput()<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Tput(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)com.github.davidmoten.odata.client.StreamUploaderChunkedputChunked()StringtoString()UploadSessionwithExpirationDateTime(OffsetDateTime expirationDateTime)UploadSessionwithUnmappedField(String name, Object value)UploadSessionwithUploadUrl(String uploadUrl)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
expirationDateTime
protected OffsetDateTime expirationDateTime
-
nextExpectedRangesNextLink
protected String nextExpectedRangesNextLink
-
uploadUrl
protected String uploadUrl
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getExpirationDateTime
public Optional<OffsetDateTime> getExpirationDateTime()
-
withExpirationDateTime
public UploadSession withExpirationDateTime(OffsetDateTime expirationDateTime)
-
getNextExpectedRanges
public com.github.davidmoten.odata.client.CollectionPage<String> getNextExpectedRanges()
-
getNextExpectedRanges
public com.github.davidmoten.odata.client.CollectionPage<String> getNextExpectedRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUploadUrl
public UploadSession withUploadUrl(String uploadUrl)
-
put
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> T put(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
putChunked
public com.github.davidmoten.odata.client.StreamUploaderChunked putChunked()
-
put
public com.github.davidmoten.odata.client.StreamUploaderSingleCall put()
-
withUnmappedField
public UploadSession withUnmappedField(String name, Object value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static UploadSession.Builder builder()
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
-
-