Compartilhar via


MicrosoftGraphUploadSession Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphUploadSession

Implements

public final class MicrosoftGraphUploadSession
implements JsonSerializable<MicrosoftGraphUploadSession>

uploadSession.

Constructor Summary

Constructor Description
MicrosoftGraphUploadSession()

Creates an instance of MicrosoftGraphUploadSession class.

Method Summary

Modifier and Type Method and 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.

static MicrosoftGraphUploadSession fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUploadSession from the JsonReader.

List<String> nextExpectedRanges()

Get the nextExpectedRanges property: A collection of byte ranges that the server is missing for the file.

JsonWriter toJson(JsonWriter jsonWriter)
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.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphUploadSession

public MicrosoftGraphUploadSession()

Creates an instance of MicrosoftGraphUploadSession class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: uploadSession.

Returns:

the additionalProperties value.

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.

fromJson

public static MicrosoftGraphUploadSession fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUploadSession from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphUploadSession if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphUploadSession.

nextExpectedRanges

public List 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphUploadSession withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: uploadSession.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphUploadSession object itself.

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.

withNextExpectedRanges

public MicrosoftGraphUploadSession withNextExpectedRanges(List 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.

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.

Applies to