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

com.pulumi.azurenative.securityinsights.SourceControlArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurenative.securityinsights;

import com.pulumi.azurenative.securityinsights.enums.ContentType;
import com.pulumi.azurenative.securityinsights.enums.RepoType;
import com.pulumi.azurenative.securityinsights.enums.Version;
import com.pulumi.azurenative.securityinsights.inputs.DeploymentInfoArgs;
import com.pulumi.azurenative.securityinsights.inputs.RepositoryArgs;
import com.pulumi.azurenative.securityinsights.inputs.RepositoryResourceInfoArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
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();

    /**
     * Array of source control content types.
     * 
     */
    @Import(name="contentTypes", required=true)
    private Output>> contentTypes;

    /**
     * @return Array of source control content types.
     * 
     */
    public Output>> contentTypes() {
        return this.contentTypes;
    }

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

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

    /**
     * The display name of the source control
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return The display name of the source control
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * The id (a Guid) of the source control
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

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

    /**
     * Information regarding the latest deployment for the source control.
     * 
     */
    @Import(name="lastDeploymentInfo")
    private @Nullable Output lastDeploymentInfo;

    /**
     * @return Information regarding the latest deployment for the source control.
     * 
     */
    public Optional> lastDeploymentInfo() {
        return Optional.ofNullable(this.lastDeploymentInfo);
    }

    /**
     * The repository type of the source control
     * 
     */
    @Import(name="repoType", required=true)
    private Output> repoType;

    /**
     * @return The repository type of the source control
     * 
     */
    public Output> repoType() {
        return this.repoType;
    }

    /**
     * Repository metadata.
     * 
     */
    @Import(name="repository", required=true)
    private Output repository;

    /**
     * @return Repository metadata.
     * 
     */
    public Output repository() {
        return this.repository;
    }

    /**
     * Information regarding the resources created in user's repository.
     * 
     */
    @Import(name="repositoryResourceInfo")
    private @Nullable Output repositoryResourceInfo;

    /**
     * @return Information regarding the resources created in user's repository.
     * 
     */
    public Optional> repositoryResourceInfo() {
        return Optional.ofNullable(this.repositoryResourceInfo);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Source control Id
     * 
     */
    @Import(name="sourceControlId")
    private @Nullable Output sourceControlId;

    /**
     * @return Source control Id
     * 
     */
    public Optional> sourceControlId() {
        return Optional.ofNullable(this.sourceControlId);
    }

    /**
     * The version number associated with the source control
     * 
     */
    @Import(name="version")
    private @Nullable Output> version;

    /**
     * @return The version number associated with the source control
     * 
     */
    public Optional>> version() {
        return Optional.ofNullable(this.version);
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private SourceControlArgs() {}

    private SourceControlArgs(SourceControlArgs $) {
        this.contentTypes = $.contentTypes;
        this.description = $.description;
        this.displayName = $.displayName;
        this.id = $.id;
        this.lastDeploymentInfo = $.lastDeploymentInfo;
        this.repoType = $.repoType;
        this.repository = $.repository;
        this.repositoryResourceInfo = $.repositoryResourceInfo;
        this.resourceGroupName = $.resourceGroupName;
        this.sourceControlId = $.sourceControlId;
        this.version = $.version;
        this.workspaceName = $.workspaceName;
    }

    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 contentTypes Array of source control content types.
         * 
         * @return builder
         * 
         */
        public Builder contentTypes(Output>> contentTypes) {
            $.contentTypes = contentTypes;
            return this;
        }

        /**
         * @param contentTypes Array of source control content types.
         * 
         * @return builder
         * 
         */
        public Builder contentTypes(List> contentTypes) {
            return contentTypes(Output.of(contentTypes));
        }

        /**
         * @param contentTypes Array of source control content types.
         * 
         * @return builder
         * 
         */
        public Builder contentTypes(Either... contentTypes) {
            return contentTypes(List.of(contentTypes));
        }

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

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

        /**
         * @param displayName The display name of the source control
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

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

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

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

        /**
         * @param lastDeploymentInfo Information regarding the latest deployment for the source control.
         * 
         * @return builder
         * 
         */
        public Builder lastDeploymentInfo(@Nullable Output lastDeploymentInfo) {
            $.lastDeploymentInfo = lastDeploymentInfo;
            return this;
        }

        /**
         * @param lastDeploymentInfo Information regarding the latest deployment for the source control.
         * 
         * @return builder
         * 
         */
        public Builder lastDeploymentInfo(DeploymentInfoArgs lastDeploymentInfo) {
            return lastDeploymentInfo(Output.of(lastDeploymentInfo));
        }

        /**
         * @param repoType The repository type of the source control
         * 
         * @return builder
         * 
         */
        public Builder repoType(Output> repoType) {
            $.repoType = repoType;
            return this;
        }

        /**
         * @param repoType The repository type of the source control
         * 
         * @return builder
         * 
         */
        public Builder repoType(Either repoType) {
            return repoType(Output.of(repoType));
        }

        /**
         * @param repoType The repository type of the source control
         * 
         * @return builder
         * 
         */
        public Builder repoType(String repoType) {
            return repoType(Either.ofLeft(repoType));
        }

        /**
         * @param repoType The repository type of the source control
         * 
         * @return builder
         * 
         */
        public Builder repoType(RepoType repoType) {
            return repoType(Either.ofRight(repoType));
        }

        /**
         * @param repository Repository metadata.
         * 
         * @return builder
         * 
         */
        public Builder repository(Output repository) {
            $.repository = repository;
            return this;
        }

        /**
         * @param repository Repository metadata.
         * 
         * @return builder
         * 
         */
        public Builder repository(RepositoryArgs repository) {
            return repository(Output.of(repository));
        }

        /**
         * @param repositoryResourceInfo Information regarding the resources created in user's repository.
         * 
         * @return builder
         * 
         */
        public Builder repositoryResourceInfo(@Nullable Output repositoryResourceInfo) {
            $.repositoryResourceInfo = repositoryResourceInfo;
            return this;
        }

        /**
         * @param repositoryResourceInfo Information regarding the resources created in user's repository.
         * 
         * @return builder
         * 
         */
        public Builder repositoryResourceInfo(RepositoryResourceInfoArgs repositoryResourceInfo) {
            return repositoryResourceInfo(Output.of(repositoryResourceInfo));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sourceControlId Source control Id
         * 
         * @return builder
         * 
         */
        public Builder sourceControlId(@Nullable Output sourceControlId) {
            $.sourceControlId = sourceControlId;
            return this;
        }

        /**
         * @param sourceControlId Source control Id
         * 
         * @return builder
         * 
         */
        public Builder sourceControlId(String sourceControlId) {
            return sourceControlId(Output.of(sourceControlId));
        }

        /**
         * @param version The version number associated with the source control
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output> version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The version number associated with the source control
         * 
         * @return builder
         * 
         */
        public Builder version(Either version) {
            return version(Output.of(version));
        }

        /**
         * @param version The version number associated with the source control
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Either.ofLeft(version));
        }

        /**
         * @param version The version number associated with the source control
         * 
         * @return builder
         * 
         */
        public Builder version(Version version) {
            return version(Either.ofRight(version));
        }

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

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

        public SourceControlArgs build() {
            if ($.contentTypes == null) {
                throw new MissingRequiredPropertyException("SourceControlArgs", "contentTypes");
            }
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("SourceControlArgs", "displayName");
            }
            if ($.repoType == null) {
                throw new MissingRequiredPropertyException("SourceControlArgs", "repoType");
            }
            if ($.repository == null) {
                throw new MissingRequiredPropertyException("SourceControlArgs", "repository");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SourceControlArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("SourceControlArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy