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

package com.azure.resourcemanager.consumption.generated;

import com.azure.core.util.Context;

/** Samples for AggregatedCost GetByManagementGroup. */
public final class AggregatedCostGetByManagementGroupSamples {
    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/AggregatedCostByManagementGroupFilterByDate.json
     */
    /**
     * Sample code: AggregatedCostByManagementGroupFilterByDate.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void aggregatedCostByManagementGroupFilterByDate(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager
            .aggregatedCosts()
            .getByManagementGroupWithResponse(
                "managementGroupForTest",
                "usageStart ge '2018-08-15' and properties/usageStart le '2018-08-31'",
                Context.NONE);
    }

    /*
     * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/AggregatedCostByManagementGroup.json
     */
    /**
     * Sample code: AggregatedCostByManagementGroup.
     *
     * @param manager Entry point to ConsumptionManager.
     */
    public static void aggregatedCostByManagementGroup(
        com.azure.resourcemanager.consumption.ConsumptionManager manager) {
        manager.aggregatedCosts().getByManagementGroupWithResponse("managementGroupForTest", null, Context.NONE);
    }
}
