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

package com.azure.resourcemanager.costmanagement.generated;

import com.azure.resourcemanager.costmanagement.models.ExternalCloudProviderType;

/** Samples for Alerts ListExternal. */
public final class AlertsListExternalSamples {
    /*
     * x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/ExternalBillingAccountAlerts.json
     */
    /**
     * Sample code: ExternalBillingAccountAlerts.
     *
     * @param manager Entry point to CostManagementManager.
     */
    public static void externalBillingAccountAlerts(
        com.azure.resourcemanager.costmanagement.CostManagementManager manager) {
        manager
            .alerts()
            .listExternalWithResponse(
                ExternalCloudProviderType.EXTERNAL_BILLING_ACCOUNTS, "100", com.azure.core.util.Context.NONE);
    }

    /*
     * x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/ExternalSubscriptionAlerts.json
     */
    /**
     * Sample code: ExternalSubscriptionAlerts.
     *
     * @param manager Entry point to CostManagementManager.
     */
    public static void externalSubscriptionAlerts(
        com.azure.resourcemanager.costmanagement.CostManagementManager manager) {
        manager
            .alerts()
            .listExternalWithResponse(
                ExternalCloudProviderType.EXTERNAL_SUBSCRIPTIONS, "100", com.azure.core.util.Context.NONE);
    }
}
