Package org.cdk8s.plus28.k8s
Class VariableV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.VariableV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VariableV1Beta1>
- Enclosing interface:
- VariableV1Beta1
@Stability(Stable) public static final class VariableV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<VariableV1Beta1>
A builder forVariableV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableV1Beta1build()Builds the configured instance.VariableV1Beta1.Builderexpression(String expression)Sets the value ofVariableV1Beta1.getExpression()VariableV1Beta1.Buildername(String name)Sets the value ofVariableV1Beta1.getName()
-
-
-
Method Detail
-
expression
@Stability(Stable) public VariableV1Beta1.Builder expression(String expression)
Sets the value ofVariableV1Beta1.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 VariableV1Beta1.Builder name(String name)
Sets the value ofVariableV1Beta1.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 VariableV1Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VariableV1Beta1>- Returns:
- a new instance of
VariableV1Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-