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

com.pulumi.azurenative.devcenter.ProjectCatalogArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.devcenter;

import com.pulumi.azurenative.devcenter.enums.CatalogSyncType;
import com.pulumi.azurenative.devcenter.inputs.GitCatalogArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ProjectCatalogArgs Empty = new ProjectCatalogArgs();

    /**
     * Properties for an Azure DevOps catalog type.
     * 
     */
    @Import(name="adoGit")
    private @Nullable Output adoGit;

    /**
     * @return Properties for an Azure DevOps catalog type.
     * 
     */
    public Optional> adoGit() {
        return Optional.ofNullable(this.adoGit);
    }

    /**
     * The name of the Catalog.
     * 
     */
    @Import(name="catalogName")
    private @Nullable Output catalogName;

    /**
     * @return The name of the Catalog.
     * 
     */
    public Optional> catalogName() {
        return Optional.ofNullable(this.catalogName);
    }

    /**
     * Properties for a GitHub catalog type.
     * 
     */
    @Import(name="gitHub")
    private @Nullable Output gitHub;

    /**
     * @return Properties for a GitHub catalog type.
     * 
     */
    public Optional> gitHub() {
        return Optional.ofNullable(this.gitHub);
    }

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

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

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

    /**
     * Indicates the type of sync that is configured for the catalog.
     * 
     */
    @Import(name="syncType")
    private @Nullable Output> syncType;

    /**
     * @return Indicates the type of sync that is configured for the catalog.
     * 
     */
    public Optional>> syncType() {
        return Optional.ofNullable(this.syncType);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ProjectCatalogArgs() {}

    private ProjectCatalogArgs(ProjectCatalogArgs $) {
        this.adoGit = $.adoGit;
        this.catalogName = $.catalogName;
        this.gitHub = $.gitHub;
        this.projectName = $.projectName;
        this.resourceGroupName = $.resourceGroupName;
        this.syncType = $.syncType;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ProjectCatalogArgs $;

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

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

        /**
         * @param adoGit Properties for an Azure DevOps catalog type.
         * 
         * @return builder
         * 
         */
        public Builder adoGit(@Nullable Output adoGit) {
            $.adoGit = adoGit;
            return this;
        }

        /**
         * @param adoGit Properties for an Azure DevOps catalog type.
         * 
         * @return builder
         * 
         */
        public Builder adoGit(GitCatalogArgs adoGit) {
            return adoGit(Output.of(adoGit));
        }

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

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

        /**
         * @param gitHub Properties for a GitHub catalog type.
         * 
         * @return builder
         * 
         */
        public Builder gitHub(@Nullable Output gitHub) {
            $.gitHub = gitHub;
            return this;
        }

        /**
         * @param gitHub Properties for a GitHub catalog type.
         * 
         * @return builder
         * 
         */
        public Builder gitHub(GitCatalogArgs gitHub) {
            return gitHub(Output.of(gitHub));
        }

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

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

        /**
         * @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 syncType Indicates the type of sync that is configured for the catalog.
         * 
         * @return builder
         * 
         */
        public Builder syncType(@Nullable Output> syncType) {
            $.syncType = syncType;
            return this;
        }

        /**
         * @param syncType Indicates the type of sync that is configured for the catalog.
         * 
         * @return builder
         * 
         */
        public Builder syncType(Either syncType) {
            return syncType(Output.of(syncType));
        }

        /**
         * @param syncType Indicates the type of sync that is configured for the catalog.
         * 
         * @return builder
         * 
         */
        public Builder syncType(String syncType) {
            return syncType(Either.ofLeft(syncType));
        }

        /**
         * @param syncType Indicates the type of sync that is configured for the catalog.
         * 
         * @return builder
         * 
         */
        public Builder syncType(CatalogSyncType syncType) {
            return syncType(Either.ofRight(syncType));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy