Package org.cdk8s.plus28.k8s
Class PolicyRulesWithSubjectsV1Beta3.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.PolicyRulesWithSubjectsV1Beta3.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta3>
- Enclosing interface:
- PolicyRulesWithSubjectsV1Beta3
@Stability(Stable) public static final class PolicyRulesWithSubjectsV1Beta3.Builder extends Object implements software.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta3>
A builder forPolicyRulesWithSubjectsV1Beta3
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyRulesWithSubjectsV1Beta3build()Builds the configured instance.PolicyRulesWithSubjectsV1Beta3.BuildernonResourceRules(List<? extends NonResourcePolicyRuleV1Beta3> nonResourceRules)Sets the value ofPolicyRulesWithSubjectsV1Beta3.getNonResourceRules()PolicyRulesWithSubjectsV1Beta3.BuilderresourceRules(List<? extends ResourcePolicyRuleV1Beta3> resourceRules)Sets the value ofPolicyRulesWithSubjectsV1Beta3.getResourceRules()PolicyRulesWithSubjectsV1Beta3.Buildersubjects(List<? extends SubjectV1Beta3> subjects)Sets the value ofPolicyRulesWithSubjectsV1Beta3.getSubjects()
-
-
-
Method Detail
-
subjects
@Stability(Stable) public PolicyRulesWithSubjectsV1Beta3.Builder subjects(List<? extends SubjectV1Beta3> subjects)
Sets the value ofPolicyRulesWithSubjectsV1Beta3.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 PolicyRulesWithSubjectsV1Beta3.Builder nonResourceRules(List<? extends NonResourcePolicyRuleV1Beta3> nonResourceRules)
Sets the value ofPolicyRulesWithSubjectsV1Beta3.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 PolicyRulesWithSubjectsV1Beta3.Builder resourceRules(List<? extends ResourcePolicyRuleV1Beta3> resourceRules)
Sets the value ofPolicyRulesWithSubjectsV1Beta3.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 PolicyRulesWithSubjectsV1Beta3 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PolicyRulesWithSubjectsV1Beta3>- Returns:
- a new instance of
PolicyRulesWithSubjectsV1Beta3 - Throws:
NullPointerException- if any required attribute was not provided
-
-