Package com.microsoft.graph.models
Class UploadSession
java.lang.Object
com.microsoft.graph.models.UploadSession
- All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject,com.microsoft.graph.tasks.IUploadSession
public class UploadSession
extends Object
implements com.microsoft.graph.serializer.IJsonBackedObject, com.microsoft.graph.tasks.IUploadSession
The class for the Upload Session.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Expiration Date Time.The Next Expected Ranges.the OData type of the object as returned by the serviceThe Upload Url. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.microsoft.graph.serializer.AdditionalDataManagerGets the Next Expected Ranges.Gets the Upload Url.voidsetRawObject(com.microsoft.graph.serializer.ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON object
-
Field Details
-
oDataType
the OData type of the object as returned by the service -
expirationDateTime
@SerializedName(value="expirationDateTime", alternate="ExpirationDateTime") @Expose @Nullable public OffsetDateTime expirationDateTimeThe Expiration Date Time. The date and time in UTC that the upload session will expire. The complete file must be uploaded before this expiration time is reached. -
nextExpectedRanges
@SerializedName(value="nextExpectedRanges", alternate="NextExpectedRanges") @Expose @Nullable public List<String> nextExpectedRangesThe Next Expected Ranges. A collection of byte ranges that the server is missing for the file. These ranges are zero indexed and of the format 'start-end' (e.g. '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. -
uploadUrl
The Upload Url. The URL endpoint that accepts PUT requests for byte ranges of the file.
-
-
Constructor Details
-
UploadSession
public UploadSession()
-
-
Method Details
-
additionalDataManager
@Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()- Specified by:
additionalDataManagerin interfacecom.microsoft.graph.serializer.IJsonBackedObject
-
setRawObject
public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json) Sets the raw JSON object- Specified by:
setRawObjectin interfacecom.microsoft.graph.serializer.IJsonBackedObject- Parameters:
serializer- the serializerjson- the JSON object to set this object to
-
getUploadUrl
Gets the Upload Url. The URL endpoint that accepts PUT requests for byte ranges of the file.- Specified by:
getUploadUrlin interfacecom.microsoft.graph.tasks.IUploadSession- Returns:
- the upload Url
-
getNextExpectedRanges
Gets the Next Expected Ranges. A collection of byte ranges that the server is missing for the file. These ranges are zero indexed and of the format 'start-end' (e.g. '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin.- Specified by:
getNextExpectedRangesin interfacecom.microsoft.graph.tasks.IUploadSession- Returns:
- the Next Expected Ranges.
-