Package org.cdk8s.plus23.k8s
Class PolicyRulesWithSubjectsV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.PolicyRulesWithSubjectsV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta1>
- Enclosing interface:
- PolicyRulesWithSubjectsV1Beta1
@Stability(Stable) public static final class PolicyRulesWithSubjectsV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta1>
A builder forPolicyRulesWithSubjectsV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyRulesWithSubjectsV1Beta1
build()
Builds the configured instance.PolicyRulesWithSubjectsV1Beta1.Builder
nonResourceRules(List<? extends NonResourcePolicyRuleV1Beta1> nonResourceRules)
Sets the value ofPolicyRulesWithSubjectsV1Beta1.getNonResourceRules()
PolicyRulesWithSubjectsV1Beta1.Builder
resourceRules(List<? extends ResourcePolicyRuleV1Beta1> resourceRules)
Sets the value ofPolicyRulesWithSubjectsV1Beta1.getResourceRules()
PolicyRulesWithSubjectsV1Beta1.Builder
subjects(List<? extends SubjectV1Beta1> subjects)
Sets the value ofPolicyRulesWithSubjectsV1Beta1.getSubjects()
-
-
-
Method Detail
-
subjects
@Stability(Stable) public PolicyRulesWithSubjectsV1Beta1.Builder subjects(List<? extends SubjectV1Beta1> subjects)
Sets the value ofPolicyRulesWithSubjectsV1Beta1.getSubjects()
- Parameters:
subjects
- subjects is the list of normal user, serviceaccount, or group that this rule cares about. This parameter is required. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.- Returns:
this
-
nonResourceRules
@Stability(Stable) public PolicyRulesWithSubjectsV1Beta1.Builder nonResourceRules(List<? extends NonResourcePolicyRuleV1Beta1> nonResourceRules)
Sets the value ofPolicyRulesWithSubjectsV1Beta1.getNonResourceRules()
- Parameters:
nonResourceRules
- `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.- Returns:
this
-
resourceRules
@Stability(Stable) public PolicyRulesWithSubjectsV1Beta1.Builder resourceRules(List<? extends ResourcePolicyRuleV1Beta1> resourceRules)
Sets the value ofPolicyRulesWithSubjectsV1Beta1.getResourceRules()
- Parameters:
resourceRules
- `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one ofresourceRules
andnonResourceRules
has to be non-empty.- Returns:
this
-
build
@Stability(Stable) public PolicyRulesWithSubjectsV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta1>
- Returns:
- a new instance of
PolicyRulesWithSubjectsV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-