Package org.cdk8s.plus25.k8s
Class LocalObjectReference.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.LocalObjectReference.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LocalObjectReference>
- Enclosing interface:
- LocalObjectReference
@Stability(Stable) public static final class LocalObjectReference.Builder extends Object implements software.amazon.jsii.Builder<LocalObjectReference>
A builder forLocalObjectReference
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalObjectReferencebuild()Builds the configured instance.LocalObjectReference.Buildername(String name)Sets the value ofLocalObjectReference.getName()
-
-
-
Method Detail
-
name
@Stability(Stable) public LocalObjectReference.Builder name(String name)
Sets the value ofLocalObjectReference.getName()- Parameters:
name- Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names- Returns:
this
-
build
@Stability(Stable) public LocalObjectReference build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LocalObjectReference>- Returns:
- a new instance of
LocalObjectReference - Throws:
NullPointerException- if any required attribute was not provided
-
-