Class SGEdge.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.cdkgraph.SGEdge.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SGEdge.Builderattributes(Map<String,? extends Object> attributes)Sets the value ofSGEntity.getAttributes()SGEdgebuild()Builds the configured instance.SGEdge.Builderdirection(EdgeDirectionEnum direction)Sets the value ofSGEdge.getDirection()SGEdge.BuilderedgeType(EdgeTypeEnum edgeType)Sets the value ofSGEdge.getEdgeType()SGEdge.Builderflags(List<? extends FlagEnum> flags)Sets the value ofSGEntity.getFlags()SGEdge.Buildermetadata(List<? extends software.constructs.MetadataEntry> metadata)Sets the value ofSGEntity.getMetadata()SGEdge.Buildersource(String source)Sets the value ofSGEdge.getSource()SGEdge.Buildertags(Map<String,String> tags)Sets the value ofSGEntity.getTags()SGEdge.Buildertarget(String target)Sets the value ofSGEdge.getTarget()SGEdge.Builderuuid(String uuid)Sets the value ofSGEntity.getUuid()
-
-
-
Method Detail
-
direction
@Stability(Experimental) public SGEdge.Builder direction(EdgeDirectionEnum direction)
Sets the value ofSGEdge.getDirection()- Parameters:
direction- Indicates the direction in which the edge is directed. This parameter is required.- Returns:
this
-
edgeType
@Stability(Experimental) public SGEdge.Builder edgeType(EdgeTypeEnum edgeType)
Sets the value ofSGEdge.getEdgeType()- Parameters:
edgeType- Type of edge. This parameter is required.- Returns:
this
-
source
@Stability(Experimental) public SGEdge.Builder source(String source)
Sets the value ofSGEdge.getSource()- Parameters:
source- UUID of edge source node (tail). This parameter is required.- Returns:
this
-
target
@Stability(Experimental) public SGEdge.Builder target(String target)
Sets the value ofSGEdge.getTarget()- Parameters:
target- UUID of edge target node (head). This parameter is required.- Returns:
this
-
uuid
@Stability(Experimental) public SGEdge.Builder uuid(String uuid)
Sets the value ofSGEntity.getUuid()- Parameters:
uuid- Universally unique identity. This parameter is required.- Returns:
this
-
attributes
@Stability(Experimental) public SGEdge.Builder attributes(Map<String,? extends Object> attributes)
Sets the value ofSGEntity.getAttributes()- Parameters:
attributes- Serializable entity attributes.- Returns:
this
-
flags
@Stability(Experimental) public SGEdge.Builder flags(List<? extends FlagEnum> flags)
Sets the value ofSGEntity.getFlags()- Parameters:
flags- Serializable entity flags.- Returns:
this
-
metadata
@Stability(Experimental) public SGEdge.Builder metadata(List<? extends software.constructs.MetadataEntry> metadata)
Sets the value ofSGEntity.getMetadata()- Parameters:
metadata- Serializable entity metadata.- Returns:
this
-
tags
@Stability(Experimental) public SGEdge.Builder tags(Map<String,String> tags)
Sets the value ofSGEntity.getTags()- Parameters:
tags- Serializable entity tags.- Returns:
this
-
build
@Stability(Experimental) public SGEdge build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SGEdge>- Returns:
- a new instance of
SGEdge - Throws:
NullPointerException- if any required attribute was not provided
-
-