Class CfnCampaign.TemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.TemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.TemplateProperty>
- Enclosing interface:
CfnCampaign.TemplateProperty
@Stability(Stable)
public static final class CfnCampaign.TemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.TemplateProperty>
A builder for
CfnCampaign.TemplateProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCampaign.TemplateProperty.getName()
Sets the value ofCfnCampaign.TemplateProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCampaign.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 ofCfnCampaign.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnCampaign.TemplateProperty>
- Returns:
- a new instance of
CfnCampaign.TemplateProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-