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 Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • expirationDateTime

      @SerializedName(value="expirationDateTime", alternate="ExpirationDateTime") @Expose @Nullable public OffsetDateTime expirationDateTime
      The 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> nextExpectedRanges
      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.
    • uploadUrl

      @SerializedName(value="uploadUrl", alternate="UploadUrl") @Expose @Nullable public String 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:
      additionalDataManager in interface com.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:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to
    • getUploadUrl

      @Nullable public String getUploadUrl()
      Gets the Upload Url. The URL endpoint that accepts PUT requests for byte ranges of the file.
      Specified by:
      getUploadUrl in interface com.microsoft.graph.tasks.IUploadSession
      Returns:
      the upload Url
    • getNextExpectedRanges

      @Nullable public List<String> 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:
      getNextExpectedRanges in interface com.microsoft.graph.tasks.IUploadSession
      Returns:
      the Next Expected Ranges.