Class BlobInventoryCreationTime
java.lang.Object
com.azure.resourcemanager.storage.models.BlobInventoryCreationTime
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BlobInventoryCreationTime>
public final class BlobInventoryCreationTime
extends Object
implements com.azure.json.JsonSerializable<BlobInventoryCreationTime>
This property defines the creation time based filtering condition. Blob Inventory schema parameter 'Creation-Time' is
mandatory with this filter.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BlobInventoryCreationTime class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlobInventoryCreationTimefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BlobInventoryCreationTime from the JsonReader.Get the lastNDays property: When set the policy filters the objects that are created in the last N days.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLastNDays(Integer lastNDays) Set the lastNDays property: When set the policy filters the objects that are created in the last N days.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BlobInventoryCreationTime
public BlobInventoryCreationTime()Creates an instance of BlobInventoryCreationTime class.
-
-
Method Details
-
lastNDays
Get the lastNDays property: When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.- Returns:
- the lastNDays value.
-
withLastNDays
Set the lastNDays property: When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.- Parameters:
lastNDays- the lastNDays value to set.- Returns:
- the BlobInventoryCreationTime object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BlobInventoryCreationTime>- Throws:
IOException
-
fromJson
public static BlobInventoryCreationTime fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BlobInventoryCreationTime from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BlobInventoryCreationTime 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 BlobInventoryCreationTime.
-