Class BasePolicyRule
java.lang.Object
com.azure.resourcemanager.dataprotection.models.BasePolicyRule
- Direct Known Subclasses:
AzureBackupRule
,AzureRetentionRule
BasePolicyRule
BasePolicy Rule.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BasePolicyRule
public BasePolicyRule()Creates an instance of BasePolicyRule class.
-
-
Method Details
-
name
Get the name property: The name property.- Returns:
- the name value.
-
withName
Set the name property: The name property.- Parameters:
name
- the name value to set.- Returns:
- the BasePolicyRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-