Interface SearchAgentContextResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContextResponse.Builder,CopyableBuilder<SearchAgentContextResponse.Builder,,SearchAgentContextResponse> SdkBuilder<SearchAgentContextResponse.Builder,,SearchAgentContextResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchAgentContextResponse
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationRequired(Consumer<AuthorizationRequired.Builder> authorizationRequired) Present when the end user must authorize access to a third-party resource before the search can run.authorizationRequired(AuthorizationRequired authorizationRequired) Present when the end user must authorize access to a third-party resource before the search can run.The matching entities, ranked by relevance.items(Consumer<SearchAgentContextResultEntity.Builder>... items) The matching entities, ranked by relevance.items(SearchAgentContextResultEntity... items) The matching entities, ranked by relevance.Pagination cursor for the next page.Methods inherited from interface software.amazon.awssdk.services.context.model.ContextResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkHttpResponse
-
Method Details
-
nextToken
Pagination cursor for the next page. Absent when there are no more results.
- Parameters:
nextToken- Pagination cursor for the next page. Absent when there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The matching entities, ranked by relevance.
- Parameters:
items- The matching entities, ranked by relevance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The matching entities, ranked by relevance.
- Parameters:
items- The matching entities, ranked by relevance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The matching entities, ranked by relevance.
This is a convenience method that creates an instance of theSearchAgentContextResultEntity.Builderavoiding the need to create one manually viaSearchAgentContextResultEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<SearchAgentContextResultEntity>).- Parameters:
items- a consumer that will call methods onSearchAgentContextResultEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authorizationRequired
SearchAgentContextResponse.Builder authorizationRequired(AuthorizationRequired authorizationRequired) Present when the end user must authorize access to a third-party resource before the search can run. In that case,
itemsis empty. ShowauthorizationUrlto the end user, and retry after the user consents. Through the agent context's MCP server, you receive this as an MCP elicitation request that contains the URL.- Parameters:
authorizationRequired- Present when the end user must authorize access to a third-party resource before the search can run. In that case,itemsis empty. ShowauthorizationUrlto the end user, and retry after the user consents. Through the agent context's MCP server, you receive this as an MCP elicitation request that contains the URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationRequired
default SearchAgentContextResponse.Builder authorizationRequired(Consumer<AuthorizationRequired.Builder> authorizationRequired) Present when the end user must authorize access to a third-party resource before the search can run. In that case,
This is a convenience method that creates an instance of theitemsis empty. ShowauthorizationUrlto the end user, and retry after the user consents. Through the agent context's MCP server, you receive this as an MCP elicitation request that contains the URL.AuthorizationRequired.Builderavoiding the need to create one manually viaAuthorizationRequired.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauthorizationRequired(AuthorizationRequired).- Parameters:
authorizationRequired- a consumer that will call methods onAuthorizationRequired.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-