Package org.cdk8s.plus28.k8s
Class VariableV1Alpha1.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.VariableV1Alpha1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VariableV1Alpha1>
- Enclosing interface:
- VariableV1Alpha1
@Stability(Stable) public static final class VariableV1Alpha1.Builder extends Object implements software.amazon.jsii.Builder<VariableV1Alpha1>
A builder forVariableV1Alpha1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableV1Alpha1build()Builds the configured instance.VariableV1Alpha1.Builderexpression(String expression)Sets the value ofVariableV1Alpha1.getExpression()VariableV1Alpha1.Buildername(String name)Sets the value ofVariableV1Alpha1.getName()
-
-
-
Method Detail
-
expression
@Stability(Stable) public VariableV1Alpha1.Builder expression(String expression)
Sets the value ofVariableV1Alpha1.getExpression()- Parameters:
expression- Expression is the expression that will be evaluated as the value of the variable. This parameter is required. The CEL expression has access to the same identifiers as the CEL expressions in Validation.- Returns:
this
-
name
@Stability(Stable) public VariableV1Alpha1.Builder name(String name)
Sets the value ofVariableV1Alpha1.getName()- Parameters:
name- Name is the name of the variable. This parameter is required. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions throughvariablesFor example, if name is "foo", the variable will be available asvariables.foo- Returns:
this
-
build
@Stability(Stable) public VariableV1Alpha1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VariableV1Alpha1>- Returns:
- a new instance of
VariableV1Alpha1 - Throws:
NullPointerException- if any required attribute was not provided
-
-