Class ClusterReplicationProperties

java.lang.Object
com.azure.resourcemanager.loganalytics.models.ClusterReplicationProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterReplicationProperties>

public final class ClusterReplicationProperties extends Object implements com.azure.json.JsonSerializable<ClusterReplicationProperties>
Cluster replication properties.
  • Constructor Details

    • ClusterReplicationProperties

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

    • location

      public String location()
      Get the location property: The secondary location of the replication. If replication is being enabled, enabled must be provided.
      Returns:
      the location value.
    • withLocation

      public ClusterReplicationProperties withLocation(String location)
      Set the location property: The secondary location of the replication. If replication is being enabled, enabled must be provided.
      Parameters:
      location - the location value to set.
      Returns:
      the ClusterReplicationProperties object itself.
    • enabled

      public Boolean enabled()
      Get the enabled property: Specifies whether the replication is enabled or not. When true the cluster is replicate to the specified location.
      Returns:
      the enabled value.
    • withEnabled

      public ClusterReplicationProperties withEnabled(Boolean enabled)
      Set the enabled property: Specifies whether the replication is enabled or not. When true the cluster is replicate to the specified location.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ClusterReplicationProperties object itself.
    • isAvailabilityZonesEnabled

      public Boolean isAvailabilityZonesEnabled()
      Get the isAvailabilityZonesEnabled property: Should enable AvailabilityZones for the given replicated cluster.
      Returns:
      the isAvailabilityZonesEnabled value.
    • withIsAvailabilityZonesEnabled

      public ClusterReplicationProperties withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled)
      Set the isAvailabilityZonesEnabled property: Should enable AvailabilityZones for the given replicated cluster.
      Parameters:
      isAvailabilityZonesEnabled - the isAvailabilityZonesEnabled value to set.
      Returns:
      the ClusterReplicationProperties object itself.
    • provisioningState

      public ClusterReplicationState provisioningState()
      Get the provisioningState property: The provisioning state of the cluster replication.
      Returns:
      the provisioningState value.
    • createdDate

      public OffsetDateTime createdDate()
      Get the createdDate property: The cluster's replication creation time.
      Returns:
      the createdDate value.
    • lastModifiedDate

      public OffsetDateTime lastModifiedDate()
      Get the lastModifiedDate property: The last time the cluster's replication 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<ClusterReplicationProperties>
      Throws:
      IOException
    • fromJson

      public static ClusterReplicationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterReplicationProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterReplicationProperties 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 ClusterReplicationProperties.