Package org.cdk8s.plus25.k8s
Class KubeRoleBinding.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeRoleBinding.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeRoleBinding>
- Enclosing class:
- KubeRoleBinding
@Stability(Stable) public static final class KubeRoleBinding.Builder extends Object implements software.amazon.jsii.Builder<KubeRoleBinding>
A fluent builder forKubeRoleBinding.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeRoleBindingbuild()static KubeRoleBinding.Buildercreate(software.constructs.Construct scope, String id)KubeRoleBinding.Buildermetadata(ObjectMeta metadata)Standard object's metadata.KubeRoleBinding.BuilderroleRef(RoleRef roleRef)RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace.KubeRoleBinding.Buildersubjects(List<? extends Subject> subjects)Subjects holds references to the objects the role applies to.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeRoleBinding.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- the scope in which to define this object. This parameter is required.id- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeRoleBinding.Builder.
-
roleRef
@Stability(Stable) public KubeRoleBinding.Builder roleRef(RoleRef roleRef)
RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace.If the RoleRef cannot be resolved, the Authorizer must return an error.
- Parameters:
roleRef- RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeRoleBinding.Builder metadata(ObjectMeta metadata)
Standard object's metadata.- Parameters:
metadata- Standard object's metadata. This parameter is required.- Returns:
this
-
subjects
@Stability(Stable) public KubeRoleBinding.Builder subjects(List<? extends Subject> subjects)
Subjects holds references to the objects the role applies to.- Parameters:
subjects- Subjects holds references to the objects the role applies to. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeRoleBinding build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeRoleBinding>- Returns:
- a newly built instance of
KubeRoleBinding.
-
-