Interface RetrievedContext.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RetrievedContext.Builder,,RetrievedContext> SdkBuilder<RetrievedContext.Builder,,RetrievedContext> SdkPojo
- Enclosing class:
RetrievedContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault RetrievedContext.Buildercontent(Consumer<RetrievedContextContent.Builder> content) The retrieved content of the entity.content(RetrievedContextContent content) The retrieved content of the entity.documentId(String documentId) Identifier of the document.default RetrievedContext.BuilderedgeId(Consumer<EdgeIdentifier.Builder> edgeId) Identifier of the edge.edgeId(EdgeIdentifier edgeId) Identifier of the edge.entityType(String entityType) Specifies whether this result is a node, an edge, or a document.entityType(RetrievedContextEntityType entityType) Specifies whether this result is a node, an edge, or a document.Identifier of the node.properties(Map<String, AnyValue> properties) Arbitrary key-value properties stored on the entity.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 node. Set when this result is a node (one of nodeId, edgeId, or documentId).
- Parameters:
nodeId- Identifier of the node. Set when this result is a node (one of nodeId, edgeId, or documentId).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
edgeId
Identifier of the edge. Set when this result is an edge (one of nodeId, edgeId, or documentId).
- Parameters:
edgeId- Identifier of the edge. Set when this result is an edge (one of nodeId, edgeId, or documentId).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
edgeId
Identifier of the edge. Set when this result is an edge (one of nodeId, edgeId, or documentId).
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:
-
documentId
Identifier of the document. Set when this result is a document (one of nodeId, edgeId, or documentId).
- Parameters:
documentId- Identifier of the document. Set when this result is a document (one of nodeId, edgeId, or documentId).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityType
Specifies whether this result is a node, an edge, or a document. Valid values:
-
NODE- The result is a node. -
EDGE- The result is an edge. -
DOCUMENT- The result is a document.
- Parameters:
entityType- Specifies whether this result is a node, an edge, or a document. Valid values:-
NODE- The result is a node. -
EDGE- The result is an edge. -
DOCUMENT- The result is a document.
-
- 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, an edge, or a document. Valid values:
-
NODE- The result is a node. -
EDGE- The result is an edge. -
DOCUMENT- The result is a document.
- Parameters:
entityType- Specifies whether this result is a node, an edge, or a document. Valid values:-
NODE- The result is a node. -
EDGE- The result is an edge. -
DOCUMENT- The result is a document.
-
- 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.
-
content
The retrieved content of the entity.
- Parameters:
content- The retrieved content of the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The retrieved content of the entity.
This is a convenience method that creates an instance of theRetrievedContextContent.Builderavoiding the need to create one manually viaRetrievedContextContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(RetrievedContextContent).- Parameters:
content- a consumer that will call methods onRetrievedContextContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-