PolicyInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.PolicyInfo

Implements

public final class PolicyInfo
implements JsonSerializable<PolicyInfo>

Policy Info in backupInstance.

Constructor Summary

Constructor Description
PolicyInfo()

Creates an instance of PolicyInfo class.

Method Summary

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

Reads an instance of PolicyInfo from the JsonReader.

String policyId()

Get the policyId property: The policyId property.

PolicyParameters policyParameters()

Get the policyParameters property: Policy parameters for the backup instance.

String policyVersion()

Get the policyVersion property: The policyVersion property.

JsonWriter toJson(JsonWriter jsonWriter)
PolicyInfo withPolicyId(String policyId)

Set the policyId property: The policyId property.

PolicyInfo withPolicyParameters(PolicyParameters policyParameters)

Set the policyParameters property: Policy parameters for the backup instance.

Methods inherited from java.lang.Object

Constructor Details

PolicyInfo

public PolicyInfo()

Creates an instance of PolicyInfo class.

Method Details

fromJson

public static PolicyInfo fromJson(JsonReader jsonReader)

Reads an instance of PolicyInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PolicyInfo 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.

policyId

public String policyId()

Get the policyId property: The policyId property.

Returns:

the policyId value.

policyParameters

public PolicyParameters policyParameters()

Get the policyParameters property: Policy parameters for the backup instance.

Returns:

the policyParameters value.

policyVersion

public String policyVersion()

Get the policyVersion property: The policyVersion property.

Returns:

the policyVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withPolicyId

public PolicyInfo withPolicyId(String policyId)

Set the policyId property: The policyId property.

Parameters:

policyId - the policyId value to set.

Returns:

the PolicyInfo object itself.

withPolicyParameters

public PolicyInfo withPolicyParameters(PolicyParameters policyParameters)

Set the policyParameters property: Policy parameters for the backup instance.

Parameters:

policyParameters - the policyParameters value to set.

Returns:

the PolicyInfo object itself.

Applies to