Class StringConditions.Builder
java.lang.Object
software.amazon.awscdk.services.sns.StringConditions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StringConditions>
- Enclosing interface:
StringConditions
@Stability(Stable)
public static final class StringConditions.Builder
extends Object
implements software.amazon.jsii.Builder<StringConditions>
A builder for
StringConditions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofStringConditions.getAllowlist()
Deprecated.use `denylist`build()
Builds the configured instance.Sets the value ofStringConditions.getDenylist()
matchPrefixes
(List<String> matchPrefixes) Sets the value ofStringConditions.getMatchPrefixes()
Deprecated.use `allowlist`
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowlist
Sets the value ofStringConditions.getAllowlist()
- Parameters:
allowlist
- Match one or more values.- Returns:
this
-
blacklist
@Stability(Deprecated) @Deprecated public StringConditions.Builder blacklist(List<String> blacklist) Deprecated.use `denylist`Sets the value ofStringConditions.getBlacklist()
- Parameters:
blacklist
- Match any value that doesn't include any of the specified values.- Returns:
this
-
denylist
Sets the value ofStringConditions.getDenylist()
- Parameters:
denylist
- Match any value that doesn't include any of the specified values.- Returns:
this
-
matchPrefixes
Sets the value ofStringConditions.getMatchPrefixes()
- Parameters:
matchPrefixes
- Matches values that begins with the specified prefixes.- Returns:
this
-
whitelist
@Stability(Deprecated) @Deprecated public StringConditions.Builder whitelist(List<String> whitelist) Deprecated.use `allowlist`Sets the value ofStringConditions.getWhitelist()
- Parameters:
whitelist
- Match one or more values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StringConditions>
- Returns:
- a new instance of
StringConditions
- Throws:
NullPointerException
- if any required attribute was not provided
-