Package org.cdk8s.plus23.k8s
Class KeyToPath.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KeyToPath.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyToPath
build()
Builds the configured instance.KeyToPath.Builder
key(String key)
Sets the value ofKeyToPath.getKey()
KeyToPath.Builder
mode(Number mode)
Sets the value ofKeyToPath.getMode()
KeyToPath.Builder
path(String path)
Sets the value ofKeyToPath.getPath()
-
-
-
Method Detail
-
key
@Stability(Stable) public KeyToPath.Builder key(String key)
Sets the value ofKeyToPath.getKey()
- Parameters:
key
- The key to project. This parameter is required.- Returns:
this
-
path
@Stability(Stable) public KeyToPath.Builder path(String path)
Sets the value ofKeyToPath.getPath()
- Parameters:
path
- The relative path of the file to map the key to. This parameter is required. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.- Returns:
this
-
mode
@Stability(Stable) public KeyToPath.Builder mode(Number mode)
Sets the value ofKeyToPath.getMode()
- Parameters:
mode
- Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.- Returns:
this
-
build
@Stability(Stable) public KeyToPath build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KeyToPath>
- Returns:
- a new instance of
KeyToPath
- Throws:
NullPointerException
- if any required attribute was not provided
-
-