Interface ListNamespacesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListNamespacesRequest.Builder,
,ListNamespacesRequest> SdkBuilder<ListNamespacesRequest.Builder,
,ListNamespacesRequest> SdkPojo
,SdkRequest.Builder
,ServiceDiscoveryRequest.Builder
- Enclosing class:
ListNamespacesRequest
-
Method Summary
Modifier and TypeMethodDescriptionfilters
(Collection<NamespaceFilter> filters) A complex type that contains specifications for the namespaces that you want to list.filters
(Consumer<NamespaceFilter.Builder>... filters) A complex type that contains specifications for the namespaces that you want to list.filters
(NamespaceFilter... filters) A complex type that contains specifications for the namespaces that you want to list.maxResults
(Integer maxResults) The maximum number of namespaces that you want Cloud Map to return in the response to aListNamespaces
request.For the firstListNamespaces
request, omit this value.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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, sdkFields
Methods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryRequest.Builder
build
-
Method Details
-
nextToken
For the first
ListNamespaces
request, omit this value.If the response contains
NextToken
, submit anotherListNamespaces
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.Cloud Map gets
MaxResults
namespaces and then filters them based on the specified criteria. It's possible that no namespaces in the firstMaxResults
namespaces matched the specified criteria but that subsequent groups ofMaxResults
namespaces do contain namespaces that match the criteria.- Parameters:
nextToken
- For the firstListNamespaces
request, omit this value.If the response contains
NextToken
, submit anotherListNamespaces
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.Cloud Map gets
MaxResults
namespaces and then filters them based on the specified criteria. It's possible that no namespaces in the firstMaxResults
namespaces matched the specified criteria but that subsequent groups ofMaxResults
namespaces do contain namespaces that match the criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of namespaces that you want Cloud Map to return in the response to a
ListNamespaces
request. If you don't specify a value forMaxResults
, Cloud Map returns up to 100 namespaces.- Parameters:
maxResults
- The maximum number of namespaces that you want Cloud Map to return in the response to aListNamespaces
request. If you don't specify a value forMaxResults
, Cloud Map returns up to 100 namespaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
A complex type that contains specifications for the namespaces that you want to list.
If you specify more than one filter, a namespace must match all filters to be returned by
ListNamespaces
.- Parameters:
filters
- A complex type that contains specifications for the namespaces that you want to list.If you specify more than one filter, a namespace must match all filters to be returned by
ListNamespaces
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
A complex type that contains specifications for the namespaces that you want to list.
If you specify more than one filter, a namespace must match all filters to be returned by
ListNamespaces
.- Parameters:
filters
- A complex type that contains specifications for the namespaces that you want to list.If you specify more than one filter, a namespace must match all filters to be returned by
ListNamespaces
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
A complex type that contains specifications for the namespaces that you want to list.
If you specify more than one filter, a namespace must match all filters to be returned by
This is a convenience method that creates an instance of theListNamespaces
.NamespaceFilter.Builder
avoiding the need to create one manually viaNamespaceFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<NamespaceFilter>)
.- Parameters:
filters
- a consumer that will call methods onNamespaceFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListNamespacesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListNamespacesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-