Package org.cdk8s.plus24.k8s
Class KubeClusterRoleBindingProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeClusterRoleBindingProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeClusterRoleBindingProps>
- Enclosing interface:
- KubeClusterRoleBindingProps
@Stability(Stable) public static final class KubeClusterRoleBindingProps.Builder extends Object implements software.amazon.jsii.Builder<KubeClusterRoleBindingProps>
A builder forKubeClusterRoleBindingProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeClusterRoleBindingProps
build()
Builds the configured instance.KubeClusterRoleBindingProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeClusterRoleBindingProps.getMetadata()
KubeClusterRoleBindingProps.Builder
roleRef(RoleRef roleRef)
Sets the value ofKubeClusterRoleBindingProps.getRoleRef()
KubeClusterRoleBindingProps.Builder
subjects(List<? extends Subject> subjects)
Sets the value ofKubeClusterRoleBindingProps.getSubjects()
-
-
-
Method Detail
-
roleRef
@Stability(Stable) public KubeClusterRoleBindingProps.Builder roleRef(RoleRef roleRef)
Sets the value ofKubeClusterRoleBindingProps.getRoleRef()
- Parameters:
roleRef
- RoleRef can only reference a ClusterRole in the global namespace. This parameter is required. If the RoleRef cannot be resolved, the Authorizer must return an error.- Returns:
this
-
metadata
@Stability(Stable) public KubeClusterRoleBindingProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeClusterRoleBindingProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata.- Returns:
this
-
subjects
@Stability(Stable) public KubeClusterRoleBindingProps.Builder subjects(List<? extends Subject> subjects)
Sets the value ofKubeClusterRoleBindingProps.getSubjects()
- Parameters:
subjects
- Subjects holds references to the objects the role applies to.- Returns:
this
-
build
@Stability(Stable) public KubeClusterRoleBindingProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeClusterRoleBindingProps>
- Returns:
- a new instance of
KubeClusterRoleBindingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-