ManagementPolicySchema Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ManagementPolicySchema

Implements

public final class ManagementPolicySchema
implements JsonSerializable<ManagementPolicySchema>

The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

Constructor Summary

Constructor Description
ManagementPolicySchema()

Creates an instance of ManagementPolicySchema class.

Method Summary

Modifier and Type Method and Description
static ManagementPolicySchema fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicySchema from the JsonReader.

List<ManagementPolicyRule> rules()

Get the rules property: The Storage Account ManagementPolicies Rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagementPolicySchema withRules(List<ManagementPolicyRule> rules)

Set the rules property: The Storage Account ManagementPolicies Rules.

Methods inherited from java.lang.Object

Constructor Details

ManagementPolicySchema

public ManagementPolicySchema()

Creates an instance of ManagementPolicySchema class.

Method Details

fromJson

public static ManagementPolicySchema fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicySchema from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagementPolicySchema if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

rules

public List rules()

Get the rules property: The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRules

public ManagementPolicySchema withRules(List rules)

Set the rules property: The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

Parameters:

rules - the rules value to set.

Returns:

the ManagementPolicySchema object itself.

Applies to