Package org.cdk8s.plus28.k8s
Class TypedObjectReference.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.TypedObjectReference.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TypedObjectReference>
- Enclosing interface:
- TypedObjectReference
@Stability(Stable) public static final class TypedObjectReference.Builder extends Object implements software.amazon.jsii.Builder<TypedObjectReference>
A builder forTypedObjectReference
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedObjectReference.BuilderapiGroup(String apiGroup)Sets the value ofTypedObjectReference.getApiGroup()TypedObjectReferencebuild()Builds the configured instance.TypedObjectReference.Builderkind(String kind)Sets the value ofTypedObjectReference.getKind()TypedObjectReference.Buildername(String name)Sets the value ofTypedObjectReference.getName()TypedObjectReference.Buildernamespace(String namespace)Sets the value ofTypedObjectReference.getNamespace()
-
-
-
Method Detail
-
kind
@Stability(Stable) public TypedObjectReference.Builder kind(String kind)
Sets the value ofTypedObjectReference.getKind()- Parameters:
kind- Kind is the type of resource being referenced. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public TypedObjectReference.Builder name(String name)
Sets the value ofTypedObjectReference.getName()- Parameters:
name- Name is the name of resource being referenced. This parameter is required.- Returns:
this
-
apiGroup
@Stability(Stable) public TypedObjectReference.Builder apiGroup(String apiGroup)
Sets the value ofTypedObjectReference.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
-
namespace
@Stability(Stable) public TypedObjectReference.Builder namespace(String namespace)
Sets the value ofTypedObjectReference.getNamespace()- Parameters:
namespace- Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.- Returns:
this
-
build
@Stability(Stable) public TypedObjectReference build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TypedObjectReference>- Returns:
- a new instance of
TypedObjectReference - Throws:
NullPointerException- if any required attribute was not provided
-
-