Interface TargetGroupsConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetGroupsConfig.Builder,TargetGroupsConfig>,SdkBuilder<TargetGroupsConfig.Builder,TargetGroupsConfig>,SdkPojo
- Enclosing class:
- TargetGroupsConfig
public static interface TargetGroupsConfig.Builder extends SdkPojo, CopyableBuilder<TargetGroupsConfig.Builder,TargetGroupsConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TargetGroupsConfig.BuildertargetGroups(Collection<TargetGroup> targetGroups)One or more target groups.TargetGroupsConfig.BuildertargetGroups(Consumer<TargetGroup.Builder>... targetGroups)One or more target groups.TargetGroupsConfig.BuildertargetGroups(TargetGroup... targetGroups)One or more target groups.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
targetGroups
TargetGroupsConfig.Builder targetGroups(Collection<TargetGroup> 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
TargetGroupsConfig.Builder targetGroups(TargetGroup... 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
TargetGroupsConfig.Builder targetGroups(Consumer<TargetGroup.Builder>... 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 to#targetGroups(List.) - 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:
#targetGroups(java.util.Collection)
-
-