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 oneNamespaceSummaryobject for each namespace that matches the specified filter criteria.namespaces(Consumer<NamespaceSummary.Builder>... namespaces) An array that contains oneNamespaceSummaryobject for each namespace that matches the specified filter criteria.namespaces(NamespaceSummary... namespaces) An array that contains oneNamespaceSummaryobject for each namespace that matches the specified filter criteria.If the response containsNextToken, submit anotherListNamespacesrequest to get the next group of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
namespaces
An array that contains one
NamespaceSummaryobject for each namespace that matches the specified filter criteria.- Parameters:
namespaces- An array that contains oneNamespaceSummaryobject 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
NamespaceSummaryobject for each namespace that matches the specified filter criteria.- Parameters:
namespaces- An array that contains oneNamespaceSummaryobject 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 theNamespaceSummaryobject for each namespace that matches the specified filter criteria.NamespaceSummary.Builderavoiding the need to create one manually viaNamespaceSummary.builder().When the
Consumercompletes,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 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- If the response containsNextToken, 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.
-