Interface ListServicesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListServicesResponse.Builder,ListServicesResponse>,SdkBuilder<ListServicesResponse.Builder,ListServicesResponse>,SdkPojo,SdkResponse.Builder,ServiceDiscoveryResponse.Builder
- Enclosing class:
- ListServicesResponse
public static interface ListServicesResponse.Builder extends ServiceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<ListServicesResponse.Builder,ListServicesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListServicesResponse.BuildernextToken(String nextToken)If the response containsNextToken, submit anotherListServicesrequest to get the next group of results.ListServicesResponse.Builderservices(Collection<ServiceSummary> services)An array that contains oneServiceSummaryobject for each service that matches the specified filter criteria.ListServicesResponse.Builderservices(Consumer<ServiceSummary.Builder>... services)An array that contains oneServiceSummaryobject for each service that matches the specified filter criteria.ListServicesResponse.Builderservices(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
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 Detail
-
services
ListServicesResponse.Builder services(Collection<ServiceSummary> 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
ListServicesResponse.Builder services(ServiceSummary... 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
ListServicesResponse.Builder services(Consumer<ServiceSummary.Builder>... 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 to#services(List.) - 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:
#services(java.util.Collection)
-
nextToken
ListServicesResponse.Builder nextToken(String 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.
-
-