Class CfnFargateProfile.SelectorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnFargateProfile.SelectorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFargateProfile.SelectorProperty>
- Enclosing interface:
CfnFargateProfile.SelectorProperty
@Stability(Stable)
public static final class CfnFargateProfile.SelectorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFargateProfile.SelectorProperty>
A builder for
CfnFargateProfile.SelectorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnFargateProfile.SelectorProperty.getLabels()
labels
(IResolvable labels) Sets the value ofCfnFargateProfile.SelectorProperty.getLabels()
Sets the value ofCfnFargateProfile.SelectorProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
namespace
Sets the value ofCfnFargateProfile.SelectorProperty.getNamespace()
- Parameters:
namespace
- The Kubernetesnamespace
that the selector should match. This parameter is required.- Returns:
this
-
labels
Sets the value ofCfnFargateProfile.SelectorProperty.getLabels()
- Parameters:
labels
- The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.- Returns:
this
-
labels
@Stability(Stable) public CfnFargateProfile.SelectorProperty.Builder labels(List<? extends Object> labels) Sets the value ofCfnFargateProfile.SelectorProperty.getLabels()
- Parameters:
labels
- The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFargateProfile.SelectorProperty>
- Returns:
- a new instance of
CfnFargateProfile.SelectorProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-