Class IdpsQueryObject
java.lang.Object
com.azure.resourcemanager.network.models.IdpsQueryObject
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IdpsQueryObject>
public final class IdpsQueryObject
extends Object
implements com.azure.json.JsonSerializable<IdpsQueryObject>
Will describe the query to run against the IDPS signatures DB.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilters()Get the filters property: Contain all filters names and values.static IdpsQueryObjectfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IdpsQueryObject from the JsonReader.orderBy()Get the orderBy property: Column to sort response by.Get the resultsPerPage property: The number of the results to return in each page.search()Get the search property: Search term in all columns.skip()Get the skip property: The number of records matching the filter to skip.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFilters(List<FilterItems> filters) Set the filters property: Contain all filters names and values.withOrderBy(OrderBy orderBy) Set the orderBy property: Column to sort response by.withResultsPerPage(Integer resultsPerPage) Set the resultsPerPage property: The number of the results to return in each page.withSearch(String search) Set the search property: Search term in all columns.Set the skip property: The number of records matching the filter to skip.Methods inherited from class java.lang.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
-
IdpsQueryObject
public IdpsQueryObject()Creates an instance of IdpsQueryObject class.
-
-
Method Details
-
filters
Get the filters property: Contain all filters names and values.- Returns:
- the filters value.
-
withFilters
Set the filters property: Contain all filters names and values.- Parameters:
filters- the filters value to set.- Returns:
- the IdpsQueryObject object itself.
-
search
Get the search property: Search term in all columns.- Returns:
- the search value.
-
withSearch
Set the search property: Search term in all columns.- Parameters:
search- the search value to set.- Returns:
- the IdpsQueryObject object itself.
-
orderBy
Get the orderBy property: Column to sort response by.- Returns:
- the orderBy value.
-
withOrderBy
Set the orderBy property: Column to sort response by.- Parameters:
orderBy- the orderBy value to set.- Returns:
- the IdpsQueryObject object itself.
-
resultsPerPage
Get the resultsPerPage property: The number of the results to return in each page.- Returns:
- the resultsPerPage value.
-
withResultsPerPage
Set the resultsPerPage property: The number of the results to return in each page.- Parameters:
resultsPerPage- the resultsPerPage value to set.- Returns:
- the IdpsQueryObject object itself.
-
skip
Get the skip property: The number of records matching the filter to skip.- Returns:
- the skip value.
-
withSkip
Set the skip property: The number of records matching the filter to skip.- Parameters:
skip- the skip value to set.- Returns:
- the IdpsQueryObject 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<IdpsQueryObject>- Throws:
IOException
-
fromJson
Reads an instance of IdpsQueryObject from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IdpsQueryObject 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 IdpsQueryObject.
-