Interface ListNamespacesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListNamespacesResponse.Builder,ListNamespacesResponse>,SdkBuilder<ListNamespacesResponse.Builder,ListNamespacesResponse>,SdkPojo,SdkResponse.Builder,ServiceDiscoveryResponse.Builder
- Enclosing class:
- ListNamespacesResponse
public static interface ListNamespacesResponse.Builder extends ServiceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<ListNamespacesResponse.Builder,ListNamespacesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListNamespacesResponse.Buildernamespaces(Collection<NamespaceSummary> namespaces)An array that contains oneNamespaceSummaryobject for each namespace that matches the specified filter criteria.ListNamespacesResponse.Buildernamespaces(Consumer<NamespaceSummary.Builder>... namespaces)An array that contains oneNamespaceSummaryobject for each namespace that matches the specified filter criteria.ListNamespacesResponse.Buildernamespaces(NamespaceSummary... namespaces)An array that contains oneNamespaceSummaryobject for each namespace that matches the specified filter criteria.ListNamespacesResponse.BuildernextToken(String nextToken)If the response containsNextToken, submit anotherListNamespacesrequest 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, sdkFieldNameToField, 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 Detail
-
namespaces
ListNamespacesResponse.Builder namespaces(Collection<NamespaceSummary> 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
ListNamespacesResponse.Builder namespaces(NamespaceSummary... 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
ListNamespacesResponse.Builder namespaces(Consumer<NamespaceSummary.Builder>... 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 to#namespaces(List.) - 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:
#namespaces(java.util.Collection)
-
nextToken
ListNamespacesResponse.Builder nextToken(String 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.
-
-