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

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.consumption.fluent.models.LotSummaryInner;

/** An instance of this class provides access to all the operations defined in LotsOperationsClient. */
public interface LotsOperationsClient {
    /**
     * Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
     * Microsoft Azure consumption commitments are only supported for the billing account scope.
     *
     * @param billingAccountId BillingAccount ID.
     * @param billingProfileId Azure Billing Profile ID.
     * @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 result of listing lot summary.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<LotSummaryInner> listByBillingProfile(String billingAccountId, String billingProfileId);

    /**
     * Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
     * Microsoft Azure consumption commitments are only supported for the billing account scope.
     *
     * @param billingAccountId BillingAccount ID.
     * @param billingProfileId Azure Billing Profile ID.
     * @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 result of listing lot summary.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<LotSummaryInner> listByBillingProfile(
        String billingAccountId, String billingProfileId, Context context);

    /**
     * Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
     * Microsoft Azure consumption commitments are only supported for the billing account scope.
     *
     * @param billingAccountId BillingAccount ID.
     * @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 result of listing lot summary.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<LotSummaryInner> listByBillingAccount(String billingAccountId);

    /**
     * Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
     * Microsoft Azure consumption commitments are only supported for the billing account scope.
     *
     * @param billingAccountId BillingAccount ID.
     * @param filter May be used to filter the lots by Status, Source etc. The filter supports 'eq', 'lt', 'gt', 'le',
     *     'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string
     *     where key and value is separated by a colon (:).
     * @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 result of listing lot summary.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<LotSummaryInner> listByBillingAccount(String billingAccountId, String filter, Context context);
}
