Class WorkspacePurgeBodyFilters

java.lang.Object
com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBodyFilters
All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspacePurgeBodyFilters>

public final class WorkspacePurgeBodyFilters extends Object implements com.azure.json.JsonSerializable<WorkspacePurgeBodyFilters>
User-defined filters to return data which will be purged from the table.
  • Constructor Details

    • WorkspacePurgeBodyFilters

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

    • column

      public String column()
      Get the column property: The column of the table over which the given query should run.
      Returns:
      the column value.
    • withColumn

      public WorkspacePurgeBodyFilters withColumn(String column)
      Set the column property: The column of the table over which the given query should run.
      Parameters:
      column - the column value to set.
      Returns:
      the WorkspacePurgeBodyFilters object itself.
    • operator

      public String operator()
      Get the operator property: A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query.
      Returns:
      the operator value.
    • withOperator

      public WorkspacePurgeBodyFilters withOperator(String operator)
      Set the operator property: A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query.
      Parameters:
      operator - the operator value to set.
      Returns:
      the WorkspacePurgeBodyFilters object itself.
    • value

      public Object value()
      Get the value property: the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values.
      Returns:
      the value value.
    • withValue

      public WorkspacePurgeBodyFilters withValue(Object value)
      Set the value property: the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values.
      Parameters:
      value - the value value to set.
      Returns:
      the WorkspacePurgeBodyFilters object itself.
    • key

      public String key()
      Get the key property: When filtering over custom dimensions, this key will be used as the name of the custom dimension.
      Returns:
      the key value.
    • withKey

      public WorkspacePurgeBodyFilters withKey(String key)
      Set the key property: When filtering over custom dimensions, this key will be used as the name of the custom dimension.
      Parameters:
      key - the key value to set.
      Returns:
      the WorkspacePurgeBodyFilters object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WorkspacePurgeBodyFilters>
      Throws:
      IOException
    • fromJson

      public static WorkspacePurgeBodyFilters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WorkspacePurgeBodyFilters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WorkspacePurgeBodyFilters 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 WorkspacePurgeBodyFilters.