Package org.cdk8s.plus24.k8s
Class ScopedResourceSelectorRequirement.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ScopedResourceSelectorRequirement.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScopedResourceSelectorRequirement>
- Enclosing interface:
- ScopedResourceSelectorRequirement
@Stability(Stable) public static final class ScopedResourceSelectorRequirement.Builder extends Object implements software.amazon.jsii.Builder<ScopedResourceSelectorRequirement>
A builder forScopedResourceSelectorRequirement
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopedResourceSelectorRequirement
build()
Builds the configured instance.ScopedResourceSelectorRequirement.Builder
operator(String operator)
Sets the value ofScopedResourceSelectorRequirement.getOperator()
ScopedResourceSelectorRequirement.Builder
scopeName(String scopeName)
Sets the value ofScopedResourceSelectorRequirement.getScopeName()
ScopedResourceSelectorRequirement.Builder
values(List<String> values)
Sets the value ofScopedResourceSelectorRequirement.getValues()
-
-
-
Method Detail
-
operator
@Stability(Stable) public ScopedResourceSelectorRequirement.Builder operator(String operator)
Sets the value ofScopedResourceSelectorRequirement.getOperator()
- Parameters:
operator
- Represents a scope's relationship to a set of values. This parameter is required. Valid operators are In, NotIn, Exists, DoesNotExist.- Returns:
this
-
scopeName
@Stability(Stable) public ScopedResourceSelectorRequirement.Builder scopeName(String scopeName)
Sets the value ofScopedResourceSelectorRequirement.getScopeName()
- Parameters:
scopeName
- The name of the scope that the selector applies to. This parameter is required.- Returns:
this
-
values
@Stability(Stable) public ScopedResourceSelectorRequirement.Builder values(List<String> values)
Sets the value ofScopedResourceSelectorRequirement.getValues()
- Parameters:
values
- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.- Returns:
this
-
build
@Stability(Stable) public ScopedResourceSelectorRequirement build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScopedResourceSelectorRequirement>
- Returns:
- a new instance of
ScopedResourceSelectorRequirement
- Throws:
NullPointerException
- if any required attribute was not provided
-
-