Class Bundle.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • bundleTask

        @Stability(Experimental)
        public Bundle.Builder bundleTask​(Task bundleTask)
        Sets the value of Bundle.getBundleTask()
        Parameters:
        bundleTask - The task that produces this bundle. This parameter is required.
        Returns:
        this
      • outdir

        @Stability(Experimental)
        public Bundle.Builder outdir​(String outdir)
        Sets the value of Bundle.getOutdir()
        Parameters:
        outdir - Base directory containing the output file (relative to project root). This parameter is required.
        Returns:
        this
      • outfile

        @Stability(Experimental)
        public Bundle.Builder outfile​(String outfile)
        Sets the value of Bundle.getOutfile()
        Parameters:
        outfile - Location of the output file (relative to project root). This parameter is required.
        Returns:
        this
      • watchTask

        @Stability(Experimental)
        public Bundle.Builder watchTask​(Task watchTask)
        Sets the value of Bundle.getWatchTask()
        Parameters:
        watchTask - The "watch" task for this bundle.
        Returns:
        this
      • build

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