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

package com.azure.resourcemanager.security.generated;

/** Samples for Alerts UpdateResourceGroupLevelStateToActivate. */
public final class AlertsUpdateResourceGroupLevelStateToActivateSamples {
    /*
     * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/UpdateAlertResourceGroupLocation_activate_example.json
     */
    /**
     * Sample code: Update security alert state on a resource group from a security data location.
     *
     * @param manager Entry point to SecurityManager.
     */
    public static void updateSecurityAlertStateOnAResourceGroupFromASecurityDataLocation(
        com.azure.resourcemanager.security.SecurityManager manager) {
        manager
            .alerts()
            .updateResourceGroupLevelStateToActivateWithResponse(
                "myRg2",
                "westeurope",
                "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22",
                com.azure.core.util.Context.NONE);
    }
}
