Package org.cdk8s.plus25.k8s
Class PolicyRulesWithSubjectsV1Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.PolicyRulesWithSubjectsV1Beta2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta2>
- Enclosing interface:
- PolicyRulesWithSubjectsV1Beta2
@Stability(Stable) public static final class PolicyRulesWithSubjectsV1Beta2.Builder extends Object implements software.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta2>
A builder forPolicyRulesWithSubjectsV1Beta2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyRulesWithSubjectsV1Beta2build()Builds the configured instance.PolicyRulesWithSubjectsV1Beta2.BuildernonResourceRules(List<? extends NonResourcePolicyRuleV1Beta2> nonResourceRules)Sets the value ofPolicyRulesWithSubjectsV1Beta2.getNonResourceRules()PolicyRulesWithSubjectsV1Beta2.BuilderresourceRules(List<? extends ResourcePolicyRuleV1Beta2> resourceRules)Sets the value ofPolicyRulesWithSubjectsV1Beta2.getResourceRules()PolicyRulesWithSubjectsV1Beta2.Buildersubjects(List<? extends SubjectV1Beta2> subjects)Sets the value ofPolicyRulesWithSubjectsV1Beta2.getSubjects()
-
-
-
Method Detail
-
subjects
@Stability(Stable) public PolicyRulesWithSubjectsV1Beta2.Builder subjects(List<? extends SubjectV1Beta2> subjects)
Sets the value ofPolicyRulesWithSubjectsV1Beta2.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 PolicyRulesWithSubjectsV1Beta2.Builder nonResourceRules(List<? extends NonResourcePolicyRuleV1Beta2> nonResourceRules)
Sets the value ofPolicyRulesWithSubjectsV1Beta2.getNonResourceRules()- Parameters:
nonResourceRules-nonResourceRulesis a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.- Returns:
this
-
resourceRules
@Stability(Stable) public PolicyRulesWithSubjectsV1Beta2.Builder resourceRules(List<? extends ResourcePolicyRuleV1Beta2> resourceRules)
Sets the value ofPolicyRulesWithSubjectsV1Beta2.getResourceRules()- Parameters:
resourceRules-resourceRulesis a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one ofresourceRulesandnonResourceRuleshas to be non-empty.- Returns:
this
-
build
@Stability(Stable) public PolicyRulesWithSubjectsV1Beta2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta2>- Returns:
- a new instance of
PolicyRulesWithSubjectsV1Beta2 - Throws:
NullPointerException- if any required attribute was not provided
-
-