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

package com.azure.resourcemanager.containerservicefleet.generated;

import com.azure.resourcemanager.containerservicefleet.models.FleetMember;

/** Samples for FleetMembers Update. */
public final class FleetMembersUpdateSamples {
    /*
     * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json
     */
    /**
     * Sample code: Updates a FleetMember resource synchronously.
     *
     * @param manager Entry point to ContainerServiceFleetManager.
     */
    public static void updatesAFleetMemberResourceSynchronously(
        com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) {
        FleetMember resource =
            manager
                .fleetMembers()
                .getWithResponse("rg1", "fleet1", "member-1", com.azure.core.util.Context.NONE)
                .getValue();
        resource.update().withGroup("staging").apply();
    }
}
