public class ManagementPolicyRule extends Object
| Constructor and Description |
|---|
ManagementPolicyRule()
Creates an instance of ManagementPolicyRule class.
|
| Modifier and Type | Method and Description |
|---|---|
ManagementPolicyDefinition |
definition()
Get an object that defines the Lifecycle rule.
|
Boolean |
enabled()
Get rule is enabled if set to true.
|
String |
name()
Get a rule name can contain any combination of alpha numeric characters.
|
String |
type()
Get the valid value is Lifecycle.
|
ManagementPolicyRule |
withDefinition(ManagementPolicyDefinition definition)
Set an object that defines the Lifecycle rule.
|
ManagementPolicyRule |
withEnabled(Boolean enabled)
Set rule is enabled if set to true.
|
ManagementPolicyRule |
withName(String name)
Set a rule name can contain any combination of alpha numeric characters.
|
ManagementPolicyRule |
withType(String type)
Set the valid value is Lifecycle.
|
public ManagementPolicyRule()
public Boolean enabled()
public ManagementPolicyRule withEnabled(Boolean enabled)
enabled - the enabled value to setpublic String name()
public ManagementPolicyRule withName(String name)
name - the name value to setpublic String type()
public ManagementPolicyRule withType(String type)
type - the type value to setpublic ManagementPolicyDefinition definition()
public ManagementPolicyRule withDefinition(ManagementPolicyDefinition definition)
definition - the definition value to setCopyright © 2019. All rights reserved.