Class CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty>
- Enclosing interface:
CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty>
A builder for
CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.headerName(String headerName) Sets the value ofCfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.getHeaderName()headerValue(String headerValue) Sets the value ofCfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.getHeaderValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerName
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.Builder headerName(String headerName) Sets the value ofCfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.getHeaderName()- Parameters:
headerName- The name of the header to add to an email. The header must be prefixed with "X-". Headers are added regardless of whether the header name pre-existed in the email.- Returns:
this
-
headerValue
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.Builder headerValue(String headerValue) Sets the value ofCfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty.getHeaderValue()- Parameters:
headerValue- The value of the header to add to the email.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-