Interface SearchAgentContextResultEntity.Builder

  • 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 the EdgeIdentifier.Builder avoiding the need to create one manually via EdgeIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to edgeId(EdgeIdentifier).

      Parameters:
      edgeId - a consumer that will call methods on EdgeIdentifier.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.