Interface EksLabelSelector.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EksLabelSelector.Builder,,EksLabelSelector> SdkBuilder<EksLabelSelector.Builder,,EksLabelSelector> SdkPojo
- Enclosing class:
EksLabelSelector
@Mutable
@NotThreadSafe
public static interface EksLabelSelector.Builder
extends SdkPojo, CopyableBuilder<EksLabelSelector.Builder,EksLabelSelector>
-
Method Summary
Modifier and TypeMethodDescriptionmatchExpressions(Collection<EksLabelSelectorRequirement> matchExpressions) The label requirements that an object must satisfy.matchExpressions(Consumer<EksLabelSelectorRequirement.Builder>... matchExpressions) The label requirements that an object must satisfy.matchExpressions(EksLabelSelectorRequirement... matchExpressions) The label requirements that an object must satisfy.matchLabels(Map<String, String> matchLabels) The label key-value pairs that an object must have.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
-
matchLabels
The label key-value pairs that an object must have. All pairs must match for the object to be selected.
- Parameters:
matchLabels- The label key-value pairs that an object must have. All pairs must match for the object to be selected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchExpressions
The label requirements that an object must satisfy. All requirements in the list must match for the object to be selected.
- Parameters:
matchExpressions- The label requirements that an object must satisfy. All requirements in the list must match for the object to be selected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchExpressions
The label requirements that an object must satisfy. All requirements in the list must match for the object to be selected.
- Parameters:
matchExpressions- The label requirements that an object must satisfy. All requirements in the list must match for the object to be selected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchExpressions
EksLabelSelector.Builder matchExpressions(Consumer<EksLabelSelectorRequirement.Builder>... matchExpressions) The label requirements that an object must satisfy. All requirements in the list must match for the object to be selected.
This is a convenience method that creates an instance of theEksLabelSelectorRequirement.Builderavoiding the need to create one manually viaEksLabelSelectorRequirement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomatchExpressions(List<EksLabelSelectorRequirement>).- Parameters:
matchExpressions- a consumer that will call methods onEksLabelSelectorRequirement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-