Class CfnCampaign.TemplateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.TemplateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.TemplateConfigurationProperty>
- Enclosing interface:
CfnCampaign.TemplateConfigurationProperty
@Stability(Stable)
public static final class CfnCampaign.TemplateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.TemplateConfigurationProperty>
A builder for
CfnCampaign.TemplateConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.emailTemplate
(IResolvable emailTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getEmailTemplate()
emailTemplate
(CfnCampaign.TemplateProperty emailTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getEmailTemplate()
pushTemplate
(IResolvable pushTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getPushTemplate()
pushTemplate
(CfnCampaign.TemplateProperty pushTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getPushTemplate()
smsTemplate
(IResolvable smsTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getSmsTemplate()
smsTemplate
(CfnCampaign.TemplateProperty smsTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getSmsTemplate()
voiceTemplate
(IResolvable voiceTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getVoiceTemplate()
voiceTemplate
(CfnCampaign.TemplateProperty voiceTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getVoiceTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emailTemplate
@Stability(Stable) public CfnCampaign.TemplateConfigurationProperty.Builder emailTemplate(IResolvable emailTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getEmailTemplate()
- Parameters:
emailTemplate
- The email template to use for the message.- Returns:
this
-
emailTemplate
@Stability(Stable) public CfnCampaign.TemplateConfigurationProperty.Builder emailTemplate(CfnCampaign.TemplateProperty emailTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getEmailTemplate()
- Parameters:
emailTemplate
- The email template to use for the message.- Returns:
this
-
pushTemplate
@Stability(Stable) public CfnCampaign.TemplateConfigurationProperty.Builder pushTemplate(IResolvable pushTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getPushTemplate()
- Parameters:
pushTemplate
- The push notification template to use for the message.- Returns:
this
-
pushTemplate
@Stability(Stable) public CfnCampaign.TemplateConfigurationProperty.Builder pushTemplate(CfnCampaign.TemplateProperty pushTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getPushTemplate()
- Parameters:
pushTemplate
- The push notification template to use for the message.- Returns:
this
-
smsTemplate
@Stability(Stable) public CfnCampaign.TemplateConfigurationProperty.Builder smsTemplate(IResolvable smsTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getSmsTemplate()
- Parameters:
smsTemplate
- The SMS template to use for the message.- Returns:
this
-
smsTemplate
@Stability(Stable) public CfnCampaign.TemplateConfigurationProperty.Builder smsTemplate(CfnCampaign.TemplateProperty smsTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getSmsTemplate()
- Parameters:
smsTemplate
- The SMS template to use for the message.- Returns:
this
-
voiceTemplate
@Stability(Stable) public CfnCampaign.TemplateConfigurationProperty.Builder voiceTemplate(IResolvable voiceTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getVoiceTemplate()
- Parameters:
voiceTemplate
- The voice template to use for the message. This object isn't supported for campaigns.- Returns:
this
-
voiceTemplate
@Stability(Stable) public CfnCampaign.TemplateConfigurationProperty.Builder voiceTemplate(CfnCampaign.TemplateProperty voiceTemplate) Sets the value ofCfnCampaign.TemplateConfigurationProperty.getVoiceTemplate()
- Parameters:
voiceTemplate
- The voice template to use for the message. This object isn't supported for campaigns.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCampaign.TemplateConfigurationProperty>
- Returns:
- a new instance of
CfnCampaign.TemplateConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-