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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofStringConditions.getAllowlist()build()Builds the configured instance.Sets the value ofStringConditions.getDenylist()matchPrefixes(List<String> matchPrefixes) Sets the value ofStringConditions.getMatchPrefixes()matchSuffixes(List<String> matchSuffixes) Sets the value ofStringConditions.getMatchSuffixes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowlist
Sets the value ofStringConditions.getAllowlist()- Parameters:
allowlist- Match one or more 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
-
matchSuffixes
Sets the value ofStringConditions.getMatchSuffixes()- Parameters:
matchSuffixes- Matches values that end with the specified suffixes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StringConditions>- Returns:
- a new instance of
StringConditions - Throws:
NullPointerException- if any required attribute was not provided
-