@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContactData extends Object implements Serializable, Cloneable, StructuredPojo
Information related to a contact.
Constructor and Description |
---|
ContactData() |
Modifier and Type | Method and Description |
---|---|
ContactData |
clone() |
boolean |
equals(Object obj) |
String |
getContactArn()
The ARN of the contact.
|
String |
getDisplayName()
The name of the contact to display on the console.
|
String |
getFirstName()
The first name of the contact, used to call the contact on the device.
|
String |
getLastName()
The last name of the contact, used to call the contact on the device.
|
String |
getPhoneNumber()
The phone number of the contact.
|
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContactArn(String contactArn)
The ARN of the contact.
|
void |
setDisplayName(String displayName)
The name of the contact to display on the console.
|
void |
setFirstName(String firstName)
The first name of the contact, used to call the contact on the device.
|
void |
setLastName(String lastName)
The last name of the contact, used to call the contact on the device.
|
void |
setPhoneNumber(String phoneNumber)
The phone number of the contact.
|
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.
|
ContactData |
withContactArn(String contactArn)
The ARN of the contact.
|
ContactData |
withDisplayName(String displayName)
The name of the contact to display on the console.
|
ContactData |
withFirstName(String firstName)
The first name of the contact, used to call the contact on the device.
|
ContactData |
withLastName(String lastName)
The last name of the contact, used to call the contact on the device.
|
ContactData |
withPhoneNumber(String phoneNumber)
The phone number of the contact.
|
ContactData |
withPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The list of phone numbers for the contact.
|
ContactData |
withPhoneNumbers(PhoneNumber... phoneNumbers)
The list of phone numbers for the contact.
|
ContactData |
withSipAddresses(Collection<SipAddress> sipAddresses)
The list of SIP addresses for the contact.
|
ContactData |
withSipAddresses(SipAddress... sipAddresses)
The list of SIP addresses for the contact.
|
public void setContactArn(String contactArn)
The ARN of the contact.
contactArn
- The ARN of the contact.public String getContactArn()
The ARN of the contact.
public ContactData withContactArn(String contactArn)
The ARN of the contact.
contactArn
- The ARN of the contact.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 ContactData 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, used to call the contact on the device.
firstName
- The first name of the contact, used to call the contact on the device.public String getFirstName()
The first name of the contact, used to call the contact on the device.
public ContactData withFirstName(String firstName)
The first name of the contact, used to call the contact on the device.
firstName
- The first name of the contact, used to call the contact on the device.public void setLastName(String lastName)
The last name of the contact, used to call the contact on the device.
lastName
- The last name of the contact, used to call the contact on the device.public String getLastName()
The last name of the contact, used to call the contact on the device.
public ContactData withLastName(String lastName)
The last name of the contact, used to call the contact on the device.
lastName
- The last name of the contact, used to call the contact on the device.public void setPhoneNumber(String phoneNumber)
The phone number of the contact. 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. 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. 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 ContactData withPhoneNumber(String phoneNumber)
The phone number of the contact. 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. 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 ContactData 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 ContactData 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 ContactData 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 ContactData withSipAddresses(Collection<SipAddress> sipAddresses)
The list of SIP addresses for the contact.
sipAddresses
- The list of SIP addresses for the contact.public String toString()
toString
in class Object
Object.toString()
public ContactData clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.