Interface EksSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EksSource.Builder,,EksSource> SdkBuilder<EksSource.Builder,,EksSource> SdkPojo
- Enclosing class:
EksSource
@Mutable
@NotThreadSafe
public static interface EksSource.Builder
extends SdkPojo, CopyableBuilder<EksSource.Builder,EksSource>
-
Method Summary
Modifier and TypeMethodDescriptionclusterArn(String clusterArn) Sets the value of the ClusterArn property for this object.default EksSource.BuilderlabelSelector(Consumer<EksLabelSelector.Builder> labelSelector) Filters discovery to the Kubernetes objects whose labels match the selector.labelSelector(EksLabelSelector labelSelector) Filters discovery to the Kubernetes objects whose labels match the selector.namespaces(String... namespaces) The list of Kubernetes namespaces within the EKS cluster.namespaces(Collection<String> namespaces) The list of Kubernetes namespaces within the EKS cluster.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clusterArn
Sets the value of the ClusterArn property for this object.- Parameters:
clusterArn- The new value for the ClusterArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
The list of Kubernetes namespaces within the EKS cluster.
- Parameters:
namespaces- The list of Kubernetes namespaces within the EKS cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
The list of Kubernetes namespaces within the EKS cluster.
- Parameters:
namespaces- The list of Kubernetes namespaces within the EKS cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labelSelector
Filters discovery to the Kubernetes objects whose labels match the selector. When omitted, all supported objects in the specified namespaces are discovered.
- Parameters:
labelSelector- Filters discovery to the Kubernetes objects whose labels match the selector. When omitted, all supported objects in the specified namespaces are discovered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labelSelector
Filters discovery to the Kubernetes objects whose labels match the selector. When omitted, all supported objects in the specified namespaces are discovered.
This is a convenience method that creates an instance of theEksLabelSelector.Builderavoiding the need to create one manually viaEksLabelSelector.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolabelSelector(EksLabelSelector).- Parameters:
labelSelector- a consumer that will call methods onEksLabelSelector.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-