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

com.pulumi.digitalocean.inputs.AppSpecStaticSiteGitlabArgs Maven / Gradle / Ivy

There is a newer version: 4.35.0
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.digitalocean.inputs;

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


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

    public static final AppSpecStaticSiteGitlabArgs Empty = new AppSpecStaticSiteGitlabArgs();

    /**
     * The name of the branch to use.
     * 
     */
    @Import(name="branch")
    private @Nullable Output branch;

    /**
     * @return The name of the branch to use.
     * 
     */
    public Optional> branch() {
        return Optional.ofNullable(this.branch);
    }

    /**
     * Whether to automatically deploy new commits made to the repo.
     * 
     */
    @Import(name="deployOnPush")
    private @Nullable Output deployOnPush;

    /**
     * @return Whether to automatically deploy new commits made to the repo.
     * 
     */
    public Optional> deployOnPush() {
        return Optional.ofNullable(this.deployOnPush);
    }

    /**
     * The name of the repo in the format `owner/repo`.
     * 
     */
    @Import(name="repo")
    private @Nullable Output repo;

    /**
     * @return The name of the repo in the format `owner/repo`.
     * 
     */
    public Optional> repo() {
        return Optional.ofNullable(this.repo);
    }

    private AppSpecStaticSiteGitlabArgs() {}

    private AppSpecStaticSiteGitlabArgs(AppSpecStaticSiteGitlabArgs $) {
        this.branch = $.branch;
        this.deployOnPush = $.deployOnPush;
        this.repo = $.repo;
    }

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

    public static final class Builder {
        private AppSpecStaticSiteGitlabArgs $;

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

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

        /**
         * @param branch The name of the branch to use.
         * 
         * @return builder
         * 
         */
        public Builder branch(@Nullable Output branch) {
            $.branch = branch;
            return this;
        }

        /**
         * @param branch The name of the branch to use.
         * 
         * @return builder
         * 
         */
        public Builder branch(String branch) {
            return branch(Output.of(branch));
        }

        /**
         * @param deployOnPush Whether to automatically deploy new commits made to the repo.
         * 
         * @return builder
         * 
         */
        public Builder deployOnPush(@Nullable Output deployOnPush) {
            $.deployOnPush = deployOnPush;
            return this;
        }

        /**
         * @param deployOnPush Whether to automatically deploy new commits made to the repo.
         * 
         * @return builder
         * 
         */
        public Builder deployOnPush(Boolean deployOnPush) {
            return deployOnPush(Output.of(deployOnPush));
        }

        /**
         * @param repo The name of the repo in the format `owner/repo`.
         * 
         * @return builder
         * 
         */
        public Builder repo(@Nullable Output repo) {
            $.repo = repo;
            return this;
        }

        /**
         * @param repo The name of the repo in the format `owner/repo`.
         * 
         * @return builder
         * 
         */
        public Builder repo(String repo) {
            return repo(Output.of(repo));
        }

        public AppSpecStaticSiteGitlabArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy