Interface Entity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Entity.Builder,,Entity> SdkBuilder<Entity.Builder,,Entity> SdkPojo
- Enclosing class:
Entity
@Mutable
@NotThreadSafe
public static interface Entity.Builder
extends SdkPojo, CopyableBuilder<Entity.Builder,Entity>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Entity.BuilderedgeId(Consumer<EdgeIdentifier.Builder> edgeId) The edge, identified by the IDs of its start and end nodes.edgeId(EdgeIdentifier edgeId) The edge, identified by the IDs of its start and end nodes.The ID of the 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
The ID of the node. For an ontology schema node, use its
iri:reference, which every write accepts.- Parameters:
nodeId- The ID of the node. For an ontology schema node, use itsiri:reference, which every write accepts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
edgeId
The edge, identified by the IDs of its start and end nodes. The edge type is in
properties.edgeType.- Parameters:
edgeId- The edge, identified by the IDs of its start and end nodes. The edge type is inproperties.edgeType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
edgeId
The edge, identified by the IDs of its start and end nodes. The edge type is in
This is a convenience method that creates an instance of theproperties.edgeType.EdgeIdentifier.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:
-