Package org.cdk8s.plus25.k8s
Class BoundObjectReference.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.BoundObjectReference.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BoundObjectReference>
- Enclosing interface:
- BoundObjectReference
@Stability(Stable) public static final class BoundObjectReference.Builder extends Object implements software.amazon.jsii.Builder<BoundObjectReference>
A builder forBoundObjectReference
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundObjectReference.BuilderapiVersion(String apiVersion)Sets the value ofBoundObjectReference.getApiVersion()BoundObjectReferencebuild()Builds the configured instance.BoundObjectReference.Builderkind(String kind)Sets the value ofBoundObjectReference.getKind()BoundObjectReference.Buildername(String name)Sets the value ofBoundObjectReference.getName()BoundObjectReference.Builderuid(String uid)Sets the value ofBoundObjectReference.getUid()
-
-
-
Method Detail
-
apiVersion
@Stability(Stable) public BoundObjectReference.Builder apiVersion(String apiVersion)
Sets the value ofBoundObjectReference.getApiVersion()- Parameters:
apiVersion- API version of the referent.- Returns:
this
-
kind
@Stability(Stable) public BoundObjectReference.Builder kind(String kind)
Sets the value ofBoundObjectReference.getKind()- Parameters:
kind- Kind of the referent. Valid kinds are 'Pod' and 'Secret'.- Returns:
this
-
name
@Stability(Stable) public BoundObjectReference.Builder name(String name)
Sets the value ofBoundObjectReference.getName()- Parameters:
name- Name of the referent.- Returns:
this
-
uid
@Stability(Stable) public BoundObjectReference.Builder uid(String uid)
Sets the value ofBoundObjectReference.getUid()- Parameters:
uid- UID of the referent.- Returns:
this
-
build
@Stability(Stable) public BoundObjectReference build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BoundObjectReference>- Returns:
- a new instance of
BoundObjectReference - Throws:
NullPointerException- if any required attribute was not provided
-
-