Class CfnService.EksSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehubv2.CfnService.EksSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.EksSourceProperty>
- Enclosing interface:
CfnService.EksSourceProperty
@Stability(Stable)
public static final class CfnService.EksSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.EksSourceProperty>
A builder for
CfnService.EksSourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterArn(String clusterArn) Sets the value ofCfnService.EksSourceProperty.getClusterArn()labelSelector(IResolvable labelSelector) Sets the value ofCfnService.EksSourceProperty.getLabelSelector()labelSelector(CfnService.EksLabelSelectorProperty labelSelector) Sets the value ofCfnService.EksSourceProperty.getLabelSelector()namespaces(List<String> namespaces) Sets the value ofCfnService.EksSourceProperty.getNamespaces()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterArn
Sets the value ofCfnService.EksSourceProperty.getClusterArn()- Parameters:
clusterArn- ARN of the EKS cluster. This parameter is required.- Returns:
this
-
namespaces
Sets the value ofCfnService.EksSourceProperty.getNamespaces()- Parameters:
namespaces- EKS namespaces. This parameter is required.- Returns:
this
-
labelSelector
@Stability(Stable) public CfnService.EksSourceProperty.Builder labelSelector(IResolvable labelSelector) Sets the value ofCfnService.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 CfnService.EksSourceProperty.Builder labelSelector(CfnService.EksLabelSelectorProperty labelSelector) Sets the value ofCfnService.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.EksSourceProperty>- Returns:
- a new instance of
CfnService.EksSourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-