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 Details

    • BlobInventoryCreationTime

      public BlobInventoryCreationTime()
      Creates an instance of BlobInventoryCreationTime class.
  • Method Details

    • lastNDays

      public Integer 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

      public BlobInventoryCreationTime withLastNDays(Integer lastNDays)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.