Interface SearchResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<SearchResponse.Builder,
,SearchResponse> ResourceExplorer2Response.Builder
,SdkBuilder<SearchResponse.Builder,
,SearchResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SearchResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault SearchResponse.Builder
count
(Consumer<ResourceCount.Builder> count) The number of resources that match the query.count
(ResourceCount count) The number of resources that match the query.If present, indicates that more output is available than is included in the current response.resources
(Collection<Resource> resources) The list of structures that describe the resources that match the query.resources
(Consumer<Resource.Builder>... resources) The list of structures that describe the resources that match the query.The list of structures that describe the resources that match the query.The Amazon resource name (ARN) of the view that this operation used to perform the search.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.resourceexplorer2.model.ResourceExplorer2Response.Builder
build, responseMetadata, responseMetadata
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
-
Method Details
-
count
The number of resources that match the query.
- Parameters:
count
- The number of resources that match the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
count
The number of resources that match the query.
This is a convenience method that creates an instance of theResourceCount.Builder
avoiding the need to create one manually viaResourceCount.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocount(ResourceCount)
.- Parameters:
count
- a consumer that will call methods onResourceCount.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If present, indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. The pagination tokens expire after 24 hours.- Parameters:
nextToken
- If present, indicates that more output is available than is included in the current response. Use this value in theNextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. The pagination tokens expire after 24 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
The list of structures that describe the resources that match the query.
- Parameters:
resources
- The list of structures that describe the resources that match the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
The list of structures that describe the resources that match the query.
- Parameters:
resources
- The list of structures that describe the resources that match the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
The list of structures that describe the resources that match the query.
This is a convenience method that creates an instance of theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresources(List<Resource>)
.- Parameters:
resources
- a consumer that will call methods onResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
viewArn
The Amazon resource name (ARN) of the view that this operation used to perform the search.
- Parameters:
viewArn
- The Amazon resource name (ARN) of the view that this operation used to perform the search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-