Interface ListServicesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListServicesResponse.Builder,
,ListServicesResponse> SdkBuilder<ListServicesResponse.Builder,
,ListServicesResponse> SdkPojo
,SdkResponse.Builder
,ServiceDiscoveryResponse.Builder
- Enclosing class:
ListServicesResponse
-
Method Summary
Modifier and TypeMethodDescriptionIf the response containsNextToken
, submit anotherListServices
request to get the next group of results.services
(Collection<ServiceSummary> services) An array that contains oneServiceSummary
object for each service that matches the specified filter criteria.services
(Consumer<ServiceSummary.Builder>... services) An array that contains oneServiceSummary
object for each service that matches the specified filter criteria.services
(ServiceSummary... services) An array that contains oneServiceSummary
object for each service that matches the specified filter criteria.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
-
services
An array that contains one
ServiceSummary
object for each service that matches the specified filter criteria.- Parameters:
services
- An array that contains oneServiceSummary
object for each service that matches the specified filter criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
services
An array that contains one
ServiceSummary
object for each service that matches the specified filter criteria.- Parameters:
services
- An array that contains oneServiceSummary
object for each service that matches the specified filter criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
services
An array that contains one
This is a convenience method that creates an instance of theServiceSummary
object for each service that matches the specified filter criteria.ServiceSummary.Builder
avoiding the need to create one manually viaServiceSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toservices(List<ServiceSummary>)
.- Parameters:
services
- a consumer that will call methods onServiceSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the response contains
NextToken
, submit anotherListServices
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.Cloud Map gets
MaxResults
services and then filters them based on the specified criteria. It's possible that no services in the firstMaxResults
services matched the specified criteria but that subsequent groups ofMaxResults
services do contain services that match the criteria.- Parameters:
nextToken
- If the response containsNextToken
, submit anotherListServices
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.Cloud Map gets
MaxResults
services and then filters them based on the specified criteria. It's possible that no services in the firstMaxResults
services matched the specified criteria but that subsequent groups ofMaxResults
services do contain services that match the criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-