Class ReplicationInner
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.ReplicationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ReplicationInner>
public final class ReplicationInner
extends Object
implements com.azure.json.JsonSerializable<ReplicationInner>
Replication properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the endpointType property: Indicates whether the local volume is the source or destination for the Volume Replication.static ReplicationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ReplicationInner from the JsonReader.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: UUID v4 used to identify the replication.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.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
-
ReplicationInner
public ReplicationInner()Creates an instance of ReplicationInner class.
-
-
Method Details
-
replicationId
Get the replicationId property: UUID v4 used to identify the replication.- 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 ReplicationInner 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 ReplicationInner object itself.
-
remoteVolumeResourceId
Get the remoteVolumeResourceId property: The resource ID of the remote volume.- Returns:
- the remoteVolumeResourceId value.
-
withRemoteVolumeResourceId
Set the remoteVolumeResourceId property: The resource ID of the remote volume.- Parameters:
remoteVolumeResourceId- the remoteVolumeResourceId value to set.- Returns:
- the ReplicationInner 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 ReplicationInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ReplicationInner>- Throws:
IOException
-
fromJson
Reads an instance of ReplicationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ReplicationInner 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 ReplicationInner.
-