@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhoneNumber extends Object implements Serializable, Cloneable, StructuredPojo
A phone number used for Amazon Chime Business Calling or an Amazon Chime Voice Connector.
Constructor and Description |
---|
PhoneNumber() |
Modifier and Type | Method and Description |
---|---|
PhoneNumber |
clone() |
boolean |
equals(Object obj) |
List<PhoneNumberAssociation> |
getAssociations()
The phone number associations.
|
String |
getCallingName()
The outbound calling name associated with the phone number.
|
String |
getCallingNameStatus()
The outbound calling name status.
|
PhoneNumberCapabilities |
getCapabilities()
The phone number capabilities.
|
String |
getCountry()
The phone number country.
|
Date |
getCreatedTimestamp()
The phone number creation timestamp, in ISO 8601 format.
|
Date |
getDeletionTimestamp()
The deleted phone number timestamp, in ISO 8601 format.
|
String |
getE164PhoneNumber()
The phone number, in E.164 format.
|
String |
getPhoneNumberId()
The phone number ID.
|
String |
getProductType()
The phone number product type.
|
String |
getStatus()
The phone number status.
|
String |
getType()
The phone number type.
|
Date |
getUpdatedTimestamp()
The updated phone number timestamp, in ISO 8601 format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssociations(Collection<PhoneNumberAssociation> associations)
The phone number associations.
|
void |
setCallingName(String callingName)
The outbound calling name associated with the phone number.
|
void |
setCallingNameStatus(String callingNameStatus)
The outbound calling name status.
|
void |
setCapabilities(PhoneNumberCapabilities capabilities)
The phone number capabilities.
|
void |
setCountry(String country)
The phone number country.
|
void |
setCreatedTimestamp(Date createdTimestamp)
The phone number creation timestamp, in ISO 8601 format.
|
void |
setDeletionTimestamp(Date deletionTimestamp)
The deleted phone number timestamp, in ISO 8601 format.
|
void |
setE164PhoneNumber(String e164PhoneNumber)
The phone number, in E.164 format.
|
void |
setPhoneNumberId(String phoneNumberId)
The phone number ID.
|
void |
setProductType(String productType)
The phone number product type.
|
void |
setStatus(String status)
The phone number status.
|
void |
setType(String type)
The phone number type.
|
void |
setUpdatedTimestamp(Date updatedTimestamp)
The updated phone number timestamp, in ISO 8601 format.
|
String |
toString()
Returns a string representation of this object.
|
PhoneNumber |
withAssociations(Collection<PhoneNumberAssociation> associations)
The phone number associations.
|
PhoneNumber |
withAssociations(PhoneNumberAssociation... associations)
The phone number associations.
|
PhoneNumber |
withCallingName(String callingName)
The outbound calling name associated with the phone number.
|
PhoneNumber |
withCallingNameStatus(CallingNameStatus callingNameStatus)
The outbound calling name status.
|
PhoneNumber |
withCallingNameStatus(String callingNameStatus)
The outbound calling name status.
|
PhoneNumber |
withCapabilities(PhoneNumberCapabilities capabilities)
The phone number capabilities.
|
PhoneNumber |
withCountry(String country)
The phone number country.
|
PhoneNumber |
withCreatedTimestamp(Date createdTimestamp)
The phone number creation timestamp, in ISO 8601 format.
|
PhoneNumber |
withDeletionTimestamp(Date deletionTimestamp)
The deleted phone number timestamp, in ISO 8601 format.
|
PhoneNumber |
withE164PhoneNumber(String e164PhoneNumber)
The phone number, in E.164 format.
|
PhoneNumber |
withPhoneNumberId(String phoneNumberId)
The phone number ID.
|
PhoneNumber |
withProductType(PhoneNumberProductType productType)
The phone number product type.
|
PhoneNumber |
withProductType(String productType)
The phone number product type.
|
PhoneNumber |
withStatus(PhoneNumberStatus status)
The phone number status.
|
PhoneNumber |
withStatus(String status)
The phone number status.
|
PhoneNumber |
withType(PhoneNumberType type)
The phone number type.
|
PhoneNumber |
withType(String type)
The phone number type.
|
PhoneNumber |
withUpdatedTimestamp(Date updatedTimestamp)
The updated phone number timestamp, in ISO 8601 format.
|
public void setPhoneNumberId(String phoneNumberId)
The phone number ID.
phoneNumberId
- The phone number ID.public String getPhoneNumberId()
The phone number ID.
public PhoneNumber withPhoneNumberId(String phoneNumberId)
The phone number ID.
phoneNumberId
- The phone number ID.public void setE164PhoneNumber(String e164PhoneNumber)
The phone number, in E.164 format.
e164PhoneNumber
- The phone number, in E.164 format.public String getE164PhoneNumber()
The phone number, in E.164 format.
public PhoneNumber withE164PhoneNumber(String e164PhoneNumber)
The phone number, in E.164 format.
e164PhoneNumber
- The phone number, in E.164 format.public void setCountry(String country)
The phone number country. Format: ISO 3166-1 alpha-2.
country
- The phone number country. Format: ISO 3166-1 alpha-2.public String getCountry()
The phone number country. Format: ISO 3166-1 alpha-2.
public PhoneNumber withCountry(String country)
The phone number country. Format: ISO 3166-1 alpha-2.
country
- The phone number country. Format: ISO 3166-1 alpha-2.public void setType(String type)
The phone number type.
type
- The phone number type.PhoneNumberType
public String getType()
The phone number type.
PhoneNumberType
public PhoneNumber withType(String type)
The phone number type.
type
- The phone number type.PhoneNumberType
public PhoneNumber withType(PhoneNumberType type)
The phone number type.
type
- The phone number type.PhoneNumberType
public void setProductType(String productType)
The phone number product type.
productType
- The phone number product type.PhoneNumberProductType
public String getProductType()
The phone number product type.
PhoneNumberProductType
public PhoneNumber withProductType(String productType)
The phone number product type.
productType
- The phone number product type.PhoneNumberProductType
public PhoneNumber withProductType(PhoneNumberProductType productType)
The phone number product type.
productType
- The phone number product type.PhoneNumberProductType
public void setStatus(String status)
The phone number status.
status
- The phone number status.PhoneNumberStatus
public String getStatus()
The phone number status.
PhoneNumberStatus
public PhoneNumber withStatus(String status)
The phone number status.
status
- The phone number status.PhoneNumberStatus
public PhoneNumber withStatus(PhoneNumberStatus status)
The phone number status.
status
- The phone number status.PhoneNumberStatus
public void setCapabilities(PhoneNumberCapabilities capabilities)
The phone number capabilities.
capabilities
- The phone number capabilities.public PhoneNumberCapabilities getCapabilities()
The phone number capabilities.
public PhoneNumber withCapabilities(PhoneNumberCapabilities capabilities)
The phone number capabilities.
capabilities
- The phone number capabilities.public List<PhoneNumberAssociation> getAssociations()
The phone number associations.
public void setAssociations(Collection<PhoneNumberAssociation> associations)
The phone number associations.
associations
- The phone number associations.public PhoneNumber withAssociations(PhoneNumberAssociation... associations)
The phone number associations.
NOTE: This method appends the values to the existing list (if any). Use
setAssociations(java.util.Collection)
or withAssociations(java.util.Collection)
if you want to
override the existing values.
associations
- The phone number associations.public PhoneNumber withAssociations(Collection<PhoneNumberAssociation> associations)
The phone number associations.
associations
- The phone number associations.public void setCallingName(String callingName)
The outbound calling name associated with the phone number.
callingName
- The outbound calling name associated with the phone number.public String getCallingName()
The outbound calling name associated with the phone number.
public PhoneNumber withCallingName(String callingName)
The outbound calling name associated with the phone number.
callingName
- The outbound calling name associated with the phone number.public void setCallingNameStatus(String callingNameStatus)
The outbound calling name status.
callingNameStatus
- The outbound calling name status.CallingNameStatus
public String getCallingNameStatus()
The outbound calling name status.
CallingNameStatus
public PhoneNumber withCallingNameStatus(String callingNameStatus)
The outbound calling name status.
callingNameStatus
- The outbound calling name status.CallingNameStatus
public PhoneNumber withCallingNameStatus(CallingNameStatus callingNameStatus)
The outbound calling name status.
callingNameStatus
- The outbound calling name status.CallingNameStatus
public void setCreatedTimestamp(Date createdTimestamp)
The phone number creation timestamp, in ISO 8601 format.
createdTimestamp
- The phone number creation timestamp, in ISO 8601 format.public Date getCreatedTimestamp()
The phone number creation timestamp, in ISO 8601 format.
public PhoneNumber withCreatedTimestamp(Date createdTimestamp)
The phone number creation timestamp, in ISO 8601 format.
createdTimestamp
- The phone number creation timestamp, in ISO 8601 format.public void setUpdatedTimestamp(Date updatedTimestamp)
The updated phone number timestamp, in ISO 8601 format.
updatedTimestamp
- The updated phone number timestamp, in ISO 8601 format.public Date getUpdatedTimestamp()
The updated phone number timestamp, in ISO 8601 format.
public PhoneNumber withUpdatedTimestamp(Date updatedTimestamp)
The updated phone number timestamp, in ISO 8601 format.
updatedTimestamp
- The updated phone number timestamp, in ISO 8601 format.public void setDeletionTimestamp(Date deletionTimestamp)
The deleted phone number timestamp, in ISO 8601 format.
deletionTimestamp
- The deleted phone number timestamp, in ISO 8601 format.public Date getDeletionTimestamp()
The deleted phone number timestamp, in ISO 8601 format.
public PhoneNumber withDeletionTimestamp(Date deletionTimestamp)
The deleted phone number timestamp, in ISO 8601 format.
deletionTimestamp
- The deleted phone number timestamp, in ISO 8601 format.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.