Class CfnCampaignPropsMixin.TemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.pinpoint.mixins.CfnCampaignPropsMixin.TemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignPropsMixin.TemplateProperty>
- Enclosing interface:
CfnCampaignPropsMixin.TemplateProperty
@Stability(Stable)
public static final class CfnCampaignPropsMixin.TemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaignPropsMixin.TemplateProperty>
A builder for
CfnCampaignPropsMixin.TemplateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCampaignPropsMixin.TemplateProperty.getName()Sets the value ofCfnCampaignPropsMixin.TemplateProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCampaignPropsMixin.TemplateProperty.getName()- Parameters:
name- The name of the message template to use for the message. If specified, this value must match the name of an existing message template.- Returns:
this
-
version
Sets the value ofCfnCampaignPropsMixin.TemplateProperty.getVersion()- Parameters:
version- The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignPropsMixin.TemplateProperty>- Returns:
- a new instance of
CfnCampaignPropsMixin.TemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-