Class ManagementPolicyRule
java.lang.Object
com.microsoft.azure.management.storage.ManagementPolicyRule
An object that wraps the Lifecycle rule. Each rule is uniquely defined by
name.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet an object that defines the Lifecycle rule.enabled()Get rule is enabled if set to true.name()Get a rule name can contain any combination of alpha numeric characters.type()Get the valid value is Lifecycle.withDefinition(ManagementPolicyDefinition definition) Set an object that defines the Lifecycle rule.withEnabled(Boolean enabled) Set rule is enabled if set to true.Set a rule name can contain any combination of alpha numeric characters.Set the valid value is Lifecycle.
-
Constructor Details
-
ManagementPolicyRule
public ManagementPolicyRule()Creates an instance of ManagementPolicyRule class.
-
-
Method Details
-
enabled
Get rule is enabled if set to true.- Returns:
- the enabled value
-
withEnabled
Set rule is enabled if set to true.- Parameters:
enabled- the enabled value to set- Returns:
- the ManagementPolicyRule object itself.
-
name
Get a rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.- Returns:
- the name value
-
withName
Set a rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.- Parameters:
name- the name value to set- Returns:
- the ManagementPolicyRule object itself.
-
type
Get the valid value is Lifecycle.- Returns:
- the type value
-
withType
Set the valid value is Lifecycle.- Parameters:
type- the type value to set- Returns:
- the ManagementPolicyRule object itself.
-
definition
Get an object that defines the Lifecycle rule.- Returns:
- the definition value
-
withDefinition
Set an object that defines the Lifecycle rule.- Parameters:
definition- the definition value to set- Returns:
- the ManagementPolicyRule object itself.
-