@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class MatchOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MatchOptions.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CONDITIONS |
static String |
SERIALIZED_NAME_MATCHES |
Constructor and Description |
---|
MatchOptions() |
Modifier and Type | Method and Description |
---|---|
MatchOptions |
addConditionsItem(ConditionOption conditionsItem) |
MatchOptions |
addMatchesItem(MatchOption matchesItem) |
MatchOptions |
conditions(List<ConditionOption> conditions) |
boolean |
equals(Object o) |
static MatchOptions |
fromJson(String jsonString)
Create an instance of MatchOptions given an JSON string
|
List<ConditionOption> |
getConditions()
Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`.
|
List<MatchOption> |
getMatches()
Zero or more match options such as `{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }`.
|
int |
hashCode() |
MatchOptions |
matches(List<MatchOption> matches) |
void |
setConditions(List<ConditionOption> conditions) |
void |
setMatches(List<MatchOption> matches) |
String |
toJson()
Convert an instance of MatchOptions to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_MATCHES
public static final String SERIALIZED_NAME_CONDITIONS
public MatchOptions matches(List<MatchOption> matches)
public MatchOptions addMatchesItem(MatchOption matchesItem)
@Nullable public List<MatchOption> getMatches()
public void setMatches(List<MatchOption> matches)
public MatchOptions conditions(List<ConditionOption> conditions)
public MatchOptions addConditionsItem(ConditionOption conditionsItem)
@Nullable public List<ConditionOption> getConditions()
public void setConditions(List<ConditionOption> conditions)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to MatchOptionspublic static MatchOptions fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to MatchOptionspublic String toJson()
Copyright © 2023. All rights reserved.