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 Summary
ConstructorsConstructorDescriptionCreates an instance of WorkspacePurgeBodyFilters class. -
Method Summary
Modifier and TypeMethodDescriptioncolumn()Get the column property: The column of the table over which the given query should run.static WorkspacePurgeBodyFiltersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspacePurgeBodyFilters from the JsonReader.key()Get the key property: When filtering over custom dimensions, this key will be used as the name of the custom dimension.operator()Get the operator property: A query operator to evaluate over the provided column and value(s).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) value()Get the value property: the value for the operator to function over.withColumn(String column) Set the column property: The column of the table over which the given query should run.Set the key property: When filtering over custom dimensions, this key will be used as the name of the custom dimension.withOperator(String operator) Set the operator property: A query operator to evaluate over the provided column and value(s).Set the value property: the value for the operator to function over.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
-
WorkspacePurgeBodyFilters
public WorkspacePurgeBodyFilters()Creates an instance of WorkspacePurgeBodyFilters class.
-
-
Method Details
-
column
Get the column property: The column of the table over which the given query should run.- Returns:
- the column value.
-
withColumn
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
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
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
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-