Package org.cdk8s.plus25.k8s
Class NonResourcePolicyRuleV1Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.NonResourcePolicyRuleV1Beta2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NonResourcePolicyRuleV1Beta2>
- Enclosing interface:
- NonResourcePolicyRuleV1Beta2
@Stability(Stable) public static final class NonResourcePolicyRuleV1Beta2.Builder extends Object implements software.amazon.jsii.Builder<NonResourcePolicyRuleV1Beta2>
A builder forNonResourcePolicyRuleV1Beta2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NonResourcePolicyRuleV1Beta2build()Builds the configured instance.NonResourcePolicyRuleV1Beta2.BuildernonResourceUrLs(List<String> nonResourceUrLs)Sets the value ofNonResourcePolicyRuleV1Beta2.getNonResourceUrLs()NonResourcePolicyRuleV1Beta2.Builderverbs(List<String> verbs)Sets the value ofNonResourcePolicyRuleV1Beta2.getVerbs()
-
-
-
Method Detail
-
nonResourceUrLs
@Stability(Stable) public NonResourcePolicyRuleV1Beta2.Builder nonResourceUrLs(List<String> nonResourceUrLs)
Sets the value ofNonResourcePolicyRuleV1Beta2.getNonResourceUrLs()- Parameters:
nonResourceUrLs-nonResourceURLsis a set of url prefixes that a user should have access to and may not be empty. This parameter is required. For example:- "/healthz" is legal
- "/hea*" is illegal
- "/hea" is legal but matches nothing
- "/hea/*" also matches nothing
- "/healthz/" matches all per-component health checks. "" matches all non-resource urls. if it is present, it must be the only entry. Required.
- Returns:
this
-
verbs
@Stability(Stable) public NonResourcePolicyRuleV1Beta2.Builder verbs(List<String> verbs)
Sets the value ofNonResourcePolicyRuleV1Beta2.getVerbs()- Parameters:
verbs-verbsis a list of matching verbs and may not be empty. This parameter is required. "*" matches all verbs. If it is present, it must be the only entry. Required.- Returns:
this
-
build
@Stability(Stable) public NonResourcePolicyRuleV1Beta2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NonResourcePolicyRuleV1Beta2>- Returns:
- a new instance of
NonResourcePolicyRuleV1Beta2 - Throws:
NullPointerException- if any required attribute was not provided
-
-