Interface PhoneNumber.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PhoneNumber.Builder,PhoneNumber>,SdkBuilder<PhoneNumber.Builder,PhoneNumber>,SdkPojo
- Enclosing class:
- PhoneNumber
public static interface PhoneNumber.Builder extends SdkPojo, CopyableBuilder<PhoneNumber.Builder,PhoneNumber>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PhoneNumber.Builderassociations(Collection<PhoneNumberAssociation> associations)The phone number associations.PhoneNumber.Builderassociations(Consumer<PhoneNumberAssociation.Builder>... associations)The phone number associations.PhoneNumber.Builderassociations(PhoneNumberAssociation... associations)The phone number associations.PhoneNumber.BuildercallingName(String callingName)The outbound calling name associated with the phone number.PhoneNumber.BuildercallingNameStatus(String callingNameStatus)The outbound calling name status.PhoneNumber.BuildercallingNameStatus(CallingNameStatus callingNameStatus)The outbound calling name status.default PhoneNumber.Buildercapabilities(Consumer<PhoneNumberCapabilities.Builder> capabilities)The phone number capabilities.PhoneNumber.Buildercapabilities(PhoneNumberCapabilities capabilities)The phone number capabilities.PhoneNumber.Buildercountry(String country)The phone number country.PhoneNumber.BuildercreatedTimestamp(Instant createdTimestamp)The phone number creation timestamp, in ISO 8601 format.PhoneNumber.BuilderdeletionTimestamp(Instant deletionTimestamp)The deleted phone number timestamp, in ISO 8601 format.PhoneNumber.Buildere164PhoneNumber(String e164PhoneNumber)The phone number, in E.164 format.PhoneNumber.BuilderphoneNumberId(String phoneNumberId)The phone number ID.PhoneNumber.BuilderproductType(String productType)The phone number product type.PhoneNumber.BuilderproductType(PhoneNumberProductType productType)The phone number product type.PhoneNumber.Builderstatus(String status)The phone number status.PhoneNumber.Builderstatus(PhoneNumberStatus status)The phone number status.PhoneNumber.Buildertype(String type)The phone number type.PhoneNumber.Buildertype(PhoneNumberType type)The phone number type.PhoneNumber.BuilderupdatedTimestamp(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 Detail
-
phoneNumberId
PhoneNumber.Builder phoneNumberId(String phoneNumberId)
The phone number ID.
- Parameters:
phoneNumberId- The phone number ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
e164PhoneNumber
PhoneNumber.Builder e164PhoneNumber(String 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
PhoneNumber.Builder country(String country)
The phone number country. Format: ISO 3166-1 alpha-2.
- Parameters:
country- The phone number country. Format: ISO 3166-1 alpha-2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
PhoneNumber.Builder type(String type)
The phone number type.
- Parameters:
type- The phone number type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PhoneNumberType,PhoneNumberType
-
type
PhoneNumber.Builder type(PhoneNumberType type)
The phone number type.
- Parameters:
type- The phone number type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PhoneNumberType,PhoneNumberType
-
productType
PhoneNumber.Builder productType(String productType)
The phone number product type.
- Parameters:
productType- The phone number product type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PhoneNumberProductType,PhoneNumberProductType
-
productType
PhoneNumber.Builder productType(PhoneNumberProductType productType)
The phone number product type.
- Parameters:
productType- The phone number product type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PhoneNumberProductType,PhoneNumberProductType
-
status
PhoneNumber.Builder status(String status)
The phone number status.
- Parameters:
status- The phone number status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PhoneNumberStatus,PhoneNumberStatus
-
status
PhoneNumber.Builder status(PhoneNumberStatus status)
The phone number status.
- Parameters:
status- The phone number status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PhoneNumberStatus,PhoneNumberStatus
-
capabilities
PhoneNumber.Builder capabilities(PhoneNumberCapabilities capabilities)
The phone number capabilities.
- Parameters:
capabilities- The phone number capabilities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capabilities
default PhoneNumber.Builder capabilities(Consumer<PhoneNumberCapabilities.Builder> capabilities)
The phone number capabilities.
This is a convenience method that creates an instance of thePhoneNumberCapabilities.Builderavoiding the need to create one manually viaPhoneNumberCapabilities.builder().When the
Consumercompletes,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:
capabilities(PhoneNumberCapabilities)
-
associations
PhoneNumber.Builder associations(Collection<PhoneNumberAssociation> associations)
The phone number associations.
- Parameters:
associations- The phone number associations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associations
PhoneNumber.Builder associations(PhoneNumberAssociation... associations)
The phone number associations.
- Parameters:
associations- The phone number associations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associations
PhoneNumber.Builder associations(Consumer<PhoneNumberAssociation.Builder>... associations)
The phone number associations.
This is a convenience method that creates an instance of thePhoneNumberAssociation.Builderavoiding the need to create one manually viaPhoneNumberAssociation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#associations(List.) - 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:
#associations(java.util.Collection)
-
callingName
PhoneNumber.Builder callingName(String 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
PhoneNumber.Builder callingNameStatus(String 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,CallingNameStatus
-
callingNameStatus
PhoneNumber.Builder callingNameStatus(CallingNameStatus 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,CallingNameStatus
-
createdTimestamp
PhoneNumber.Builder createdTimestamp(Instant 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
PhoneNumber.Builder updatedTimestamp(Instant 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
PhoneNumber.Builder deletionTimestamp(Instant 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.
-
-