Class MicrosoftGraphUploadSession
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphUploadSession
uploadSession.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphUploadSession class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: uploadSession.Get the expirationDateTime property: The date and time in UTC that the upload session will expire.Get the nextExpectedRanges property: A collection of byte ranges that the server is missing for the file.Get the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: uploadSession.withExpirationDateTime(OffsetDateTime expirationDateTime) Set the expirationDateTime property: The date and time in UTC that the upload session will expire.withNextExpectedRanges(List<String> nextExpectedRanges) Set the nextExpectedRanges property: A collection of byte ranges that the server is missing for the file.withUploadUrl(String uploadUrl) Set the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.
-
Constructor Details
-
MicrosoftGraphUploadSession
public MicrosoftGraphUploadSession()Creates an instance of MicrosoftGraphUploadSession class.
-
-
Method Details
-
expirationDateTime
Get the expirationDateTime property: The date and time in UTC that the upload session will expire. The complete file must be uploaded before this expiration time is reached.- Returns:
- the expirationDateTime value.
-
withExpirationDateTime
Set the expirationDateTime property: The date and time in UTC that the upload session will expire. The complete file must be uploaded before this expiration time is reached.- Parameters:
expirationDateTime- the expirationDateTime value to set.- Returns:
- the MicrosoftGraphUploadSession object itself.
-
nextExpectedRanges
Get the nextExpectedRanges property: 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 nextExpectedRanges value.
-
withNextExpectedRanges
Set the nextExpectedRanges property: 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.- Parameters:
nextExpectedRanges- the nextExpectedRanges value to set.- Returns:
- the MicrosoftGraphUploadSession object itself.
-
uploadUrl
Get the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.- Returns:
- the uploadUrl value.
-
withUploadUrl
Set the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.- Parameters:
uploadUrl- the uploadUrl value to set.- Returns:
- the MicrosoftGraphUploadSession object itself.
-
additionalProperties
Get the additionalProperties property: uploadSession.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphUploadSession withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: uploadSession.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphUploadSession object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-