ManagementPolicyDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ManagementPolicyDefinition
- com.
Implements
public final class ManagementPolicyDefinition
implements JsonSerializable<ManagementPolicyDefinition>
An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagementPolicyDefinition() |
Creates an instance of Management |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Management |
actions()
Get the actions property: An object that defines the action set. |
|
Management |
filters()
Get the filters property: An object that defines the filter set. |
|
static
Management |
fromJson(JsonReader jsonReader)
Reads an instance of Management |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Management |
withActions(ManagementPolicyAction actions)
Set the actions property: An object that defines the action set. |
|
Management |
withFilters(ManagementPolicyFilter filters)
Set the filters property: An object that defines the filter set. |
Methods inherited from java.lang.Object
Constructor Details
ManagementPolicyDefinition
public ManagementPolicyDefinition()
Creates an instance of ManagementPolicyDefinition class.
Method Details
actions
public ManagementPolicyAction actions()
Get the actions property: An object that defines the action set.
Returns:
filters
public ManagementPolicyFilter filters()
Get the filters property: An object that defines the filter set.
Returns:
fromJson
public static ManagementPolicyDefinition fromJson(JsonReader jsonReader)
Reads an instance of ManagementPolicyDefinition from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withActions
public ManagementPolicyDefinition withActions(ManagementPolicyAction actions)
Set the actions property: An object that defines the action set.
Parameters:
Returns:
withFilters
public ManagementPolicyDefinition withFilters(ManagementPolicyFilter filters)
Set the filters property: An object that defines the filter set.
Parameters:
Returns: