@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhoneNumber extends Object implements Serializable, Cloneable, StructuredPojo
The phone number associated with the user.
Constructor and Description |
---|
PhoneNumber() |
Modifier and Type | Method and Description |
---|---|
PhoneNumber |
clone() |
boolean |
equals(Object obj) |
Boolean |
getPrimary()
A Boolean value representing whether this is the primary phone number for the associated resource.
|
String |
getType()
A string representing the type of a phone number.
|
String |
getValue()
A string containing a phone number.
|
int |
hashCode() |
Boolean |
isPrimary()
A Boolean value representing whether this is the primary phone number for the associated resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPrimary(Boolean primary)
A Boolean value representing whether this is the primary phone number for the associated resource.
|
void |
setType(String type)
A string representing the type of a phone number.
|
void |
setValue(String value)
A string containing a phone number.
|
String |
toString()
Returns a string representation of this object.
|
PhoneNumber |
withPrimary(Boolean primary)
A Boolean value representing whether this is the primary phone number for the associated resource.
|
PhoneNumber |
withType(String type)
A string representing the type of a phone number.
|
PhoneNumber |
withValue(String value)
A string containing a phone number.
|
public void setValue(String value)
A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".
value
- A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".public String getValue()
A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".
public PhoneNumber withValue(String value)
A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".
value
- A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".public void setType(String type)
A string representing the type of a phone number. For example, "Mobile."
type
- A string representing the type of a phone number. For example, "Mobile."public String getType()
A string representing the type of a phone number. For example, "Mobile."
public PhoneNumber withType(String type)
A string representing the type of a phone number. For example, "Mobile."
type
- A string representing the type of a phone number. For example, "Mobile."public void setPrimary(Boolean primary)
A Boolean value representing whether this is the primary phone number for the associated resource.
primary
- A Boolean value representing whether this is the primary phone number for the associated resource.public Boolean getPrimary()
A Boolean value representing whether this is the primary phone number for the associated resource.
public PhoneNumber withPrimary(Boolean primary)
A Boolean value representing whether this is the primary phone number for the associated resource.
primary
- A Boolean value representing whether this is the primary phone number for the associated resource.public Boolean isPrimary()
A Boolean value representing whether this is the primary phone number for the associated resource.
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.