Interface MessageTemplateContentProvider.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MessageTemplateContentProvider.Builder,,MessageTemplateContentProvider> SdkBuilder<MessageTemplateContentProvider.Builder,,MessageTemplateContentProvider> SdkPojo
- Enclosing class:
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.Sets the value of the Push property for this object.Sets the value of the Push property for this object.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.The content of the message template that applies to the WHATSAPP channel subtype.whatsApp(WhatsAppMessageTemplateContent whatsApp) The content of the message template that applies to the WHATSAPP channel subtype.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, 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.Builderavoiding the need to create one manually viaEmailMessageTemplateContent.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaSMSMessageTemplateContent.builder().When the
Consumercompletes,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:
-
whatsApp
The content of the message template that applies to the WHATSAPP channel subtype.
- Parameters:
whatsApp- The content of the message template that applies to the WHATSAPP channel subtype.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
whatsApp
default MessageTemplateContentProvider.Builder whatsApp(Consumer<WhatsAppMessageTemplateContent.Builder> whatsApp) The content of the message template that applies to the WHATSAPP channel subtype.
This is a convenience method that creates an instance of theWhatsAppMessageTemplateContent.Builderavoiding the need to create one manually viaWhatsAppMessageTemplateContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towhatsApp(WhatsAppMessageTemplateContent).- Parameters:
whatsApp- a consumer that will call methods onWhatsAppMessageTemplateContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
push
Sets the value of the Push property for this object.- Parameters:
push- The new value for the Push property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
push
default MessageTemplateContentProvider.Builder push(Consumer<PushMessageTemplateContent.Builder> push) Sets the value of the Push property for this object. This is a convenience method that creates an instance of thePushMessageTemplateContent.Builderavoiding the need to create one manually viaPushMessageTemplateContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topush(PushMessageTemplateContent).- Parameters:
push- a consumer that will call methods onPushMessageTemplateContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-