Class AzureFileProperties

java.lang.Object
com.azure.resourcemanager.appcontainers.models.AzureFileProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFileProperties>

public final class AzureFileProperties extends Object implements com.azure.json.JsonSerializable<AzureFileProperties>
Azure File Properties.
  • Constructor Details

    • AzureFileProperties

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

    • accountName

      public String accountName()
      Get the accountName property: Storage account name for azure file.
      Returns:
      the accountName value.
    • withAccountName

      public AzureFileProperties withAccountName(String accountName)
      Set the accountName property: Storage account name for azure file.
      Parameters:
      accountName - the accountName value to set.
      Returns:
      the AzureFileProperties object itself.
    • accountKey

      public String accountKey()
      Get the accountKey property: Storage account key for azure file.
      Returns:
      the accountKey value.
    • withAccountKey

      public AzureFileProperties withAccountKey(String accountKey)
      Set the accountKey property: Storage account key for azure file.
      Parameters:
      accountKey - the accountKey value to set.
      Returns:
      the AzureFileProperties object itself.
    • accessMode

      public AccessMode accessMode()
      Get the accessMode property: Access mode for storage.
      Returns:
      the accessMode value.
    • withAccessMode

      public AzureFileProperties withAccessMode(AccessMode accessMode)
      Set the accessMode property: Access mode for storage.
      Parameters:
      accessMode - the accessMode value to set.
      Returns:
      the AzureFileProperties object itself.
    • shareName

      public String shareName()
      Get the shareName property: Azure file share name.
      Returns:
      the shareName value.
    • withShareName

      public AzureFileProperties withShareName(String shareName)
      Set the shareName property: Azure file share name.
      Parameters:
      shareName - the shareName value to set.
      Returns:
      the AzureFileProperties 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<AzureFileProperties>
      Throws:
      IOException
    • fromJson

      public static AzureFileProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AzureFileProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AzureFileProperties 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 AzureFileProperties.