Package io.github.cdklabs.projen.gitlab
Class Filter.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.Filter.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Filterbuild()Builds the configured instance.Filter.Builderchanges(List<String> changes)Sets the value ofFilter.getChanges()Filter.Builderkubernetes(KubernetesEnum kubernetes)Sets the value ofFilter.getKubernetes()Filter.Builderrefs(List<String> refs)Sets the value ofFilter.getRefs()Filter.Buildervariables(List<String> variables)Sets the value ofFilter.getVariables()
-
-
-
Method Detail
-
changes
@Stability(Experimental) public Filter.Builder changes(List<String> changes)
Sets the value ofFilter.getChanges()- Parameters:
changes- Filter job creation based on files that were modified in a git push.- Returns:
this
-
kubernetes
@Stability(Experimental) public Filter.Builder kubernetes(KubernetesEnum kubernetes)
Sets the value ofFilter.getKubernetes()- Parameters:
kubernetes- Filter job based on if Kubernetes integration is active.- Returns:
this
-
refs
@Stability(Experimental) public Filter.Builder refs(List<String> refs)
Sets the value ofFilter.getRefs()- Parameters:
refs- Control when to add jobs to a pipeline based on branch names or pipeline types.- Returns:
this
-
variables
@Stability(Experimental) public Filter.Builder variables(List<String> variables)
Sets the value ofFilter.getVariables()- Parameters:
variables- Filter job by checking comparing values of environment variables. Read more about variable expressions: https://docs.gitlab.com/ee/ci/variables/README.html#variables-expressions- Returns:
this
-
build
@Stability(Experimental) public Filter build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Filter>- Returns:
- a new instance of
Filter - Throws:
NullPointerException- if any required attribute was not provided
-
-