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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatGet the daysAfterCreationGreaterThan property: Value indicating the age in days after creation.Get the daysAfterLastTierChangeGreaterThan property: Value indicating the age in days after last blob tier change time.static DateAfterCreationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DateAfterCreation from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDaysAfterCreationGreaterThan(float daysAfterCreationGreaterThan) Set the daysAfterCreationGreaterThan property: Value indicating the age in days after creation.withDaysAfterLastTierChangeGreaterThan(Float daysAfterLastTierChangeGreaterThan) Set the daysAfterLastTierChangeGreaterThan property: Value indicating the age in days after last blob tier change time.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DateAfterCreation>- Throws:
IOException
-
fromJson
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.
-