Interface IUploadSession

All Superinterfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable
All Known Implementing Classes:
UploadSession

public interface IUploadSession extends com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.serialization.AdditionalDataHolder
Interface defining and UploadSession
  • Method Details

    • getUploadUrl

      @Nonnull String getUploadUrl()
      Gets the Upload Url. The URL endpoint that accepts PUT requests for byte ranges of the file.
      Returns:
      the upload Url
    • setUploadUrl

      void setUploadUrl(@Nonnull String url)
      Sets the Upload Url
      Parameters:
      url - the upload Url for the session
    • getNextExpectedRanges

      @Nullable 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.
      Returns:
      the Next Expected Ranges.
    • setNextExpectedRanges

      void setNextExpectedRanges(@Nonnull List<String> nextExpectedRanges)
      Sets the ranges that are yet to be uploaded.
      Parameters:
      nextExpectedRanges - the byte ranges yet to be uploaded.
    • getExpirationDateTime

      @Nullable OffsetDateTime getExpirationDateTime()
      Expiration date of the upload session
      Returns:
      the expiration date.
    • setExpirationDateTime

      void setExpirationDateTime(@Nonnull OffsetDateTime dateTime)
      Set the expiration date of the UploadSession
      Parameters:
      dateTime - the expiration date of the UploadSession.