Interface GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder,,GetLinkedWhatsAppBusinessAccountPhoneNumberResponse> SdkBuilder<GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder,,GetLinkedWhatsAppBusinessAccountPhoneNumberResponse> SdkPojo,SdkResponse.Builder,SocialMessagingResponse.Builder
- Enclosing class:
GetLinkedWhatsAppBusinessAccountPhoneNumberResponse
public static interface GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder
extends SocialMessagingResponse.Builder, SdkPojo, CopyableBuilder<GetLinkedWhatsAppBusinessAccountPhoneNumberResponse.Builder,GetLinkedWhatsAppBusinessAccountPhoneNumberResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlinkedWhatsAppBusinessAccountId(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.
-