Class CustomerMonthlyUsageRecord
java.lang.Object
com.microsoft.store.partnercenter.models.ResourceBase
com.microsoft.store.partnercenter.models.usage.UsageRecordBase
com.microsoft.store.partnercenter.models.usage.CustomerMonthlyUsageRecord
public class CustomerMonthlyUsageRecord extends UsageRecordBase
This class defines the monthly usage record of a customer for all its subscriptions.
-
Constructor Summary
Constructors Constructor Description CustomerMonthlyUsageRecord() -
Method Summary
Modifier and Type Method Description SpendingBudgetgetBudget()Gets the spending budget allocated for the customer.booleangetIsUpgraded()Gets a value indicating whether the customer's Azure subscription is upgraded.doublegetPercentUsed()Gets the percentage used out of the allocated budget.voidsetBudget(SpendingBudget value)Sets the spending budget allocated for the customer.voidsetIsUpgraded(boolean value)Sets a value indicating whether the customer's Azure subscription is upgraded.voidsetPercentUsed(double value)Sets the percentage used out of the allocated budget.Methods inherited from class com.microsoft.store.partnercenter.models.usage.UsageRecordBase
getCurrencyLocale, getLastModifiedDate, getResourceId, getResourceName, getTotalCost, setCurrencyLocale, setId, setLastModifiedDate, setResourceName, setTotalCost
-
Constructor Details
-
CustomerMonthlyUsageRecord
public CustomerMonthlyUsageRecord()
-
-
Method Details
-
getBudget
Gets the spending budget allocated for the customer.- Returns:
- The spending budget allocated for the customer.
-
setBudget
Sets the spending budget allocated for the customer.- Parameters:
value- 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.
-
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.
-
getPercentUsed
public double getPercentUsed()Gets the percentage used out of the allocated budget.- Returns:
- The percentage used out of the allocated budget.
-
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.
-