DateAfterCreation Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. DateAfterCreation
- com.
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 Date |
Method Summary
Modifier and Type | Method and Description |
---|---|
float |
daysAfterCreationGreaterThan()
Get the days |
Float |
daysAfterLastTierChangeGreaterThan()
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 |
withDaysAfterLastTierChangeGreaterThan(Float daysAfterLastTierChangeGreaterThan)
Set the days |
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:
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:
fromJson
public static DateAfterCreation fromJson(JsonReader jsonReader)
Reads an instance of DateAfterCreation from the JsonReader.
Parameters:
Returns:
Throws:
toJson
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:
Returns:
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:
Returns: