Package org.cdk8s
Class NameOptions.Builder
- java.lang.Object
-
- org.cdk8s.NameOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NameOptions>
- Enclosing interface:
- NameOptions
@Stability(Stable) public static final class NameOptions.Builder extends Object implements software.amazon.jsii.Builder<NameOptions>
A builder forNameOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameOptions
build()
Builds the configured instance.NameOptions.Builder
delimiter(String delimiter)
Sets the value ofNameOptions.getDelimiter()
NameOptions.Builder
extra(List<String> extra)
Sets the value ofNameOptions.getExtra()
NameOptions.Builder
includeHash(Boolean includeHash)
Sets the value ofNameOptions.getIncludeHash()
NameOptions.Builder
maxLen(Number maxLen)
Sets the value ofNameOptions.getMaxLen()
-
-
-
Method Detail
-
delimiter
@Stability(Stable) public NameOptions.Builder delimiter(String delimiter)
Sets the value ofNameOptions.getDelimiter()
- Parameters:
delimiter
- Delimiter to use between components.- Returns:
this
-
extra
@Stability(Stable) public NameOptions.Builder extra(List<String> extra)
Sets the value ofNameOptions.getExtra()
- Parameters:
extra
- Extra components to include in the name.- Returns:
this
-
includeHash
@Stability(Stable) public NameOptions.Builder includeHash(Boolean includeHash)
Sets the value ofNameOptions.getIncludeHash()
- Parameters:
includeHash
- Include a short hash as last part of the name.- Returns:
this
-
maxLen
@Stability(Stable) public NameOptions.Builder maxLen(Number maxLen)
Sets the value ofNameOptions.getMaxLen()
- Parameters:
maxLen
- Maximum allowed length for the name.- Returns:
this
-
build
@Stability(Stable) public NameOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NameOptions>
- Returns:
- a new instance of
NameOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-