Package org.cdk8s.plus24
Class EnvValueFromFieldRefOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.EnvValueFromFieldRefOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EnvValueFromFieldRefOptions>
- Enclosing interface:
- EnvValueFromFieldRefOptions
@Stability(Stable) public static final class EnvValueFromFieldRefOptions.Builder extends Object implements software.amazon.jsii.Builder<EnvValueFromFieldRefOptions>
A builder forEnvValueFromFieldRefOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvValueFromFieldRefOptions.Builder
apiVersion(String apiVersion)
Sets the value ofEnvValueFromFieldRefOptions.getApiVersion()
EnvValueFromFieldRefOptions
build()
Builds the configured instance.EnvValueFromFieldRefOptions.Builder
key(String key)
Sets the value ofEnvValueFromFieldRefOptions.getKey()
-
-
-
Method Detail
-
apiVersion
@Stability(Stable) public EnvValueFromFieldRefOptions.Builder apiVersion(String apiVersion)
Sets the value ofEnvValueFromFieldRefOptions.getApiVersion()
- Parameters:
apiVersion
- Version of the schema the FieldPath is written in terms of.- Returns:
this
-
key
@Stability(Stable) public EnvValueFromFieldRefOptions.Builder key(String key)
Sets the value ofEnvValueFromFieldRefOptions.getKey()
- Parameters:
key
- The key to select the pod label or annotation.- Returns:
this
-
build
@Stability(Stable) public EnvValueFromFieldRefOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EnvValueFromFieldRefOptions>
- Returns:
- a new instance of
EnvValueFromFieldRefOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-