Class RemotePath

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

public final class RemotePath extends Object implements com.azure.json.JsonSerializable<RemotePath>
The full path to a volume that is to be migrated into ANF. Required for Migration volumes.
  • Constructor Details

    • RemotePath

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

    • externalHostname

      public String externalHostname()
      Get the externalHostname property: The Path to a ONTAP Host.
      Returns:
      the externalHostname value.
    • withExternalHostname

      public RemotePath withExternalHostname(String externalHostname)
      Set the externalHostname property: The Path to a ONTAP Host.
      Parameters:
      externalHostname - the externalHostname value to set.
      Returns:
      the RemotePath object itself.
    • serverName

      public String serverName()
      Get the serverName property: The name of a server on the ONTAP Host.
      Returns:
      the serverName value.
    • withServerName

      public RemotePath withServerName(String serverName)
      Set the serverName property: The name of a server on the ONTAP Host.
      Parameters:
      serverName - the serverName value to set.
      Returns:
      the RemotePath object itself.
    • volumeName

      public String volumeName()
      Get the volumeName property: The name of a volume on the server.
      Returns:
      the volumeName value.
    • withVolumeName

      public RemotePath withVolumeName(String volumeName)
      Set the volumeName property: The name of a volume on the server.
      Parameters:
      volumeName - the volumeName value to set.
      Returns:
      the RemotePath 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<RemotePath>
      Throws:
      IOException
    • fromJson

      public static RemotePath fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RemotePath from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RemotePath if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the RemotePath.