Package org.cdk8s.plus28.k8s
Class ParamRefV1Alpha1.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.ParamRefV1Alpha1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ParamRefV1Alpha1>
- Enclosing interface:
- ParamRefV1Alpha1
@Stability(Stable) public static final class ParamRefV1Alpha1.Builder extends Object implements software.amazon.jsii.Builder<ParamRefV1Alpha1>
A builder forParamRefV1Alpha1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParamRefV1Alpha1build()Builds the configured instance.ParamRefV1Alpha1.Buildername(String name)Sets the value ofParamRefV1Alpha1.getName()ParamRefV1Alpha1.Buildernamespace(String namespace)Sets the value ofParamRefV1Alpha1.getNamespace()ParamRefV1Alpha1.BuilderparameterNotFoundAction(String parameterNotFoundAction)Sets the value ofParamRefV1Alpha1.getParameterNotFoundAction()ParamRefV1Alpha1.Builderselector(LabelSelector selector)Sets the value ofParamRefV1Alpha1.getSelector()
-
-
-
Method Detail
-
name
@Stability(Stable) public ParamRefV1Alpha1.Builder name(String name)
Sets the value ofParamRefV1Alpha1.getName()- Parameters:
name-nameis the name of the resource being referenced.nameandselectorare mutually exclusive properties. If one is set, the other must be unset.- Returns:
this
-
namespace
@Stability(Stable) public ParamRefV1Alpha1.Builder namespace(String namespace)
Sets the value ofParamRefV1Alpha1.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 ParamRefV1Alpha1.Builder parameterNotFoundAction(String parameterNotFoundAction)
Sets the value ofParamRefV1Alpha1.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
AlloworDenyDefault toDeny- Returns:
this
-
selector
@Stability(Stable) public ParamRefV1Alpha1.Builder selector(LabelSelector selector)
Sets the value ofParamRefV1Alpha1.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 ParamRefV1Alpha1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ParamRefV1Alpha1>- Returns:
- a new instance of
ParamRefV1Alpha1 - Throws:
NullPointerException- if any required attribute was not provided
-
-