DateAfterModification Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. DateAfterModification
- com.
Implements
public final class DateAfterModification
implements 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
Constructor | Description |
---|---|
DateAfterModification() |
Creates an instance of Date |
Method Summary
Modifier and Type | Method and Description |
---|---|
Float |
daysAfterCreationGreaterThan()
Get the days |
Float |
daysAfterLastAccessTimeGreaterThan()
Get the days |
Float |
daysAfterLastTierChangeGreaterThan()
Get the days |
Float |
daysAfterModificationGreaterThan()
Get the days |
static
Date |
fromJson(JsonReader jsonReader)
Reads an instance of Date |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Date |
withDaysAfterCreationGreaterThan(Float daysAfterCreationGreaterThan)
Set the days |
Date |
withDaysAfterLastAccessTimeGreaterThan(Float daysAfterLastAccessTimeGreaterThan)
Set the days |
Date |
withDaysAfterLastTierChangeGreaterThan(Float daysAfterLastTierChangeGreaterThan)
Set the days |
Date |
withDaysAfterModificationGreaterThan(Float daysAfterModificationGreaterThan)
Set the days |
Methods inherited from java.lang.Object
Constructor Details
DateAfterModification
public DateAfterModification()
Creates an instance of DateAfterModification class.
Method Details
daysAfterCreationGreaterThan
public Float daysAfterCreationGreaterThan()
Get the daysAfterCreationGreaterThan property: Value indicating the age in days after blob creation.
Returns:
daysAfterLastAccessTimeGreaterThan
public Float 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:
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 daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
Returns:
daysAfterModificationGreaterThan
public Float daysAfterModificationGreaterThan()
Get the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.
Returns:
fromJson
public static DateAfterModification fromJson(JsonReader jsonReader)
Reads an instance of DateAfterModification from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withDaysAfterCreationGreaterThan
public DateAfterModification withDaysAfterCreationGreaterThan(Float daysAfterCreationGreaterThan)
Set the daysAfterCreationGreaterThan property: Value indicating the age in days after blob creation.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withDaysAfterModificationGreaterThan
public DateAfterModification withDaysAfterModificationGreaterThan(Float daysAfterModificationGreaterThan)
Set the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.
Parameters:
Returns:
Applies to
Azure SDK for Java