FileShareProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. FileShareProperties
- com.
Implements
public final class FileShareProperties
implements JsonSerializable<FileShareProperties>
The FileShareProperties model.
Constructor Summary
| Constructor | Description |
|---|---|
| FileShareProperties() |
Creates an instance of File |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
|
Azure |
shareAccessTier()
Get the share |
|
Azure |
shareAccessType()
Get the share |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
File |
withShareAccessTier(AzureFileShareAccessTier shareAccessTier)
Set the share |
|
File |
withShareAccessType(AzureFileShareAccessType shareAccessType)
Set the share |
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:
Returns:
Throws:
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:
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:
toJson
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:
Returns:
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:
Returns: