Class DateAfterModification
java.lang.Object
com.azure.resourcemanager.storage.models.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.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.
-
Constructor Details
-
DateAfterModification
public DateAfterModification()
-
-
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.
-