Class NumericConditions.Builder
java.lang.Object
software.amazon.awscdk.services.sns.NumericConditions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NumericConditions>
- Enclosing interface:
NumericConditions
@Stability(Stable)
public static final class NumericConditions.Builder
extends Object
implements software.amazon.jsii.Builder<NumericConditions>
A builder for
NumericConditions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofNumericConditions.getAllowlist()
between
(BetweenCondition between) Sets the value ofNumericConditions.getBetween()
betweenStrict
(BetweenCondition betweenStrict) Sets the value ofNumericConditions.getBetweenStrict()
build()
Builds the configured instance.greaterThan
(Number greaterThan) Sets the value ofNumericConditions.getGreaterThan()
greaterThanOrEqualTo
(Number greaterThanOrEqualTo) Sets the value ofNumericConditions.getGreaterThanOrEqualTo()
Sets the value ofNumericConditions.getLessThan()
lessThanOrEqualTo
(Number lessThanOrEqualTo) Sets the value ofNumericConditions.getLessThanOrEqualTo()
Deprecated.use `allowlist`
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowlist
Sets the value ofNumericConditions.getAllowlist()
- Parameters:
allowlist
- Match one or more values.- Returns:
this
-
between
Sets the value ofNumericConditions.getBetween()
- Parameters:
between
- Match values that are between the specified values.- Returns:
this
-
betweenStrict
Sets the value ofNumericConditions.getBetweenStrict()
- Parameters:
betweenStrict
- Match values that are strictly between the specified values.- Returns:
this
-
greaterThan
Sets the value ofNumericConditions.getGreaterThan()
- Parameters:
greaterThan
- Match values that are greater than the specified value.- Returns:
this
-
greaterThanOrEqualTo
@Stability(Stable) public NumericConditions.Builder greaterThanOrEqualTo(Number greaterThanOrEqualTo) Sets the value ofNumericConditions.getGreaterThanOrEqualTo()
- Parameters:
greaterThanOrEqualTo
- Match values that are greater than or equal to the specified value.- Returns:
this
-
lessThan
Sets the value ofNumericConditions.getLessThan()
- Parameters:
lessThan
- Match values that are less than the specified value.- Returns:
this
-
lessThanOrEqualTo
Sets the value ofNumericConditions.getLessThanOrEqualTo()
- Parameters:
lessThanOrEqualTo
- Match values that are less than or equal to the specified value.- Returns:
this
-
whitelist
@Stability(Deprecated) @Deprecated public NumericConditions.Builder whitelist(List<? extends Number> whitelist) Deprecated.use `allowlist`Sets the value ofNumericConditions.getWhitelist()
- Parameters:
whitelist
- Match one or more values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NumericConditions>
- Returns:
- a new instance of
NumericConditions
- Throws:
NullPointerException
- if any required attribute was not provided
-