Package org.cdk8s.plus24.k8s
Class AllowedHostPathV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.AllowedHostPathV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AllowedHostPathV1Beta1>
- Enclosing interface:
- AllowedHostPathV1Beta1
@Stability(Stable) public static final class AllowedHostPathV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<AllowedHostPathV1Beta1>
A builder forAllowedHostPathV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedHostPathV1Beta1build()Builds the configured instance.AllowedHostPathV1Beta1.BuilderpathPrefix(String pathPrefix)Sets the value ofAllowedHostPathV1Beta1.getPathPrefix()AllowedHostPathV1Beta1.BuilderreadOnly(Boolean readOnly)Sets the value ofAllowedHostPathV1Beta1.getReadOnly()
-
-
-
Method Detail
-
pathPrefix
@Stability(Stable) public AllowedHostPathV1Beta1.Builder pathPrefix(String pathPrefix)
Sets the value ofAllowedHostPathV1Beta1.getPathPrefix()- Parameters:
pathPrefix- pathPrefix is the path prefix that the host volume must match. It does not support*. Trailing slashes are trimmed when validating the path prefix with a host path.Examples:
/foowould allow/foo,/foo/and/foo/bar/foowould not allow/foodor/etc/foo- Returns:
this
-
readOnly
@Stability(Stable) public AllowedHostPathV1Beta1.Builder readOnly(Boolean readOnly)
Sets the value ofAllowedHostPathV1Beta1.getReadOnly()- Parameters:
readOnly- when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.- Returns:
this
-
build
@Stability(Stable) public AllowedHostPathV1Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AllowedHostPathV1Beta1>- Returns:
- a new instance of
AllowedHostPathV1Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-