MeterUsageRecord Class

public class MeterUsageRecord extends UsageRecordBase

Defines the estimated monetary cost of a subscription's meter level usage in the current billing cycle.

Constructor Summary

Constructor Description
MeterUsageRecord()

Method Summary

Modifier and Type Method and Description
java.lang.String getCategory()

Gets the category for the Azure resource.

java.lang.String getMeterId()

Gets the identifier for the meter.

java.lang.String getMeterName()

Gets the name for the meter.

double getQuantityUsed()

Gets the quantity of the Azure resource used.

java.lang.String getSubcategory()

Gets the sub-category for the Azure resource.

java.lang.String getSubscriptionId()

Gets the identifier for the subscription.

java.lang.String getUnit()

Gets the unit of measure for the Azure resource.

void setCategory(String value)

Sets the category for the Azure resource.

void setMeterId(String value)

Sets the identifier for the meter.

void setMeterName(String value)

Sets the name for the meter.

void setQuantityUsed(double value)

Sets the quantity of the Azure resource used.

void setSubcategory(String value)

Sets the sub-category for the Azure resource.

void setSubscriptionId(String value)

Sets the identifier for the subscription.

void setUnit(String value)

Sets the unit of measure for the Azure resource.

Inherited Members

Constructor Details

MeterUsageRecord

public MeterUsageRecord()

Method Details

getCategory

public String getCategory()

Gets the category for the Azure resource.

Returns:

The category for the Azure resource.

getMeterId

public String getMeterId()

Gets the identifier for the meter.

Returns:

The identifier for the meter.

getMeterName

public String getMeterName()

Gets the name for the meter.

Returns:

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.

getSubcategory

public String getSubcategory()

Gets the sub-category for the Azure resource.

Returns:

The sub-category for the Azure resource.

getSubscriptionId

public String getSubscriptionId()

Gets the identifier for the subscription.

Returns:

The identifier for the subscription.

getUnit

public String getUnit()

Gets the unit of measure for the Azure resource.

Returns:

The unit of measure for the Azure resource.

setCategory

public void setCategory(String value)

Sets the category for the Azure resource.

Parameters:

value - The category for the Azure resource.

setMeterId

public void setMeterId(String value)

Sets the identifier for the meter.

Parameters:

value - The identifier for the meter.

setMeterName

public void setMeterName(String value)

Sets the name for the meter.

Parameters:

value - The name for the meter.

setQuantityUsed

public void setQuantityUsed(double value)

Sets the quantity of the Azure resource used.

Parameters:

value - The quantity of the Azure resource used.

setSubcategory

public void setSubcategory(String value)

Sets the sub-category for the Azure resource.

Parameters:

value - The sub-category for the Azure resource.

setSubscriptionId

public void setSubscriptionId(String value)

Sets the identifier for the subscription.

Parameters:

value - The identifier for the subscription.

setUnit

public void setUnit(String value)

Sets the unit of measure for the Azure resource.

Parameters:

value - The unit of measure for the Azure resource.

Applies to