MicrosoftGraphUploadSession Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphUploadSession
- com.
Implements
public final class MicrosoftGraphUploadSession
implements JsonSerializable<MicrosoftGraphUploadSession>
uploadSession.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphUploadSession() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
Offset |
expirationDateTime()
Get the expiration |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
List<String> |
nextExpectedRanges()
Get the next |
Json |
toJson(JsonWriter jsonWriter) |
String |
uploadUrl()
Get the upload |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withExpirationDateTime(OffsetDateTime expirationDateTime)
Set the expiration |
Microsoft |
withNextExpectedRanges(List<String> nextExpectedRanges)
Set the next |
Microsoft |
withUploadUrl(String uploadUrl)
Set the upload |
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphUploadSession
public MicrosoftGraphUploadSession()
Creates an instance of MicrosoftGraphUploadSession class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: uploadSession.
Returns:
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:
fromJson
public static MicrosoftGraphUploadSession fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphUploadSession from the JsonReader.
Parameters:
Returns:
Throws:
nextExpectedRanges
public List
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:
toJson
uploadUrl
public String uploadUrl()
Get the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.
Returns:
validate
public void validate()
Validates the instance.
withAdditionalProperties
public MicrosoftGraphUploadSession withAdditionalProperties(Map
Set the additionalProperties property: uploadSession.
Parameters:
Returns:
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:
Returns:
withNextExpectedRanges
public MicrosoftGraphUploadSession withNextExpectedRanges(List
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:
Returns:
withUploadUrl
public MicrosoftGraphUploadSession withUploadUrl(String uploadUrl)
Set the uploadUrl property: The URL endpoint that accepts PUT requests for byte ranges of the file.
Parameters:
Returns:
Applies to
Azure SDK for Java