Class NfsAzureFileProperties

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

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

    • NfsAzureFileProperties

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

    • server

      public String server()
      Get the server property: Server for NFS azure file. Specify the Azure storage account server address.
      Returns:
      the server value.
    • withServer

      public NfsAzureFileProperties withServer(String server)
      Set the server property: Server for NFS azure file. Specify the Azure storage account server address.
      Parameters:
      server - the server value to set.
      Returns:
      the NfsAzureFileProperties object itself.
    • accessMode

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

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

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

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

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