Package org.cdk8s.plus28.k8s
Class NamedRuleWithOperationsV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.NamedRuleWithOperationsV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NamedRuleWithOperationsV1Beta1>
- Enclosing interface:
- NamedRuleWithOperationsV1Beta1
@Stability(Stable) public static final class NamedRuleWithOperationsV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<NamedRuleWithOperationsV1Beta1>
A builder forNamedRuleWithOperationsV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedRuleWithOperationsV1Beta1.BuilderapiGroups(List<String> apiGroups)Sets the value ofNamedRuleWithOperationsV1Beta1.getApiGroups()NamedRuleWithOperationsV1Beta1.BuilderapiVersions(List<String> apiVersions)Sets the value ofNamedRuleWithOperationsV1Beta1.getApiVersions()NamedRuleWithOperationsV1Beta1build()Builds the configured instance.NamedRuleWithOperationsV1Beta1.Builderoperations(List<String> operations)Sets the value ofNamedRuleWithOperationsV1Beta1.getOperations()NamedRuleWithOperationsV1Beta1.BuilderresourceNames(List<String> resourceNames)Sets the value ofNamedRuleWithOperationsV1Beta1.getResourceNames()NamedRuleWithOperationsV1Beta1.Builderresources(List<String> resources)Sets the value ofNamedRuleWithOperationsV1Beta1.getResources()NamedRuleWithOperationsV1Beta1.Builderscope(String scope)Sets the value ofNamedRuleWithOperationsV1Beta1.getScope()
-
-
-
Method Detail
-
apiGroups
@Stability(Stable) public NamedRuleWithOperationsV1Beta1.Builder apiGroups(List<String> apiGroups)
Sets the value ofNamedRuleWithOperationsV1Beta1.getApiGroups()- Parameters:
apiGroups- APIGroups is the API groups the resources belong to. '' is all groups. If '' is present, the length of the slice must be one. Required.- Returns:
this
-
apiVersions
@Stability(Stable) public NamedRuleWithOperationsV1Beta1.Builder apiVersions(List<String> apiVersions)
Sets the value ofNamedRuleWithOperationsV1Beta1.getApiVersions()- Parameters:
apiVersions- APIVersions is the API versions the resources belong to. '' is all versions. If '' is present, the length of the slice must be one. Required.- Returns:
this
-
operations
@Stability(Stable) public NamedRuleWithOperationsV1Beta1.Builder operations(List<String> operations)
Sets the value ofNamedRuleWithOperationsV1Beta1.getOperations()- Parameters:
operations- Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.- Returns:
this
-
resourceNames
@Stability(Stable) public NamedRuleWithOperationsV1Beta1.Builder resourceNames(List<String> resourceNames)
Sets the value ofNamedRuleWithOperationsV1Beta1.getResourceNames()- Parameters:
resourceNames- ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.- Returns:
this
-
resources
@Stability(Stable) public NamedRuleWithOperationsV1Beta1.Builder resources(List<String> resources)
Sets the value ofNamedRuleWithOperationsV1Beta1.getResources()- Parameters:
resources- Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '' means all resources, but not subresources. 'pods/' means all subresources of pods. '/scale' means all scale subresources. '/*' means all resources and their subresources.If wildcard is present, the validation rule will ensure resources do not overlap with each other.
Depending on the enclosing object, subresources might not be allowed. Required.
- Returns:
this
-
scope
@Stability(Stable) public NamedRuleWithOperationsV1Beta1.Builder scope(String scope)
Sets the value ofNamedRuleWithOperationsV1Beta1.getScope()- Parameters:
scope- scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".- Returns:
this
-
build
@Stability(Stable) public NamedRuleWithOperationsV1Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NamedRuleWithOperationsV1Beta1>- Returns:
- a new instance of
NamedRuleWithOperationsV1Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-