Package org.cdk8s.plus24
Class HostPathVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.HostPathVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostPathVolumeOptions>
- Enclosing interface:
- HostPathVolumeOptions
@Stability(Stable) public static final class HostPathVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<HostPathVolumeOptions>
A builder forHostPathVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostPathVolumeOptionsbuild()Builds the configured instance.HostPathVolumeOptions.Builderpath(String path)Sets the value ofHostPathVolumeOptions.getPath()HostPathVolumeOptions.Buildertype(HostPathVolumeType type)Sets the value ofHostPathVolumeOptions.getType()
-
-
-
Method Detail
-
path
@Stability(Stable) public HostPathVolumeOptions.Builder path(String path)
Sets the value ofHostPathVolumeOptions.getPath()- Parameters:
path- The path of the directory on the host. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public HostPathVolumeOptions.Builder type(HostPathVolumeType type)
Sets the value ofHostPathVolumeOptions.getType()- Parameters:
type- The expected type of the path found on the host.- Returns:
this
-
build
@Stability(Stable) public HostPathVolumeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HostPathVolumeOptions>- Returns:
- a new instance of
HostPathVolumeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-