Interface ListInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListInstancesResponse.Builder,
,ListInstancesResponse> SdkBuilder<ListInstancesResponse.Builder,
,ListInstancesResponse> SdkPojo
,SdkResponse.Builder
,ServiceDiscoveryResponse.Builder
- Enclosing class:
ListInstancesResponse
-
Method Summary
Modifier and TypeMethodDescriptioninstances
(Collection<InstanceSummary> instances) Summary information about the instances that are associated with the specified service.instances
(Consumer<InstanceSummary.Builder>... instances) Summary information about the instances that are associated with the specified service.instances
(InstanceSummary... instances) Summary information about the instances that are associated with the specified service.If more thanMaxResults
instances match the specified criteria, you can submit anotherListInstances
request to get the next group of results.resourceOwner
(String resourceOwner) The ID of the Amazon Web Services account that created the namespace that contains the specified service.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 Details
-
resourceOwner
The ID of the Amazon Web Services account that created the namespace that contains the specified service. If this isn't your account ID, it's the ID of the account that shared the namespace with your account.
- Parameters:
resourceOwner
- The ID of the Amazon Web Services account that created the namespace that contains the specified service. If this isn't your account ID, it's the ID of the account that shared the namespace with your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
Summary information about the instances that are associated with the specified service.
This is a convenience method that creates an instance of theInstanceSummary.Builder
avoiding the need to create one manually viaInstanceSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstances(List<InstanceSummary>)
.- 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:
-
nextToken
If more than
MaxResults
instances match the specified criteria, you can submit anotherListInstances
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.- Parameters:
nextToken
- If more thanMaxResults
instances match the specified criteria, you can submit anotherListInstances
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-