Class SemverGroup.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • dependencies

        @Stability(Stable)
        public SemverGroup.Builder dependencies​(List<String> dependencies)
        Parameters:
        dependencies - the names of the dependencies (eg. This parameter is required. "lodash") which belong to this group
        Returns:
        this
      • packages

        @Stability(Stable)
        public SemverGroup.Builder packages​(List<String> packages)
        Sets the value of SemverGroup.getPackages()
        Parameters:
        packages - the names of packages in your monorepo which belong to this group, taken from the "name" field in package.json, not the package directory name. This parameter is required.
        Returns:
        this
      • range

        @Stability(Stable)
        public SemverGroup.Builder range​(String range)
        Sets the value of SemverGroup.getRange()
        Parameters:
        range - the semver range which dependencies in this group should use. This parameter is required.
        Returns:
        this
      • build

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