Class Plugin.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public Plugin.Builder name​(String name)
        Sets the value of Plugin.getName()
        Parameters:
        name - The name of Jenkins plugin. This parameter is required.
        Returns:
        this
      • version

        @Stability(Stable)
        public Plugin.Builder version​(String version)
        Sets the value of Plugin.getVersion()
        Parameters:
        version - The version of Jenkins plugin. This parameter is required.
        Returns:
        this
      • downloadUrl

        @Stability(Stable)
        public Plugin.Builder downloadUrl​(String downloadUrl)
        Sets the value of Plugin.getDownloadUrl()
        Parameters:
        downloadUrl - The url from where plugin has to be downloaded.
        Returns:
        this
      • build

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