Class WorkspaceFailoverProperties
java.lang.Object
com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceFailoverProperties>
public final class WorkspaceFailoverProperties
extends Object
implements com.azure.json.JsonSerializable<WorkspaceFailoverProperties>
The failover state of the replication.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WorkspaceFailoverProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkspaceFailoverPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceFailoverProperties from the JsonReader.Get the lastModifiedDate property: The last time when the failover state was updated.state()Get the state property: The failover state of the replication.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class 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
-
WorkspaceFailoverProperties
public WorkspaceFailoverProperties()Creates an instance of WorkspaceFailoverProperties class.
-
-
Method Details
-
state
Get the state property: The failover state of the replication.- Returns:
- the state value.
-
lastModifiedDate
Get the lastModifiedDate property: The last time when the failover state was updated.- Returns:
- the lastModifiedDate value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WorkspaceFailoverProperties>- Throws:
IOException
-
fromJson
public static WorkspaceFailoverProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WorkspaceFailoverProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspaceFailoverProperties 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 WorkspaceFailoverProperties.
-