Interface GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder,,GetLinkedWhatsAppBusinessAccountPhoneNumberResponse> SdkBuilder<GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder,,GetLinkedWhatsAppBusinessAccountPhoneNumberResponse> SdkPojo,SdkResponse.Builder,SocialMessagingResponse.Builder
- Enclosing class:
GetLinkedWhatsAppBusinessAccountPhoneNumberResponse
@Mutable
@NotThreadSafe
public static interface GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder
extends SocialMessagingResponse.Builder, SdkPojo, CopyableBuilder<GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder,GetLinkedWhatsAppBusinessAccountPhoneNumberResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncallSettings(Consumer<WhatsAppCallSettings.Builder> callSettings) The calling settings configured for the phone number.callSettings(WhatsAppCallSettings callSettings) The calling settings configured for the phone number.linkedWhatsAppBusinessAccountId(String linkedWhatsAppBusinessAccountId) The WABA identifier linked to the phone number, formatted aswaba-01234567890123456789012345678901.phoneNumber(Consumer<WhatsAppPhoneNumberDetail.Builder> phoneNumber) Sets the value of the PhoneNumber property for this object.phoneNumber(WhatsAppPhoneNumberDetail phoneNumber) Sets the value of the PhoneNumber property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.socialmessaging.model.SocialMessagingResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
phoneNumber
GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder phoneNumber(WhatsAppPhoneNumberDetail phoneNumber) Sets the value of the PhoneNumber property for this object.- Parameters:
phoneNumber- The new value for the PhoneNumber property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumber
default GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder phoneNumber(Consumer<WhatsAppPhoneNumberDetail.Builder> phoneNumber) Sets the value of the PhoneNumber property for this object. This is a convenience method that creates an instance of theWhatsAppPhoneNumberDetail.Builderavoiding the need to create one manually viaWhatsAppPhoneNumberDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tophoneNumber(WhatsAppPhoneNumberDetail).- Parameters:
phoneNumber- a consumer that will call methods onWhatsAppPhoneNumberDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
linkedWhatsAppBusinessAccountId
GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder linkedWhatsAppBusinessAccountId(String linkedWhatsAppBusinessAccountId) The WABA identifier linked to the phone number, formatted as
waba-01234567890123456789012345678901.- Parameters:
linkedWhatsAppBusinessAccountId- The WABA identifier linked to the phone number, formatted aswaba-01234567890123456789012345678901.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callSettings
GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder callSettings(WhatsAppCallSettings callSettings) The calling settings configured for the phone number. This value is absent when calling is not configured.
- Parameters:
callSettings- The calling settings configured for the phone number. This value is absent when calling is not configured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callSettings
default GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder callSettings(Consumer<WhatsAppCallSettings.Builder> callSettings) The calling settings configured for the phone number. This value is absent when calling is not configured.
This is a convenience method that creates an instance of theWhatsAppCallSettings.Builderavoiding the need to create one manually viaWhatsAppCallSettings.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocallSettings(WhatsAppCallSettings).- Parameters:
callSettings- a consumer that will call methods onWhatsAppCallSettings.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-