GeoBackupPolicyInner Class

public final class GeoBackupPolicyInner
extends ProxyResource

A Geo backup policy.

Constructor Summary

Constructor Description
GeoBackupPolicyInner()

Creates an instance of GeoBackupPolicyInner class.

Method Summary

Modifier and Type Method and Description
static GeoBackupPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of GeoBackupPolicyInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: Kind of geo backup policy.

String location()

Get the location property: Backup policy location.

String name()

Get the name property: The name of the resource.

GeoBackupPolicyState state()

Get the state property: The state of the geo backup policy.

String storageType()

Get the storageType property: The storage type of the geo backup policy.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GeoBackupPolicyInner withState(GeoBackupPolicyState state)

Set the state property: The state of the geo backup policy.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

GeoBackupPolicyInner

public GeoBackupPolicyInner()

Creates an instance of GeoBackupPolicyInner class.

Method Details

fromJson

public static GeoBackupPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of GeoBackupPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GeoBackupPolicyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

GeoBackupPolicyInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: Kind of geo backup policy. This is metadata used for the Azure portal experience.

Returns:

the kind value.

location

public String location()

Get the location property: Backup policy location.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GeoBackupPolicyInner.name()

Returns:

the name value.

state

public GeoBackupPolicyState state()

Get the state property: The state of the geo backup policy.

Returns:

the state value.

storageType

public String storageType()

Get the storageType property: The storage type of the geo backup policy.

Returns:

the storageType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GeoBackupPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GeoBackupPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withState

public GeoBackupPolicyInner withState(GeoBackupPolicyState state)

Set the state property: The state of the geo backup policy.

Parameters:

state - the state value to set.

Returns:

the GeoBackupPolicyInner object itself.

Applies to