Interface Balances


  • public interface Balances
    Resource collection API of Balances.
    • Method Detail

      • getByBillingAccount

        Balance getByBillingAccount​(String billingAccountId)
        Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.
        Parameters:
        billingAccountId - BillingAccount ID.
        Returns:
        the balances for a scope by billingAccountId.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByBillingAccountWithResponse

        com.azure.core.http.rest.Response<Balance> getByBillingAccountWithResponse​(String billingAccountId,
                                                                                   com.azure.core.util.Context context)
        Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.
        Parameters:
        billingAccountId - BillingAccount ID.
        context - The context to associate with this operation.
        Returns:
        the balances for a scope by billingAccountId.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getForBillingPeriodByBillingAccount

        Balance getForBillingPeriodByBillingAccount​(String billingAccountId,
                                                    String billingPeriodName)
        Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.
        Parameters:
        billingAccountId - BillingAccount ID.
        billingPeriodName - Billing Period Name.
        Returns:
        the balances for a scope by billing period and billingAccountId.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getForBillingPeriodByBillingAccountWithResponse

        com.azure.core.http.rest.Response<Balance> getForBillingPeriodByBillingAccountWithResponse​(String billingAccountId,
                                                                                                   String billingPeriodName,
                                                                                                   com.azure.core.util.Context context)
        Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.
        Parameters:
        billingAccountId - BillingAccount ID.
        billingPeriodName - Billing Period Name.
        context - The context to associate with this operation.
        Returns:
        the balances for a scope by billing period and billingAccountId.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.