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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationReplications property: A list of destination replications.Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume Replication.static ReplicationObjectfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ReplicationObject from the JsonReader.Get the remotePath property: The full path to a volume that is to be migrated into ANF.Get the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.Get the remoteVolumeResourceId property: The resource ID of the remote volume.Get the replicationId property: Id.Get the replicationSchedule property: Schedule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndpointType(EndpointType endpointType) Set the endpointType property: Indicates whether the local volume is the source or destination for the Volume Replication.withRemotePath(RemotePath remotePath) Set the remotePath property: The full path to a volume that is to be migrated into ANF.withRemoteVolumeRegion(String remoteVolumeRegion) Set the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.withRemoteVolumeResourceId(String remoteVolumeResourceId) Set the remoteVolumeResourceId property: The resource ID of the remote volume.withReplicationSchedule(ReplicationSchedule replicationSchedule) Set the replicationSchedule property: Schedule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ReplicationObject
public ReplicationObject()Creates an instance of ReplicationObject class.
-
-
Method Details
-
replicationId
Get the replicationId property: Id.- Returns:
- the replicationId value.
-
endpointType
Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume Replication.- Returns:
- the endpointType value.
-
withEndpointType
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
Get the replicationSchedule property: Schedule.- Returns:
- the replicationSchedule value.
-
withReplicationSchedule
Set the replicationSchedule property: Schedule.- Parameters:
replicationSchedule- the replicationSchedule value to set.- Returns:
- the ReplicationObject object itself.
-
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
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
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
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
Get the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.- Returns:
- the remoteVolumeRegion value.
-
withRemoteVolumeRegion
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ReplicationObject>- Throws:
IOException
-
fromJson
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.
-