Class ReplicationObject

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

public final class ReplicationObject extends Object implements com.azure.json.JsonSerializable<ReplicationObject>
Replication properties.
  • Constructor Details

    • ReplicationObject

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

    • replicationId

      public String replicationId()
      Get the replicationId property: Id.
      Returns:
      the replicationId value.
    • endpointType

      public EndpointType endpointType()
      Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume Replication.
      Returns:
      the endpointType value.
    • withEndpointType

      public ReplicationObject withEndpointType(EndpointType endpointType)
      Set the endpointType property: Indicates whether the local volume is the source or destination for the Volume Replication.
      Parameters:
      endpointType - the endpointType value to set.
      Returns:
      the ReplicationObject object itself.
    • replicationSchedule

      public ReplicationSchedule replicationSchedule()
      Get the replicationSchedule property: Schedule.
      Returns:
      the replicationSchedule value.
    • withReplicationSchedule

      public ReplicationObject withReplicationSchedule(ReplicationSchedule replicationSchedule)
      Set the replicationSchedule property: Schedule.
      Parameters:
      replicationSchedule - the replicationSchedule value to set.
      Returns:
      the ReplicationObject object itself.
    • remoteVolumeResourceId

      public String remoteVolumeResourceId()
      Get the remoteVolumeResourceId property: The resource ID of the remote volume. Required for cross region and cross zone replication.
      Returns:
      the remoteVolumeResourceId value.
    • withRemoteVolumeResourceId

      public ReplicationObject withRemoteVolumeResourceId(String remoteVolumeResourceId)
      Set the remoteVolumeResourceId property: The resource ID of the remote volume. Required for cross region and cross zone replication.
      Parameters:
      remoteVolumeResourceId - the remoteVolumeResourceId value to set.
      Returns:
      the ReplicationObject object itself.
    • remotePath

      public RemotePath remotePath()
      Get the remotePath property: The full path to a volume that is to be migrated into ANF. Required for Migration volumes.
      Returns:
      the remotePath value.
    • withRemotePath

      public ReplicationObject withRemotePath(RemotePath remotePath)
      Set the remotePath property: The full path to a volume that is to be migrated into ANF. Required for Migration volumes.
      Parameters:
      remotePath - the remotePath value to set.
      Returns:
      the ReplicationObject object itself.
    • remoteVolumeRegion

      public String remoteVolumeRegion()
      Get the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.
      Returns:
      the remoteVolumeRegion value.
    • withRemoteVolumeRegion

      public ReplicationObject withRemoteVolumeRegion(String remoteVolumeRegion)
      Set the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.
      Parameters:
      remoteVolumeRegion - the remoteVolumeRegion value to set.
      Returns:
      the ReplicationObject object itself.
    • destinationReplications

      public List<DestinationReplication> destinationReplications()
      Get the destinationReplications property: A list of destination replications.
      Returns:
      the destinationReplications value.
    • 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<ReplicationObject>
      Throws:
      IOException
    • fromJson

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