FileShareProperties Class

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

Implements

public final class FileShareProperties
implements JsonSerializable<FileShareProperties>

The FileShareProperties model.

Constructor Summary

Constructor Description
FileShareProperties()

Creates an instance of FileShareProperties class.

Method Summary

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

Reads an instance of FileShareProperties from the JsonReader.

AzureFileShareAccessTier shareAccessTier()

Get the shareAccessTier property: Access tier for specific share.

AzureFileShareAccessType shareAccessType()

Get the shareAccessType property: Specifies how Container Groups can access the Azure file share i.e.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FileShareProperties withShareAccessTier(AzureFileShareAccessTier shareAccessTier)

Set the shareAccessTier property: Access tier for specific share.

FileShareProperties withShareAccessType(AzureFileShareAccessType shareAccessType)

Set the shareAccessType property: Specifies how Container Groups can access the Azure file share i.e.

Methods inherited from java.lang.Object

Constructor Details

FileShareProperties

public FileShareProperties()

Creates an instance of FileShareProperties class.

Method Details

fromJson

public static FileShareProperties fromJson(JsonReader jsonReader)

Reads an instance of FileShareProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

shareAccessTier

public AzureFileShareAccessTier shareAccessTier()

Get the shareAccessTier property: Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn more at: https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP\#shareaccesstier.

Returns:

the shareAccessTier value.

shareAccessType

public AzureFileShareAccessType shareAccessType()

Get the shareAccessType property: Specifies how Container Groups can access the Azure file share i.e. all CG will share same Azure file share or going to have exclusive file share.

Returns:

the shareAccessType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withShareAccessTier

public FileShareProperties withShareAccessTier(AzureFileShareAccessTier shareAccessTier)

Set the shareAccessTier property: Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn more at: https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP\#shareaccesstier.

Parameters:

shareAccessTier - the shareAccessTier value to set.

Returns:

the FileShareProperties object itself.

withShareAccessType

public FileShareProperties withShareAccessType(AzureFileShareAccessType shareAccessType)

Set the shareAccessType property: Specifies how Container Groups can access the Azure file share i.e. all CG will share same Azure file share or going to have exclusive file share.

Parameters:

shareAccessType - the shareAccessType value to set.

Returns:

the FileShareProperties object itself.

Applies to