@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhoneNumberInformation extends Object implements Serializable, Cloneable
A list of phone numbers and their metadata.
Constructor and Description |
---|
PhoneNumberInformation() |
Modifier and Type | Method and Description |
---|---|
PhoneNumberInformation |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
The date and time when the phone number was created.
|
String |
getIso2CountryCode()
The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
|
List<String> |
getNumberCapabilities()
The capabilities of each phone number.
|
String |
getPhoneNumber()
The phone number.
|
String |
getRouteType()
The list of supported routes.
|
String |
getStatus()
The status of the phone number.
|
int |
hashCode() |
void |
setCreatedAt(Date createdAt)
The date and time when the phone number was created.
|
void |
setIso2CountryCode(String iso2CountryCode)
The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
|
void |
setNumberCapabilities(Collection<String> numberCapabilities)
The capabilities of each phone number.
|
void |
setPhoneNumber(String phoneNumber)
The phone number.
|
void |
setRouteType(String routeType)
The list of supported routes.
|
void |
setStatus(String status)
The status of the phone number.
|
String |
toString()
Returns a string representation of this object.
|
PhoneNumberInformation |
withCreatedAt(Date createdAt)
The date and time when the phone number was created.
|
PhoneNumberInformation |
withIso2CountryCode(String iso2CountryCode)
The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
|
PhoneNumberInformation |
withNumberCapabilities(Collection<String> numberCapabilities)
The capabilities of each phone number.
|
PhoneNumberInformation |
withNumberCapabilities(NumberCapability... numberCapabilities)
The capabilities of each phone number.
|
PhoneNumberInformation |
withNumberCapabilities(String... numberCapabilities)
The capabilities of each phone number.
|
PhoneNumberInformation |
withPhoneNumber(String phoneNumber)
The phone number.
|
PhoneNumberInformation |
withRouteType(RouteType routeType)
The list of supported routes.
|
PhoneNumberInformation |
withRouteType(String routeType)
The list of supported routes.
|
PhoneNumberInformation |
withStatus(String status)
The status of the phone number.
|
public void setCreatedAt(Date createdAt)
The date and time when the phone number was created.
createdAt
- The date and time when the phone number was created.public Date getCreatedAt()
The date and time when the phone number was created.
public PhoneNumberInformation withCreatedAt(Date createdAt)
The date and time when the phone number was created.
createdAt
- The date and time when the phone number was created.public void setPhoneNumber(String phoneNumber)
The phone number.
phoneNumber
- The phone number.public String getPhoneNumber()
The phone number.
public PhoneNumberInformation withPhoneNumber(String phoneNumber)
The phone number.
phoneNumber
- The phone number.public void setStatus(String status)
The status of the phone number.
status
- The status of the phone number.public String getStatus()
The status of the phone number.
public PhoneNumberInformation withStatus(String status)
The status of the phone number.
status
- The status of the phone number.public void setIso2CountryCode(String iso2CountryCode)
The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
iso2CountryCode
- The two-character code for the country or region, in ISO 3166-1 alpha-2 format.public String getIso2CountryCode()
The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
public PhoneNumberInformation withIso2CountryCode(String iso2CountryCode)
The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
iso2CountryCode
- The two-character code for the country or region, in ISO 3166-1 alpha-2 format.public void setRouteType(String routeType)
The list of supported routes.
routeType
- The list of supported routes.RouteType
public String getRouteType()
The list of supported routes.
RouteType
public PhoneNumberInformation withRouteType(String routeType)
The list of supported routes.
routeType
- The list of supported routes.RouteType
public PhoneNumberInformation withRouteType(RouteType routeType)
The list of supported routes.
routeType
- The list of supported routes.RouteType
public List<String> getNumberCapabilities()
The capabilities of each phone number.
NumberCapability
public void setNumberCapabilities(Collection<String> numberCapabilities)
The capabilities of each phone number.
numberCapabilities
- The capabilities of each phone number.NumberCapability
public PhoneNumberInformation withNumberCapabilities(String... numberCapabilities)
The capabilities of each phone number.
NOTE: This method appends the values to the existing list (if any). Use
setNumberCapabilities(java.util.Collection)
or withNumberCapabilities(java.util.Collection)
if
you want to override the existing values.
numberCapabilities
- The capabilities of each phone number.NumberCapability
public PhoneNumberInformation withNumberCapabilities(Collection<String> numberCapabilities)
The capabilities of each phone number.
numberCapabilities
- The capabilities of each phone number.NumberCapability
public PhoneNumberInformation withNumberCapabilities(NumberCapability... numberCapabilities)
The capabilities of each phone number.
numberCapabilities
- The capabilities of each phone number.NumberCapability
public String toString()
toString
in class Object
Object.toString()
public PhoneNumberInformation clone()
Copyright © 2022. All rights reserved.