Class ManagementPolicyBaseBlob

java.lang.Object
com.azure.resourcemanager.storage.models.ManagementPolicyBaseBlob

public final class ManagementPolicyBaseBlob extends Object
Management policy action for base blob.
  • Constructor Details

    • ManagementPolicyBaseBlob

      public ManagementPolicyBaseBlob()
  • Method Details

    • tierToCool

      public DateAfterModification tierToCool()
      Get the tierToCool property: The function to tier blobs to cool storage. Support blobs currently at Hot tier.
      Returns:
      the tierToCool value.
    • withTierToCool

      public ManagementPolicyBaseBlob withTierToCool(DateAfterModification tierToCool)
      Set the tierToCool property: The function to tier blobs to cool storage. Support blobs currently at Hot tier.
      Parameters:
      tierToCool - the tierToCool value to set.
      Returns:
      the ManagementPolicyBaseBlob object itself.
    • tierToArchive

      public DateAfterModification tierToArchive()
      Get the tierToArchive property: The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier.
      Returns:
      the tierToArchive value.
    • withTierToArchive

      public ManagementPolicyBaseBlob withTierToArchive(DateAfterModification tierToArchive)
      Set the tierToArchive property: The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier.
      Parameters:
      tierToArchive - the tierToArchive value to set.
      Returns:
      the ManagementPolicyBaseBlob object itself.
    • delete

      public DateAfterModification delete()
      Get the delete property: The function to delete the blob.
      Returns:
      the delete value.
    • withDelete

      public ManagementPolicyBaseBlob withDelete(DateAfterModification delete)
      Set the delete property: The function to delete the blob.
      Parameters:
      delete - the delete value to set.
      Returns:
      the ManagementPolicyBaseBlob object itself.
    • enableAutoTierToHotFromCool

      public Boolean enableAutoTierToHotFromCool()
      Get the enableAutoTierToHotFromCool property: This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
      Returns:
      the enableAutoTierToHotFromCool value.
    • withEnableAutoTierToHotFromCool

      public ManagementPolicyBaseBlob withEnableAutoTierToHotFromCool(Boolean enableAutoTierToHotFromCool)
      Set the enableAutoTierToHotFromCool property: This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
      Parameters:
      enableAutoTierToHotFromCool - the enableAutoTierToHotFromCool value to set.
      Returns:
      the ManagementPolicyBaseBlob object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.