Interface TargetGroupsConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TargetGroupsConfig.Builder,,TargetGroupsConfig> SdkBuilder<TargetGroupsConfig.Builder,,TargetGroupsConfig> SdkPojo
- Enclosing class:
TargetGroupsConfig
@Mutable
@NotThreadSafe
public static interface TargetGroupsConfig.Builder
extends SdkPojo, CopyableBuilder<TargetGroupsConfig.Builder,TargetGroupsConfig>
-
Method Summary
Modifier and TypeMethodDescriptiontargetGroups(Collection<TargetGroup> targetGroups) One or more target groups.targetGroups(Consumer<TargetGroup.Builder>... targetGroups) One or more target groups.targetGroups(TargetGroup... targetGroups) One or more target groups.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
-
targetGroups
One or more target groups.
- Parameters:
targetGroups- One or more target groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetGroups
One or more target groups.
- Parameters:
targetGroups- One or more target groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetGroups
One or more target groups.
This is a convenience method that creates an instance of theTargetGroup.Builderavoiding the need to create one manually viaTargetGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargetGroups(List<TargetGroup>).- Parameters:
targetGroups- a consumer that will call methods onTargetGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-