Interface CreateTargetGroupResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateTargetGroupResponse.Builder,
,CreateTargetGroupResponse> ElasticLoadBalancingV2Response.Builder
,SdkBuilder<CreateTargetGroupResponse.Builder,
,CreateTargetGroupResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateTargetGroupResponse
public static interface CreateTargetGroupResponse.Builder
extends ElasticLoadBalancingV2Response.Builder, SdkPojo, CopyableBuilder<CreateTargetGroupResponse.Builder,CreateTargetGroupResponse>
-
Method Summary
Modifier and TypeMethodDescriptiontargetGroups
(Collection<TargetGroup> targetGroups) Information about the target group.targetGroups
(Consumer<TargetGroup.Builder>... targetGroups) Information about the target group.targetGroups
(TargetGroup... targetGroups) Information about the target group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.elasticloadbalancingv2.model.ElasticLoadBalancingV2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
targetGroups
Information about the target group.
- Parameters:
targetGroups
- Information about the target group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetGroups
Information about the target group.
- Parameters:
targetGroups
- Information about the target group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetGroups
Information about the target group.
This is a convenience method that creates an instance of theTargetGroup.Builder
avoiding the need to create one manually viaTargetGroup.builder()
.When the
Consumer
completes,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:
-