Class SGEdge.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<SGEdge>
    Enclosing interface:
    SGEdge

    @Stability(Experimental)
    public static final class SGEdge.Builder
    extends Object
    implements software.amazon.jsii.Builder<SGEdge>
    A builder for SGEdge
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • direction

        @Stability(Experimental)
        public SGEdge.Builder direction​(EdgeDirectionEnum direction)
        Sets the value of SGEdge.getDirection()
        Parameters:
        direction - Indicates the direction in which the edge is directed. This parameter is required.
        Returns:
        this
      • source

        @Stability(Experimental)
        public SGEdge.Builder source​(String source)
        Sets the value of SGEdge.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 of SGEdge.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 of SGEntity.getUuid()
        Parameters:
        uuid - Universally unique identity. This parameter is required.
        Returns:
        this
      • metadata

        @Stability(Experimental)
        public SGEdge.Builder metadata​(List<? extends software.constructs.MetadataEntry> metadata)
        Sets the value of SGEntity.getMetadata()
        Parameters:
        metadata - Serializable entity metadata.
        Returns:
        this
      • build

        @Stability(Experimental)
        public SGEdge build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<SGEdge>
        Returns:
        a new instance of SGEdge
        Throws:
        NullPointerException - if any required attribute was not provided