Class ManagementPolicyProperties
- java.lang.Object
-
- com.azure.resourcemanager.storage.fluent.models.ManagementPolicyProperties
-
public final class ManagementPolicyProperties extends Object
The Storage Account ManagementPolicy properties.
-
-
Constructor Summary
Constructors Constructor Description ManagementPolicyProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimelastModifiedTime()Get the lastModifiedTime property: Returns the date and time the ManagementPolicies was last modified.ManagementPolicySchemapolicy()Get the policy property: The Storage Account ManagementPolicy, in JSON format.voidvalidate()Validates the instance.ManagementPolicyPropertieswithPolicy(ManagementPolicySchema policy)Set the policy property: The Storage Account ManagementPolicy, in JSON format.
-
-
-
Method Detail
-
lastModifiedTime
public OffsetDateTime lastModifiedTime()
Get the lastModifiedTime property: Returns the date and time the ManagementPolicies was last modified.- Returns:
- the lastModifiedTime value.
-
policy
public ManagementPolicySchema 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
public ManagementPolicyProperties withPolicy(ManagementPolicySchema policy)
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.
-
-