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

com.pulumi.azurenative.devopsinfrastructure.inputs.OrganizationArgs 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.devopsinfrastructure.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines an Azure DevOps organization.
 * 
 */
public final class OrganizationArgs extends com.pulumi.resources.ResourceArgs {

    public static final OrganizationArgs Empty = new OrganizationArgs();

    /**
     * How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool.
     * 
     */
    @Import(name="parallelism")
    private @Nullable Output parallelism;

    /**
     * @return How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool.
     * 
     */
    public Optional> parallelism() {
        return Optional.ofNullable(this.parallelism);
    }

    /**
     * Optional list of projects in which the pool should be created.
     * 
     */
    @Import(name="projects")
    private @Nullable Output> projects;

    /**
     * @return Optional list of projects in which the pool should be created.
     * 
     */
    public Optional>> projects() {
        return Optional.ofNullable(this.projects);
    }

    /**
     * The Azure DevOps organization URL in which the pool should be created.
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return The Azure DevOps organization URL in which the pool should be created.
     * 
     */
    public Output url() {
        return this.url;
    }

    private OrganizationArgs() {}

    private OrganizationArgs(OrganizationArgs $) {
        this.parallelism = $.parallelism;
        this.projects = $.projects;
        this.url = $.url;
    }

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

    public static final class Builder {
        private OrganizationArgs $;

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

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

        /**
         * @param parallelism How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool.
         * 
         * @return builder
         * 
         */
        public Builder parallelism(@Nullable Output parallelism) {
            $.parallelism = parallelism;
            return this;
        }

        /**
         * @param parallelism How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool.
         * 
         * @return builder
         * 
         */
        public Builder parallelism(Integer parallelism) {
            return parallelism(Output.of(parallelism));
        }

        /**
         * @param projects Optional list of projects in which the pool should be created.
         * 
         * @return builder
         * 
         */
        public Builder projects(@Nullable Output> projects) {
            $.projects = projects;
            return this;
        }

        /**
         * @param projects Optional list of projects in which the pool should be created.
         * 
         * @return builder
         * 
         */
        public Builder projects(List projects) {
            return projects(Output.of(projects));
        }

        /**
         * @param projects Optional list of projects in which the pool should be created.
         * 
         * @return builder
         * 
         */
        public Builder projects(String... projects) {
            return projects(List.of(projects));
        }

        /**
         * @param url The Azure DevOps organization URL in which the pool should be created.
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url The Azure DevOps organization URL in which the pool should be created.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        public OrganizationArgs build() {
            if ($.url == null) {
                throw new MissingRequiredPropertyException("OrganizationArgs", "url");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy