FileDetailsInner Class

public final class FileDetailsInner
extends ProxyResource

Object that represents File Details resource.

Constructor Summary

Constructor Description
FileDetailsInner()

Creates an instance of FileDetailsInner class.

Method Summary

Modifier and Type Method and Description
Integer chunkSize()

Get the chunkSize property: Size of each chunk.

OffsetDateTime createdOn()

Get the createdOn property: Time in UTC (ISO 8601 format) when file workspace was created.

Integer fileSize()

Get the fileSize property: Size of the file to be uploaded.

static FileDetailsInner fromJson(JsonReader jsonReader)

Reads an instance of FileDetailsInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

Integer numberOfChunks()

Get the numberOfChunks property: Number of chunks to be uploaded.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

FileDetailsInner withChunkSize(Integer chunkSize)

Set the chunkSize property: Size of each chunk.

FileDetailsInner withFileSize(Integer fileSize)

Set the fileSize property: Size of the file to be uploaded.

FileDetailsInner withNumberOfChunks(Integer numberOfChunks)

Set the numberOfChunks property: Number of chunks to be uploaded.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

FileDetailsInner

public FileDetailsInner()

Creates an instance of FileDetailsInner class.

Method Details

chunkSize

public Integer chunkSize()

Get the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes and must not exceed 2.5 megabytes (MB).

Returns:

the chunkSize value.

createdOn

public OffsetDateTime createdOn()

Get the createdOn property: Time in UTC (ISO 8601 format) when file workspace was created.

Returns:

the createdOn value.

fileSize

public Integer fileSize()

Get the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and should be provided in bytes.

Returns:

the fileSize value.

fromJson

public static FileDetailsInner fromJson(JsonReader jsonReader)

Reads an instance of FileDetailsInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

FileDetailsInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

FileDetailsInner.name()

Returns:

the name value.

numberOfChunks

public Integer numberOfChunks()

Get the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed chunks is 2.

Returns:

the numberOfChunks value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FileDetailsInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

FileDetailsInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withChunkSize

public FileDetailsInner withChunkSize(Integer chunkSize)

Set the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes and must not exceed 2.5 megabytes (MB).

Parameters:

chunkSize - the chunkSize value to set.

Returns:

the FileDetailsInner object itself.

withFileSize

public FileDetailsInner withFileSize(Integer fileSize)

Set the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and should be provided in bytes.

Parameters:

fileSize - the fileSize value to set.

Returns:

the FileDetailsInner object itself.

withNumberOfChunks

public FileDetailsInner withNumberOfChunks(Integer numberOfChunks)

Set the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed chunks is 2.

Parameters:

numberOfChunks - the numberOfChunks value to set.

Returns:

the FileDetailsInner object itself.

Applies to