Class RemotePath
java.lang.Object
com.azure.resourcemanager.netapp.models.RemotePath
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RemotePath>
The full path to a volume that is to be migrated into ANF. Required for Migration volumes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the externalHostname property: The Path to a ONTAP Host.static RemotePath
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RemotePath from the JsonReader.Get the serverName property: The name of a server on the ONTAP Host.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the volumeName property: The name of a volume on the server.withExternalHostname
(String externalHostname) Set the externalHostname property: The Path to a ONTAP Host.withServerName
(String serverName) Set the serverName property: The name of a server on the ONTAP Host.withVolumeName
(String volumeName) Set the volumeName property: The name of a volume on the server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RemotePath
public RemotePath()Creates an instance of RemotePath class.
-
-
Method Details
-
externalHostname
Get the externalHostname property: The Path to a ONTAP Host.- Returns:
- the externalHostname value.
-
withExternalHostname
Set the externalHostname property: The Path to a ONTAP Host.- Parameters:
externalHostname
- the externalHostname value to set.- Returns:
- the RemotePath object itself.
-
serverName
Get the serverName property: The name of a server on the ONTAP Host.- Returns:
- the serverName value.
-
withServerName
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
Get the volumeName property: The name of a volume on the server.- Returns:
- the volumeName value.
-
withVolumeName
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RemotePath>
- Throws:
IOException
-
fromJson
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.
-