@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)
Marshalls this structured data using the given
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.PhoneNumberType
public String getType()
The type of the phone number.
PhoneNumberType
public PhoneNumber withType(String type)
The type of the phone number.
type
- The type of the phone number.PhoneNumberType
public PhoneNumber withType(PhoneNumberType type)
The type of the phone number.
type
- The type of the phone number.PhoneNumberType
public String toString()
toString
in class Object
Object.toString()
public PhoneNumber clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.