Class MeterUsageRecord
java.lang.Object
com.microsoft.store.partnercenter.models.ResourceBase
com.microsoft.store.partnercenter.models.usage.UsageRecordBase
com.microsoft.store.partnercenter.models.usage.MeterUsageRecord
public class MeterUsageRecord extends UsageRecordBase
Defines the estimated monetary cost of a subscription's meter level usage in the current billing cycle.
-
Constructor Summary
Constructors Constructor Description MeterUsageRecord() -
Method Summary
Modifier and Type Method Description StringgetCategory()Gets the category for the Azure resource.StringgetMeterId()Gets the identifier for the meter.StringgetMeterName()Gets the name for the meter.doublegetQuantityUsed()Gets the quantity of the Azure resource used.StringgetSubcategory()Gets the sub-category for the Azure resource.StringgetSubscriptionId()Gets the identifier for the subscription.StringgetUnit()Gets the unit of measure for the Azure resource.voidsetCategory(String value)Sets the category for the Azure resource.voidsetMeterId(String value)Sets the identifier for the meter.voidsetMeterName(String value)Sets the name for the meter.voidsetQuantityUsed(double value)Sets the quantity of the Azure resource used.voidsetSubcategory(String value)Sets the sub-category for the Azure resource.voidsetSubscriptionId(String value)Sets the identifier for the subscription.voidsetUnit(String value)Sets the unit of measure for the Azure resource.Methods inherited from class com.microsoft.store.partnercenter.models.usage.UsageRecordBase
getCurrencyLocale, getLastModifiedDate, getResourceId, getResourceName, getTotalCost, setCurrencyLocale, setId, setLastModifiedDate, setResourceName, setTotalCost
-
Constructor Details
-
MeterUsageRecord
public MeterUsageRecord()
-
-
Method Details
-
getCategory
Gets the category for the Azure resource.- Returns:
- The category for the Azure resource.
-
setCategory
Sets the category for the Azure resource.- Parameters:
value- The category for the Azure resource.
-
getMeterId
Gets the identifier for the meter.- Returns:
- The identifier for the meter.
-
setMeterId
Sets the identifier for the meter.- Parameters:
value- The identifier for the meter.
-
getMeterName
Gets the name for the meter.- Returns:
- The name for the meter.
-
setMeterName
Sets the name for the meter.- Parameters:
value- The name for the meter.
-
getQuantityUsed
public double getQuantityUsed()Gets the quantity of the Azure resource used.- Returns:
- The quantity of the Azure resource used.
-
setQuantityUsed
public void setQuantityUsed(double value)Sets the quantity of the Azure resource used.- Parameters:
value- The quantity of the Azure resource used.
-
getSubcategory
Gets the sub-category for the Azure resource.- Returns:
- The sub-category for the Azure resource.
-
setSubcategory
Sets the sub-category for the Azure resource.- Parameters:
value- The sub-category for the Azure resource.
-
getSubscriptionId
Gets the identifier for the subscription.- Returns:
- The identifier for the subscription.
-
setSubscriptionId
Sets the identifier for the subscription.- Parameters:
value- The identifier for the subscription.
-
getUnit
Gets the unit of measure for the Azure resource.- Returns:
- The unit of measure for the Azure resource.
-
setUnit
Sets the unit of measure for the Azure resource.- Parameters:
value- The unit of measure for the Azure resource.
-