Class Construct.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<Construct>
    Enclosing class:
    Construct

    @Stability(Stable)
    public static final class Construct.Builder
    extends Object
    implements software.amazon.jsii.Builder<Construct>
    A fluent builder for Construct.
    • Method Detail

      • create

        @Stability(Stable)
        public static Construct.Builder create​(Construct scope,
                                               String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of Construct.Builder.
      • nodeFactory

        @Stability(Stable)
        public Construct.Builder nodeFactory​(INodeFactory nodeFactory)
        A factory for attaching Nodes to the construct.

        Default: - the default `Node` is associated

        Parameters:
        nodeFactory - A factory for attaching Nodes to the construct. This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public Construct build()
        Specified by:
        build in interface software.amazon.jsii.Builder<Construct>
        Returns:
        a newly built instance of Construct.