DateAfterModification Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.DateAfterModification

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 DateAfterModification class.

Method Summary

Modifier and Type Method and Description
Float daysAfterCreationGreaterThan()

Get the daysAfterCreationGreaterThan property: Value indicating the age in days after blob creation.

Float daysAfterLastAccessTimeGreaterThan()

Get the daysAfterLastAccessTimeGreaterThan property: Value indicating the age in days after last blob access.

Float daysAfterLastTierChangeGreaterThan()

Get the daysAfterLastTierChangeGreaterThan property: Value indicating the age in days after last blob tier change time.

Float daysAfterModificationGreaterThan()

Get the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.

static DateAfterModification fromJson(JsonReader jsonReader)

Reads an instance of DateAfterModification from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DateAfterModification withDaysAfterCreationGreaterThan(Float daysAfterCreationGreaterThan)

Set the daysAfterCreationGreaterThan property: Value indicating the age in days after blob creation.

DateAfterModification withDaysAfterLastAccessTimeGreaterThan(Float daysAfterLastAccessTimeGreaterThan)

Set the daysAfterLastAccessTimeGreaterThan property: Value indicating the age in days after last blob access.

DateAfterModification withDaysAfterLastTierChangeGreaterThan(Float daysAfterLastTierChangeGreaterThan)

Set the daysAfterLastTierChangeGreaterThan property: Value indicating the age in days after last blob tier change time.

DateAfterModification withDaysAfterModificationGreaterThan(Float daysAfterModificationGreaterThan)

Set the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.

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:

the daysAfterCreationGreaterThan value.

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:

the daysAfterLastAccessTimeGreaterThan value.

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:

the daysAfterLastTierChangeGreaterThan value.

daysAfterModificationGreaterThan

public Float daysAfterModificationGreaterThan()

Get the daysAfterModificationGreaterThan property: Value indicating the age in days after last modification.

Returns:

the daysAfterModificationGreaterThan value.

fromJson

public static DateAfterModification fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

daysAfterCreationGreaterThan - the daysAfterCreationGreaterThan value to set.

Returns:

the DateAfterModification object itself.

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.

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.

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.

Applies to