Interface ListNamespacesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListNamespacesRequest.Builder,ListNamespacesRequest>,SdkBuilder<ListNamespacesRequest.Builder,ListNamespacesRequest>,SdkPojo,SdkRequest.Builder,ServiceDiscoveryRequest.Builder
- Enclosing class:
- ListNamespacesRequest
public static interface ListNamespacesRequest.Builder extends ServiceDiscoveryRequest.Builder, SdkPojo, CopyableBuilder<ListNamespacesRequest.Builder,ListNamespacesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListNamespacesRequest.Builderfilters(Collection<NamespaceFilter> filters)A complex type that contains specifications for the namespaces that you want to list.ListNamespacesRequest.Builderfilters(Consumer<NamespaceFilter.Builder>... filters)A complex type that contains specifications for the namespaces that you want to list.ListNamespacesRequest.Builderfilters(NamespaceFilter... filters)A complex type that contains specifications for the namespaces that you want to list.ListNamespacesRequest.BuildermaxResults(Integer maxResults)The maximum number of namespaces that you want Cloud Map to return in the response to aListNamespacesrequest.ListNamespacesRequest.BuildernextToken(String nextToken)For the firstListNamespacesrequest, omit this value.ListNamespacesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListNamespacesRequest.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
ListNamespacesRequest.Builder nextToken(String nextToken)
For the first
ListNamespacesrequest, omit this value.If the response contains
NextToken, submit anotherListNamespacesrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.Cloud Map gets
MaxResultsnamespaces and then filters them based on the specified criteria. It's possible that no namespaces in the firstMaxResultsnamespaces matched the specified criteria but that subsequent groups ofMaxResultsnamespaces do contain namespaces that match the criteria.- Parameters:
nextToken- For the firstListNamespacesrequest, omit this value.If the response contains
NextToken, submit anotherListNamespacesrequest to get the next group of results. Specify the value ofNextTokenfrom the previous response in the next request.Cloud Map gets
MaxResultsnamespaces and then filters them based on the specified criteria. It's possible that no namespaces in the firstMaxResultsnamespaces matched the specified criteria but that subsequent groups ofMaxResultsnamespaces do contain namespaces that match the criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
ListNamespacesRequest.Builder maxResults(Integer maxResults)
The maximum number of namespaces that you want Cloud Map to return in the response to a
ListNamespacesrequest. 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 aListNamespacesrequest. 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
ListNamespacesRequest.Builder filters(Collection<NamespaceFilter> 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
ListNamespacesRequest.Builder filters(NamespaceFilter... 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
ListNamespacesRequest.Builder filters(Consumer<NamespaceFilter.Builder>... 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.Builderavoiding the need to create one manually viaNamespaceFilter.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 onNamespaceFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#filters(java.util.Collection)
-
overrideConfiguration
ListNamespacesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListNamespacesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-