Class CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty>
- Enclosing interface:
CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty>
A builder for
CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.getEvaluate()evaluate(IResolvable evaluate) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.getEvaluate()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.getOperator()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
evaluate
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.Builder evaluate(IResolvable evaluate) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.getEvaluate()- Parameters:
evaluate- The IP address to evaluate in this condition.- Returns:
this
-
evaluate
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.Builder evaluate(CfnMailManagerRuleSetPropsMixin.RuleIpToEvaluateProperty evaluate) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.getEvaluate()- Parameters:
evaluate- The IP address to evaluate in this condition.- Returns:
this
-
operator
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.Builder operator(String operator) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.getOperator()- Parameters:
operator- The operator to evaluate the IP address.- Returns:
this
-
values
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.Builder values(List<String> values) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty.getValues()- Parameters:
values- The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSetPropsMixin.RuleIpExpressionProperty - Throws:
NullPointerException- if any required attribute was not provided
-