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's associations.
|
PhoneNumber.Builder |
associations(Consumer<PhoneNumberAssociation.Builder>... associations)
The phone number's associations.
|
PhoneNumber.Builder |
associations(PhoneNumberAssociation... associations)
The phone number's 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's capabilities.
|
PhoneNumber.Builder |
capabilities(PhoneNumberCapabilities capabilities)
The phone number's capabilities.
|
PhoneNumber.Builder |
country(String country)
The phone number's 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 |
orderId(String orderId)
The phone number's order ID.
|
PhoneNumber.Builder |
phoneNumberId(String phoneNumberId)
The phone number's ID.
|
PhoneNumber.Builder |
productType(PhoneNumberProductType productType)
The phone number's product type.
|
PhoneNumber.Builder |
productType(String productType)
The phone number's product type.
|
PhoneNumber.Builder |
status(PhoneNumberStatus status)
The phone number's status.
|
PhoneNumber.Builder |
status(String status)
The phone number's status.
|
PhoneNumber.Builder |
type(PhoneNumberType type)
The phone number's type.
|
PhoneNumber.Builder |
type(String type)
The phone number's 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's ID.
phoneNumberId - The phone number's 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's country. Format: ISO 3166-1 alpha-2.
country - The phone number's country. Format: ISO 3166-1 alpha-2.PhoneNumber.Builder type(String type)
The phone number's type.
type - The phone number's type.PhoneNumberType,
PhoneNumberTypePhoneNumber.Builder type(PhoneNumberType type)
The phone number's type.
type - The phone number's type.PhoneNumberType,
PhoneNumberTypePhoneNumber.Builder productType(String productType)
The phone number's product type.
productType - The phone number's product type.PhoneNumberProductType,
PhoneNumberProductTypePhoneNumber.Builder productType(PhoneNumberProductType productType)
The phone number's product type.
productType - The phone number's product type.PhoneNumberProductType,
PhoneNumberProductTypePhoneNumber.Builder status(String status)
The phone number's status.
status - The phone number's status.PhoneNumberStatus,
PhoneNumberStatusPhoneNumber.Builder status(PhoneNumberStatus status)
The phone number's status.
status - The phone number's status.PhoneNumberStatus,
PhoneNumberStatusPhoneNumber.Builder capabilities(PhoneNumberCapabilities capabilities)
The phone number's capabilities.
capabilities - The phone number's capabilities.default PhoneNumber.Builder capabilities(Consumer<PhoneNumberCapabilities.Builder> capabilities)
The phone number's 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's associations.
associations - The phone number's associations.PhoneNumber.Builder associations(PhoneNumberAssociation... associations)
The phone number's associations.
associations - The phone number's associations.PhoneNumber.Builder associations(Consumer<PhoneNumberAssociation.Builder>... associations)
The phone number's 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.PhoneNumber.Builder orderId(String orderId)
The phone number's order ID.
orderId - The phone number's order ID.Copyright © 2023. All rights reserved.