// 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.models;

import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.PricingInner;

/** Resource collection API of Pricings. */
public interface Pricings {
    /**
     * Lists Microsoft Defender for Cloud pricing configurations in the subscription.
     *
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return list of pricing configurations response along with {@link Response}.
     */
    Response<PricingList> listWithResponse(Context context);

    /**
     * Lists Microsoft Defender for Cloud pricing configurations in the subscription.
     *
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return list of pricing configurations response.
     */
    PricingList list();

    /**
     * Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
     *
     * @param pricingName name of the pricing configuration.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link
     *     Response}.
     */
    Response<Pricing> getWithResponse(String pricingName, Context context);

    /**
     * Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
     *
     * @param pricingName name of the pricing configuration.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription.
     */
    Pricing get(String pricingName);

    /**
     * Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
     *
     * @param pricingName name of the pricing configuration.
     * @param pricing Pricing object.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return microsoft Defender for Cloud is provided in two pricing tiers: free and standard along with {@link
     *     Response}.
     */
    Response<Pricing> updateWithResponse(String pricingName, PricingInner pricing, Context context);

    /**
     * Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
     *
     * @param pricingName name of the pricing configuration.
     * @param pricing Pricing object.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return microsoft Defender for Cloud is provided in two pricing tiers: free and standard.
     */
    Pricing update(String pricingName, PricingInner pricing);
}
