Class MatchConditionV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.MatchConditionV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MatchConditionV1Beta1>
- Enclosing interface:
- MatchConditionV1Beta1
@Stability(Stable) public static final class MatchConditionV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<MatchConditionV1Beta1>
A builder forMatchConditionV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchConditionV1Beta1build()Builds the configured instance.MatchConditionV1Beta1.Builderexpression(String expression)Sets the value ofMatchConditionV1Beta1.getExpression()MatchConditionV1Beta1.Buildername(String name)Sets the value ofMatchConditionV1Beta1.getName()
-
-
-
Method Detail
-
expression
@Stability(Stable) public MatchConditionV1Beta1.Builder expression(String expression)
Sets the value ofMatchConditionV1Beta1.getExpression()- Parameters:
expression- Expression represents the expression which will be evaluated by CEL. This parameter is required. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
Required.
- Returns:
this
-
name
@Stability(Stable) public MatchConditionV1Beta1.Builder name(String name)
Sets the value ofMatchConditionV1Beta1.getName()- Parameters:
name- Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. This parameter is required. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')Required.
- Returns:
this
-
build
@Stability(Stable) public MatchConditionV1Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MatchConditionV1Beta1>- Returns:
- a new instance of
MatchConditionV1Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-