Class TypedObjectReference.Builder

  • Enclosing class:
    TypedObjectReference

    public static class TypedObjectReference.Builder
    extends java.lang.Object
    • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object