Class CfnReceiptRule.AddHeaderActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnReceiptRule.AddHeaderActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptRule.AddHeaderActionProperty>
- Enclosing interface:
- CfnReceiptRule.AddHeaderActionProperty
@Stability(Stable)
public static final class CfnReceiptRule.AddHeaderActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptRule.AddHeaderActionProperty>
A builder for
CfnReceiptRule.AddHeaderActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.headerName
(String headerName) Sets the value ofCfnReceiptRule.AddHeaderActionProperty.getHeaderName()
headerValue
(String headerValue) Sets the value ofCfnReceiptRule.AddHeaderActionProperty.getHeaderValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerName
@Stability(Stable) public CfnReceiptRule.AddHeaderActionProperty.Builder headerName(String headerName) Sets the value ofCfnReceiptRule.AddHeaderActionProperty.getHeaderName()
- Parameters:
headerName
- The name of the header to add to the incoming message. This parameter is required. 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 CfnReceiptRule.AddHeaderActionProperty.Builder headerValue(String headerValue) Sets the value ofCfnReceiptRule.AddHeaderActionProperty.getHeaderValue()
- Parameters:
headerValue
- The content to include in the header. This parameter is required. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnReceiptRule.AddHeaderActionProperty>
- Returns:
- a new instance of
CfnReceiptRule.AddHeaderActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-