Class Subject.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.rbac.v1.Subject.Builder
-
- Enclosing class:
- Subject
public static class Subject.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subject.Builder
apiGroup(java.lang.String apiGroup)
APIGroup holds the API group of the referenced subject.Subject
build()
Subject.Builder
kind(@NonNull java.lang.String kind)
Kind of object being referenced.Subject.Builder
name(@NonNull java.lang.String name)
Name of the object being referenced.Subject.Builder
namespace(java.lang.String namespace)
Namespace of the referenced object.java.lang.String
toString()
-
-
-
Method Detail
-
apiGroup
public Subject.Builder apiGroup(java.lang.String apiGroup)
APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.- Returns:
this
.
-
kind
public Subject.Builder kind(@NonNull @NonNull java.lang.String kind)
Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.- Returns:
this
.
-
name
public Subject.Builder name(@NonNull @NonNull java.lang.String name)
Name of the object being referenced.- Returns:
this
.
-
namespace
public Subject.Builder namespace(java.lang.String namespace)
Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.- Returns:
this
.
-
build
public Subject build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-