Interface CreateMessageTemplateAttachmentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateMessageTemplateAttachmentResponse.Builder,
,CreateMessageTemplateAttachmentResponse> QConnectResponse.Builder
,SdkBuilder<CreateMessageTemplateAttachmentResponse.Builder,
,CreateMessageTemplateAttachmentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateMessageTemplateAttachmentResponse
@Mutable
@NotThreadSafe
public static interface CreateMessageTemplateAttachmentResponse.Builder
extends QConnectResponse.Builder, SdkPojo, CopyableBuilder<CreateMessageTemplateAttachmentResponse.Builder,CreateMessageTemplateAttachmentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionattachment
(Consumer<MessageTemplateAttachment.Builder> attachment) The message template attachment.attachment
(MessageTemplateAttachment attachment) The message template attachment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
attachment
The message template attachment.
- Parameters:
attachment
- The message template attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachment
default CreateMessageTemplateAttachmentResponse.Builder attachment(Consumer<MessageTemplateAttachment.Builder> attachment) The message template attachment.
This is a convenience method that creates an instance of theMessageTemplateAttachment.Builder
avoiding the need to create one manually viaMessageTemplateAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachment(MessageTemplateAttachment)
.- Parameters:
attachment
- a consumer that will call methods onMessageTemplateAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-