Class DateAfterModification
java.lang.Object
com.azure.resourcemanager.storage.models.DateAfterModification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DateAfterModification>
public final class DateAfterModification
extends Object
implements com.azure.json.JsonSerializable<DateAfterModification>
Object to define the base blob action conditions. Properties daysAfterModificationGreaterThan,
daysAfterLastAccessTimeGreaterThan and daysAfterCreationGreaterThan are mutually exclusive. The
daysAfterLastTierChangeGreaterThan property is only applicable for tierToArchive actions which requires
daysAfterModificationGreaterThan to be set, also it cannot be used in conjunction with
daysAfterLastAccessTimeGreaterThan or daysAfterCreationGreaterThan.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the daysAfterCreationGreaterThan property: Value indicating the age in days after blob creation.Get the daysAfterLastAccessTimeGreaterThan property: Value indicating the age in days after last blob access.Get the daysAfterLastTierChangeGreaterThan property: Value indicating the age in days after last blob tier change time.Get the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.static DateAfterModificationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DateAfterModification 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 blob creation.withDaysAfterLastAccessTimeGreaterThan(Float daysAfterLastAccessTimeGreaterThan) Set the daysAfterLastAccessTimeGreaterThan property: Value indicating the age in days after last blob access.withDaysAfterLastTierChangeGreaterThan(Float daysAfterLastTierChangeGreaterThan) Set the daysAfterLastTierChangeGreaterThan property: Value indicating the age in days after last blob tier change time.withDaysAfterModificationGreaterThan(Float daysAfterModificationGreaterThan) Set the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.Methods inherited from class 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
-
DateAfterModification
public DateAfterModification()Creates an instance of DateAfterModification class.
-
-
Method Details
-
daysAfterModificationGreaterThan
Get the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.- Returns:
- the daysAfterModificationGreaterThan value.
-
withDaysAfterModificationGreaterThan
public DateAfterModification withDaysAfterModificationGreaterThan(Float daysAfterModificationGreaterThan) Set the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.- Parameters:
daysAfterModificationGreaterThan- the daysAfterModificationGreaterThan value to set.- Returns:
- the DateAfterModification object itself.
-
daysAfterLastAccessTimeGreaterThan
Get the daysAfterLastAccessTimeGreaterThan property: Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy.- Returns:
- the daysAfterLastAccessTimeGreaterThan value.
-
withDaysAfterLastAccessTimeGreaterThan
public DateAfterModification withDaysAfterLastAccessTimeGreaterThan(Float daysAfterLastAccessTimeGreaterThan) Set the daysAfterLastAccessTimeGreaterThan property: Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy.- Parameters:
daysAfterLastAccessTimeGreaterThan- the daysAfterLastAccessTimeGreaterThan value to set.- Returns:
- the DateAfterModification 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 daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.- Returns:
- the daysAfterLastTierChangeGreaterThan value.
-
withDaysAfterLastTierChangeGreaterThan
public DateAfterModification 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 daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.- Parameters:
daysAfterLastTierChangeGreaterThan- the daysAfterLastTierChangeGreaterThan value to set.- Returns:
- the DateAfterModification object itself.
-
daysAfterCreationGreaterThan
Get the daysAfterCreationGreaterThan property: Value indicating the age in days after blob creation.- Returns:
- the daysAfterCreationGreaterThan value.
-
withDaysAfterCreationGreaterThan
Set the daysAfterCreationGreaterThan property: Value indicating the age in days after blob creation.- Parameters:
daysAfterCreationGreaterThan- the daysAfterCreationGreaterThan value to set.- Returns:
- the DateAfterModification 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<DateAfterModification>- Throws:
IOException
-
fromJson
public static DateAfterModification fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DateAfterModification from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DateAfterModification if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DateAfterModification.
-