public static interface PhoneNumber.Builder extends SdkPojo, CopyableBuilder<PhoneNumber.Builder,PhoneNumber>
| Modifier and Type | Method and Description |
|---|---|
PhoneNumber.Builder |
associations(Collection<PhoneNumberAssociation> associations)
The phone number associations.
|
PhoneNumber.Builder |
associations(Consumer<PhoneNumberAssociation.Builder>... associations)
The phone number associations.
|
PhoneNumber.Builder |
associations(PhoneNumberAssociation... associations)
The phone number associations.
|
PhoneNumber.Builder |
callingName(String callingName)
The outbound calling name associated with the phone number.
|
PhoneNumber.Builder |
callingNameStatus(CallingNameStatus callingNameStatus)
The outbound calling name status.
|
PhoneNumber.Builder |
callingNameStatus(String callingNameStatus)
The outbound calling name status.
|
default PhoneNumber.Builder |
capabilities(Consumer<PhoneNumberCapabilities.Builder> capabilities)
The phone number capabilities.
|
PhoneNumber.Builder |
capabilities(PhoneNumberCapabilities capabilities)
The phone number capabilities.
|
PhoneNumber.Builder |
country(String country)
The phone number country.
|
PhoneNumber.Builder |
createdTimestamp(Instant createdTimestamp)
The phone number creation timestamp, in ISO 8601 format.
|
PhoneNumber.Builder |
deletionTimestamp(Instant deletionTimestamp)
The deleted phone number timestamp, in ISO 8601 format.
|
PhoneNumber.Builder |
e164PhoneNumber(String e164PhoneNumber)
The phone number, in E.164 format.
|
PhoneNumber.Builder |
phoneNumberId(String phoneNumberId)
The phone number ID.
|
PhoneNumber.Builder |
productType(PhoneNumberProductType productType)
The phone number product type.
|
PhoneNumber.Builder |
productType(String productType)
The phone number product type.
|
PhoneNumber.Builder |
status(PhoneNumberStatus status)
The phone number status.
|
PhoneNumber.Builder |
status(String status)
The phone number status.
|
PhoneNumber.Builder |
type(PhoneNumberType type)
The phone number type.
|
PhoneNumber.Builder |
type(String type)
The phone number type.
|
PhoneNumber.Builder |
updatedTimestamp(Instant updatedTimestamp)
The updated phone number timestamp, in ISO 8601 format.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPhoneNumber.Builder phoneNumberId(String phoneNumberId)
The phone number ID.
phoneNumberId - The phone number ID.PhoneNumber.Builder e164PhoneNumber(String e164PhoneNumber)
The phone number, in E.164 format.
e164PhoneNumber - The phone number, in E.164 format.PhoneNumber.Builder country(String country)
The phone number country. Format: ISO 3166-1 alpha-2.
country - The phone number country. Format: ISO 3166-1 alpha-2.PhoneNumber.Builder type(String type)
The phone number type.
type - The phone number type.PhoneNumberType,
PhoneNumberTypePhoneNumber.Builder type(PhoneNumberType type)
The phone number type.
type - The phone number type.PhoneNumberType,
PhoneNumberTypePhoneNumber.Builder productType(String productType)
The phone number product type.
productType - The phone number product type.PhoneNumberProductType,
PhoneNumberProductTypePhoneNumber.Builder productType(PhoneNumberProductType productType)
The phone number product type.
productType - The phone number product type.PhoneNumberProductType,
PhoneNumberProductTypePhoneNumber.Builder status(String status)
The phone number status.
status - The phone number status.PhoneNumberStatus,
PhoneNumberStatusPhoneNumber.Builder status(PhoneNumberStatus status)
The phone number status.
status - The phone number status.PhoneNumberStatus,
PhoneNumberStatusPhoneNumber.Builder capabilities(PhoneNumberCapabilities capabilities)
The phone number capabilities.
capabilities - The phone number capabilities.default PhoneNumber.Builder capabilities(Consumer<PhoneNumberCapabilities.Builder> capabilities)
The phone number capabilities.
This is a convenience method that creates an instance of thePhoneNumberCapabilities.Builder avoiding
the need to create one manually via PhoneNumberCapabilities.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to capabilities(PhoneNumberCapabilities).
capabilities - a consumer that will call methods on PhoneNumberCapabilities.Buildercapabilities(PhoneNumberCapabilities)PhoneNumber.Builder associations(Collection<PhoneNumberAssociation> associations)
The phone number associations.
associations - The phone number associations.PhoneNumber.Builder associations(PhoneNumberAssociation... associations)
The phone number associations.
associations - The phone number associations.PhoneNumber.Builder associations(Consumer<PhoneNumberAssociation.Builder>... associations)
The phone number associations.
This is a convenience method that creates an instance of thePhoneNumberAssociation.Builder avoiding the need to
create one manually via PhoneNumberAssociation.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #associations(List.
associations - a consumer that will call methods on
PhoneNumberAssociation.Builder#associations(java.util.Collection) PhoneNumber.Builder callingName(String callingName)
The outbound calling name associated with the phone number.
callingName - The outbound calling name associated with the phone number.PhoneNumber.Builder callingNameStatus(String callingNameStatus)
The outbound calling name status.
callingNameStatus - The outbound calling name status.CallingNameStatus,
CallingNameStatusPhoneNumber.Builder callingNameStatus(CallingNameStatus callingNameStatus)
The outbound calling name status.
callingNameStatus - The outbound calling name status.CallingNameStatus,
CallingNameStatusPhoneNumber.Builder createdTimestamp(Instant createdTimestamp)
The phone number creation timestamp, in ISO 8601 format.
createdTimestamp - The phone number creation timestamp, in ISO 8601 format.PhoneNumber.Builder updatedTimestamp(Instant updatedTimestamp)
The updated phone number timestamp, in ISO 8601 format.
updatedTimestamp - The updated phone number timestamp, in ISO 8601 format.PhoneNumber.Builder deletionTimestamp(Instant deletionTimestamp)
The deleted phone number timestamp, in ISO 8601 format.
deletionTimestamp - The deleted phone number timestamp, in ISO 8601 format.Copyright © 2023. All rights reserved.