Package org.cdk8s.plus25.k8s
Class KubeRoleProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeRoleProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeRoleProps>
- Enclosing interface:
- KubeRoleProps
@Stability(Stable) public static final class KubeRoleProps.Builder extends Object implements software.amazon.jsii.Builder<KubeRoleProps>
A builder forKubeRoleProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeRolePropsbuild()Builds the configured instance.KubeRoleProps.Buildermetadata(ObjectMeta metadata)Sets the value ofKubeRoleProps.getMetadata()KubeRoleProps.Builderrules(List<? extends PolicyRule> rules)Sets the value ofKubeRoleProps.getRules()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeRoleProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeRoleProps.getMetadata()- Parameters:
metadata- Standard object's metadata.- Returns:
this
-
rules
@Stability(Stable) public KubeRoleProps.Builder rules(List<? extends PolicyRule> rules)
Sets the value ofKubeRoleProps.getRules()- Parameters:
rules- Rules holds all the PolicyRules for this Role.- Returns:
this
-
build
@Stability(Stable) public KubeRoleProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeRoleProps>- Returns:
- a new instance of
KubeRoleProps - Throws:
NullPointerException- if any required attribute was not provided
-
-