Class DestinationReplication
java.lang.Object
com.azure.resourcemanager.netapp.models.DestinationReplication
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DestinationReplication>
public final class DestinationReplication
extends Object
implements com.azure.json.JsonSerializable<DestinationReplication>
Destination replication properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DestinationReplication class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DestinationReplication
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DestinationReplication from the JsonReader.region()
Get the region property: The remote region for the destination volume.Get the replicationType property: Indicates whether the replication is cross zone or cross region.Get the resourceId property: The resource ID of the remote volume.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withRegion
(String region) Set the region property: The remote region for the destination volume.withReplicationType
(ReplicationType replicationType) Set the replicationType property: Indicates whether the replication is cross zone or cross region.withResourceId
(String resourceId) Set the resourceId property: The resource ID of the remote volume.Set the zone property: The remote zone for the destination volume.zone()
Get the zone property: The remote zone for the destination volume.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
-
DestinationReplication
public DestinationReplication()Creates an instance of DestinationReplication class.
-
-
Method Details
-
resourceId
Get the resourceId property: The resource ID of the remote volume.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The resource ID of the remote volume.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the DestinationReplication object itself.
-
replicationType
Get the replicationType property: Indicates whether the replication is cross zone or cross region.- Returns:
- the replicationType value.
-
withReplicationType
Set the replicationType property: Indicates whether the replication is cross zone or cross region.- Parameters:
replicationType
- the replicationType value to set.- Returns:
- the DestinationReplication object itself.
-
region
Get the region property: The remote region for the destination volume.- Returns:
- the region value.
-
withRegion
Set the region property: The remote region for the destination volume.- Parameters:
region
- the region value to set.- Returns:
- the DestinationReplication object itself.
-
zone
Get the zone property: The remote zone for the destination volume.- Returns:
- the zone value.
-
withZone
Set the zone property: The remote zone for the destination volume.- Parameters:
zone
- the zone value to set.- Returns:
- the DestinationReplication 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<DestinationReplication>
- Throws:
IOException
-
fromJson
public static DestinationReplication fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DestinationReplication from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DestinationReplication 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 DestinationReplication.
-