Package org.cdk8s.plus24
Class PathMapping.Builder
- java.lang.Object
-
- org.cdk8s.plus24.PathMapping.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PathMapping>
- Enclosing interface:
- PathMapping
@Stability(Stable) public static final class PathMapping.Builder extends Object implements software.amazon.jsii.Builder<PathMapping>
A builder forPathMapping
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathMapping
build()
Builds the configured instance.PathMapping.Builder
mode(Number mode)
Sets the value ofPathMapping.getMode()
PathMapping.Builder
path(String path)
Sets the value ofPathMapping.getPath()
-
-
-
Method Detail
-
path
@Stability(Stable) public PathMapping.Builder path(String path)
Sets the value ofPathMapping.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 PathMapping.Builder mode(Number mode)
Sets the value ofPathMapping.getMode()
- Parameters:
mode
- Optional: mode bits to use on this file, must be a value between 0 and 0777. 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 PathMapping build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PathMapping>
- Returns:
- a new instance of
PathMapping
- Throws:
NullPointerException
- if any required attribute was not provided
-
-