FileDetailsProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.support.fluent.models.FileDetailsProperties

Implements

public final class FileDetailsProperties
implements JsonSerializable<FileDetailsProperties>

Describes the properties of a file.

Constructor Summary

Constructor Description
FileDetailsProperties()

Creates an instance of FileDetailsProperties 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 FileDetailsProperties fromJson(JsonReader jsonReader)

Reads an instance of FileDetailsProperties from the JsonReader.

Integer numberOfChunks()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FileDetailsProperties withChunkSize(Integer chunkSize)

Set the chunkSize property: Size of each chunk.

FileDetailsProperties withFileSize(Integer fileSize)

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

FileDetailsProperties withNumberOfChunks(Integer numberOfChunks)

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

Methods inherited from java.lang.Object

Constructor Details

FileDetailsProperties

public FileDetailsProperties()

Creates an instance of FileDetailsProperties 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 FileDetailsProperties fromJson(JsonReader jsonReader)

Reads an instance of FileDetailsProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FileDetailsProperties 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 FileDetailsProperties.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withChunkSize

public FileDetailsProperties 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 FileDetailsProperties object itself.

withFileSize

public FileDetailsProperties 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 FileDetailsProperties object itself.

withNumberOfChunks

public FileDetailsProperties 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 FileDetailsProperties object itself.

Applies to