Interface ListNamespacesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListNamespacesResponse.Builder,
,ListNamespacesResponse> SdkBuilder<ListNamespacesResponse.Builder,
,ListNamespacesResponse> SdkPojo
,SdkResponse.Builder
,ServiceDiscoveryResponse.Builder
- Enclosing class:
ListNamespacesResponse
-
Method Summary
Modifier and TypeMethodDescriptionnamespaces
(Collection<NamespaceSummary> namespaces) An array that contains oneNamespaceSummary
object for each namespace that matches the specified filter criteria.namespaces
(Consumer<NamespaceSummary.Builder>... namespaces) An array that contains oneNamespaceSummary
object for each namespace that matches the specified filter criteria.namespaces
(NamespaceSummary... namespaces) An array that contains oneNamespaceSummary
object for each namespace that matches the specified filter criteria.If the response containsNextToken
, submit anotherListNamespaces
request to get the next group of results.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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
namespaces
An array that contains one
NamespaceSummary
object for each namespace that matches the specified filter criteria.- Parameters:
namespaces
- An array that contains oneNamespaceSummary
object for each namespace that matches the specified filter criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
An array that contains one
NamespaceSummary
object for each namespace that matches the specified filter criteria.- Parameters:
namespaces
- An array that contains oneNamespaceSummary
object for each namespace that matches the specified filter criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
An array that contains one
This is a convenience method that creates an instance of theNamespaceSummary
object for each namespace that matches the specified filter criteria.NamespaceSummary.Builder
avoiding the need to create one manually viaNamespaceSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonamespaces(List<NamespaceSummary>)
.- Parameters:
namespaces
- a consumer that will call methods onNamespaceSummary.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 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
- If the response containsNextToken
, 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.
-