Class ReplicationStatusInner
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ReplicationStatusInner>
public final class ReplicationStatusInner
extends Object
implements com.azure.json.JsonSerializable<ReplicationStatusInner>
Replication status.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ReplicationStatusInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the errorMessage property: Displays error message if the replication is in an error state.static ReplicationStatusInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ReplicationStatusInner from the JsonReader.healthy()
Get the healthy property: Replication health check.Get the mirrorState property: The status of the replication.Get the relationshipStatus property: Status of the mirror relationship.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the totalProgress property: The progress of the replication.void
validate()
Validates the instance.withErrorMessage
(String errorMessage) Set the errorMessage property: Displays error message if the replication is in an error state.withHealthy
(Boolean healthy) Set the healthy property: Replication health check.withMirrorState
(MirrorState mirrorState) Set the mirrorState property: The status of the replication.withRelationshipStatus
(RelationshipStatus relationshipStatus) Set the relationshipStatus property: Status of the mirror relationship.withTotalProgress
(String totalProgress) Set the totalProgress property: The progress of the replication.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
-
ReplicationStatusInner
public ReplicationStatusInner()Creates an instance of ReplicationStatusInner class.
-
-
Method Details
-
healthy
Get the healthy property: Replication health check.- Returns:
- the healthy value.
-
withHealthy
Set the healthy property: Replication health check.- Parameters:
healthy
- the healthy value to set.- Returns:
- the ReplicationStatusInner object itself.
-
relationshipStatus
Get the relationshipStatus property: Status of the mirror relationship.- Returns:
- the relationshipStatus value.
-
withRelationshipStatus
Set the relationshipStatus property: Status of the mirror relationship.- Parameters:
relationshipStatus
- the relationshipStatus value to set.- Returns:
- the ReplicationStatusInner object itself.
-
mirrorState
Get the mirrorState property: The status of the replication.- Returns:
- the mirrorState value.
-
withMirrorState
Set the mirrorState property: The status of the replication.- Parameters:
mirrorState
- the mirrorState value to set.- Returns:
- the ReplicationStatusInner object itself.
-
totalProgress
Get the totalProgress property: The progress of the replication.- Returns:
- the totalProgress value.
-
withTotalProgress
Set the totalProgress property: The progress of the replication.- Parameters:
totalProgress
- the totalProgress value to set.- Returns:
- the ReplicationStatusInner object itself.
-
errorMessage
Get the errorMessage property: Displays error message if the replication is in an error state.- Returns:
- the errorMessage value.
-
withErrorMessage
Set the errorMessage property: Displays error message if the replication is in an error state.- Parameters:
errorMessage
- the errorMessage value to set.- Returns:
- the ReplicationStatusInner 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<ReplicationStatusInner>
- Throws:
IOException
-
fromJson
public static ReplicationStatusInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ReplicationStatusInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ReplicationStatusInner 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 ReplicationStatusInner.
-