DateAfterCreation Class

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

Implements

public final class DateAfterCreation
implements JsonSerializable<DateAfterCreation>

Object to define snapshot and version action conditions.

Constructor Summary

Constructor Description
DateAfterCreation()

Creates an instance of DateAfterCreation class.

Method Summary

Modifier and Type Method and Description
float daysAfterCreationGreaterThan()

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

Float daysAfterLastTierChangeGreaterThan()

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

static DateAfterCreation fromJson(JsonReader jsonReader)

Reads an instance of DateAfterCreation from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DateAfterCreation withDaysAfterCreationGreaterThan(float daysAfterCreationGreaterThan)

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

DateAfterCreation withDaysAfterLastTierChangeGreaterThan(Float daysAfterLastTierChangeGreaterThan)

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

Methods inherited from java.lang.Object

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.

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

fromJson

public static DateAfterCreation fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDaysAfterCreationGreaterThan

public DateAfterCreation withDaysAfterCreationGreaterThan(float daysAfterCreationGreaterThan)

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

Parameters:

daysAfterCreationGreaterThan - the daysAfterCreationGreaterThan value to set.

Returns:

the DateAfterCreation object itself.

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.

Applies to