Class WorkspacePurgeBody
java.lang.Object
com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBody
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspacePurgeBody>
public final class WorkspacePurgeBody
extends Object
implements com.azure.json.JsonSerializable<WorkspacePurgeBody>
Describes the body of a purge request for an App Insights Workspace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilters()Get the filters property: The set of columns and filters (queries) to run over them to purge the resulting data.static WorkspacePurgeBodyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspacePurgeBody from the JsonReader.table()Get the table property: Table from which to purge data.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withFilters(List<WorkspacePurgeBodyFilters> filters) Set the filters property: The set of columns and filters (queries) to run over them to purge the resulting data.Set the table property: Table from which to purge data.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
-
WorkspacePurgeBody
public WorkspacePurgeBody()Creates an instance of WorkspacePurgeBody class.
-
-
Method Details
-
table
Get the table property: Table from which to purge data.- Returns:
- the table value.
-
withTable
Set the table property: Table from which to purge data.- Parameters:
table- the table value to set.- Returns:
- the WorkspacePurgeBody object itself.
-
filters
Get the filters property: The set of columns and filters (queries) to run over them to purge the resulting data.- Returns:
- the filters value.
-
withFilters
Set the filters property: The set of columns and filters (queries) to run over them to purge the resulting data.- Parameters:
filters- the filters value to set.- Returns:
- the WorkspacePurgeBody object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WorkspacePurgeBody>- Throws:
IOException
-
fromJson
Reads an instance of WorkspacePurgeBody from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspacePurgeBody if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WorkspacePurgeBody.
-