Class NpmConfig.Builder

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

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

      • omitEmpty

        @Stability(Experimental)
        public NpmConfig.Builder omitEmpty​(Boolean omitEmpty)
        (experimental) Omits empty objects and arrays.

        Default: false

        Parameters:
        omitEmpty - Omits empty objects and arrays. This parameter is required.
        Returns:
        this
      • registry

        @Stability(Experimental)
        public NpmConfig.Builder registry​(String registry)
        (experimental) URL of the registry mirror to use.

        You can change this or add scoped registries using the addRegistry method

        Default: - use npmjs default registry

        Parameters:
        registry - URL of the registry mirror to use. This parameter is required.
        Returns:
        this
      • build

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