All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.codepipeline.outputs.PipelineTriggerGitConfigurationPushBranches Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.codepipeline.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class PipelineTriggerGitConfigurationPushBranches {
    /**
     * @return A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
     * 
     */
    private @Nullable List excludes;
    /**
     * @return A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
     * 
     */
    private @Nullable List includes;

    private PipelineTriggerGitConfigurationPushBranches() {}
    /**
     * @return A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
     * 
     */
    public List excludes() {
        return this.excludes == null ? List.of() : this.excludes;
    }
    /**
     * @return A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
     * 
     */
    public List includes() {
        return this.includes == null ? List.of() : this.includes;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(PipelineTriggerGitConfigurationPushBranches defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List excludes;
        private @Nullable List includes;
        public Builder() {}
        public Builder(PipelineTriggerGitConfigurationPushBranches defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.excludes = defaults.excludes;
    	      this.includes = defaults.includes;
        }

        @CustomType.Setter
        public Builder excludes(@Nullable List excludes) {

            this.excludes = excludes;
            return this;
        }
        public Builder excludes(String... excludes) {
            return excludes(List.of(excludes));
        }
        @CustomType.Setter
        public Builder includes(@Nullable List includes) {

            this.includes = includes;
            return this;
        }
        public Builder includes(String... includes) {
            return includes(List.of(includes));
        }
        public PipelineTriggerGitConfigurationPushBranches build() {
            final var _resultValue = new PipelineTriggerGitConfigurationPushBranches();
            _resultValue.excludes = excludes;
            _resultValue.includes = includes;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy