Interface DiscoverInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DiscoverInstancesResponse.Builder,
,DiscoverInstancesResponse> SdkBuilder<DiscoverInstancesResponse.Builder,
,DiscoverInstancesResponse> SdkPojo
,SdkResponse.Builder
,ServiceDiscoveryResponse.Builder
- Enclosing class:
DiscoverInstancesResponse
public static interface DiscoverInstancesResponse.Builder
extends ServiceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<DiscoverInstancesResponse.Builder,DiscoverInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninstances
(Collection<HttpInstanceSummary> instances) A complex type that contains oneHttpInstanceSummary
for each registered instance.instances
(Consumer<HttpInstanceSummary.Builder>... instances) A complex type that contains oneHttpInstanceSummary
for each registered instance.instances
(HttpInstanceSummary... instances) A complex type that contains oneHttpInstanceSummary
for each registered instance.instancesRevision
(Long instancesRevision) The increasing revision associated to the response Instances list.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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
instances
A complex type that contains one
HttpInstanceSummary
for each registered instance.- Parameters:
instances
- A complex type that contains oneHttpInstanceSummary
for each registered instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
A complex type that contains one
HttpInstanceSummary
for each registered instance.- Parameters:
instances
- A complex type that contains oneHttpInstanceSummary
for each registered instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
A complex type that contains one
This is a convenience method that creates an instance of theHttpInstanceSummary
for each registered instance.HttpInstanceSummary.Builder
avoiding the need to create one manually viaHttpInstanceSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstances(List<HttpInstanceSummary>)
.- Parameters:
instances
- a consumer that will call methods onHttpInstanceSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instancesRevision
The increasing revision associated to the response Instances list. If a new instance is registered or deregistered, the
InstancesRevision
updates. The health status updates don't updateInstancesRevision
.- Parameters:
instancesRevision
- The increasing revision associated to the response Instances list. If a new instance is registered or deregistered, theInstancesRevision
updates. The health status updates don't updateInstancesRevision
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-