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

com.pulumi.azurenative.automation.SourceControlArgs 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.azurenative.automation;

import com.pulumi.azurenative.automation.enums.SourceType;
import com.pulumi.azurenative.automation.inputs.SourceControlSecurityTokenPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SourceControlArgs Empty = new SourceControlArgs();

    /**
     * The auto async of the source control. Default is false.
     * 
     */
    @Import(name="autoSync")
    private @Nullable Output autoSync;

    /**
     * @return The auto async of the source control. Default is false.
     * 
     */
    public Optional> autoSync() {
        return Optional.ofNullable(this.autoSync);
    }

    /**
     * The name of the automation account.
     * 
     */
    @Import(name="automationAccountName", required=true)
    private Output automationAccountName;

    /**
     * @return The name of the automation account.
     * 
     */
    public Output automationAccountName() {
        return this.automationAccountName;
    }

    /**
     * The repo branch of the source control. Include branch as empty string for VsoTfvc.
     * 
     */
    @Import(name="branch")
    private @Nullable Output branch;

    /**
     * @return The repo branch of the source control. Include branch as empty string for VsoTfvc.
     * 
     */
    public Optional> branch() {
        return Optional.ofNullable(this.branch);
    }

    /**
     * The user description of the source control.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The user description of the source control.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The folder path of the source control. Path must be relative.
     * 
     */
    @Import(name="folderPath")
    private @Nullable Output folderPath;

    /**
     * @return The folder path of the source control. Path must be relative.
     * 
     */
    public Optional> folderPath() {
        return Optional.ofNullable(this.folderPath);
    }

    /**
     * The auto publish of the source control. Default is true.
     * 
     */
    @Import(name="publishRunbook")
    private @Nullable Output publishRunbook;

    /**
     * @return The auto publish of the source control. Default is true.
     * 
     */
    public Optional> publishRunbook() {
        return Optional.ofNullable(this.publishRunbook);
    }

    /**
     * The repo url of the source control.
     * 
     */
    @Import(name="repoUrl")
    private @Nullable Output repoUrl;

    /**
     * @return The repo url of the source control.
     * 
     */
    public Optional> repoUrl() {
        return Optional.ofNullable(this.repoUrl);
    }

    /**
     * Name of an Azure Resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of an Azure Resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The authorization token for the repo of the source control.
     * 
     */
    @Import(name="securityToken")
    private @Nullable Output securityToken;

    /**
     * @return The authorization token for the repo of the source control.
     * 
     */
    public Optional> securityToken() {
        return Optional.ofNullable(this.securityToken);
    }

    /**
     * The source control name.
     * 
     */
    @Import(name="sourceControlName")
    private @Nullable Output sourceControlName;

    /**
     * @return The source control name.
     * 
     */
    public Optional> sourceControlName() {
        return Optional.ofNullable(this.sourceControlName);
    }

    /**
     * The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.
     * 
     */
    @Import(name="sourceType")
    private @Nullable Output> sourceType;

    /**
     * @return The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.
     * 
     */
    public Optional>> sourceType() {
        return Optional.ofNullable(this.sourceType);
    }

    private SourceControlArgs() {}

    private SourceControlArgs(SourceControlArgs $) {
        this.autoSync = $.autoSync;
        this.automationAccountName = $.automationAccountName;
        this.branch = $.branch;
        this.description = $.description;
        this.folderPath = $.folderPath;
        this.publishRunbook = $.publishRunbook;
        this.repoUrl = $.repoUrl;
        this.resourceGroupName = $.resourceGroupName;
        this.securityToken = $.securityToken;
        this.sourceControlName = $.sourceControlName;
        this.sourceType = $.sourceType;
    }

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

    public static final class Builder {
        private SourceControlArgs $;

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

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

        /**
         * @param autoSync The auto async of the source control. Default is false.
         * 
         * @return builder
         * 
         */
        public Builder autoSync(@Nullable Output autoSync) {
            $.autoSync = autoSync;
            return this;
        }

        /**
         * @param autoSync The auto async of the source control. Default is false.
         * 
         * @return builder
         * 
         */
        public Builder autoSync(Boolean autoSync) {
            return autoSync(Output.of(autoSync));
        }

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(Output automationAccountName) {
            $.automationAccountName = automationAccountName;
            return this;
        }

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(String automationAccountName) {
            return automationAccountName(Output.of(automationAccountName));
        }

        /**
         * @param branch The repo branch of the source control. Include branch as empty string for VsoTfvc.
         * 
         * @return builder
         * 
         */
        public Builder branch(@Nullable Output branch) {
            $.branch = branch;
            return this;
        }

        /**
         * @param branch The repo branch of the source control. Include branch as empty string for VsoTfvc.
         * 
         * @return builder
         * 
         */
        public Builder branch(String branch) {
            return branch(Output.of(branch));
        }

        /**
         * @param description The user description of the source control.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The user description of the source control.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param folderPath The folder path of the source control. Path must be relative.
         * 
         * @return builder
         * 
         */
        public Builder folderPath(@Nullable Output folderPath) {
            $.folderPath = folderPath;
            return this;
        }

        /**
         * @param folderPath The folder path of the source control. Path must be relative.
         * 
         * @return builder
         * 
         */
        public Builder folderPath(String folderPath) {
            return folderPath(Output.of(folderPath));
        }

        /**
         * @param publishRunbook The auto publish of the source control. Default is true.
         * 
         * @return builder
         * 
         */
        public Builder publishRunbook(@Nullable Output publishRunbook) {
            $.publishRunbook = publishRunbook;
            return this;
        }

        /**
         * @param publishRunbook The auto publish of the source control. Default is true.
         * 
         * @return builder
         * 
         */
        public Builder publishRunbook(Boolean publishRunbook) {
            return publishRunbook(Output.of(publishRunbook));
        }

        /**
         * @param repoUrl The repo url of the source control.
         * 
         * @return builder
         * 
         */
        public Builder repoUrl(@Nullable Output repoUrl) {
            $.repoUrl = repoUrl;
            return this;
        }

        /**
         * @param repoUrl The repo url of the source control.
         * 
         * @return builder
         * 
         */
        public Builder repoUrl(String repoUrl) {
            return repoUrl(Output.of(repoUrl));
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param securityToken The authorization token for the repo of the source control.
         * 
         * @return builder
         * 
         */
        public Builder securityToken(@Nullable Output securityToken) {
            $.securityToken = securityToken;
            return this;
        }

        /**
         * @param securityToken The authorization token for the repo of the source control.
         * 
         * @return builder
         * 
         */
        public Builder securityToken(SourceControlSecurityTokenPropertiesArgs securityToken) {
            return securityToken(Output.of(securityToken));
        }

        /**
         * @param sourceControlName The source control name.
         * 
         * @return builder
         * 
         */
        public Builder sourceControlName(@Nullable Output sourceControlName) {
            $.sourceControlName = sourceControlName;
            return this;
        }

        /**
         * @param sourceControlName The source control name.
         * 
         * @return builder
         * 
         */
        public Builder sourceControlName(String sourceControlName) {
            return sourceControlName(Output.of(sourceControlName));
        }

        /**
         * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(@Nullable Output> sourceType) {
            $.sourceType = sourceType;
            return this;
        }

        /**
         * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(Either sourceType) {
            return sourceType(Output.of(sourceType));
        }

        /**
         * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(String sourceType) {
            return sourceType(Either.ofLeft(sourceType));
        }

        /**
         * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(SourceType sourceType) {
            return sourceType(Either.ofRight(sourceType));
        }

        public SourceControlArgs build() {
            if ($.automationAccountName == null) {
                throw new MissingRequiredPropertyException("SourceControlArgs", "automationAccountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SourceControlArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy