ManagementPolicyRule Class
- java.
lang. Object - com.
microsoft. azure. management. storage. ManagementPolicyRule
- com.
public class ManagementPolicyRule
An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.
Constructor Summary
Constructor | Description |
---|---|
ManagementPolicyRule() |
Creates an instance of Management |
Method Summary
Modifier and Type | Method and Description |
---|---|
Management |
definition()
Get an object that defines the Lifecycle rule. |
java.lang.Boolean |
enabled()
Get rule is enabled if set to true. |
java.lang.String |
name()
Get a rule name can contain any combination of alpha numeric characters. |
java.lang.String |
type()
Get the valid value is Lifecycle. |
Management |
withDefinition(ManagementPolicyDefinition definition)
Set an object that defines the Lifecycle rule. |
Management |
withEnabled(Boolean enabled)
Set rule is enabled if set to true. |
Management |
withName(String name)
Set a rule name can contain any combination of alpha numeric characters. |
Management |
withType(String type)
Set the valid value is Lifecycle. |
Methods inherited from java.lang.Object
Constructor Details
ManagementPolicyRule
public ManagementPolicyRule()
Creates an instance of ManagementPolicyRule class.
Method Details
definition
public ManagementPolicyDefinition definition()
Get an object that defines the Lifecycle rule.
Returns:
enabled
public Boolean enabled()
Get rule is enabled if set to true.
Returns:
name
public String 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:
type
public String type()
Get the valid value is Lifecycle.
Returns:
withDefinition
public ManagementPolicyRule withDefinition(ManagementPolicyDefinition definition)
Set an object that defines the Lifecycle rule.
Parameters:
Returns:
withEnabled
public ManagementPolicyRule withEnabled(Boolean enabled)
Set rule is enabled if set to true.
Parameters:
Returns:
withName
public ManagementPolicyRule withName(String name)
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:
Returns:
withType
public ManagementPolicyRule withType(String type)
Set the valid value is Lifecycle.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for