Interface ListTargetsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListTargetsRequest.Builder,
,ListTargetsRequest> SdkBuilder<ListTargetsRequest.Builder,
,ListTargetsRequest> SdkPojo
,SdkRequest.Builder
,VpcLatticeRequest.Builder
- Enclosing class:
ListTargetsRequest
public static interface ListTargetsRequest.Builder
extends VpcLatticeRequest.Builder, SdkPojo, CopyableBuilder<ListTargetsRequest.Builder,ListTargetsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionmaxResults
(Integer maxResults) The maximum number of results to return.A pagination token for the next page of results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.targetGroupIdentifier
(String targetGroupIdentifier) The ID or Amazon Resource Name (ARN) of the target group.targets
(Collection<Target> targets) The targets to list.targets
(Consumer<Target.Builder>... targets) The targets to list.The targets to list.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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, sdkFields
Methods inherited from interface software.amazon.awssdk.services.vpclattice.model.VpcLatticeRequest.Builder
build
-
Method Details
-
maxResults
The maximum number of results to return.
- Parameters:
maxResults
- The maximum number of results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
A pagination token for the next page of results.
- Parameters:
nextToken
- A pagination token for the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetGroupIdentifier
The ID or Amazon Resource Name (ARN) of the target group.
- Parameters:
targetGroupIdentifier
- The ID or Amazon Resource Name (ARN) of the target group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to list.
- Parameters:
targets
- The targets to list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to list.
- Parameters:
targets
- The targets to list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to list.
This is a convenience method that creates an instance of theTarget.Builder
avoiding the need to create one manually viaTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargets(List<Target>)
.- Parameters:
targets
- a consumer that will call methods onTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListTargetsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListTargetsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-