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

com.pulumi.azurenative.app.ContainerAppsSessionPoolArgs 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.app;

import com.pulumi.azurenative.app.enums.ContainerType;
import com.pulumi.azurenative.app.enums.PoolManagementType;
import com.pulumi.azurenative.app.inputs.CustomContainerTemplateArgs;
import com.pulumi.azurenative.app.inputs.DynamicPoolConfigurationArgs;
import com.pulumi.azurenative.app.inputs.ScaleConfigurationArgs;
import com.pulumi.azurenative.app.inputs.SessionNetworkConfigurationArgs;
import com.pulumi.azurenative.app.inputs.SessionPoolSecretArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ContainerAppsSessionPoolArgs Empty = new ContainerAppsSessionPoolArgs();

    /**
     * The container type of the sessions.
     * 
     */
    @Import(name="containerType")
    private @Nullable Output> containerType;

    /**
     * @return The container type of the sessions.
     * 
     */
    public Optional>> containerType() {
        return Optional.ofNullable(this.containerType);
    }

    /**
     * The custom container configuration if the containerType is CustomContainer.
     * 
     */
    @Import(name="customContainerTemplate")
    private @Nullable Output customContainerTemplate;

    /**
     * @return The custom container configuration if the containerType is CustomContainer.
     * 
     */
    public Optional> customContainerTemplate() {
        return Optional.ofNullable(this.customContainerTemplate);
    }

    /**
     * The pool configuration if the poolManagementType is dynamic.
     * 
     */
    @Import(name="dynamicPoolConfiguration")
    private @Nullable Output dynamicPoolConfiguration;

    /**
     * @return The pool configuration if the poolManagementType is dynamic.
     * 
     */
    public Optional> dynamicPoolConfiguration() {
        return Optional.ofNullable(this.dynamicPoolConfiguration);
    }

    /**
     * Resource ID of the session pool's environment.
     * 
     */
    @Import(name="environmentId")
    private @Nullable Output environmentId;

    /**
     * @return Resource ID of the session pool's environment.
     * 
     */
    public Optional> environmentId() {
        return Optional.ofNullable(this.environmentId);
    }

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

    /**
     * The pool management type of the session pool.
     * 
     */
    @Import(name="poolManagementType")
    private @Nullable Output> poolManagementType;

    /**
     * @return The pool management type of the session pool.
     * 
     */
    public Optional>> poolManagementType() {
        return Optional.ofNullable(this.poolManagementType);
    }

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

    /**
     * The scale configuration of the session pool.
     * 
     */
    @Import(name="scaleConfiguration")
    private @Nullable Output scaleConfiguration;

    /**
     * @return The scale configuration of the session pool.
     * 
     */
    public Optional> scaleConfiguration() {
        return Optional.ofNullable(this.scaleConfiguration);
    }

    /**
     * The secrets of the session pool.
     * 
     */
    @Import(name="secrets")
    private @Nullable Output> secrets;

    /**
     * @return The secrets of the session pool.
     * 
     */
    public Optional>> secrets() {
        return Optional.ofNullable(this.secrets);
    }

    /**
     * The network configuration of the sessions in the session pool.
     * 
     */
    @Import(name="sessionNetworkConfiguration")
    private @Nullable Output sessionNetworkConfiguration;

    /**
     * @return The network configuration of the sessions in the session pool.
     * 
     */
    public Optional> sessionNetworkConfiguration() {
        return Optional.ofNullable(this.sessionNetworkConfiguration);
    }

    /**
     * Name of the session pool.
     * 
     */
    @Import(name="sessionPoolName")
    private @Nullable Output sessionPoolName;

    /**
     * @return Name of the session pool.
     * 
     */
    public Optional> sessionPoolName() {
        return Optional.ofNullable(this.sessionPoolName);
    }

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

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

    private ContainerAppsSessionPoolArgs() {}

    private ContainerAppsSessionPoolArgs(ContainerAppsSessionPoolArgs $) {
        this.containerType = $.containerType;
        this.customContainerTemplate = $.customContainerTemplate;
        this.dynamicPoolConfiguration = $.dynamicPoolConfiguration;
        this.environmentId = $.environmentId;
        this.location = $.location;
        this.poolManagementType = $.poolManagementType;
        this.resourceGroupName = $.resourceGroupName;
        this.scaleConfiguration = $.scaleConfiguration;
        this.secrets = $.secrets;
        this.sessionNetworkConfiguration = $.sessionNetworkConfiguration;
        this.sessionPoolName = $.sessionPoolName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ContainerAppsSessionPoolArgs $;

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

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

        /**
         * @param containerType The container type of the sessions.
         * 
         * @return builder
         * 
         */
        public Builder containerType(@Nullable Output> containerType) {
            $.containerType = containerType;
            return this;
        }

        /**
         * @param containerType The container type of the sessions.
         * 
         * @return builder
         * 
         */
        public Builder containerType(Either containerType) {
            return containerType(Output.of(containerType));
        }

        /**
         * @param containerType The container type of the sessions.
         * 
         * @return builder
         * 
         */
        public Builder containerType(String containerType) {
            return containerType(Either.ofLeft(containerType));
        }

        /**
         * @param containerType The container type of the sessions.
         * 
         * @return builder
         * 
         */
        public Builder containerType(ContainerType containerType) {
            return containerType(Either.ofRight(containerType));
        }

        /**
         * @param customContainerTemplate The custom container configuration if the containerType is CustomContainer.
         * 
         * @return builder
         * 
         */
        public Builder customContainerTemplate(@Nullable Output customContainerTemplate) {
            $.customContainerTemplate = customContainerTemplate;
            return this;
        }

        /**
         * @param customContainerTemplate The custom container configuration if the containerType is CustomContainer.
         * 
         * @return builder
         * 
         */
        public Builder customContainerTemplate(CustomContainerTemplateArgs customContainerTemplate) {
            return customContainerTemplate(Output.of(customContainerTemplate));
        }

        /**
         * @param dynamicPoolConfiguration The pool configuration if the poolManagementType is dynamic.
         * 
         * @return builder
         * 
         */
        public Builder dynamicPoolConfiguration(@Nullable Output dynamicPoolConfiguration) {
            $.dynamicPoolConfiguration = dynamicPoolConfiguration;
            return this;
        }

        /**
         * @param dynamicPoolConfiguration The pool configuration if the poolManagementType is dynamic.
         * 
         * @return builder
         * 
         */
        public Builder dynamicPoolConfiguration(DynamicPoolConfigurationArgs dynamicPoolConfiguration) {
            return dynamicPoolConfiguration(Output.of(dynamicPoolConfiguration));
        }

        /**
         * @param environmentId Resource ID of the session pool's environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(@Nullable Output environmentId) {
            $.environmentId = environmentId;
            return this;
        }

        /**
         * @param environmentId Resource ID of the session pool's environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(String environmentId) {
            return environmentId(Output.of(environmentId));
        }

        /**
         * @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 poolManagementType The pool management type of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder poolManagementType(@Nullable Output> poolManagementType) {
            $.poolManagementType = poolManagementType;
            return this;
        }

        /**
         * @param poolManagementType The pool management type of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder poolManagementType(Either poolManagementType) {
            return poolManagementType(Output.of(poolManagementType));
        }

        /**
         * @param poolManagementType The pool management type of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder poolManagementType(String poolManagementType) {
            return poolManagementType(Either.ofLeft(poolManagementType));
        }

        /**
         * @param poolManagementType The pool management type of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder poolManagementType(PoolManagementType poolManagementType) {
            return poolManagementType(Either.ofRight(poolManagementType));
        }

        /**
         * @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 scaleConfiguration The scale configuration of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder scaleConfiguration(@Nullable Output scaleConfiguration) {
            $.scaleConfiguration = scaleConfiguration;
            return this;
        }

        /**
         * @param scaleConfiguration The scale configuration of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder scaleConfiguration(ScaleConfigurationArgs scaleConfiguration) {
            return scaleConfiguration(Output.of(scaleConfiguration));
        }

        /**
         * @param secrets The secrets of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder secrets(@Nullable Output> secrets) {
            $.secrets = secrets;
            return this;
        }

        /**
         * @param secrets The secrets of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder secrets(List secrets) {
            return secrets(Output.of(secrets));
        }

        /**
         * @param secrets The secrets of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder secrets(SessionPoolSecretArgs... secrets) {
            return secrets(List.of(secrets));
        }

        /**
         * @param sessionNetworkConfiguration The network configuration of the sessions in the session pool.
         * 
         * @return builder
         * 
         */
        public Builder sessionNetworkConfiguration(@Nullable Output sessionNetworkConfiguration) {
            $.sessionNetworkConfiguration = sessionNetworkConfiguration;
            return this;
        }

        /**
         * @param sessionNetworkConfiguration The network configuration of the sessions in the session pool.
         * 
         * @return builder
         * 
         */
        public Builder sessionNetworkConfiguration(SessionNetworkConfigurationArgs sessionNetworkConfiguration) {
            return sessionNetworkConfiguration(Output.of(sessionNetworkConfiguration));
        }

        /**
         * @param sessionPoolName Name of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder sessionPoolName(@Nullable Output sessionPoolName) {
            $.sessionPoolName = sessionPoolName;
            return this;
        }

        /**
         * @param sessionPoolName Name of the session pool.
         * 
         * @return builder
         * 
         */
        public Builder sessionPoolName(String sessionPoolName) {
            return sessionPoolName(Output.of(sessionPoolName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy