Class ManagementPolicyProperties
java.lang.Object
com.azure.resourcemanager.storage.fluent.models.ManagementPolicyProperties
The Storage Account ManagementPolicy properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the lastModifiedTime property: Returns the date and time the ManagementPolicies was last modified.policy()Get the policy property: The Storage Account ManagementPolicy, in JSON format.voidvalidate()Validates the instance.withPolicy(ManagementPolicySchema policy) Set the policy property: The Storage Account ManagementPolicy, in JSON format.
-
Constructor Details
-
ManagementPolicyProperties
public ManagementPolicyProperties()
-
-
Method Details
-
lastModifiedTime
Get the lastModifiedTime property: Returns the date and time the ManagementPolicies was last modified.- Returns:
- the lastModifiedTime value.
-
policy
Get the policy property: The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.- Returns:
- the policy value.
-
withPolicy
Set the policy property: The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.- Parameters:
policy- the policy value to set.- Returns:
- the ManagementPolicyProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-