// 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.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.hdinsight.models.ClusterResizeParameters;
import com.azure.resourcemanager.hdinsight.models.RoleName;

/** Samples for Clusters Resize. */
public final class ClustersResizeSamples {
    /*
     * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ResizeLinuxHadoopCluster.json
     */
    /**
     * Sample code: Resize the worker nodes for a Hadoop on Linux cluster.
     *
     * @param manager Entry point to HDInsightManager.
     */
    public static void resizeTheWorkerNodesForAHadoopOnLinuxCluster(
        com.azure.resourcemanager.hdinsight.HDInsightManager manager) {
        manager
            .clusters()
            .resize(
                "rg1",
                "cluster1",
                RoleName.WORKERNODE,
                new ClusterResizeParameters().withTargetInstanceCount(10),
                Context.NONE);
    }
}
