@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class MatchOption extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MatchOption.CustomTypeAdapterFactory |
static class |
MatchOption.FieldEnum
Fields of an email object that can be used to filter results
|
static class |
MatchOption.ShouldEnum
How the value of the email field specified should be compared to the value given in the match options.
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_FIELD |
static String |
SERIALIZED_NAME_SHOULD |
static String |
SERIALIZED_NAME_VALUE |
Constructor and Description |
---|
MatchOption() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
MatchOption |
field(MatchOption.FieldEnum field) |
static MatchOption |
fromJson(String jsonString)
Create an instance of MatchOption given an JSON string
|
MatchOption.FieldEnum |
getField()
Fields of an email object that can be used to filter results
|
MatchOption.ShouldEnum |
getShould()
How the value of the email field specified should be compared to the value given in the match options.
|
String |
getValue()
The value you wish to compare with the value of the field specified using the `should` value passed.
|
int |
hashCode() |
void |
setField(MatchOption.FieldEnum field) |
void |
setShould(MatchOption.ShouldEnum should) |
void |
setValue(String value) |
MatchOption |
should(MatchOption.ShouldEnum should) |
String |
toJson()
Convert an instance of MatchOption 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
|
MatchOption |
value(String value) |
public static final String SERIALIZED_NAME_FIELD
public static final String SERIALIZED_NAME_SHOULD
public static final String SERIALIZED_NAME_VALUE
public MatchOption field(MatchOption.FieldEnum field)
@Nonnull public MatchOption.FieldEnum getField()
public void setField(MatchOption.FieldEnum field)
public MatchOption should(MatchOption.ShouldEnum should)
@Nonnull public MatchOption.ShouldEnum getShould()
public void setShould(MatchOption.ShouldEnum should)
public MatchOption value(String value)
@Nonnull public String getValue()
public void setValue(String value)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to MatchOptionpublic static MatchOption fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to MatchOptionpublic String toJson()
Copyright © 2023. All rights reserved.