// *** 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.gcp.bigquery.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;


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

    public static final ReservationAutoscaleArgs Empty = new ReservationAutoscaleArgs();

    /**
     * (Output)
     * The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].
     * 
     */
    @Import(name="currentSlots")
    private @Nullable Output<Integer> currentSlots;

    /**
     * @return (Output)
     * The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].
     * 
     */
    public Optional<Output<Integer>> currentSlots() {
        return Optional.ofNullable(this.currentSlots);
    }

    /**
     * Number of slots to be scaled when needed.
     * 
     */
    @Import(name="maxSlots")
    private @Nullable Output<Integer> maxSlots;

    /**
     * @return Number of slots to be scaled when needed.
     * 
     */
    public Optional<Output<Integer>> maxSlots() {
        return Optional.ofNullable(this.maxSlots);
    }

    private ReservationAutoscaleArgs() {}

    private ReservationAutoscaleArgs(ReservationAutoscaleArgs $) {
        this.currentSlots = $.currentSlots;
        this.maxSlots = $.maxSlots;
    }

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

    public static final class Builder {
        private ReservationAutoscaleArgs $;

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

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

        /**
         * @param currentSlots (Output)
         * The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].
         * 
         * @return builder
         * 
         */
        public Builder currentSlots(@Nullable Output<Integer> currentSlots) {
            $.currentSlots = currentSlots;
            return this;
        }

        /**
         * @param currentSlots (Output)
         * The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].
         * 
         * @return builder
         * 
         */
        public Builder currentSlots(Integer currentSlots) {
            return currentSlots(Output.of(currentSlots));
        }

        /**
         * @param maxSlots Number of slots to be scaled when needed.
         * 
         * @return builder
         * 
         */
        public Builder maxSlots(@Nullable Output<Integer> maxSlots) {
            $.maxSlots = maxSlots;
            return this;
        }

        /**
         * @param maxSlots Number of slots to be scaled when needed.
         * 
         * @return builder
         * 
         */
        public Builder maxSlots(Integer maxSlots) {
            return maxSlots(Output.of(maxSlots));
        }

        public ReservationAutoscaleArgs build() {
            return $;
        }
    }

}
