Interface PhoneNumber.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PhoneNumber.Builder,
,PhoneNumber> SdkBuilder<PhoneNumber.Builder,
,PhoneNumber> SdkPojo
- Enclosing class:
PhoneNumber
-
Method Summary
Modifier and TypeMethodDescriptionassociations
(Collection<PhoneNumberAssociation> associations) The phone number's associations.associations
(Consumer<PhoneNumberAssociation.Builder>... associations) The phone number's associations.associations
(PhoneNumberAssociation... associations) The phone number's associations.callingName
(String callingName) The outbound calling name associated with the phone number.callingNameStatus
(String callingNameStatus) The outbound calling name status.callingNameStatus
(CallingNameStatus callingNameStatus) The outbound calling name status.default PhoneNumber.Builder
capabilities
(Consumer<PhoneNumberCapabilities.Builder> capabilities) The phone number's capabilities.capabilities
(PhoneNumberCapabilities capabilities) The phone number's capabilities.The phone number's country.createdTimestamp
(Instant createdTimestamp) The phone number creation timestamp, in ISO 8601 format.deletionTimestamp
(Instant deletionTimestamp) The deleted phone number timestamp, in ISO 8601 format.e164PhoneNumber
(String e164PhoneNumber) The phone number, in E.164 format.The name of the phone number.The phone number's order ID.phoneNumberId
(String phoneNumberId) The phone number's ID.productType
(String productType) The phone number's product type.productType
(PhoneNumberProductType productType) The phone number's product type.The phone number's status.status
(PhoneNumberStatus status) The phone number's status.The phone number's type.type
(PhoneNumberType type) The phone number's type.updatedTimestamp
(Instant updatedTimestamp) The updated phone number timestamp, in ISO 8601 format.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
phoneNumberId
The phone number's ID.
- Parameters:
phoneNumberId
- The phone number's ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
e164PhoneNumber
The phone number, in E.164 format.
- Parameters:
e164PhoneNumber
- The phone number, in E.164 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
country
The phone number's country. Format: ISO 3166-1 alpha-2.
- Parameters:
country
- The phone number's country. Format: ISO 3166-1 alpha-2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The phone number's type.
- Parameters:
type
- The phone number's type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The phone number's type.
- Parameters:
type
- The phone number's type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productType
The phone number's product type.
- Parameters:
productType
- The phone number's product type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productType
The phone number's product type.
- Parameters:
productType
- The phone number's product type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The phone number's status.
- Parameters:
status
- The phone number's status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The phone number's status.
- Parameters:
status
- The phone number's status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capabilities
The phone number's capabilities.
- Parameters:
capabilities
- The phone number's capabilities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaPhoneNumberCapabilities.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapabilities(PhoneNumberCapabilities)
.- Parameters:
capabilities
- a consumer that will call methods onPhoneNumberCapabilities.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
associations
The phone number's associations.
- Parameters:
associations
- The phone number's associations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associations
The phone number's associations.
- Parameters:
associations
- The phone number's associations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaPhoneNumberAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassociations(List<PhoneNumberAssociation>)
.- Parameters:
associations
- a consumer that will call methods onPhoneNumberAssociation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
callingName
The outbound calling name associated with the phone number.
- Parameters:
callingName
- The outbound calling name associated with the phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callingNameStatus
The outbound calling name status.
- Parameters:
callingNameStatus
- The outbound calling name status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
callingNameStatus
The outbound calling name status.
- Parameters:
callingNameStatus
- The outbound calling name status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdTimestamp
The phone number creation timestamp, in ISO 8601 format.
- Parameters:
createdTimestamp
- The phone number creation timestamp, in ISO 8601 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedTimestamp
The updated phone number timestamp, in ISO 8601 format.
- Parameters:
updatedTimestamp
- The updated phone number timestamp, in ISO 8601 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deletionTimestamp
The deleted phone number timestamp, in ISO 8601 format.
- Parameters:
deletionTimestamp
- The deleted phone number timestamp, in ISO 8601 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orderId
The phone number's order ID.
- Parameters:
orderId
- The phone number's order ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the phone number.
- Parameters:
name
- The name of the phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-