Class ManagementPolicyProperties


  • public final class ManagementPolicyProperties
    extends Object
    The Storage Account ManagementPolicy properties.
    • Constructor Detail

      • ManagementPolicyProperties

        public ManagementPolicyProperties()
    • 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.