Class ParamRefV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.ParamRefV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ParamRefV1Beta1>
- Enclosing interface:
- ParamRefV1Beta1
@Stability(Stable) public static final class ParamRefV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<ParamRefV1Beta1>
A builder forParamRefV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParamRefV1Beta1build()Builds the configured instance.ParamRefV1Beta1.Buildername(String name)Sets the value ofParamRefV1Beta1.getName()ParamRefV1Beta1.Buildernamespace(String namespace)Sets the value ofParamRefV1Beta1.getNamespace()ParamRefV1Beta1.BuilderparameterNotFoundAction(String parameterNotFoundAction)Sets the value ofParamRefV1Beta1.getParameterNotFoundAction()ParamRefV1Beta1.Builderselector(LabelSelector selector)Sets the value ofParamRefV1Beta1.getSelector()
-
-
-
Method Detail
-
name
@Stability(Stable) public ParamRefV1Beta1.Builder name(String name)
Sets the value ofParamRefV1Beta1.getName()- Parameters:
name- name is the name of the resource being referenced. One ofnameorselectormust be set, butnameandselectorare mutually exclusive properties. If one is set, the other must be unset.A single parameter used for all admission requests can be configured by setting the
namefield, leavingselectorblank, and setting namespace ifparamKindis namespace-scoped.- Returns:
this
-
namespace
@Stability(Stable) public ParamRefV1Beta1.Builder namespace(String namespace)
Sets the value ofParamRefV1Beta1.getNamespace()- Parameters:
namespace- namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to bothnameandselectorfields.A per-namespace parameter may be used by specifying a namespace-scoped
paramKindin the policy and leaving this field empty.- If
paramKindis cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If
paramKindis namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.
- If
- Returns:
this
-
parameterNotFoundAction
@Stability(Stable) public ParamRefV1Beta1.Builder parameterNotFoundAction(String parameterNotFoundAction)
Sets the value ofParamRefV1Beta1.getParameterNotFoundAction()- Parameters:
parameterNotFoundAction-parameterNotFoundActioncontrols the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set toAllow, then no matched parameters will be treated as successful validation by the binding. If set toDeny, then no matched parameters will be subject to thefailurePolicyof the policy.Allowed values are
AlloworDenyRequired
- Returns:
this
-
selector
@Stability(Stable) public ParamRefV1Beta1.Builder selector(LabelSelector selector)
Sets the value ofParamRefV1Beta1.getSelector()- Parameters:
selector- selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
One of
nameorselectormust be set, butnameandselectorare mutually exclusive properties. If one is set, the other must be unset.- Returns:
this
-
build
@Stability(Stable) public ParamRefV1Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ParamRefV1Beta1>- Returns:
- a new instance of
ParamRefV1Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-