Package software.amazon.awscdk
Class UniqueResourceNameOptions.Builder
java.lang.Object
software.amazon.awscdk.UniqueResourceNameOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UniqueResourceNameOptions>
- Enclosing interface:
UniqueResourceNameOptions
@Stability(Stable)
public static final class UniqueResourceNameOptions.Builder
extends Object
implements software.amazon.jsii.Builder<UniqueResourceNameOptions>
A builder for
UniqueResourceNameOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedSpecialCharacters(String allowedSpecialCharacters) Sets the value ofUniqueResourceNameOptions.getAllowedSpecialCharacters()build()Builds the configured instance.Sets the value ofUniqueResourceNameOptions.getMaxLength()Sets the value ofUniqueResourceNameOptions.getSeparator()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedSpecialCharacters
@Stability(Stable) public UniqueResourceNameOptions.Builder allowedSpecialCharacters(String allowedSpecialCharacters) Sets the value ofUniqueResourceNameOptions.getAllowedSpecialCharacters()- Parameters:
allowedSpecialCharacters- Non-alphanumeric characters allowed in the unique resource name.- Returns:
this
-
maxLength
Sets the value ofUniqueResourceNameOptions.getMaxLength()- Parameters:
maxLength- The maximum length of the unique resource name.- Returns:
this
-
separator
Sets the value ofUniqueResourceNameOptions.getSeparator()- Parameters:
separator- The separator used between the path components.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UniqueResourceNameOptions>- Returns:
- a new instance of
UniqueResourceNameOptions - Throws:
NullPointerException- if any required attribute was not provided
-