Class CfnConfigurationSetEventDestination.DimensionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination.DimensionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationSetEventDestination.DimensionConfigurationProperty>
- Enclosing interface:
CfnConfigurationSetEventDestination.DimensionConfigurationProperty
@Stability(Stable)
public static final class CfnConfigurationSetEventDestination.DimensionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationSetEventDestination.DimensionConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.defaultDimensionValue
(String defaultDimensionValue) dimensionName
(String dimensionName) dimensionValueSource
(String dimensionValueSource)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultDimensionValue
@Stability(Stable) public CfnConfigurationSetEventDestination.DimensionConfigurationProperty.Builder defaultDimensionValue(String defaultDimensionValue) Sets the value ofCfnConfigurationSetEventDestination.DimensionConfigurationProperty.getDefaultDimensionValue()
- Parameters:
defaultDimensionValue
- The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This parameter is required. This value has to meet the following criteria:- It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).
- It can contain no more than 256 characters.
- Returns:
this
-
dimensionName
@Stability(Stable) public CfnConfigurationSetEventDestination.DimensionConfigurationProperty.Builder dimensionName(String dimensionName) Sets the value ofCfnConfigurationSetEventDestination.DimensionConfigurationProperty.getDimensionName()
- Parameters:
dimensionName
- The name of an Amazon CloudWatch dimension associated with an email sending metric. This parameter is required. The name has to meet the following criteria:- It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).
- It can contain no more than 256 characters.
- Returns:
this
-
dimensionValueSource
@Stability(Stable) public CfnConfigurationSetEventDestination.DimensionConfigurationProperty.Builder dimensionValueSource(String dimensionValueSource) Sets the value ofCfnConfigurationSetEventDestination.DimensionConfigurationProperty.getDimensionValueSource()
- Parameters:
dimensionValueSource
- The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. This parameter is required. Acceptable values:MESSAGE_TAG
,EMAIL_HEADER
, andLINK_TAG
.If you want Amazon Pinpoint to use the message tags that you specify using an
X-SES-MESSAGE-TAGS
header or a parameter to theSendEmail
API, chooseMESSAGE_TAG
. If you want Amazon Pinpoint to use your own email headers, chooseEMAIL_HEADER
. If you want Amazon Pinpoint to use tags that are specified in your links, chooseLINK_TAG
.- Returns:
this
-
build
@Stability(Stable) public CfnConfigurationSetEventDestination.DimensionConfigurationProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConfigurationSetEventDestination.DimensionConfigurationProperty>
- Returns:
- a new instance of
CfnConfigurationSetEventDestination.DimensionConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-