AzureFileVolume Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.AzureFileVolume

Implements

public final class AzureFileVolume
implements JsonSerializable<AzureFileVolume>

The properties of the Azure File volume. Azure File shares are mounted as volumes.

Constructor Summary

Constructor Description
AzureFileVolume()

Creates an instance of AzureFileVolume class.

Method Summary

Modifier and Type Method and Description
static AzureFileVolume fromJson(JsonReader jsonReader)

Reads an instance of AzureFileVolume from the JsonReader.

Boolean readOnly()

Get the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.

String shareName()

Get the shareName property: The name of the Azure File share to be mounted as a volume.

String storageAccountKey()

Get the storageAccountKey property: The storage account access key used to access the Azure File share.

String storageAccountName()

Get the storageAccountName property: The name of the storage account that contains the Azure File share.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureFileVolume withReadOnly(Boolean readOnly)

Set the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.

AzureFileVolume withShareName(String shareName)

Set the shareName property: The name of the Azure File share to be mounted as a volume.

AzureFileVolume withStorageAccountKey(String storageAccountKey)

Set the storageAccountKey property: The storage account access key used to access the Azure File share.

AzureFileVolume withStorageAccountName(String storageAccountName)

Set the storageAccountName property: The name of the storage account that contains the Azure File share.

Methods inherited from java.lang.Object

Constructor Details

AzureFileVolume

public AzureFileVolume()

Creates an instance of AzureFileVolume class.

Method Details

fromJson

public static AzureFileVolume fromJson(JsonReader jsonReader)

Reads an instance of AzureFileVolume from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

readOnly

public Boolean readOnly()

Get the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.

Returns:

the readOnly value.

shareName

public String shareName()

Get the shareName property: The name of the Azure File share to be mounted as a volume.

Returns:

the shareName value.

storageAccountKey

public String storageAccountKey()

Get the storageAccountKey property: The storage account access key used to access the Azure File share.

Returns:

the storageAccountKey value.

storageAccountName

public String storageAccountName()

Get the storageAccountName property: The name of the storage account that contains the Azure File share.

Returns:

the storageAccountName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReadOnly

public AzureFileVolume withReadOnly(Boolean readOnly)

Set the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.

Parameters:

readOnly - the readOnly value to set.

Returns:

the AzureFileVolume object itself.

withShareName

public AzureFileVolume withShareName(String shareName)

Set the shareName property: The name of the Azure File share to be mounted as a volume.

Parameters:

shareName - the shareName value to set.

Returns:

the AzureFileVolume object itself.

withStorageAccountKey

public AzureFileVolume withStorageAccountKey(String storageAccountKey)

Set the storageAccountKey property: The storage account access key used to access the Azure File share.

Parameters:

storageAccountKey - the storageAccountKey value to set.

Returns:

the AzureFileVolume object itself.

withStorageAccountName

public AzureFileVolume withStorageAccountName(String storageAccountName)

Set the storageAccountName property: The name of the storage account that contains the Azure File share.

Parameters:

storageAccountName - the storageAccountName value to set.

Returns:

the AzureFileVolume object itself.

Applies to