Interface RuleIpExpression.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuleIpExpression.Builder,RuleIpExpression>,SdkBuilder<RuleIpExpression.Builder,RuleIpExpression>,SdkPojo
- Enclosing class:
- RuleIpExpression
public static interface RuleIpExpression.Builder extends SdkPojo, CopyableBuilder<RuleIpExpression.Builder,RuleIpExpression>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RuleIpExpression.Builderevaluate(Consumer<RuleIpToEvaluate.Builder> evaluate)The IP address to evaluate in this condition.RuleIpExpression.Builderevaluate(RuleIpToEvaluate evaluate)The IP address to evaluate in this condition.RuleIpExpression.Builderoperator(String operator)The operator to evaluate the IP address.RuleIpExpression.Builderoperator(RuleIpOperator operator)The operator to evaluate the IP address.RuleIpExpression.Buildervalues(String... 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.RuleIpExpression.Buildervalues(Collection<String> 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.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
evaluate
RuleIpExpression.Builder evaluate(RuleIpToEvaluate evaluate)
The IP address to evaluate in this condition.
- Parameters:
evaluate- The IP address to evaluate in this condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluate
default RuleIpExpression.Builder evaluate(Consumer<RuleIpToEvaluate.Builder> evaluate)
The IP address to evaluate in this condition.
This is a convenience method that creates an instance of theRuleIpToEvaluate.Builderavoiding the need to create one manually viaRuleIpToEvaluate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluate(RuleIpToEvaluate).- Parameters:
evaluate- a consumer that will call methods onRuleIpToEvaluate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
evaluate(RuleIpToEvaluate)
-
operator
RuleIpExpression.Builder operator(String operator)
The operator to evaluate the IP address.
- Parameters:
operator- The operator to evaluate the IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RuleIpOperator,RuleIpOperator
-
operator
RuleIpExpression.Builder operator(RuleIpOperator operator)
The operator to evaluate the IP address.
- Parameters:
operator- The operator to evaluate the IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RuleIpOperator,RuleIpOperator
-
values
RuleIpExpression.Builder values(Collection<String> 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
values
RuleIpExpression.Builder values(String... 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
-