Interface MessageTemplateContentProvider.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MessageTemplateContentProvider.Builder,
,MessageTemplateContentProvider> SdkBuilder<MessageTemplateContentProvider.Builder,
,MessageTemplateContentProvider> SdkPojo
- Enclosing class:
MessageTemplateContentProvider
@Mutable
@NotThreadSafe
public static interface MessageTemplateContentProvider.Builder
extends SdkPojo, CopyableBuilder<MessageTemplateContentProvider.Builder,MessageTemplateContentProvider>
-
Method Summary
Modifier and TypeMethodDescriptionThe content of the message template that applies to the email channel subtype.email
(EmailMessageTemplateContent email) The content of the message template that applies to the email channel subtype.The content of the message template that applies to the SMS channel subtype.The content of the message template that applies to the SMS channel subtype.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
-
email
The content of the message template that applies to the email channel subtype.
- Parameters:
email
- The content of the message template that applies to the email channel subtype.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
email
default MessageTemplateContentProvider.Builder email(Consumer<EmailMessageTemplateContent.Builder> email) The content of the message template that applies to the email channel subtype.
This is a convenience method that creates an instance of theEmailMessageTemplateContent.Builder
avoiding the need to create one manually viaEmailMessageTemplateContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toemail(EmailMessageTemplateContent)
.- Parameters:
email
- a consumer that will call methods onEmailMessageTemplateContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sms
The content of the message template that applies to the SMS channel subtype.
- Parameters:
sms
- The content of the message template that applies to the SMS channel subtype.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sms
The content of the message template that applies to the SMS channel subtype.
This is a convenience method that creates an instance of theSMSMessageTemplateContent.Builder
avoiding the need to create one manually viaSMSMessageTemplateContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosms(SMSMessageTemplateContent)
.- Parameters:
sms
- a consumer that will call methods onSMSMessageTemplateContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-