Class StorageMount
java.lang.Object
com.azure.resourcemanager.appservice.models.StorageMount
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageMount>
public final class StorageMount
extends Object
implements com.azure.json.JsonSerializable<StorageMount>
Server farm storage mount configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the credentialsKeyVaultReference property: KV reference to the credentials to connect to the share.Get the destinationPath property: Path on worker where storage will be mounted.static StorageMountfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StorageMount from the JsonReader.name()Get the name property: Name of the storage mount.source()Get the source property: Source of the fileshare/storage.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the storage mount.voidvalidate()Validates the instance.withCredentialsKeyVaultReference(KeyVaultReferenceWithStatus credentialsKeyVaultReference) Set the credentialsKeyVaultReference property: KV reference to the credentials to connect to the share.withDestinationPath(String destinationPath) Set the destinationPath property: Path on worker where storage will be mounted.Set the name property: Name of the storage mount.withSource(String source) Set the source property: Source of the fileshare/storage.withType(StorageMountType type) Set the type property: Type of the storage mount.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StorageMount
public StorageMount()Creates an instance of StorageMount class.
-
-
Method Details
-
name
-
withName
Set the name property: Name of the storage mount.- Parameters:
name- the name value to set.- Returns:
- the StorageMount object itself.
-
type
Get the type property: Type of the storage mount.- Returns:
- the type value.
-
withType
Set the type property: Type of the storage mount.- Parameters:
type- the type value to set.- Returns:
- the StorageMount object itself.
-
source
Get the source property: Source of the fileshare/storage.- Returns:
- the source value.
-
withSource
Set the source property: Source of the fileshare/storage.- Parameters:
source- the source value to set.- Returns:
- the StorageMount object itself.
-
destinationPath
Get the destinationPath property: Path on worker where storage will be mounted.- Returns:
- the destinationPath value.
-
withDestinationPath
Set the destinationPath property: Path on worker where storage will be mounted.- Parameters:
destinationPath- the destinationPath value to set.- Returns:
- the StorageMount object itself.
-
credentialsKeyVaultReference
Get the credentialsKeyVaultReference property: KV reference to the credentials to connect to the share.- Returns:
- the credentialsKeyVaultReference value.
-
withCredentialsKeyVaultReference
public StorageMount withCredentialsKeyVaultReference(KeyVaultReferenceWithStatus credentialsKeyVaultReference) Set the credentialsKeyVaultReference property: KV reference to the credentials to connect to the share.- Parameters:
credentialsKeyVaultReference- the credentialsKeyVaultReference value to set.- Returns:
- the StorageMount object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StorageMount>- Throws:
IOException
-
fromJson
Reads an instance of StorageMount from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StorageMount 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 StorageMount.
-