Class PolicyInfo
java.lang.Object
com.azure.resourcemanager.dataprotection.models.PolicyInfo
PolicyInfo
Policy Info in backupInstance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpolicyId()
Get the policyId property: The policyId property.Get the policyParameters property: Policy parameters for the backup instance.Get the policyVersion property: The policyVersion property.void
validate()
Validates the instance.withPolicyId
(String policyId) Set the policyId property: The policyId property.withPolicyParameters
(PolicyParameters policyParameters) Set the policyParameters property: Policy parameters for the backup instance.
-
Constructor Details
-
PolicyInfo
public PolicyInfo()Creates an instance of PolicyInfo class.
-
-
Method Details
-
policyId
Get the policyId property: The policyId property.- Returns:
- the policyId value.
-
withPolicyId
Set the policyId property: The policyId property.- Parameters:
policyId
- the policyId value to set.- Returns:
- the PolicyInfo object itself.
-
policyVersion
Get the policyVersion property: The policyVersion property.- Returns:
- the policyVersion value.
-
policyParameters
Get the policyParameters property: Policy parameters for the backup instance.- Returns:
- the policyParameters value.
-
withPolicyParameters
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.
-