@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class CreateContactOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CreateContactOptions.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_COMPANY |
static String |
SERIALIZED_NAME_EMAIL_ADDRESSES |
static String |
SERIALIZED_NAME_FIRST_NAME |
static String |
SERIALIZED_NAME_GROUP_ID |
static String |
SERIALIZED_NAME_LAST_NAME |
static String |
SERIALIZED_NAME_META_DATA |
static String |
SERIALIZED_NAME_OPT_OUT |
static String |
SERIALIZED_NAME_TAGS |
Constructor and Description |
---|
CreateContactOptions() |
Modifier and Type | Method and Description |
---|---|
CreateContactOptions |
addEmailAddressesItem(String emailAddressesItem) |
CreateContactOptions |
addTagsItem(String tagsItem) |
CreateContactOptions |
company(String company) |
CreateContactOptions |
emailAddresses(List<String> emailAddresses) |
boolean |
equals(Object o) |
CreateContactOptions |
firstName(String firstName) |
static CreateContactOptions |
fromJson(String jsonString)
Create an instance of CreateContactOptions given an JSON string
|
String |
getCompany()
Get company
|
List<String> |
getEmailAddresses()
Set of email addresses belonging to the contact
|
String |
getFirstName()
Get firstName
|
UUID |
getGroupId()
Group IDs that contact belongs to
|
String |
getLastName()
Get lastName
|
Object |
getMetaData()
Get metaData
|
Boolean |
getOptOut()
Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions.
|
List<String> |
getTags()
Tags that can be used to search and group contacts
|
CreateContactOptions |
groupId(UUID groupId) |
int |
hashCode() |
CreateContactOptions |
lastName(String lastName) |
CreateContactOptions |
metaData(Object metaData) |
CreateContactOptions |
optOut(Boolean optOut) |
void |
setCompany(String company) |
void |
setEmailAddresses(List<String> emailAddresses) |
void |
setFirstName(String firstName) |
void |
setGroupId(UUID groupId) |
void |
setLastName(String lastName) |
void |
setMetaData(Object metaData) |
void |
setOptOut(Boolean optOut) |
void |
setTags(List<String> tags) |
CreateContactOptions |
tags(List<String> tags) |
String |
toJson()
Convert an instance of CreateContactOptions 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_FIRST_NAME
public static final String SERIALIZED_NAME_LAST_NAME
public static final String SERIALIZED_NAME_COMPANY
public static final String SERIALIZED_NAME_EMAIL_ADDRESSES
public static final String SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_META_DATA
public static final String SERIALIZED_NAME_OPT_OUT
public static final String SERIALIZED_NAME_GROUP_ID
public CreateContactOptions firstName(String firstName)
public void setFirstName(String firstName)
public CreateContactOptions lastName(String lastName)
public void setLastName(String lastName)
public CreateContactOptions company(String company)
public void setCompany(String company)
public CreateContactOptions emailAddresses(List<String> emailAddresses)
public CreateContactOptions addEmailAddressesItem(String emailAddressesItem)
@Nullable public List<String> getEmailAddresses()
public CreateContactOptions tags(List<String> tags)
public CreateContactOptions addTagsItem(String tagsItem)
@Nullable public List<String> getTags()
public CreateContactOptions metaData(Object metaData)
public void setMetaData(Object metaData)
public CreateContactOptions optOut(Boolean optOut)
@Nullable public Boolean getOptOut()
public void setOptOut(Boolean optOut)
public CreateContactOptions groupId(UUID groupId)
public void setGroupId(UUID groupId)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to CreateContactOptionspublic static CreateContactOptions fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to CreateContactOptionspublic String toJson()
Copyright © 2023. All rights reserved.