Class GeoBackupPolicyProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.GeoBackupPolicyProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GeoBackupPolicyProperties>
public final class GeoBackupPolicyProperties
extends Object
implements com.azure.json.JsonSerializable<GeoBackupPolicyProperties>
The properties of the geo backup policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GeoBackupPolicyProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoBackupPolicyPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GeoBackupPolicyProperties from the JsonReader.state()Get the state property: The state of the geo backup policy.Get the storageType property: The storage type of the geo backup policy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withState(GeoBackupPolicyState state) Set the state property: The state of the geo backup policy.Methods inherited from class java.lang.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
-
GeoBackupPolicyProperties
public GeoBackupPolicyProperties()Creates an instance of GeoBackupPolicyProperties class.
-
-
Method Details
-
state
Get the state property: The state of the geo backup policy.- Returns:
- the state value.
-
withState
Set the state property: The state of the geo backup policy.- Parameters:
state- the state value to set.- Returns:
- the GeoBackupPolicyProperties object itself.
-
storageType
Get the storageType property: The storage type of the geo backup policy.- Returns:
- the storageType value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GeoBackupPolicyProperties>- Throws:
IOException
-
fromJson
public static GeoBackupPolicyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GeoBackupPolicyProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GeoBackupPolicyProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the GeoBackupPolicyProperties.
-