Interface SearchAgentContextResultEntity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SearchAgentContextResultEntity.Builder,,SearchAgentContextResultEntity> SdkBuilder<SearchAgentContextResultEntity.Builder,,SearchAgentContextResultEntity> SdkPojo
- Enclosing class:
SearchAgentContextResultEntity
-
Method Summary
Modifier and TypeMethodDescriptionedgeId(Consumer<EdgeIdentifier.Builder> edgeId) Identifier of the matched edge, set when this result is an edge (at most one of nodeId or edgeId).edgeId(EdgeIdentifier edgeId) Identifier of the matched edge, set when this result is an edge (at most one of nodeId or edgeId).entityType(String entityType) Specifies whether this result is a node or an edge.entityType(EntityType entityType) Specifies whether this result is a node or an edge.Identifier of the matched node.properties(Map<String, AnyValue> properties) Arbitrary key-value properties stored on the entity.Relevance score indicating how well this entity matches the query.Human-readable description or summary of the entity.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, sdkFields
-
Method Details
-
nodeId
Identifier of the matched node. Set when this result is a node (at most one of nodeId or edgeId).
- Parameters:
nodeId- Identifier of the matched node. Set when this result is a node (at most one of nodeId or edgeId).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
edgeId
Identifier of the matched edge, set when this result is an edge (at most one of nodeId or edgeId). Edge search isn't supported, so AWS Context doesn't set this member. An edge document indexed by a custom ontology is returned with neither nodeId nor edgeId set.
- Parameters:
edgeId- Identifier of the matched edge, set when this result is an edge (at most one of nodeId or edgeId). Edge search isn't supported, so AWS Context doesn't set this member. An edge document indexed by a custom ontology is returned with neither nodeId nor edgeId set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
edgeId
Identifier of the matched edge, set when this result is an edge (at most one of nodeId or edgeId). Edge search isn't supported, so AWS Context doesn't set this member. An edge document indexed by a custom ontology is returned with neither nodeId nor edgeId set.
This is a convenience method that creates an instance of theEdgeIdentifier.Builderavoiding the need to create one manually viaEdgeIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toedgeId(EdgeIdentifier).- Parameters:
edgeId- a consumer that will call methods onEdgeIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
entityType
Specifies whether this result is a node or an edge. Valid values:
-
NODE- The result is a node. This is the only value that AWS Context returns. -
EDGE- The result is an edge.
- Parameters:
entityType- Specifies whether this result is a node or an edge. Valid values:-
NODE- The result is a node. This is the only value that AWS Context returns. -
EDGE- The result is an edge.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
entityType
Specifies whether this result is a node or an edge. Valid values:
-
NODE- The result is a node. This is the only value that AWS Context returns. -
EDGE- The result is an edge.
- Parameters:
entityType- Specifies whether this result is a node or an edge. Valid values:-
NODE- The result is a node. This is the only value that AWS Context returns. -
EDGE- The result is an edge.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
summary
Human-readable description or summary of the entity.
- Parameters:
summary- Human-readable description or summary of the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
score
Relevance score indicating how well this entity matches the query.
- Parameters:
score- Relevance score indicating how well this entity matches the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
Arbitrary key-value properties stored on the entity.
- Parameters:
properties- Arbitrary key-value properties stored on the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-