Interface TraverseAgentContextResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContextResponse.Builder,CopyableBuilder<TraverseAgentContextResponse.Builder,,TraverseAgentContextResponse> SdkBuilder<TraverseAgentContextResponse.Builder,,TraverseAgentContextResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
TraverseAgentContextResponse
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationRequired(Consumer<AuthorizationRequired.Builder> authorizationRequired) Present when the end user must authorize access to a third-party resource before the traversal can run.authorizationRequired(AuthorizationRequired authorizationRequired) Present when the end user must authorize access to a third-party resource before the traversal can run.items(Collection<NeighborNode> items) The neighbors reached from the seed node.items(Consumer<NeighborNode.Builder>... items) The neighbors reached from the seed node.items(NeighborNode... items) The neighbors reached from the seed node.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 neighbors reached from the seed node.
- Parameters:
items- The neighbors reached from the seed node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The neighbors reached from the seed node.
- Parameters:
items- The neighbors reached from the seed node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The neighbors reached from the seed node.
This is a convenience method that creates an instance of theNeighborNode.Builderavoiding the need to create one manually viaNeighborNode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<NeighborNode>).- Parameters:
items- a consumer that will call methods onNeighborNode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authorizationRequired
TraverseAgentContextResponse.Builder authorizationRequired(AuthorizationRequired authorizationRequired) Present when the end user must authorize access to a third-party resource before the traversal 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 traversal 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 TraverseAgentContextResponse.Builder authorizationRequired(Consumer<AuthorizationRequired.Builder> authorizationRequired) Present when the end user must authorize access to a third-party resource before the traversal 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:
-