// 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 Resize Cluster request parameters. */
@Fluent
public final class ClusterResizeParameters {
    /*
     * The target instance count for the operation.
     */
    @JsonProperty(value = "targetInstanceCount")
    private Integer targetInstanceCount;

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

    /**
     * Get the targetInstanceCount property: The target instance count for the operation.
     *
     * @return the targetInstanceCount value.
     */
    public Integer targetInstanceCount() {
        return this.targetInstanceCount;
    }

    /**
     * Set the targetInstanceCount property: The target instance count for the operation.
     *
     * @param targetInstanceCount the targetInstanceCount value to set.
     * @return the ClusterResizeParameters object itself.
     */
    public ClusterResizeParameters withTargetInstanceCount(Integer targetInstanceCount) {
        this.targetInstanceCount = targetInstanceCount;
        return this;
    }

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