CustomerMonthlyUsageRecord Class

public class CustomerMonthlyUsageRecord extends UsageRecordBase

This class defines the monthly usage record of a customer for all its subscriptions.

Constructor Summary

Constructor Description
CustomerMonthlyUsageRecord()

Method Summary

Modifier and Type Method and Description
SpendingBudget getBudget()

Gets the spending budget allocated for the customer.

boolean getIsUpgraded()

Gets a value indicating whether the customer's Azure subscription is upgraded.

double getPercentUsed()

Gets the percentage used out of the allocated budget.

void setBudget(SpendingBudget value)

Sets the spending budget allocated for the customer.

void setIsUpgraded(boolean value)

Sets a value indicating whether the customer's Azure subscription is upgraded.

void setPercentUsed(double value)

Sets the percentage used out of the allocated budget.

Inherited Members

Constructor Details

CustomerMonthlyUsageRecord

public CustomerMonthlyUsageRecord()

Method Details

getBudget

public SpendingBudget getBudget()

Gets the spending budget allocated for the customer.

Returns:

The spending budget allocated for the customer.

getIsUpgraded

public boolean getIsUpgraded()

Gets a value indicating whether the customer's Azure subscription is upgraded.

Returns:

A value indicating whether the customer's Azure subscription is upgraded.

getPercentUsed

public double getPercentUsed()

Gets the percentage used out of the allocated budget.

Returns:

The percentage used out of the allocated budget.

setBudget

public void setBudget(SpendingBudget value)

Sets the spending budget allocated for the customer.

Parameters:

value - The spending budget allocated for the customer.

setIsUpgraded

public void setIsUpgraded(boolean value)

Sets a value indicating whether the customer's Azure subscription is upgraded.

Parameters:

value - A value indicating whether the customer's Azure subscription is upgraded.

setPercentUsed

public void setPercentUsed(double value)

Sets the percentage used out of the allocated budget.

Parameters:

value - The percentage used out of the allocated budget.

Applies to