Package io.github.cdklabs.projen.gitlab
Class TriggerInclude.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.TriggerInclude.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TriggerInclude>
- Enclosing interface:
- TriggerInclude
@Stability(Experimental) public static final class TriggerInclude.Builder extends Object implements software.amazon.jsii.Builder<TriggerInclude>
A builder forTriggerInclude
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TriggerInclude.Builderartifact(String artifact)Sets the value ofTriggerInclude.getArtifact()TriggerIncludebuild()Builds the configured instance.TriggerInclude.Builderfile(String file)Sets the value ofTriggerInclude.getFile()TriggerInclude.Builderjob(String job)Sets the value ofTriggerInclude.getJob()TriggerInclude.Builderlocal(String local)Sets the value ofTriggerInclude.getLocal()TriggerInclude.Builderproject(String project)Sets the value ofTriggerInclude.getProject()TriggerInclude.Builderref(String ref)Sets the value ofTriggerInclude.getRef()TriggerInclude.Buildertemplate(String template)Sets the value ofTriggerInclude.getTemplate()
-
-
-
Method Detail
-
artifact
@Stability(Experimental) public TriggerInclude.Builder artifact(String artifact)
Sets the value ofTriggerInclude.getArtifact()- Parameters:
artifact- Relative path to the generated YAML file which is extracted from the artifacts and used as the configuration for triggering the child pipeline.- Returns:
this
-
file
@Stability(Experimental) public TriggerInclude.Builder file(String file)
Sets the value ofTriggerInclude.getFile()- Parameters:
file- Relative path from repository root (/) to the pipeline configuration YAML file.- Returns:
this
-
job
@Stability(Experimental) public TriggerInclude.Builder job(String job)
Sets the value ofTriggerInclude.getJob()- Parameters:
job- Job name which generates the artifact.- Returns:
this
-
local
@Stability(Experimental) public TriggerInclude.Builder local(String local)
Sets the value ofTriggerInclude.getLocal()- Parameters:
local- Relative path from local repository root (/) to the local YAML file to define the pipeline configuration.- Returns:
this
-
project
@Stability(Experimental) public TriggerInclude.Builder project(String project)
Sets the value ofTriggerInclude.getProject()- Parameters:
project- Path to another private project under the same GitLab instance, likegroup/projectorgroup/sub-group/project.- Returns:
this
-
ref
@Stability(Experimental) public TriggerInclude.Builder ref(String ref)
Sets the value ofTriggerInclude.getRef()- Parameters:
ref- Branch/Tag/Commit hash for the target project.- Returns:
this
-
template
@Stability(Experimental) public TriggerInclude.Builder template(String template)
Sets the value ofTriggerInclude.getTemplate()- Parameters:
template- Name of the template YAML file to use in the pipeline configuration.- Returns:
this
-
build
@Stability(Experimental) public TriggerInclude build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TriggerInclude>- Returns:
- a new instance of
TriggerInclude - Throws:
NullPointerException- if any required attribute was not provided
-
-