Package io.github.cdklabs.projen.gitlab
Class Release.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.Release.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Release.Builderassets(Assets assets)Sets the value ofRelease.getAssets()Releasebuild()Builds the configured instance.Release.Builderdescription(String description)Sets the value ofRelease.getDescription()Release.Buildermilestones(List<String> milestones)Sets the value ofRelease.getMilestones()Release.Buildername(String name)Sets the value ofRelease.getName()Release.Builderref(String ref)Sets the value ofRelease.getRef()Release.BuilderreleasedAt(String releasedAt)Sets the value ofRelease.getReleasedAt()Release.BuildertagName(String tagName)Sets the value ofRelease.getTagName()
-
-
-
Method Detail
-
description
@Stability(Experimental) public Release.Builder description(String description)
Sets the value ofRelease.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 ofRelease.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
-
assets
@Stability(Experimental) public Release.Builder assets(Assets assets)
Sets the value ofRelease.getAssets()- Parameters:
assets- the value to be set.- Returns:
this
-
milestones
@Stability(Experimental) public Release.Builder milestones(List<String> milestones)
Sets the value ofRelease.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 ofRelease.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 ofRelease.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 ofRelease.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:
buildin interfacesoftware.amazon.jsii.Builder<Release>- Returns:
- a new instance of
Release - Throws:
NullPointerException- if any required attribute was not provided
-
-