Package org.cdk8s.plus24.k8s
Class NonResourcePolicyRuleV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.NonResourcePolicyRuleV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NonResourcePolicyRuleV1Beta1>
- Enclosing interface:
- NonResourcePolicyRuleV1Beta1
@Stability(Stable) public static final class NonResourcePolicyRuleV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<NonResourcePolicyRuleV1Beta1>
A builder forNonResourcePolicyRuleV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NonResourcePolicyRuleV1Beta1
build()
Builds the configured instance.NonResourcePolicyRuleV1Beta1.Builder
nonResourceUrLs(List<String> nonResourceUrLs)
Sets the value ofNonResourcePolicyRuleV1Beta1.getNonResourceUrLs()
NonResourcePolicyRuleV1Beta1.Builder
verbs(List<String> verbs)
Sets the value ofNonResourcePolicyRuleV1Beta1.getVerbs()
-
-
-
Method Detail
-
nonResourceUrLs
@Stability(Stable) public NonResourcePolicyRuleV1Beta1.Builder nonResourceUrLs(List<String> nonResourceUrLs)
Sets the value ofNonResourcePolicyRuleV1Beta1.getNonResourceUrLs()
- Parameters:
nonResourceUrLs
-nonResourceURLs
is 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 NonResourcePolicyRuleV1Beta1.Builder verbs(List<String> verbs)
Sets the value ofNonResourcePolicyRuleV1Beta1.getVerbs()
- Parameters:
verbs
-verbs
is 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 NonResourcePolicyRuleV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NonResourcePolicyRuleV1Beta1>
- Returns:
- a new instance of
NonResourcePolicyRuleV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-