Package org.openapitools.client.model
Class SuggestedQueriesRequest
- java.lang.Object
-
- org.openapitools.client.model.SuggestedQueriesRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class SuggestedQueriesRequest extends Object
SuggestedQueriesRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSuggestedQueriesRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_QUERY
-
Constructor Summary
Constructors Constructor Description SuggestedQueriesRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SuggestedQueriesRequestfromJson(String jsonString)Create an instance of SuggestedQueriesRequest given an JSON string@NotNull StringgetQuery()The query to base the generated suggested queries off of.inthashCode()SuggestedQueriesRequestquery(String query)voidsetQuery(String query)StringtoJson()Convert an instance of SuggestedQueriesRequest to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Method Detail
-
query
public SuggestedQueriesRequest query(String query)
-
getQuery
@Nonnull @NotNull public @NotNull String getQuery()
The query to base the generated suggested queries off of.- Returns:
- query
-
setQuery
public void setQuery(String query)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to SuggestedQueriesRequest
-
fromJson
public static SuggestedQueriesRequest fromJson(String jsonString) throws IOException
Create an instance of SuggestedQueriesRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SuggestedQueriesRequest
- Throws:
IOException- if the JSON string is invalid with respect to SuggestedQueriesRequest
-
toJson
public String toJson()
Convert an instance of SuggestedQueriesRequest to an JSON string- Returns:
- JSON string
-
-