Interface DiscoverInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DiscoverInstancesResponse.Builder,,DiscoverInstancesResponse> SdkBuilder<DiscoverInstancesResponse.Builder,,DiscoverInstancesResponse> SdkPojo,SdkResponse.Builder,ServiceDiscoveryResponse.Builder
- Enclosing class:
DiscoverInstancesResponse
@Mutable
@NotThreadSafe
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 oneHttpInstanceSummaryfor each registered instance.instances(Consumer<HttpInstanceSummary.Builder>... instances) A complex type that contains oneHttpInstanceSummaryfor each registered instance.instances(HttpInstanceSummary... instances) A complex type that contains oneHttpInstanceSummaryfor 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
instances
A complex type that contains one
HttpInstanceSummaryfor each registered instance.- Parameters:
instances- A complex type that contains oneHttpInstanceSummaryfor 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
HttpInstanceSummaryfor each registered instance.- Parameters:
instances- A complex type that contains oneHttpInstanceSummaryfor 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 theHttpInstanceSummaryfor each registered instance.HttpInstanceSummary.Builderavoiding the need to create one manually viaHttpInstanceSummary.builder().When the
Consumercompletes,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
InstancesRevisionupdates. 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, theInstancesRevisionupdates. The health status updates don't updateInstancesRevision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-