Interface TemplateConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TemplateConfiguration.Builder,TemplateConfiguration>,SdkBuilder<TemplateConfiguration.Builder,TemplateConfiguration>,SdkPojo
- Enclosing class:
- TemplateConfiguration
public static interface TemplateConfiguration.Builder extends SdkPojo, CopyableBuilder<TemplateConfiguration.Builder,TemplateConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TemplateConfiguration.BuilderemailTemplate(Consumer<Template.Builder> emailTemplate)The email template to use for the message.TemplateConfiguration.BuilderemailTemplate(Template emailTemplate)The email template to use for the message.default TemplateConfiguration.BuilderinAppTemplate(Consumer<Template.Builder> inAppTemplate)The InApp template to use for the message.TemplateConfiguration.BuilderinAppTemplate(Template inAppTemplate)The InApp template to use for the message.default TemplateConfiguration.BuilderpushTemplate(Consumer<Template.Builder> pushTemplate)The push notification template to use for the message.TemplateConfiguration.BuilderpushTemplate(Template pushTemplate)The push notification template to use for the message.default TemplateConfiguration.BuildersmsTemplate(Consumer<Template.Builder> smsTemplate)The SMS template to use for the message.TemplateConfiguration.BuildersmsTemplate(Template smsTemplate)The SMS template to use for the message.default TemplateConfiguration.BuildervoiceTemplate(Consumer<Template.Builder> voiceTemplate)The voice template to use for the message.TemplateConfiguration.BuildervoiceTemplate(Template voiceTemplate)The voice template to use for the message.-
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, sdkFields
-
-
-
-
Method Detail
-
emailTemplate
TemplateConfiguration.Builder emailTemplate(Template emailTemplate)
The email template to use for the message.
- Parameters:
emailTemplate- The email template to use for the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailTemplate
default TemplateConfiguration.Builder emailTemplate(Consumer<Template.Builder> emailTemplate)
The email template to use for the message.
This is a convenience method that creates an instance of theTemplate.Builderavoiding the need to create one manually viaTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toemailTemplate(Template).- Parameters:
emailTemplate- a consumer that will call methods onTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
emailTemplate(Template)
-
pushTemplate
TemplateConfiguration.Builder pushTemplate(Template pushTemplate)
The push notification template to use for the message.
- Parameters:
pushTemplate- The push notification template to use for the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pushTemplate
default TemplateConfiguration.Builder pushTemplate(Consumer<Template.Builder> pushTemplate)
The push notification template to use for the message.
This is a convenience method that creates an instance of theTemplate.Builderavoiding the need to create one manually viaTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topushTemplate(Template).- Parameters:
pushTemplate- a consumer that will call methods onTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
pushTemplate(Template)
-
smsTemplate
TemplateConfiguration.Builder smsTemplate(Template smsTemplate)
The SMS template to use for the message.
- Parameters:
smsTemplate- The SMS template to use for the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
smsTemplate
default TemplateConfiguration.Builder smsTemplate(Consumer<Template.Builder> smsTemplate)
The SMS template to use for the message.
This is a convenience method that creates an instance of theTemplate.Builderavoiding the need to create one manually viaTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosmsTemplate(Template).- Parameters:
smsTemplate- a consumer that will call methods onTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
smsTemplate(Template)
-
voiceTemplate
TemplateConfiguration.Builder voiceTemplate(Template voiceTemplate)
The voice template to use for the message. This object isn't supported for campaigns.
- Parameters:
voiceTemplate- The voice template to use for the message. This object isn't supported for campaigns.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
voiceTemplate
default TemplateConfiguration.Builder voiceTemplate(Consumer<Template.Builder> voiceTemplate)
The voice template to use for the message. This object isn't supported for campaigns.
This is a convenience method that creates an instance of theTemplate.Builderavoiding the need to create one manually viaTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovoiceTemplate(Template).- Parameters:
voiceTemplate- a consumer that will call methods onTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
voiceTemplate(Template)
-
inAppTemplate
TemplateConfiguration.Builder inAppTemplate(Template inAppTemplate)
The InApp template to use for the message. The InApp template object is not supported for SendMessages.
- Parameters:
inAppTemplate- The InApp template to use for the message. The InApp template object is not supported for SendMessages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inAppTemplate
default TemplateConfiguration.Builder inAppTemplate(Consumer<Template.Builder> inAppTemplate)
The InApp template to use for the message. The InApp template object is not supported for SendMessages.
This is a convenience method that creates an instance of theTemplate.Builderavoiding the need to create one manually viaTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinAppTemplate(Template).- Parameters:
inAppTemplate- a consumer that will call methods onTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inAppTemplate(Template)
-
-