Interface NeighborNode.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NeighborNode.Builder,,NeighborNode> SdkBuilder<NeighborNode.Builder,,NeighborNode> SdkPojo
- Enclosing class:
NeighborNode
@Mutable
@NotThreadSafe
public static interface NeighborNode.Builder
extends SdkPojo, CopyableBuilder<NeighborNode.Builder,NeighborNode>
-
Method Summary
Modifier and TypeMethodDescriptionThe depth at which the traversal found this neighbor (1 = directly connected to seed, 2 = two edges away, and so on).Unique identifier of the neighbor node.pathEdges(Collection<PathEdge> pathEdges) The edges along the path from the seed node to this neighbor, preserving traversal order.pathEdges(Consumer<PathEdge.Builder>... pathEdges) The edges along the path from the seed node to this neighbor, preserving traversal order.The edges along the path from the seed node to this neighbor, preserving traversal order.properties(Map<String, AnyValue> properties) Arbitrary key-value properties stored on this neighbor node.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
Unique identifier of the neighbor node.
- Parameters:
nodeId- Unique identifier of the neighbor node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
Arbitrary key-value properties stored on this neighbor node.
- Parameters:
properties- Arbitrary key-value properties stored on this neighbor node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
depth
The depth at which the traversal found this neighbor (1 = directly connected to seed, 2 = two edges away, and so on).
- Parameters:
depth- The depth at which the traversal found this neighbor (1 = directly connected to seed, 2 = two edges away, and so on).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathEdges
The edges along the path from the seed node to this neighbor, preserving traversal order.
- Parameters:
pathEdges- The edges along the path from the seed node to this neighbor, preserving traversal order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathEdges
The edges along the path from the seed node to this neighbor, preserving traversal order.
- Parameters:
pathEdges- The edges along the path from the seed node to this neighbor, preserving traversal order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathEdges
The edges along the path from the seed node to this neighbor, preserving traversal order.
This is a convenience method that creates an instance of thePathEdge.Builderavoiding the need to create one manually viaPathEdge.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topathEdges(List<PathEdge>).- Parameters:
pathEdges- a consumer that will call methods onPathEdge.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-