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

package com.azure.resourcemanager.servicefabric.generated;

import com.azure.resourcemanager.servicefabric.models.ClusterVersionsEnvironment;

/** Samples for ClusterVersions GetByEnvironment. */
public final class ClusterVersionsGetByEnvironmentSamples {
    /*
     * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsGetByEnvironment_example.json
     */
    /**
     * Sample code: Get cluster version by environment.
     *
     * @param manager Entry point to ServiceFabricManager.
     */
    public static void getClusterVersionByEnvironment(
        com.azure.resourcemanager.servicefabric.ServiceFabricManager manager) {
        manager
            .clusterVersions()
            .getByEnvironmentWithResponse(
                "eastus", ClusterVersionsEnvironment.WINDOWS, "6.1.480.9494", com.azure.core.util.Context.NONE);
    }
}
