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