Class TypedObjectReference.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.TypedObjectReference.Builder
-
- Enclosing class:
- TypedObjectReference
public static class TypedObjectReference.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedObjectReference.Builder
apiGroup(java.lang.String apiGroup)
APIGroup is the group for the resource being referenced.TypedObjectReference
build()
TypedObjectReference.Builder
kind(@NonNull java.lang.String kind)
Kind is the type of resource being referencedTypedObjectReference.Builder
name(@NonNull java.lang.String name)
Name is the name of resource being referencedTypedObjectReference.Builder
namespace(java.lang.String 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.java.lang.String
toString()
-
-
-
Method Detail
-
apiGroup
public TypedObjectReference.Builder apiGroup(java.lang.String 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
.
-
kind
public TypedObjectReference.Builder kind(@NonNull @NonNull java.lang.String kind)
Kind is the type of resource being referenced- Returns:
this
.
-
name
public TypedObjectReference.Builder name(@NonNull @NonNull java.lang.String name)
Name is the name of resource being referenced- Returns:
this
.
-
namespace
public TypedObjectReference.Builder namespace(java.lang.String 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
public TypedObjectReference build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-