public final class ManagementPolicyRule extends Object
| Constructor and Description |
|---|
ManagementPolicyRule() |
| Modifier and Type | Method and Description |
|---|---|
ManagementPolicyDefinition |
definition()
Get the definition property: An object that defines the Lifecycle rule.
|
Boolean |
enabled()
Get the enabled property: Rule is enabled if set to true.
|
String |
name()
Get the name property: A rule name can contain any combination of alpha numeric characters.
|
RuleType |
type()
Get the type property: The valid value is Lifecycle.
|
void |
validate()
Validates the instance.
|
ManagementPolicyRule |
withDefinition(ManagementPolicyDefinition definition)
Set the definition property: An object that defines the Lifecycle rule.
|
ManagementPolicyRule |
withEnabled(Boolean enabled)
Set the enabled property: Rule is enabled if set to true.
|
ManagementPolicyRule |
withName(String name)
Set the name property: A rule name can contain any combination of alpha numeric characters.
|
ManagementPolicyRule |
withType(RuleType type)
Set the type property: The valid value is Lifecycle.
|
public Boolean enabled()
public ManagementPolicyRule withEnabled(Boolean enabled)
enabled - the enabled value to set.public String name()
public ManagementPolicyRule withName(String name)
name - the name value to set.public RuleType type()
public ManagementPolicyRule withType(RuleType type)
type - the type value to set.public ManagementPolicyDefinition definition()
public ManagementPolicyRule withDefinition(ManagementPolicyDefinition definition)
definition - the definition value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.