Interface ListServicesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListServicesRequest.Builder,ListServicesRequest>,SdkBuilder<ListServicesRequest.Builder,ListServicesRequest>,SdkPojo,SdkRequest.Builder,ServiceDiscoveryRequest.Builder
- Enclosing class:
- ListServicesRequest
public static interface ListServicesRequest.Builder extends ServiceDiscoveryRequest.Builder, SdkPojo, CopyableBuilder<ListServicesRequest.Builder,ListServicesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListServicesRequest.Builderfilters(Collection<ServiceFilter> filters)A complex type that contains specifications for the namespaces that you want to list services for.ListServicesRequest.Builderfilters(Consumer<ServiceFilter.Builder>... filters)A complex type that contains specifications for the namespaces that you want to list services for.ListServicesRequest.Builderfilters(ServiceFilter... filters)A complex type that contains specifications for the namespaces that you want to list services for.ListServicesRequest.BuildermaxResults(Integer maxResults)The maximum number of services that you want Cloud Map to return in the response to aListServicesrequest.ListServicesRequest.BuildernextToken(String nextToken)For the firstListServicesrequest, omit this value.ListServicesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListServicesRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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.services.servicediscovery.model.ServiceDiscoveryRequest.Builder
build
-
-
-
-
Method Detail
-
nextToken
ListServicesRequest.Builder nextToken(String nextToken)
For the first
ListServicesrequest, omit this value.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- For the firstListServicesrequest, omit this value.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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
ListServicesRequest.Builder maxResults(Integer maxResults)
The maximum number of services that you want Cloud Map to return in the response to a
ListServicesrequest. If you don't specify a value forMaxResults, Cloud Map returns up to 100 services.- Parameters:
maxResults- The maximum number of services that you want Cloud Map to return in the response to aListServicesrequest. If you don't specify a value forMaxResults, Cloud Map returns up to 100 services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListServicesRequest.Builder filters(Collection<ServiceFilter> filters)
A complex type that contains specifications for the namespaces that you want to list services for.
If you specify more than one filter, an operation must match all filters to be returned by
ListServices.- Parameters:
filters- A complex type that contains specifications for the namespaces that you want to list services for.If you specify more than one filter, an operation must match all filters to be returned by
ListServices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListServicesRequest.Builder filters(ServiceFilter... filters)
A complex type that contains specifications for the namespaces that you want to list services for.
If you specify more than one filter, an operation must match all filters to be returned by
ListServices.- Parameters:
filters- A complex type that contains specifications for the namespaces that you want to list services for.If you specify more than one filter, an operation must match all filters to be returned by
ListServices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListServicesRequest.Builder filters(Consumer<ServiceFilter.Builder>... filters)
A complex type that contains specifications for the namespaces that you want to list services for.
If you specify more than one filter, an operation must match all filters to be returned by
This is a convenience method that creates an instance of theListServices.ServiceFilter.Builderavoiding the need to create one manually viaServiceFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#filters(List.) - Parameters:
filters- a consumer that will call methods onServiceFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#filters(java.util.Collection)
-
overrideConfiguration
ListServicesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListServicesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-