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

com.pulumi.digitalocean.inputs.AppSpecServiceGitArgs 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AppSpecServiceGitArgs Empty = new AppSpecServiceGitArgs();

    /**
     * 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);
    }

    /**
     * The clone URL of the repo.
     * 
     */
    @Import(name="repoCloneUrl")
    private @Nullable Output repoCloneUrl;

    /**
     * @return The clone URL of the repo.
     * 
     */
    public Optional> repoCloneUrl() {
        return Optional.ofNullable(this.repoCloneUrl);
    }

    private AppSpecServiceGitArgs() {}

    private AppSpecServiceGitArgs(AppSpecServiceGitArgs $) {
        this.branch = $.branch;
        this.repoCloneUrl = $.repoCloneUrl;
    }

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

    public static final class Builder {
        private AppSpecServiceGitArgs $;

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

        public Builder(AppSpecServiceGitArgs defaults) {
            $ = new AppSpecServiceGitArgs(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 repoCloneUrl The clone URL of the repo.
         * 
         * @return builder
         * 
         */
        public Builder repoCloneUrl(@Nullable Output repoCloneUrl) {
            $.repoCloneUrl = repoCloneUrl;
            return this;
        }

        /**
         * @param repoCloneUrl The clone URL of the repo.
         * 
         * @return builder
         * 
         */
        public Builder repoCloneUrl(String repoCloneUrl) {
            return repoCloneUrl(Output.of(repoCloneUrl));
        }

        public AppSpecServiceGitArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy