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 Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterReplicationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the createdDate property: The cluster's replication creation time.enabled()Get the enabled property: Specifies whether the replication is enabled or not.static ClusterReplicationPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterReplicationProperties from the JsonReader.Get the isAvailabilityZonesEnabled property: Should enable AvailabilityZones for the given replicated cluster.Get the lastModifiedDate property: The last time the cluster's replication was updated.location()Get the location property: The secondary location of the replication.Get the provisioningState property: The provisioning state of the cluster replication.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withEnabled(Boolean enabled) Set the enabled property: Specifies whether the replication is enabled or not.withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled) Set the isAvailabilityZonesEnabled property: Should enable AvailabilityZones for the given replicated cluster.withLocation(String location) Set the location property: The secondary location of the replication.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
-
ClusterReplicationProperties
public ClusterReplicationProperties()Creates an instance of ClusterReplicationProperties class.
-
-
Method Details
-
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
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
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
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
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
Get the provisioningState property: The provisioning state of the cluster replication.- Returns:
- the provisioningState value.
-
createdDate
Get the createdDate property: The cluster's replication creation time.- Returns:
- the createdDate value.
-
lastModifiedDate
Get the lastModifiedDate property: The last time the cluster's replication was updated.- Returns:
- the lastModifiedDate value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-