public static final class CfnCampaign.TemplateProperty.Builder
extends java.lang.Object
CfnCampaign.TemplateProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCampaign.TemplateProperty |
build()
Builds the configured instance.
|
CfnCampaign.TemplateProperty.Builder |
name(java.lang.String name)
Sets the value of
CfnCampaign.TemplateProperty.getName() |
CfnCampaign.TemplateProperty.Builder |
version(java.lang.String version)
Sets the value of
CfnCampaign.TemplateProperty.getVersion() |
public CfnCampaign.TemplateProperty.Builder name(java.lang.String name)
CfnCampaign.TemplateProperty.getName()
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.this
public CfnCampaign.TemplateProperty.Builder version(java.lang.String version)
CfnCampaign.TemplateProperty.getVersion()
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.
this
public CfnCampaign.TemplateProperty build()
CfnCampaign.TemplateProperty
java.lang.NullPointerException
- if any required attribute was not provided