Package org.cdk8s.plus24
Class EnvValueFromSecretOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.EnvValueFromSecretOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EnvValueFromSecretOptions>
- Enclosing interface:
- EnvValueFromSecretOptions
@Stability(Stable) public static final class EnvValueFromSecretOptions.Builder extends Object implements software.amazon.jsii.Builder<EnvValueFromSecretOptions>
A builder forEnvValueFromSecretOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvValueFromSecretOptions
build()
Builds the configured instance.EnvValueFromSecretOptions.Builder
optional(Boolean optional)
Sets the value ofEnvValueFromSecretOptions.getOptional()
-
-
-
Method Detail
-
optional
@Stability(Stable) public EnvValueFromSecretOptions.Builder optional(Boolean optional)
Sets the value ofEnvValueFromSecretOptions.getOptional()
- Parameters:
optional
- Specify whether the Secret or its key must be defined.- Returns:
this
-
build
@Stability(Stable) public EnvValueFromSecretOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EnvValueFromSecretOptions>
- Returns:
- a new instance of
EnvValueFromSecretOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-