Class UploadSession

java.lang.Object
com.microsoft.graph.core.models.UploadSession
All Implemented Interfaces:
IUploadSession, com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable

public class UploadSession extends Object implements IUploadSession
Concrete implementation of the IUploadSession interface.
  • Constructor Details

    • UploadSession

      @Nullable public UploadSession()
      Instantiates a new uploadSession and sets the default values.
  • Method Details

    • getUploadUrl

      @Nonnull public String getUploadUrl()
      Get the upload url of the upload session.
      Specified by:
      getUploadUrl in interface IUploadSession
      Returns:
      The upload Url.
    • setUploadUrl

      public void setUploadUrl(@Nonnull String uploadUrl)
      Set the upload url of the upload session.
      Specified by:
      setUploadUrl in interface IUploadSession
      Parameters:
      uploadUrl - The upload url for the session.
    • getNextExpectedRanges

      @Nullable public List<String> getNextExpectedRanges()
      Get the next upload byte ranges to be uploaded.
      Specified by:
      getNextExpectedRanges in interface IUploadSession
      Returns:
      The byte ranges to be uploaded.
    • setNextExpectedRanges

      public void setNextExpectedRanges(@Nonnull List<String> nextExpectedRanges)
      Set the byte ranges yet to be uploaded.
      Specified by:
      setNextExpectedRanges in interface IUploadSession
      Parameters:
      nextExpectedRanges - The byte ranges yet to be uploaded.
    • getExpirationDateTime

      @Nullable public OffsetDateTime getExpirationDateTime()
      Get the time at which the session expires.
      Specified by:
      getExpirationDateTime in interface IUploadSession
      Returns:
      The session expiration time.
    • setExpirationDateTime

      public void setExpirationDateTime(@Nullable OffsetDateTime expirationDateTime)
      Set the time at which the session expires.
      Specified by:
      setExpirationDateTime in interface IUploadSession
      Parameters:
      expirationDateTime - The session expiration time.
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Get the additional data found.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      The additional data.
    • setAdditionalData

      public void setAdditionalData(@Nonnull Map<String,Object> additionalData)
      Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      additionalData - The AdditionalData to set.
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model.
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      A hash map describing how to deserialize the current model fields.
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object.
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model.
    • createFromDiscriminatorValue

      @Nonnull public static UploadSession createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the current model based on discriminator value.
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object.
      Returns:
      an uploadSession