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

package com.azure.resourcemanager.alertsmanagement.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.alertsmanagement.models.AlertState;

/** Samples for Alerts ChangeState. */
public final class AlertsChangeStateSamples {
    /*
     * x-ms-original-file: specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/examples/Alerts_ChangeState.json
     */
    /**
     * Sample code: Resolve.
     *
     * @param manager Entry point to AlertsManagementManager.
     */
    public static void resolve(com.azure.resourcemanager.alertsmanagement.AlertsManagementManager manager) {
        manager
            .alerts()
            .changeStateWithResponse(
                "66114d64-d9d9-478b-95c9-b789d6502100", AlertState.ACKNOWLEDGED, null, Context.NONE);
    }
}
