Interface BalancesClient
-
public interface BalancesClient
An instance of this class provides access to all the operations defined in BalancesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BalanceInner
getByBillingAccount(String billingAccountId)
Gets the balances for a scope by billingAccountId.com.azure.core.http.rest.Response<BalanceInner>
getByBillingAccountWithResponse(String billingAccountId, com.azure.core.util.Context context)
Gets the balances for a scope by billingAccountId.BalanceInner
getForBillingPeriodByBillingAccount(String billingAccountId, String billingPeriodName)
Gets the balances for a scope by billing period and billingAccountId.com.azure.core.http.rest.Response<BalanceInner>
getForBillingPeriodByBillingAccountWithResponse(String billingAccountId, String billingPeriodName, com.azure.core.util.Context context)
Gets the balances for a scope by billing period and billingAccountId.
-
-
-
Method Detail
-
getByBillingAccount
BalanceInner 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<BalanceInner> 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
BalanceInner 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<BalanceInner> 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.
-
-