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

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

import com.pulumi.azurenative.devopsinfrastructure.enums.ProvisioningState;
import com.pulumi.azurenative.devopsinfrastructure.inputs.AzureDevOpsOrganizationProfileArgs;
import com.pulumi.azurenative.devopsinfrastructure.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.devopsinfrastructure.inputs.StatefulArgs;
import com.pulumi.azurenative.devopsinfrastructure.inputs.StatelessAgentProfileArgs;
import com.pulumi.azurenative.devopsinfrastructure.inputs.VmssFabricProfileArgs;
import com.pulumi.core.Either;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PoolArgs Empty = new PoolArgs();

    /**
     * Defines how the machine will be handled once it executed a job.
     * 
     */
    @Import(name="agentProfile", required=true)
    private Output> agentProfile;

    /**
     * @return Defines how the machine will be handled once it executed a job.
     * 
     */
    public Output> agentProfile() {
        return this.agentProfile;
    }

    /**
     * The resource id of the DevCenter Project the pool belongs to.
     * 
     */
    @Import(name="devCenterProjectResourceId", required=true)
    private Output devCenterProjectResourceId;

    /**
     * @return The resource id of the DevCenter Project the pool belongs to.
     * 
     */
    public Output devCenterProjectResourceId() {
        return this.devCenterProjectResourceId;
    }

    /**
     * Defines the type of fabric the agent will run on.
     * 
     */
    @Import(name="fabricProfile", required=true)
    private Output fabricProfile;

    /**
     * @return Defines the type of fabric the agent will run on.
     * 
     */
    public Output fabricProfile() {
        return this.fabricProfile;
    }

    /**
     * The managed service identities assigned to this resource.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The managed service identities assigned to this resource.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Defines how many resources can there be created at any given time.
     * 
     */
    @Import(name="maximumConcurrency", required=true)
    private Output maximumConcurrency;

    /**
     * @return Defines how many resources can there be created at any given time.
     * 
     */
    public Output maximumConcurrency() {
        return this.maximumConcurrency;
    }

    /**
     * Defines the organization in which the pool will be used.
     * 
     */
    @Import(name="organizationProfile", required=true)
    private Output organizationProfile;

    /**
     * @return Defines the organization in which the pool will be used.
     * 
     */
    public Output organizationProfile() {
        return this.organizationProfile;
    }

    /**
     * Name of the pool. It needs to be globally unique.
     * 
     */
    @Import(name="poolName")
    private @Nullable Output poolName;

    /**
     * @return Name of the pool. It needs to be globally unique.
     * 
     */
    public Optional> poolName() {
        return Optional.ofNullable(this.poolName);
    }

    /**
     * The status of the current operation.
     * 
     */
    @Import(name="provisioningState")
    private @Nullable Output> provisioningState;

    /**
     * @return The status of the current operation.
     * 
     */
    public Optional>> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

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

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

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

    private PoolArgs() {}

    private PoolArgs(PoolArgs $) {
        this.agentProfile = $.agentProfile;
        this.devCenterProjectResourceId = $.devCenterProjectResourceId;
        this.fabricProfile = $.fabricProfile;
        this.identity = $.identity;
        this.location = $.location;
        this.maximumConcurrency = $.maximumConcurrency;
        this.organizationProfile = $.organizationProfile;
        this.poolName = $.poolName;
        this.provisioningState = $.provisioningState;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PoolArgs $;

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

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

        /**
         * @param agentProfile Defines how the machine will be handled once it executed a job.
         * 
         * @return builder
         * 
         */
        public Builder agentProfile(Output> agentProfile) {
            $.agentProfile = agentProfile;
            return this;
        }

        /**
         * @param agentProfile Defines how the machine will be handled once it executed a job.
         * 
         * @return builder
         * 
         */
        public Builder agentProfile(Either agentProfile) {
            return agentProfile(Output.of(agentProfile));
        }

        /**
         * @param agentProfile Defines how the machine will be handled once it executed a job.
         * 
         * @return builder
         * 
         */
        public Builder agentProfile(StatefulArgs agentProfile) {
            return agentProfile(Either.ofLeft(agentProfile));
        }

        /**
         * @param agentProfile Defines how the machine will be handled once it executed a job.
         * 
         * @return builder
         * 
         */
        public Builder agentProfile(StatelessAgentProfileArgs agentProfile) {
            return agentProfile(Either.ofRight(agentProfile));
        }

        /**
         * @param devCenterProjectResourceId The resource id of the DevCenter Project the pool belongs to.
         * 
         * @return builder
         * 
         */
        public Builder devCenterProjectResourceId(Output devCenterProjectResourceId) {
            $.devCenterProjectResourceId = devCenterProjectResourceId;
            return this;
        }

        /**
         * @param devCenterProjectResourceId The resource id of the DevCenter Project the pool belongs to.
         * 
         * @return builder
         * 
         */
        public Builder devCenterProjectResourceId(String devCenterProjectResourceId) {
            return devCenterProjectResourceId(Output.of(devCenterProjectResourceId));
        }

        /**
         * @param fabricProfile Defines the type of fabric the agent will run on.
         * 
         * @return builder
         * 
         */
        public Builder fabricProfile(Output fabricProfile) {
            $.fabricProfile = fabricProfile;
            return this;
        }

        /**
         * @param fabricProfile Defines the type of fabric the agent will run on.
         * 
         * @return builder
         * 
         */
        public Builder fabricProfile(VmssFabricProfileArgs fabricProfile) {
            return fabricProfile(Output.of(fabricProfile));
        }

        /**
         * @param identity The managed service identities assigned to this resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The managed service identities assigned to this resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param maximumConcurrency Defines how many resources can there be created at any given time.
         * 
         * @return builder
         * 
         */
        public Builder maximumConcurrency(Output maximumConcurrency) {
            $.maximumConcurrency = maximumConcurrency;
            return this;
        }

        /**
         * @param maximumConcurrency Defines how many resources can there be created at any given time.
         * 
         * @return builder
         * 
         */
        public Builder maximumConcurrency(Integer maximumConcurrency) {
            return maximumConcurrency(Output.of(maximumConcurrency));
        }

        /**
         * @param organizationProfile Defines the organization in which the pool will be used.
         * 
         * @return builder
         * 
         */
        public Builder organizationProfile(Output organizationProfile) {
            $.organizationProfile = organizationProfile;
            return this;
        }

        /**
         * @param organizationProfile Defines the organization in which the pool will be used.
         * 
         * @return builder
         * 
         */
        public Builder organizationProfile(AzureDevOpsOrganizationProfileArgs organizationProfile) {
            return organizationProfile(Output.of(organizationProfile));
        }

        /**
         * @param poolName Name of the pool. It needs to be globally unique.
         * 
         * @return builder
         * 
         */
        public Builder poolName(@Nullable Output poolName) {
            $.poolName = poolName;
            return this;
        }

        /**
         * @param poolName Name of the pool. It needs to be globally unique.
         * 
         * @return builder
         * 
         */
        public Builder poolName(String poolName) {
            return poolName(Output.of(poolName));
        }

        /**
         * @param provisioningState The status of the current operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(@Nullable Output> provisioningState) {
            $.provisioningState = provisioningState;
            return this;
        }

        /**
         * @param provisioningState The status of the current operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(Either provisioningState) {
            return provisioningState(Output.of(provisioningState));
        }

        /**
         * @param provisioningState The status of the current operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(String provisioningState) {
            return provisioningState(Either.ofLeft(provisioningState));
        }

        /**
         * @param provisioningState The status of the current operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(ProvisioningState provisioningState) {
            return provisioningState(Either.ofRight(provisioningState));
        }

        /**
         * @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 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 PoolArgs build() {
            if ($.agentProfile == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "agentProfile");
            }
            if ($.devCenterProjectResourceId == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "devCenterProjectResourceId");
            }
            if ($.fabricProfile == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "fabricProfile");
            }
            if ($.maximumConcurrency == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "maximumConcurrency");
            }
            if ($.organizationProfile == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "organizationProfile");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy