Class DateAfterCreation

java.lang.Object
com.azure.resourcemanager.storage.models.DateAfterCreation
All Implemented Interfaces:
com.azure.json.JsonSerializable<DateAfterCreation>

public final class DateAfterCreation extends Object implements com.azure.json.JsonSerializable<DateAfterCreation>
Object to define snapshot and version action conditions.
  • Constructor Details

    • DateAfterCreation

      public DateAfterCreation()
      Creates an instance of DateAfterCreation class.
  • Method Details

    • daysAfterCreationGreaterThan

      public float daysAfterCreationGreaterThan()
      Get the daysAfterCreationGreaterThan property: Value indicating the age in days after creation.
      Returns:
      the daysAfterCreationGreaterThan value.
    • withDaysAfterCreationGreaterThan

      public DateAfterCreation withDaysAfterCreationGreaterThan(float daysAfterCreationGreaterThan)
      Set the daysAfterCreationGreaterThan property: Value indicating the age in days after creation.
      Parameters:
      daysAfterCreationGreaterThan - the daysAfterCreationGreaterThan value to set.
      Returns:
      the DateAfterCreation object itself.
    • daysAfterLastTierChangeGreaterThan

      public Float daysAfterLastTierChangeGreaterThan()
      Get the daysAfterLastTierChangeGreaterThan property: Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
      Returns:
      the daysAfterLastTierChangeGreaterThan value.
    • withDaysAfterLastTierChangeGreaterThan

      public DateAfterCreation withDaysAfterLastTierChangeGreaterThan(Float daysAfterLastTierChangeGreaterThan)
      Set the daysAfterLastTierChangeGreaterThan property: Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
      Parameters:
      daysAfterLastTierChangeGreaterThan - the daysAfterLastTierChangeGreaterThan value to set.
      Returns:
      the DateAfterCreation object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DateAfterCreation>
      Throws:
      IOException
    • fromJson

      public static DateAfterCreation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DateAfterCreation from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DateAfterCreation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DateAfterCreation.