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 anotherListServicesrequest to get the next group of results.services(Collection<ServiceSummary> services) An array that contains oneServiceSummaryobject for each service that matches the specified filter criteria.services(Consumer<ServiceSummary.Builder>... services) An array that contains oneServiceSummaryobject for each service that matches the specified filter criteria.services(ServiceSummary... services) An array that contains oneServiceSummaryobject for each service that matches the specified filter criteria.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
-
services
An array that contains one
ServiceSummaryobject for each service that matches the specified filter criteria.- Parameters:
services- An array that contains oneServiceSummaryobject 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
ServiceSummaryobject for each service that matches the specified filter criteria.- Parameters:
services- An array that contains oneServiceSummaryobject 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 theServiceSummaryobject for each service that matches the specified filter criteria.ServiceSummary.Builderavoiding the need to create one manually viaServiceSummary.builder().When the
Consumercompletes,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 anotherListServicesrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.Cloud Map gets
MaxResultsservices and then filters them based on the specified criteria. It's possible that no services in the firstMaxResultsservices matched the specified criteria but that subsequent groups ofMaxResultsservices do contain services that match the criteria.- Parameters:
nextToken- If the response containsNextToken, submit anotherListServicesrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.Cloud Map gets
MaxResultsservices and then filters them based on the specified criteria. It's possible that no services in the firstMaxResultsservices matched the specified criteria but that subsequent groups ofMaxResultsservices do contain services that match the criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-