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

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

There is a newer version: 2.82.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.inputs.GitCatalogArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CatalogArgs Empty = new CatalogArgs();

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

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

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

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

    private CatalogArgs() {}

    private CatalogArgs(CatalogArgs $) {
        this.adoGit = $.adoGit;
        this.catalogName = $.catalogName;
        this.devCenterName = $.devCenterName;
        this.gitHub = $.gitHub;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private CatalogArgs $;

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

        public Builder(CatalogArgs defaults) {
            $ = new CatalogArgs(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 devCenterName The name of the devcenter.
         * 
         * @return builder
         * 
         */
        public Builder devCenterName(Output devCenterName) {
            $.devCenterName = devCenterName;
            return this;
        }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy