Class GeoPriorityReplicationStatus
java.lang.Object
com.azure.resourcemanager.storage.models.GeoPriorityReplicationStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GeoPriorityReplicationStatus>
public final class GeoPriorityReplicationStatus
extends Object
implements com.azure.json.JsonSerializable<GeoPriorityReplicationStatus>
Geo Priority Replication enablement status for the storage account.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GeoPriorityReplicationStatus class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoPriorityReplicationStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GeoPriorityReplicationStatus from the JsonReader.Get the isBlobEnabled property: Indicates whether Blob Geo Priority Replication is enabled for the storage account.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsBlobEnabled(Boolean isBlobEnabled) Set the isBlobEnabled property: Indicates whether Blob Geo Priority Replication is enabled for the storage account.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
-
GeoPriorityReplicationStatus
public GeoPriorityReplicationStatus()Creates an instance of GeoPriorityReplicationStatus class.
-
-
Method Details
-
isBlobEnabled
Get the isBlobEnabled property: Indicates whether Blob Geo Priority Replication is enabled for the storage account.- Returns:
- the isBlobEnabled value.
-
withIsBlobEnabled
Set the isBlobEnabled property: Indicates whether Blob Geo Priority Replication is enabled for the storage account.- Parameters:
isBlobEnabled- the isBlobEnabled value to set.- Returns:
- the GeoPriorityReplicationStatus object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GeoPriorityReplicationStatus>- Throws:
IOException
-
fromJson
public static GeoPriorityReplicationStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GeoPriorityReplicationStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GeoPriorityReplicationStatus 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 GeoPriorityReplicationStatus.
-