@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateContactRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateContactRequest() |
Modifier and Type | Method and Description |
---|---|
CreateContactRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientRequestToken()
A unique, user-specified identifier for this request that ensures idempotency.
|
String |
getDisplayName()
The name of the contact to display on the console.
|
String |
getFirstName()
The first name of the contact that is used to call the contact on the device.
|
String |
getLastName()
The last name of the contact that is used to call the contact on the device.
|
String |
getPhoneNumber()
The phone number of the contact in E.164 format.
|
List<PhoneNumber> |
getPhoneNumbers()
The list of phone numbers for the contact.
|
List<SipAddress> |
getSipAddresses()
The list of SIP addresses for the contact.
|
int |
hashCode() |
void |
setClientRequestToken(String clientRequestToken)
A unique, user-specified identifier for this request that ensures idempotency.
|
void |
setDisplayName(String displayName)
The name of the contact to display on the console.
|
void |
setFirstName(String firstName)
The first name of the contact that is used to call the contact on the device.
|
void |
setLastName(String lastName)
The last name of the contact that is used to call the contact on the device.
|
void |
setPhoneNumber(String phoneNumber)
The phone number of the contact in E.164 format.
|
void |
setPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The list of phone numbers for the contact.
|
void |
setSipAddresses(Collection<SipAddress> sipAddresses)
The list of SIP addresses for the contact.
|
String |
toString()
Returns a string representation of this object.
|
CreateContactRequest |
withClientRequestToken(String clientRequestToken)
A unique, user-specified identifier for this request that ensures idempotency.
|
CreateContactRequest |
withDisplayName(String displayName)
The name of the contact to display on the console.
|
CreateContactRequest |
withFirstName(String firstName)
The first name of the contact that is used to call the contact on the device.
|
CreateContactRequest |
withLastName(String lastName)
The last name of the contact that is used to call the contact on the device.
|
CreateContactRequest |
withPhoneNumber(String phoneNumber)
The phone number of the contact in E.164 format.
|
CreateContactRequest |
withPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The list of phone numbers for the contact.
|
CreateContactRequest |
withPhoneNumbers(PhoneNumber... phoneNumbers)
The list of phone numbers for the contact.
|
CreateContactRequest |
withSipAddresses(Collection<SipAddress> sipAddresses)
The list of SIP addresses for the contact.
|
CreateContactRequest |
withSipAddresses(SipAddress... sipAddresses)
The list of SIP addresses for the contact.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDisplayName(String displayName)
The name of the contact to display on the console.
displayName
- The name of the contact to display on the console.public String getDisplayName()
The name of the contact to display on the console.
public CreateContactRequest withDisplayName(String displayName)
The name of the contact to display on the console.
displayName
- The name of the contact to display on the console.public void setFirstName(String firstName)
The first name of the contact that is used to call the contact on the device.
firstName
- The first name of the contact that is used to call the contact on the device.public String getFirstName()
The first name of the contact that is used to call the contact on the device.
public CreateContactRequest withFirstName(String firstName)
The first name of the contact that is used to call the contact on the device.
firstName
- The first name of the contact that is used to call the contact on the device.public void setLastName(String lastName)
The last name of the contact that is used to call the contact on the device.
lastName
- The last name of the contact that is used to call the contact on the device.public String getLastName()
The last name of the contact that is used to call the contact on the device.
public CreateContactRequest withLastName(String lastName)
The last name of the contact that is used to call the contact on the device.
lastName
- The last name of the contact that is used to call the contact on the device.public void setPhoneNumber(String phoneNumber)
The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.
phoneNumber
- The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify
PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone
number type and multiple numbers.public String getPhoneNumber()
The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.
public CreateContactRequest withPhoneNumber(String phoneNumber)
The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.
phoneNumber
- The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify
PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone
number type and multiple numbers.public List<PhoneNumber> getPhoneNumbers()
The list of phone numbers for the contact.
public void setPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The list of phone numbers for the contact.
phoneNumbers
- The list of phone numbers for the contact.public CreateContactRequest withPhoneNumbers(PhoneNumber... phoneNumbers)
The list of phone numbers for the contact.
NOTE: This method appends the values to the existing list (if any). Use
setPhoneNumbers(java.util.Collection)
or withPhoneNumbers(java.util.Collection)
if you want to
override the existing values.
phoneNumbers
- The list of phone numbers for the contact.public CreateContactRequest withPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The list of phone numbers for the contact.
phoneNumbers
- The list of phone numbers for the contact.public List<SipAddress> getSipAddresses()
The list of SIP addresses for the contact.
public void setSipAddresses(Collection<SipAddress> sipAddresses)
The list of SIP addresses for the contact.
sipAddresses
- The list of SIP addresses for the contact.public CreateContactRequest withSipAddresses(SipAddress... sipAddresses)
The list of SIP addresses for the contact.
NOTE: This method appends the values to the existing list (if any). Use
setSipAddresses(java.util.Collection)
or withSipAddresses(java.util.Collection)
if you want to
override the existing values.
sipAddresses
- The list of SIP addresses for the contact.public CreateContactRequest withSipAddresses(Collection<SipAddress> sipAddresses)
The list of SIP addresses for the contact.
sipAddresses
- The list of SIP addresses for the contact.public void setClientRequestToken(String clientRequestToken)
A unique, user-specified identifier for this request that ensures idempotency.
clientRequestToken
- A unique, user-specified identifier for this request that ensures idempotency.public String getClientRequestToken()
A unique, user-specified identifier for this request that ensures idempotency.
public CreateContactRequest withClientRequestToken(String clientRequestToken)
A unique, user-specified identifier for this request that ensures idempotency.
clientRequestToken
- A unique, user-specified identifier for this request that ensures idempotency.public String toString()
toString
in class Object
Object.toString()
public CreateContactRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.