Class CfnReceiptRule.RuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnReceiptRule.RuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptRule.RuleProperty>
- Enclosing interface:
- CfnReceiptRule.RuleProperty
@Stability(Stable)
public static final class CfnReceiptRule.RuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptRule.RuleProperty>
A builder for
CfnReceiptRule.RuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnReceiptRule.RuleProperty.getActions()actions(IResolvable actions) Sets the value ofCfnReceiptRule.RuleProperty.getActions()build()Builds the configured instance.Sets the value ofCfnReceiptRule.RuleProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnReceiptRule.RuleProperty.getEnabled()Sets the value ofCfnReceiptRule.RuleProperty.getName()recipients(List<String> recipients) Sets the value ofCfnReceiptRule.RuleProperty.getRecipients()scanEnabled(Boolean scanEnabled) Sets the value ofCfnReceiptRule.RuleProperty.getScanEnabled()scanEnabled(IResolvable scanEnabled) Sets the value ofCfnReceiptRule.RuleProperty.getScanEnabled()Sets the value ofCfnReceiptRule.RuleProperty.getTlsPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnReceiptRule.RuleProperty.getActions()- Parameters:
actions- An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.- Returns:
this
-
actions
@Stability(Stable) public CfnReceiptRule.RuleProperty.Builder actions(List<? extends Object> actions) Sets the value ofCfnReceiptRule.RuleProperty.getActions()- Parameters:
actions- An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.- Returns:
this
-
enabled
Sets the value ofCfnReceiptRule.RuleProperty.getEnabled()- Parameters:
enabled- Iftrue, the receipt rule is active. The default value isfalse.- Returns:
this
-
enabled
Sets the value ofCfnReceiptRule.RuleProperty.getEnabled()- Parameters:
enabled- Iftrue, the receipt rule is active. The default value isfalse.- Returns:
this
-
name
Sets the value ofCfnReceiptRule.RuleProperty.getName()- Parameters:
name- The name of the receipt rule. The name must meet the following requirements:.- Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or periods (.).
- Start and end with a letter or number.
- Contain 64 characters or fewer.
- Returns:
this
-
recipients
Sets the value ofCfnReceiptRule.RuleProperty.getRecipients()- Parameters:
recipients- The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule matches all recipients on all verified domains.- Returns:
this
-
scanEnabled
Sets the value ofCfnReceiptRule.RuleProperty.getScanEnabled()- Parameters:
scanEnabled- Iftrue, then messages that this receipt rule applies to are scanned for spam and viruses. The default value isfalse.- Returns:
this
-
scanEnabled
Sets the value ofCfnReceiptRule.RuleProperty.getScanEnabled()- Parameters:
scanEnabled- Iftrue, then messages that this receipt rule applies to are scanned for spam and viruses. The default value isfalse.- Returns:
this
-
tlsPolicy
Sets the value ofCfnReceiptRule.RuleProperty.getTlsPolicy()- Parameters:
tlsPolicy- Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set toRequire, Amazon SES bounces emails that are not received over TLS. The default isOptional.Valid Values:
Require | Optional- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReceiptRule.RuleProperty>- Returns:
- a new instance of
CfnReceiptRule.RuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-