@Generated(value="software.amazon.awssdk:codegen") public final class PhoneNumber extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PhoneNumber.Builder,PhoneNumber>
A phone number used for Amazon Chime Business Calling or an Amazon Chime Voice Connector.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PhoneNumber.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<PhoneNumberAssociation> |
associations()
The phone number associations.
|
static PhoneNumber.Builder |
builder() |
String |
callingName()
The outbound calling name associated with the phone number.
|
CallingNameStatus |
callingNameStatus()
The outbound calling name status.
|
String |
callingNameStatusAsString()
The outbound calling name status.
|
PhoneNumberCapabilities |
capabilities()
The phone number capabilities.
|
String |
country()
The phone number country.
|
Instant |
createdTimestamp()
The phone number creation timestamp, in ISO 8601 format.
|
Instant |
deletionTimestamp()
The deleted phone number timestamp, in ISO 8601 format.
|
String |
e164PhoneNumber()
The phone number, in E.164 format.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAssociations()
For responses, this returns true if the service returned a value for the Associations property.
|
int |
hashCode() |
String |
phoneNumberId()
The phone number ID.
|
PhoneNumberProductType |
productType()
The phone number product type.
|
String |
productTypeAsString()
The phone number product type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PhoneNumber.Builder> |
serializableBuilderClass() |
PhoneNumberStatus |
status()
The phone number status.
|
String |
statusAsString()
The phone number status.
|
PhoneNumber.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PhoneNumberType |
type()
The phone number type.
|
String |
typeAsString()
The phone number type.
|
Instant |
updatedTimestamp()
The updated phone number timestamp, in ISO 8601 format.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String phoneNumberId()
The phone number ID.
public final String e164PhoneNumber()
The phone number, in E.164 format.
public final String country()
The phone number country. Format: ISO 3166-1 alpha-2.
public final PhoneNumberType type()
The phone number type.
If the service returns an enum value that is not available in the current SDK version, type will return
PhoneNumberType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PhoneNumberTypepublic final String typeAsString()
The phone number type.
If the service returns an enum value that is not available in the current SDK version, type will return
PhoneNumberType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PhoneNumberTypepublic final PhoneNumberProductType productType()
The phone number product type.
If the service returns an enum value that is not available in the current SDK version, productType will
return PhoneNumberProductType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from productTypeAsString().
PhoneNumberProductTypepublic final String productTypeAsString()
The phone number product type.
If the service returns an enum value that is not available in the current SDK version, productType will
return PhoneNumberProductType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from productTypeAsString().
PhoneNumberProductTypepublic final PhoneNumberStatus status()
The phone number status.
If the service returns an enum value that is not available in the current SDK version, status will
return PhoneNumberStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
PhoneNumberStatuspublic final String statusAsString()
The phone number status.
If the service returns an enum value that is not available in the current SDK version, status will
return PhoneNumberStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
PhoneNumberStatuspublic final PhoneNumberCapabilities capabilities()
The phone number capabilities.
public final boolean hasAssociations()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<PhoneNumberAssociation> associations()
The phone number associations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAssociations() method.
public final String callingName()
The outbound calling name associated with the phone number.
public final CallingNameStatus callingNameStatus()
The outbound calling name status.
If the service returns an enum value that is not available in the current SDK version, callingNameStatus
will return CallingNameStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from callingNameStatusAsString().
CallingNameStatuspublic final String callingNameStatusAsString()
The outbound calling name status.
If the service returns an enum value that is not available in the current SDK version, callingNameStatus
will return CallingNameStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from callingNameStatusAsString().
CallingNameStatuspublic final Instant createdTimestamp()
The phone number creation timestamp, in ISO 8601 format.
public final Instant updatedTimestamp()
The updated phone number timestamp, in ISO 8601 format.
public final Instant deletionTimestamp()
The deleted phone number timestamp, in ISO 8601 format.
public PhoneNumber.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PhoneNumber.Builder,PhoneNumber>public static PhoneNumber.Builder builder()
public static Class<? extends PhoneNumber.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.