Class GeoBackupPolicyInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.GeoBackupPolicyInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class GeoBackupPolicyInner
extends com.azure.core.management.ProxyResource
A Geo backup policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkind()Get the kind property: Kind of geo backup policy.location()Get the location property: Backup policy location.state()Get the state property: The state of the geo backup policy.Get the storageType property: The storage type of the geo backup policy.voidvalidate()Validates the instance.withState(GeoBackupPolicyState state) Set the state property: The state of the geo backup policy.Methods inherited from class com.azure.core.management.ProxyResource
fromJson, id, name, toJson, type
-
Constructor Details
-
GeoBackupPolicyInner
public GeoBackupPolicyInner()Creates an instance of GeoBackupPolicyInner class.
-
-
Method Details
-
location
Get the location property: Backup policy location.- Returns:
- the location value.
-
kind
Get the kind property: Kind of geo backup policy. This is metadata used for the Azure portal experience.- Returns:
- the kind value.
-
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 GeoBackupPolicyInner 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.
-