Interface ListInstancesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListInstancesResponse.Builder,ListInstancesResponse>,SdkBuilder<ListInstancesResponse.Builder,ListInstancesResponse>,SdkPojo,SdkResponse.Builder,ServiceDiscoveryResponse.Builder
- Enclosing class:
- ListInstancesResponse
public static interface ListInstancesResponse.Builder extends ServiceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<ListInstancesResponse.Builder,ListInstancesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListInstancesResponse.Builderinstances(Collection<InstanceSummary> instances)Summary information about the instances that are associated with the specified service.ListInstancesResponse.Builderinstances(Consumer<InstanceSummary.Builder>... instances)Summary information about the instances that are associated with the specified service.ListInstancesResponse.Builderinstances(InstanceSummary... instances)Summary information about the instances that are associated with the specified service.ListInstancesResponse.BuildernextToken(String nextToken)If more thanMaxResultsinstances match the specified criteria, you can submit anotherListInstancesrequest to get the next group of results.-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
instances
ListInstancesResponse.Builder instances(Collection<InstanceSummary> instances)
Summary information about the instances that are associated with the specified service.
- Parameters:
instances- Summary information about the instances that are associated with the specified service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
ListInstancesResponse.Builder instances(InstanceSummary... instances)
Summary information about the instances that are associated with the specified service.
- Parameters:
instances- Summary information about the instances that are associated with the specified service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
ListInstancesResponse.Builder instances(Consumer<InstanceSummary.Builder>... instances)
Summary information about the instances that are associated with the specified service.
This is a convenience method that creates an instance of theInstanceSummary.Builderavoiding the need to create one manually viaInstanceSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#instances(List.) - Parameters:
instances- a consumer that will call methods onInstanceSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#instances(java.util.Collection)
-
nextToken
ListInstancesResponse.Builder nextToken(String nextToken)
If more than
MaxResultsinstances match the specified criteria, you can submit anotherListInstancesrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.- Parameters:
nextToken- If more thanMaxResultsinstances match the specified criteria, you can submit anotherListInstancesrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-