Class MicrosoftGraphUploadSession
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphUploadSession
-
public final class MicrosoftGraphUploadSession extends Object
uploadSession.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphUploadSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: uploadSession.OffsetDateTime
expirationDateTime()
Get the expirationDateTime property: The date and time in UTC that the upload session will expire.List<String>
nextExpectedRanges()
Get the nextExpectedRanges property: A collection of byte ranges that the server is missing for the file.String
uploadUrl()
Get the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.void
validate()
Validates the instance.MicrosoftGraphUploadSession
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: uploadSession.MicrosoftGraphUploadSession
withExpirationDateTime(OffsetDateTime expirationDateTime)
Set the expirationDateTime property: The date and time in UTC that the upload session will expire.MicrosoftGraphUploadSession
withNextExpectedRanges(List<String> nextExpectedRanges)
Set the nextExpectedRanges property: A collection of byte ranges that the server is missing for the file.MicrosoftGraphUploadSession
withUploadUrl(String uploadUrl)
Set the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.
-
-
-
Method Detail
-
expirationDateTime
public OffsetDateTime 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
public MicrosoftGraphUploadSession withExpirationDateTime(OffsetDateTime expirationDateTime)
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
public List<String> 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
public MicrosoftGraphUploadSession withNextExpectedRanges(List<String> nextExpectedRanges)
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
public String uploadUrl()
Get the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.- Returns:
- the uploadUrl value.
-
withUploadUrl
public MicrosoftGraphUploadSession withUploadUrl(String uploadUrl)
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
public Map<String,Object> 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.
-
-