Package org.cdk8s.plus25.k8s
Class TypedLocalObjectReference.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.TypedLocalObjectReference.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TypedLocalObjectReference>
- Enclosing interface:
- TypedLocalObjectReference
@Stability(Stable) public static final class TypedLocalObjectReference.Builder extends Object implements software.amazon.jsii.Builder<TypedLocalObjectReference>
A builder forTypedLocalObjectReference
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedLocalObjectReference.BuilderapiGroup(String apiGroup)Sets the value ofTypedLocalObjectReference.getApiGroup()TypedLocalObjectReferencebuild()Builds the configured instance.TypedLocalObjectReference.Builderkind(String kind)Sets the value ofTypedLocalObjectReference.getKind()TypedLocalObjectReference.Buildername(String name)Sets the value ofTypedLocalObjectReference.getName()
-
-
-
Method Detail
-
kind
@Stability(Stable) public TypedLocalObjectReference.Builder kind(String kind)
Sets the value ofTypedLocalObjectReference.getKind()- Parameters:
kind- Kind is the type of resource being referenced. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public TypedLocalObjectReference.Builder name(String name)
Sets the value ofTypedLocalObjectReference.getName()- Parameters:
name- Name is the name of resource being referenced. This parameter is required.- Returns:
this
-
apiGroup
@Stability(Stable) public TypedLocalObjectReference.Builder apiGroup(String apiGroup)
Sets the value ofTypedLocalObjectReference.getApiGroup()- Parameters:
apiGroup- APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.- Returns:
this
-
build
@Stability(Stable) public TypedLocalObjectReference build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TypedLocalObjectReference>- Returns:
- a new instance of
TypedLocalObjectReference - Throws:
NullPointerException- if any required attribute was not provided
-
-