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

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

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


/**
 * Scale configuration.
 * 
 */
public final class ScaleConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScaleConfigurationArgs Empty = new ScaleConfigurationArgs();

    /**
     * The maximum count of sessions at the same time.
     * 
     */
    @Import(name="maxConcurrentSessions")
    private @Nullable Output maxConcurrentSessions;

    /**
     * @return The maximum count of sessions at the same time.
     * 
     */
    public Optional> maxConcurrentSessions() {
        return Optional.ofNullable(this.maxConcurrentSessions);
    }

    /**
     * The minimum count of ready session instances.
     * 
     */
    @Import(name="readySessionInstances")
    private @Nullable Output readySessionInstances;

    /**
     * @return The minimum count of ready session instances.
     * 
     */
    public Optional> readySessionInstances() {
        return Optional.ofNullable(this.readySessionInstances);
    }

    private ScaleConfigurationArgs() {}

    private ScaleConfigurationArgs(ScaleConfigurationArgs $) {
        this.maxConcurrentSessions = $.maxConcurrentSessions;
        this.readySessionInstances = $.readySessionInstances;
    }

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

    public static final class Builder {
        private ScaleConfigurationArgs $;

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

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

        /**
         * @param maxConcurrentSessions The maximum count of sessions at the same time.
         * 
         * @return builder
         * 
         */
        public Builder maxConcurrentSessions(@Nullable Output maxConcurrentSessions) {
            $.maxConcurrentSessions = maxConcurrentSessions;
            return this;
        }

        /**
         * @param maxConcurrentSessions The maximum count of sessions at the same time.
         * 
         * @return builder
         * 
         */
        public Builder maxConcurrentSessions(Integer maxConcurrentSessions) {
            return maxConcurrentSessions(Output.of(maxConcurrentSessions));
        }

        /**
         * @param readySessionInstances The minimum count of ready session instances.
         * 
         * @return builder
         * 
         */
        public Builder readySessionInstances(@Nullable Output readySessionInstances) {
            $.readySessionInstances = readySessionInstances;
            return this;
        }

        /**
         * @param readySessionInstances The minimum count of ready session instances.
         * 
         * @return builder
         * 
         */
        public Builder readySessionInstances(Integer readySessionInstances) {
            return readySessionInstances(Output.of(readySessionInstances));
        }

        public ScaleConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy