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

package com.azure.resourcemanager.notificationhubs.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.notificationhubs.models.NotificationHubResource;

/** Samples for NotificationHubs Patch. */
public final class NotificationHubsPatchSamples {
    /*
     * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json
     */
    /**
     * Sample code: NotificationHubPatch.
     *
     * @param manager Entry point to NotificationHubsManager.
     */
    public static void notificationHubPatch(
        com.azure.resourcemanager.notificationhubs.NotificationHubsManager manager) {
        NotificationHubResource resource =
            manager
                .notificationHubs()
                .getWithResponse("sdkresourceGroup", "nh-sdk-ns", "sdk-notificationHubs-8708", Context.NONE)
                .getValue();
        resource.update().apply();
    }
}
