Package org.cdk8s.plus25.k8s
Class HostPathVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.HostPathVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostPathVolumeSource>
- Enclosing interface:
- HostPathVolumeSource
@Stability(Stable) public static final class HostPathVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<HostPathVolumeSource>
A builder forHostPathVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostPathVolumeSourcebuild()Builds the configured instance.HostPathVolumeSource.Builderpath(String path)Sets the value ofHostPathVolumeSource.getPath()HostPathVolumeSource.Buildertype(String type)Sets the value ofHostPathVolumeSource.getType()
-
-
-
Method Detail
-
path
@Stability(Stable) public HostPathVolumeSource.Builder path(String path)
Sets the value ofHostPathVolumeSource.getPath()- Parameters:
path- path of the directory on the host. This parameter is required. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath- Returns:
this
-
type
@Stability(Stable) public HostPathVolumeSource.Builder type(String type)
Sets the value ofHostPathVolumeSource.getType()- Parameters:
type- type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath.- Returns:
this
-
build
@Stability(Stable) public HostPathVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HostPathVolumeSource>- Returns:
- a new instance of
HostPathVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-