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 Details

    • WorkspaceFailoverProperties

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

    • state

      public WorkspaceFailoverState state()
      Get the state property: The failover state of the replication.
      Returns:
      the state value.
    • lastModifiedDate

      public OffsetDateTime lastModifiedDate()
      Get the lastModifiedDate property: The last time when the failover state was updated.
      Returns:
      the lastModifiedDate value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.