@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Contact extends Object implements Serializable, Cloneable, StructuredPojo
A contact with attributes.
Constructor and Description |
---|
Contact() |
Modifier and Type | Method and Description |
---|---|
Contact |
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.
|
Contact |
withContactArn(String contactArn)
The ARN of the contact.
|
Contact |
withDisplayName(String displayName)
The name of the contact to display on the console.
|
Contact |
withFirstName(String firstName)
The first name of the contact, used to call the contact on the device.
|
Contact |
withLastName(String lastName)
The last name of the contact, used to call the contact on the device.
|
Contact |
withPhoneNumber(String phoneNumber)
The phone number of the contact.
|
Contact |
withPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The list of phone numbers for the contact.
|
Contact |
withPhoneNumbers(PhoneNumber... phoneNumbers)
The list of phone numbers for the contact.
|
Contact |
withSipAddresses(Collection<SipAddress> sipAddresses)
The list of SIP addresses for the contact.
|
Contact |
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 Contact 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 Contact 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 Contact 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 Contact 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 either 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 either 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 either specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.
public Contact withPhoneNumber(String phoneNumber)
The phone number of the contact. The phone number type defaults to WORK. You can either 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 either 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 Contact 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 Contact 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 Contact 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 Contact 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 void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.