Class CfnMailManagerTrafficPolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerTrafficPolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerTrafficPolicyMixinProps>
- Enclosing interface:
CfnMailManagerTrafficPolicyMixinProps
@Stability(Stable)
public static final class CfnMailManagerTrafficPolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerTrafficPolicyMixinProps>
A builder for
CfnMailManagerTrafficPolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultAction(String defaultAction) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getDefaultAction()maxMessageSizeBytes(Number maxMessageSizeBytes) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getMaxMessageSizeBytes()policyStatements(List<? extends Object> policyStatements) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getPolicyStatements()policyStatements(IResolvable policyStatements) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getPolicyStatements()Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getTags()trafficPolicyName(String trafficPolicyName) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getTrafficPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultAction
@Stability(Stable) public CfnMailManagerTrafficPolicyMixinProps.Builder defaultAction(String defaultAction) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getDefaultAction()- Parameters:
defaultAction- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements.- Returns:
this
-
maxMessageSizeBytes
@Stability(Stable) public CfnMailManagerTrafficPolicyMixinProps.Builder maxMessageSizeBytes(Number maxMessageSizeBytes) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getMaxMessageSizeBytes()- Parameters:
maxMessageSizeBytes- The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.- Returns:
this
-
policyStatements
@Stability(Stable) public CfnMailManagerTrafficPolicyMixinProps.Builder policyStatements(IResolvable policyStatements) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getPolicyStatements()- Parameters:
policyStatements- Conditional statements for filtering email traffic.- Returns:
this
-
policyStatements
@Stability(Stable) public CfnMailManagerTrafficPolicyMixinProps.Builder policyStatements(List<? extends Object> policyStatements) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getPolicyStatements()- Parameters:
policyStatements- Conditional statements for filtering email traffic.- Returns:
this
-
tags
@Stability(Stable) public CfnMailManagerTrafficPolicyMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getTags()- Parameters:
tags- The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.- Returns:
this
-
trafficPolicyName
@Stability(Stable) public CfnMailManagerTrafficPolicyMixinProps.Builder trafficPolicyName(String trafficPolicyName) Sets the value ofCfnMailManagerTrafficPolicyMixinProps.getTrafficPolicyName()- Parameters:
trafficPolicyName- The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerTrafficPolicyMixinProps>- Returns:
- a new instance of
CfnMailManagerTrafficPolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-