Class AzureStorageInfoValue
java.lang.Object
com.azure.resourcemanager.appservice.models.AzureStorageInfoValue
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureStorageInfoValue>
public final class AzureStorageInfoValue
extends Object
implements com.azure.json.JsonSerializable<AzureStorageInfoValue>
Azure Files or Blob Storage access information value for dictionary storage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessKey property: Access key for the storage account.Get the accountName property: Name of the storage account.static AzureStorageInfoValue
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AzureStorageInfoValue from the JsonReader.Get the mountPath property: Path to mount the storage within the site's runtime environment.protocol()
Get the protocol property: Mounting protocol to use for the storage account.Get the shareName property: Name of the file share (container name, for Blob storage).state()
Get the state property: State of the storage account.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Type of storage.void
validate()
Validates the instance.withAccessKey
(String accessKey) Set the accessKey property: Access key for the storage account.withAccountName
(String accountName) Set the accountName property: Name of the storage account.withMountPath
(String mountPath) Set the mountPath property: Path to mount the storage within the site's runtime environment.withProtocol
(AzureStorageProtocol protocol) Set the protocol property: Mounting protocol to use for the storage account.withShareName
(String shareName) Set the shareName property: Name of the file share (container name, for Blob storage).withType
(AzureStorageType type) Set the type property: Type of storage.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureStorageInfoValue
public AzureStorageInfoValue()Creates an instance of AzureStorageInfoValue class.
-
-
Method Details
-
type
Get the type property: Type of storage.- Returns:
- the type value.
-
withType
Set the type property: Type of storage.- Parameters:
type
- the type value to set.- Returns:
- the AzureStorageInfoValue object itself.
-
accountName
Get the accountName property: Name of the storage account.- Returns:
- the accountName value.
-
withAccountName
Set the accountName property: Name of the storage account.- Parameters:
accountName
- the accountName value to set.- Returns:
- the AzureStorageInfoValue object itself.
-
accessKey
Get the accessKey property: Access key for the storage account.- Returns:
- the accessKey value.
-
withAccessKey
Set the accessKey property: Access key for the storage account.- Parameters:
accessKey
- the accessKey value to set.- Returns:
- the AzureStorageInfoValue object itself.
-
mountPath
Get the mountPath property: Path to mount the storage within the site's runtime environment.- Returns:
- the mountPath value.
-
withMountPath
Set the mountPath property: Path to mount the storage within the site's runtime environment.- Parameters:
mountPath
- the mountPath value to set.- Returns:
- the AzureStorageInfoValue object itself.
-
state
Get the state property: State of the storage account.- Returns:
- the state value.
-
protocol
Get the protocol property: Mounting protocol to use for the storage account.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Mounting protocol to use for the storage account.- Parameters:
protocol
- the protocol value to set.- Returns:
- the AzureStorageInfoValue object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AzureStorageInfoValue>
- Throws:
IOException
-
fromJson
public static AzureStorageInfoValue fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureStorageInfoValue from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AzureStorageInfoValue 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 AzureStorageInfoValue.
-