// *** 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.cloudrunv2.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 ServiceTemplateScalingArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceTemplateScalingArgs Empty = new ServiceTemplateScalingArgs();

    /**
     * Maximum number of serving instances that this resource should have.
     * 
     */
    @Import(name="maxInstanceCount")
    private @Nullable Output<Integer> maxInstanceCount;

    /**
     * @return Maximum number of serving instances that this resource should have.
     * 
     */
    public Optional<Output<Integer>> maxInstanceCount() {
        return Optional.ofNullable(this.maxInstanceCount);
    }

    /**
     * Minimum number of serving instances that this resource should have.
     * 
     */
    @Import(name="minInstanceCount")
    private @Nullable Output<Integer> minInstanceCount;

    /**
     * @return Minimum number of serving instances that this resource should have.
     * 
     */
    public Optional<Output<Integer>> minInstanceCount() {
        return Optional.ofNullable(this.minInstanceCount);
    }

    private ServiceTemplateScalingArgs() {}

    private ServiceTemplateScalingArgs(ServiceTemplateScalingArgs $) {
        this.maxInstanceCount = $.maxInstanceCount;
        this.minInstanceCount = $.minInstanceCount;
    }

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

    public static final class Builder {
        private ServiceTemplateScalingArgs $;

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

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

        /**
         * @param maxInstanceCount Maximum number of serving instances that this resource should have.
         * 
         * @return builder
         * 
         */
        public Builder maxInstanceCount(@Nullable Output<Integer> maxInstanceCount) {
            $.maxInstanceCount = maxInstanceCount;
            return this;
        }

        /**
         * @param maxInstanceCount Maximum number of serving instances that this resource should have.
         * 
         * @return builder
         * 
         */
        public Builder maxInstanceCount(Integer maxInstanceCount) {
            return maxInstanceCount(Output.of(maxInstanceCount));
        }

        /**
         * @param minInstanceCount Minimum number of serving instances that this resource should have.
         * 
         * @return builder
         * 
         */
        public Builder minInstanceCount(@Nullable Output<Integer> minInstanceCount) {
            $.minInstanceCount = minInstanceCount;
            return this;
        }

        /**
         * @param minInstanceCount Minimum number of serving instances that this resource should have.
         * 
         * @return builder
         * 
         */
        public Builder minInstanceCount(Integer minInstanceCount) {
            return minInstanceCount(Output.of(minInstanceCount));
        }

        public ServiceTemplateScalingArgs build() {
            return $;
        }
    }

}
