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 Details

    • DestinationReplication

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

    • resourceId

      public String resourceId()
      Get the resourceId property: The resource ID of the remote volume.
      Returns:
      the resourceId value.
    • withResourceId

      public DestinationReplication withResourceId(String resourceId)
      Set the resourceId property: The resource ID of the remote volume.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the DestinationReplication object itself.
    • replicationType

      public ReplicationType replicationType()
      Get the replicationType property: Indicates whether the replication is cross zone or cross region.
      Returns:
      the replicationType value.
    • withReplicationType

      public DestinationReplication withReplicationType(ReplicationType replicationType)
      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

      public String region()
      Get the region property: The remote region for the destination volume.
      Returns:
      the region value.
    • withRegion

      public DestinationReplication withRegion(String region)
      Set the region property: The remote region for the destination volume.
      Parameters:
      region - the region value to set.
      Returns:
      the DestinationReplication object itself.
    • zone

      public String zone()
      Get the zone property: The remote zone for the destination volume.
      Returns:
      the zone value.
    • withZone

      public DestinationReplication withZone(String zone)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.