Class CfnReceiptRulePropsMixin.AddHeaderActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnReceiptRulePropsMixin.AddHeaderActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptRulePropsMixin.AddHeaderActionProperty>
- Enclosing interface:
CfnReceiptRulePropsMixin.AddHeaderActionProperty
@Stability(Stable)
public static final class CfnReceiptRulePropsMixin.AddHeaderActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptRulePropsMixin.AddHeaderActionProperty>
A builder for
CfnReceiptRulePropsMixin.AddHeaderActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.headerName(String headerName) Sets the value ofCfnReceiptRulePropsMixin.AddHeaderActionProperty.getHeaderName()headerValue(String headerValue) Sets the value ofCfnReceiptRulePropsMixin.AddHeaderActionProperty.getHeaderValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerName
@Stability(Stable) public CfnReceiptRulePropsMixin.AddHeaderActionProperty.Builder headerName(String headerName) Sets the value ofCfnReceiptRulePropsMixin.AddHeaderActionProperty.getHeaderName()- Parameters:
headerName- The name of the header to add to the incoming message. The name must contain at least one character, and can contain up to 50 characters. It consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes.- Returns:
this
-
headerValue
@Stability(Stable) public CfnReceiptRulePropsMixin.AddHeaderActionProperty.Builder headerValue(String headerValue) Sets the value ofCfnReceiptRulePropsMixin.AddHeaderActionProperty.getHeaderValue()- Parameters:
headerValue- The content to include in the header. This value can contain up to 2048 characters. It can't contain newline (\n) or carriage return (\r) characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReceiptRulePropsMixin.AddHeaderActionProperty>- Returns:
- a new instance of
CfnReceiptRulePropsMixin.AddHeaderActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-