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

package com.azure.resourcemanager.avs.generated;

import com.azure.resourcemanager.avs.models.VirtualMachineRestrictMovement;
import com.azure.resourcemanager.avs.models.VirtualMachineRestrictMovementState;

/** Samples for VirtualMachines RestrictMovement. */
public final class VirtualMachinesRestrictMovementSamples {
    /*
     * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2022-05-01/examples/VirtualMachines_RestrictMovement.json
     */
    /**
     * Sample code: VirtualMachine_RestrictMovement.
     *
     * @param manager Entry point to AvsManager.
     */
    public static void virtualMachineRestrictMovement(com.azure.resourcemanager.avs.AvsManager manager) {
        manager
            .virtualMachines()
            .restrictMovement(
                "group1",
                "cloud1",
                "cluster1",
                "vm-209",
                new VirtualMachineRestrictMovement().withRestrictMovement(VirtualMachineRestrictMovementState.ENABLED),
                com.azure.core.util.Context.NONE);
    }
}
