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

com.pulumi.aws.codepipeline.inputs.PipelineTriggerGitConfigurationPullRequestBranchesArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.inputs;

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


public final class PipelineTriggerGitConfigurationPullRequestBranchesArgs extends com.pulumi.resources.ResourceArgs {

    public static final PipelineTriggerGitConfigurationPullRequestBranchesArgs Empty = new PipelineTriggerGitConfigurationPullRequestBranchesArgs();

    /**
     * A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
     * 
     */
    @Import(name="excludes")
    private @Nullable Output> excludes;

    /**
     * @return A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
     * 
     */
    public Optional>> excludes() {
        return Optional.ofNullable(this.excludes);
    }

    /**
     * A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
     * 
     */
    @Import(name="includes")
    private @Nullable Output> includes;

    /**
     * @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 Optional>> includes() {
        return Optional.ofNullable(this.includes);
    }

    private PipelineTriggerGitConfigurationPullRequestBranchesArgs() {}

    private PipelineTriggerGitConfigurationPullRequestBranchesArgs(PipelineTriggerGitConfigurationPullRequestBranchesArgs $) {
        this.excludes = $.excludes;
        this.includes = $.includes;
    }

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

    public static final class Builder {
        private PipelineTriggerGitConfigurationPullRequestBranchesArgs $;

        public Builder() {
            $ = new PipelineTriggerGitConfigurationPullRequestBranchesArgs();
        }

        public Builder(PipelineTriggerGitConfigurationPullRequestBranchesArgs defaults) {
            $ = new PipelineTriggerGitConfigurationPullRequestBranchesArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param excludes A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder excludes(@Nullable Output> excludes) {
            $.excludes = excludes;
            return this;
        }

        /**
         * @param excludes A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder excludes(List excludes) {
            return excludes(Output.of(excludes));
        }

        /**
         * @param excludes A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder excludes(String... excludes) {
            return excludes(List.of(excludes));
        }

        /**
         * @param includes A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder includes(@Nullable Output> includes) {
            $.includes = includes;
            return this;
        }

        /**
         * @param includes A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder includes(List includes) {
            return includes(Output.of(includes));
        }

        /**
         * @param includes A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder includes(String... includes) {
            return includes(List.of(includes));
        }

        public PipelineTriggerGitConfigurationPullRequestBranchesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy