Class BasePolicyRule
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.BasePolicyRule
-
- Direct Known Subclasses:
AzureBackupRule
,AzureRetentionRule
public class BasePolicyRule extends Object
BasePolicyRule BasePolicy Rule.
-
-
Constructor Summary
Constructors Constructor Description BasePolicyRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: The name property.void
validate()
Validates the instance.BasePolicyRule
withName(String name)
Set the name property: The name property.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name property.- Returns:
- the name value.
-
withName
public BasePolicyRule withName(String name)
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.
-
-