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 Details

    • StorageMount

      public StorageMount()
      Creates an instance of StorageMount class.
  • Method Details

    • name

      public String name()
      Get the name property: Name of the storage mount.
      Returns:
      the name value.
    • withName

      public StorageMount withName(String name)
      Set the name property: Name of the storage mount.
      Parameters:
      name - the name value to set.
      Returns:
      the StorageMount object itself.
    • type

      public StorageMountType type()
      Get the type property: Type of the storage mount.
      Returns:
      the type value.
    • withType

      public StorageMount withType(StorageMountType type)
      Set the type property: Type of the storage mount.
      Parameters:
      type - the type value to set.
      Returns:
      the StorageMount object itself.
    • source

      public String source()
      Get the source property: Source of the fileshare/storage.
      Returns:
      the source value.
    • withSource

      public StorageMount withSource(String source)
      Set the source property: Source of the fileshare/storage.
      Parameters:
      source - the source value to set.
      Returns:
      the StorageMount object itself.
    • destinationPath

      public String destinationPath()
      Get the destinationPath property: Path on worker where storage will be mounted.
      Returns:
      the destinationPath value.
    • withDestinationPath

      public StorageMount withDestinationPath(String destinationPath)
      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

      public KeyVaultReferenceWithStatus 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<StorageMount>
      Throws:
      IOException
    • fromJson

      public static StorageMount fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.