// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hdinsight.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The load-based autoscale request parameters. */
@Fluent
public final class AutoscaleCapacity {
    /*
     * The minimum instance count of the cluster
     */
    @JsonProperty(value = "minInstanceCount")
    private Integer minInstanceCount;

    /*
     * The maximum instance count of the cluster
     */
    @JsonProperty(value = "maxInstanceCount")
    private Integer maxInstanceCount;

    /** Creates an instance of AutoscaleCapacity class. */
    public AutoscaleCapacity() {
    }

    /**
     * Get the minInstanceCount property: The minimum instance count of the cluster.
     *
     * @return the minInstanceCount value.
     */
    public Integer minInstanceCount() {
        return this.minInstanceCount;
    }

    /**
     * Set the minInstanceCount property: The minimum instance count of the cluster.
     *
     * @param minInstanceCount the minInstanceCount value to set.
     * @return the AutoscaleCapacity object itself.
     */
    public AutoscaleCapacity withMinInstanceCount(Integer minInstanceCount) {
        this.minInstanceCount = minInstanceCount;
        return this;
    }

    /**
     * Get the maxInstanceCount property: The maximum instance count of the cluster.
     *
     * @return the maxInstanceCount value.
     */
    public Integer maxInstanceCount() {
        return this.maxInstanceCount;
    }

    /**
     * Set the maxInstanceCount property: The maximum instance count of the cluster.
     *
     * @param maxInstanceCount the maxInstanceCount value to set.
     * @return the AutoscaleCapacity object itself.
     */
    public AutoscaleCapacity withMaxInstanceCount(Integer maxInstanceCount) {
        this.maxInstanceCount = maxInstanceCount;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
