Package com.microsoft.graph.core.models
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 Summary
Modifier and TypeMethodDescriptionExpiration date of the upload sessionGets the Next Expected Ranges.Gets the Upload Url.voidsetExpirationDateTime(OffsetDateTime dateTime) Set the expiration date of the UploadSessionvoidsetNextExpectedRanges(List<String> nextExpectedRanges) Sets the ranges that are yet to be uploaded.voidsetUploadUrl(String url) Sets the Upload UrlMethods inherited from interface com.microsoft.kiota.serialization.AdditionalDataHolder
getAdditionalDataMethods inherited from interface com.microsoft.kiota.serialization.Parsable
getFieldDeserializers, serialize
-
Method Details
-
getUploadUrl
Gets the Upload Url. The URL endpoint that accepts PUT requests for byte ranges of the file.- Returns:
- the upload Url
-
setUploadUrl
Sets the Upload Url- Parameters:
url- the upload Url for the session
-
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
Sets the ranges that are yet to be uploaded.- Parameters:
nextExpectedRanges- the byte ranges yet to be uploaded.
-
getExpirationDateTime
Expiration date of the upload session- Returns:
- the expiration date.
-
setExpirationDateTime
Set the expiration date of the UploadSession- Parameters:
dateTime- the expiration date of the UploadSession.
-