Package com.microsoft.graph.core.models
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
Concrete implementation of the IUploadSession interface.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new uploadSession and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadSessioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the current model based on discriminator value.Get the additional data found.Get the time at which the session expires.The deserialization information for the current model.Get the next upload byte ranges to be uploaded.Get the upload url of the upload session.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object.voidsetAdditionalData(Map<String, Object> additionalData) Sets the additionalData property value.voidsetExpirationDateTime(OffsetDateTime expirationDateTime) Set the time at which the session expires.voidsetNextExpectedRanges(List<String> nextExpectedRanges) Set the byte ranges yet to be uploaded.voidsetUploadUrl(String uploadUrl) Set the upload url of the upload session.
-
Constructor Details
-
UploadSession
@Nullable public UploadSession()Instantiates a new uploadSession and sets the default values.
-
-
Method Details
-
getUploadUrl
Get the upload url of the upload session.- Specified by:
getUploadUrlin interfaceIUploadSession- Returns:
- The upload Url.
-
setUploadUrl
Set the upload url of the upload session.- Specified by:
setUploadUrlin interfaceIUploadSession- Parameters:
uploadUrl- The upload url for the session.
-
getNextExpectedRanges
Get the next upload byte ranges to be uploaded.- Specified by:
getNextExpectedRangesin interfaceIUploadSession- Returns:
- The byte ranges to be uploaded.
-
setNextExpectedRanges
Set the byte ranges yet to be uploaded.- Specified by:
setNextExpectedRangesin interfaceIUploadSession- Parameters:
nextExpectedRanges- The byte ranges yet to be uploaded.
-
getExpirationDateTime
Get the time at which the session expires.- Specified by:
getExpirationDateTimein interfaceIUploadSession- Returns:
- The session expiration time.
-
setExpirationDateTime
Set the time at which the session expires.- Specified by:
setExpirationDateTimein interfaceIUploadSession- Parameters:
expirationDateTime- The session expiration time.
-
getAdditionalData
Get the additional data found.- Specified by:
getAdditionalDatain interfacecom.microsoft.kiota.serialization.AdditionalDataHolder- Returns:
- The additional data.
-
setAdditionalData
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:
getFieldDeserializersin interfacecom.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:
serializein interfacecom.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
-