Class PolicyInfo
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.PolicyInfo
-
public final class PolicyInfo extends Object
PolicyInfo Policy Info in backupInstance.
-
-
Constructor Summary
Constructors Constructor Description PolicyInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
validate()
Validates the instance.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.
-
-
-
Method Detail
-
policyId
public String policyId()
Get the policyId property: The policyId property.- Returns:
- the policyId value.
-
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.
-
policyVersion
public String policyVersion()
Get the policyVersion property: The policyVersion property.- Returns:
- the policyVersion value.
-
policyParameters
public PolicyParameters policyParameters()
Get the policyParameters property: Policy parameters for the backup instance.- Returns:
- the policyParameters value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-