Class Release.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • description

        @Stability(Experimental)
        public Release.Builder description​(String description)
        Sets the value of Release.getDescription()
        Parameters:
        description - Specifies the longer description of the Release. This parameter is required.
        Returns:
        this
      • tagName

        @Stability(Experimental)
        public Release.Builder tagName​(String tagName)
        Sets the value of Release.getTagName()
        Parameters:
        tagName - The tag_name must be specified. This parameter is required. It can refer to an existing Git tag or can be specified by the user.
        Returns:
        this
      • milestones

        @Stability(Experimental)
        public Release.Builder milestones​(List<String> milestones)
        Sets the value of Release.getMilestones()
        Parameters:
        milestones - The title of each milestone the release is associated with.
        Returns:
        this
      • name

        @Stability(Experimental)
        public Release.Builder name​(String name)
        Sets the value of Release.getName()
        Parameters:
        name - The Release name. If omitted, it is populated with the value of release: tag_name.
        Returns:
        this
      • ref

        @Stability(Experimental)
        public Release.Builder ref​(String ref)
        Sets the value of Release.getRef()
        Parameters:
        ref - If the release: tag_name doesn’t exist yet, the release is created from ref. ref can be a commit SHA, another tag name, or a branch name.
        Returns:
        this
      • releasedAt

        @Stability(Experimental)
        public Release.Builder releasedAt​(String releasedAt)
        Sets the value of Release.getReleasedAt()
        Parameters:
        releasedAt - The date and time when the release is ready. Defaults to the current date and time if not defined. Should be enclosed in quotes and expressed in ISO 8601 format.
        Returns:
        this
      • build

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