Package org.cdk8s.plus25.k8s
Class ResourcePolicyRuleV1Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.ResourcePolicyRuleV1Beta2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResourcePolicyRuleV1Beta2>
- Enclosing interface:
- ResourcePolicyRuleV1Beta2
@Stability(Stable) public static final class ResourcePolicyRuleV1Beta2.Builder extends Object implements software.amazon.jsii.Builder<ResourcePolicyRuleV1Beta2>
A builder forResourcePolicyRuleV1Beta2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcePolicyRuleV1Beta2.BuilderapiGroups(List<String> apiGroups)Sets the value ofResourcePolicyRuleV1Beta2.getApiGroups()ResourcePolicyRuleV1Beta2build()Builds the configured instance.ResourcePolicyRuleV1Beta2.BuilderclusterScope(Boolean clusterScope)Sets the value ofResourcePolicyRuleV1Beta2.getClusterScope()ResourcePolicyRuleV1Beta2.Buildernamespaces(List<String> namespaces)Sets the value ofResourcePolicyRuleV1Beta2.getNamespaces()ResourcePolicyRuleV1Beta2.Builderresources(List<String> resources)Sets the value ofResourcePolicyRuleV1Beta2.getResources()ResourcePolicyRuleV1Beta2.Builderverbs(List<String> verbs)Sets the value ofResourcePolicyRuleV1Beta2.getVerbs()
-
-
-
Method Detail
-
apiGroups
@Stability(Stable) public ResourcePolicyRuleV1Beta2.Builder apiGroups(List<String> apiGroups)
Sets the value ofResourcePolicyRuleV1Beta2.getApiGroups()- Parameters:
apiGroups-apiGroupsis a list of matching API groups and may not be empty. This parameter is required. "*" matches all API groups and, if present, must be the only entry. Required.- Returns:
this
-
resources
@Stability(Stable) public ResourcePolicyRuleV1Beta2.Builder resources(List<String> resources)
Sets the value ofResourcePolicyRuleV1Beta2.getResources()- Parameters:
resources-resourcesis a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. This parameter is required.- Returns:
this
-
verbs
@Stability(Stable) public ResourcePolicyRuleV1Beta2.Builder verbs(List<String> verbs)
Sets the value ofResourcePolicyRuleV1Beta2.getVerbs()- Parameters:
verbs-verbsis a list of matching verbs and may not be empty. This parameter is required. "*" matches all verbs and, if present, must be the only entry. Required.- Returns:
this
-
clusterScope
@Stability(Stable) public ResourcePolicyRuleV1Beta2.Builder clusterScope(Boolean clusterScope)
Sets the value ofResourcePolicyRuleV1Beta2.getClusterScope()- Parameters:
clusterScope-clusterScopeindicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then thenamespacesfield must contain a non-empty list.- Returns:
this
-
namespaces
@Stability(Stable) public ResourcePolicyRuleV1Beta2.Builder namespaces(List<String> namespaces)
Sets the value ofResourcePolicyRuleV1Beta2.getNamespaces()- Parameters:
namespaces-namespacesis a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "". Note that "" matches any specified namespace but does not match a request that does not specify a namespace (see theclusterScopefield for that). This list may be empty, but only ifclusterScopeis true.- Returns:
this
-
build
@Stability(Stable) public ResourcePolicyRuleV1Beta2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ResourcePolicyRuleV1Beta2>- Returns:
- a new instance of
ResourcePolicyRuleV1Beta2 - Throws:
NullPointerException- if any required attribute was not provided
-
-