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.targets(Consumer<Target.Builder>... targets) The targets.The targets.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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, sdkFieldsMethods 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.
- Parameters:
targets- The targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets.
- Parameters:
targets- The targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets.
This is a convenience method that creates an instance of theTarget.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-