Class ClusterRoleBinding.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.rbac.v1alpha1.ClusterRoleBinding.Builder
-
- Enclosing class:
- ClusterRoleBinding
public static class ClusterRoleBinding.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterRoleBinding.Builder
addToSubjects(Subject addToSubjects)
ClusterRoleBinding.Builder
apiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.ClusterRoleBinding
build()
ClusterRoleBinding.Builder
clearSubjects()
ClusterRoleBinding.Builder
kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.ClusterRoleBinding.Builder
metadata(ObjectMeta metadata)
ClusterRoleBinding.Builder
roleRef(@NonNull RoleRef roleRef)
ClusterRoleBinding.Builder
subjects(java.util.Collection<? extends Subject> subjects)
java.lang.String
toString()
-
-
-
Method Detail
-
apiVersion
public ClusterRoleBinding.Builder apiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
this
.
-
kind
public ClusterRoleBinding.Builder kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
this
.
-
metadata
public ClusterRoleBinding.Builder metadata(ObjectMeta metadata)
-
roleRef
public ClusterRoleBinding.Builder roleRef(@NonNull @NonNull RoleRef roleRef)
-
addToSubjects
public ClusterRoleBinding.Builder addToSubjects(Subject addToSubjects)
-
subjects
public ClusterRoleBinding.Builder subjects(java.util.Collection<? extends Subject> subjects)
-
clearSubjects
public ClusterRoleBinding.Builder clearSubjects()
-
build
public ClusterRoleBinding build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-