Class CfnServicePropsMixin.EksSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.resiliencehubv2.CfnServicePropsMixin.EksSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.EksSourceProperty>
- Enclosing interface:
CfnServicePropsMixin.EksSourceProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.EksSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.EksSourceProperty>
A builder for
CfnServicePropsMixin.EksSourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterArn(String clusterArn) Sets the value ofCfnServicePropsMixin.EksSourceProperty.getClusterArn()labelSelector(CfnServicePropsMixin.EksLabelSelectorProperty labelSelector) Sets the value ofCfnServicePropsMixin.EksSourceProperty.getLabelSelector()labelSelector(IResolvable labelSelector) Sets the value ofCfnServicePropsMixin.EksSourceProperty.getLabelSelector()namespaces(List<String> namespaces) Sets the value ofCfnServicePropsMixin.EksSourceProperty.getNamespaces()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterArn
@Stability(Stable) public CfnServicePropsMixin.EksSourceProperty.Builder clusterArn(String clusterArn) Sets the value ofCfnServicePropsMixin.EksSourceProperty.getClusterArn()- Parameters:
clusterArn- ARN of the EKS cluster.- Returns:
this
-
labelSelector
@Stability(Stable) public CfnServicePropsMixin.EksSourceProperty.Builder labelSelector(IResolvable labelSelector) Sets the value ofCfnServicePropsMixin.EksSourceProperty.getLabelSelector()- Parameters:
labelSelector- Kubernetes label selector that scopes discovery to matching objects in the specified namespaces. An object must satisfy both MatchLabels and MatchExpressions. Specify at least one of them; a selector carrying neither is treated as though no selector were supplied, and all supported objects in the specified namespaces are discovered.- Returns:
this
-
labelSelector
@Stability(Stable) public CfnServicePropsMixin.EksSourceProperty.Builder labelSelector(CfnServicePropsMixin.EksLabelSelectorProperty labelSelector) Sets the value ofCfnServicePropsMixin.EksSourceProperty.getLabelSelector()- Parameters:
labelSelector- Kubernetes label selector that scopes discovery to matching objects in the specified namespaces. An object must satisfy both MatchLabels and MatchExpressions. Specify at least one of them; a selector carrying neither is treated as though no selector were supplied, and all supported objects in the specified namespaces are discovered.- Returns:
this
-
namespaces
@Stability(Stable) public CfnServicePropsMixin.EksSourceProperty.Builder namespaces(List<String> namespaces) Sets the value ofCfnServicePropsMixin.EksSourceProperty.getNamespaces()- Parameters:
namespaces- EKS namespaces.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.EksSourceProperty>- Returns:
- a new instance of
CfnServicePropsMixin.EksSourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-