ManagementPolicyRule Class

  • java.lang.Object
    • com.microsoft.azure.management.storage.ManagementPolicyRule

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 ManagementPolicyRule class.

Method Summary

Modifier and Type Method and Description
ManagementPolicyDefinition 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.

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.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

the definition value

enabled

public Boolean enabled()

Get rule is enabled if set to true.

Returns:

the enabled value

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:

the name value

type

public String type()

Get the valid value is Lifecycle.

Returns:

the type value

withDefinition

public ManagementPolicyRule withDefinition(ManagementPolicyDefinition definition)

Set an object that defines the Lifecycle rule.

Parameters:

definition - the definition value to set

Returns:

the ManagementPolicyRule object itself.

withEnabled

public ManagementPolicyRule withEnabled(Boolean enabled)

Set rule is enabled if set to true.

Parameters:

enabled - the enabled value to set

Returns:

the ManagementPolicyRule object itself.

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:

name - the name value to set

Returns:

the ManagementPolicyRule object itself.

withType

public ManagementPolicyRule withType(String type)

Set the valid value is Lifecycle.

Parameters:

type - the type value to set

Returns:

the ManagementPolicyRule object itself.

Applies to