@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhoneNumber extends Object implements Serializable, Cloneable, StructuredPojo
The phone number for the contact containing the raw number and phone number type.
| Constructor and Description |
|---|
PhoneNumber() |
| Modifier and Type | Method and Description |
|---|---|
PhoneNumber |
clone() |
boolean |
equals(Object obj) |
String |
getNumber()
The raw value of the phone number.
|
String |
getType()
The type of the phone number.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setNumber(String number)
The raw value of the phone number.
|
void |
setType(String type)
The type of the phone number.
|
String |
toString()
Returns a string representation of this object.
|
PhoneNumber |
withNumber(String number)
The raw value of the phone number.
|
PhoneNumber |
withType(PhoneNumberType type)
The type of the phone number.
|
PhoneNumber |
withType(String type)
The type of the phone number.
|
public void setNumber(String number)
The raw value of the phone number.
number - The raw value of the phone number.public String getNumber()
The raw value of the phone number.
public PhoneNumber withNumber(String number)
The raw value of the phone number.
number - The raw value of the phone number.public void setType(String type)
The type of the phone number.
type - The type of the phone number.PhoneNumberTypepublic String getType()
The type of the phone number.
PhoneNumberTypepublic PhoneNumber withType(String type)
The type of the phone number.
type - The type of the phone number.PhoneNumberTypepublic PhoneNumber withType(PhoneNumberType type)
The type of the phone number.
type - The type of the phone number.PhoneNumberTypepublic String toString()
toString in class ObjectObject.toString()public PhoneNumber clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.