Package org.cdk8s.plus24.k8s
Class KubeRoleBindingProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeRoleBindingProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeRoleBindingProps>
- Enclosing interface:
- KubeRoleBindingProps
@Stability(Stable) public static final class KubeRoleBindingProps.Builder extends Object implements software.amazon.jsii.Builder<KubeRoleBindingProps>
A builder forKubeRoleBindingProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeRoleBindingProps
build()
Builds the configured instance.KubeRoleBindingProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeRoleBindingProps.getMetadata()
KubeRoleBindingProps.Builder
roleRef(RoleRef roleRef)
Sets the value ofKubeRoleBindingProps.getRoleRef()
KubeRoleBindingProps.Builder
subjects(List<? extends Subject> subjects)
Sets the value ofKubeRoleBindingProps.getSubjects()
-
-
-
Method Detail
-
roleRef
@Stability(Stable) public KubeRoleBindingProps.Builder roleRef(RoleRef roleRef)
Sets the value ofKubeRoleBindingProps.getRoleRef()
- Parameters:
roleRef
- RoleRef can reference a Role in the current namespace or 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 KubeRoleBindingProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeRoleBindingProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata.- Returns:
this
-
subjects
@Stability(Stable) public KubeRoleBindingProps.Builder subjects(List<? extends Subject> subjects)
Sets the value ofKubeRoleBindingProps.getSubjects()
- Parameters:
subjects
- Subjects holds references to the objects the role applies to.- Returns:
this
-
build
@Stability(Stable) public KubeRoleBindingProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeRoleBindingProps>
- Returns:
- a new instance of
KubeRoleBindingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-