Class ManagementPolicyDefinition
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.ManagementPolicyDefinition
-
public final class ManagementPolicyDefinition extends Object
An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set.
-
-
Constructor Summary
Constructors Constructor Description ManagementPolicyDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagementPolicyActionactions()Get the actions property: An object that defines the action set.ManagementPolicyFilterfilters()Get the filters property: An object that defines the filter set.voidvalidate()Validates the instance.ManagementPolicyDefinitionwithActions(ManagementPolicyAction actions)Set the actions property: An object that defines the action set.ManagementPolicyDefinitionwithFilters(ManagementPolicyFilter filters)Set the filters property: An object that defines the filter set.
-
-
-
Method Detail
-
actions
public ManagementPolicyAction actions()
Get the actions property: An object that defines the action set.- Returns:
- the actions value.
-
withActions
public ManagementPolicyDefinition withActions(ManagementPolicyAction actions)
Set the actions property: An object that defines the action set.- Parameters:
actions- the actions value to set.- Returns:
- the ManagementPolicyDefinition object itself.
-
filters
public ManagementPolicyFilter filters()
Get the filters property: An object that defines the filter set.- Returns:
- the filters value.
-
withFilters
public ManagementPolicyDefinition withFilters(ManagementPolicyFilter filters)
Set the filters property: An object that defines the filter set.- Parameters:
filters- the filters value to set.- Returns:
- the ManagementPolicyDefinition object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-