// 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.management.serializer.SerializerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
import java.io.IOException;

/** Samples for NotificationHubs DebugSend. */
public final class NotificationHubsDebugSendSamples {
    /*
     * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json
     */
    /**
     * Sample code: debugsend.
     *
     * @param manager Entry point to NotificationHubsManager.
     */
    public static void debugsend(com.azure.resourcemanager.notificationhubs.NotificationHubsManager manager)
        throws IOException {
        manager
            .notificationHubs()
            .debugSendWithResponse(
                "5ktrial",
                "nh-sdk-ns",
                "nh-sdk-hub",
                SerializerFactory
                    .createDefaultManagementSerializerAdapter()
                    .deserialize("{\"data\":{\"message\":\"Hello\"}}", Object.class, SerializerEncoding.JSON),
                Context.NONE);
    }
}
