PolicyInfo Class
- java.
lang. Object - com.
azure. resourcemanager. dataprotection. models. PolicyInfo
- com.
Implements
public final class PolicyInfo
implements JsonSerializable<PolicyInfo>
Policy Info in backupInstance.
Constructor Summary
| Constructor | Description |
|---|---|
| PolicyInfo() |
Creates an instance of Policy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
| String |
policyId()
Get the policy |
|
Policy |
policyParameters()
Get the policy |
| String |
policyVersion()
Get the policy |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Policy |
withPolicyId(String policyId)
Set the policy |
|
Policy |
withPolicyParameters(PolicyParameters policyParameters)
Set the policy |
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:
Returns:
Throws:
policyId
public String policyId()
Get the policyId property: The policyId property.
Returns:
policyParameters
public PolicyParameters policyParameters()
Get the policyParameters property: Policy parameters for the backup instance.
Returns:
policyVersion
public String policyVersion()
Get the policyVersion property: The policyVersion property.
Returns:
toJson
withPolicyId
public PolicyInfo withPolicyId(String policyId)
Set the policyId property: The policyId property.
Parameters:
Returns:
withPolicyParameters
public PolicyInfo withPolicyParameters(PolicyParameters policyParameters)
Set the policyParameters property: Policy parameters for the backup instance.
Parameters:
Returns: