UsageRecordBase Class

public class UsageRecordBase extends ResourceBase

Defines the common properties for all usage records.

Constructor Summary

Constructor Description
UsageRecordBase()

Method Summary

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

Gets the code of the currency.

java.util.Locale getCurrencyLocale()

Gets the locale of the currency.

org.joda.time.DateTime getLastModifiedDate()

Gets the date the usage record was last modified.

java.lang.String getResourceId()

Gets the resource unique identifier.

java.lang.String getResourceName()

Gets the name of the resource.

double getTotalCost()

Gets the estimated total cost of usage.

double getUsdTotalCost()

Gets the estimated total cost of usage in USD.

void setCurrencyCode(String value)

Sets the code of the currency.

void setCurrencyLocale(Locale value)

Sets the locale of the currency.

void setId(String value)

Sets the resource unique identifier.

void setLastModifiedDate(DateTime value)

Sets the date the usage record was last modified.

void setResourceName(String value)

Sets the name of the resource.

void setTotalCost(double value)

Sets the estimated total cost of usage.

void setUsdTotalCost(double value)

Sets the estimated total cost of usage in USD.

Inherited Members

ResourceBase.getAttributes() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

UsageRecordBase

public UsageRecordBase()

Method Details

getCurrencyCode

public String getCurrencyCode()

Gets the code of the currency.

Returns:

The code of the currency.

getCurrencyLocale

public Locale getCurrencyLocale()

Gets the locale of the currency.

Returns:

The locale of the currency.

getLastModifiedDate

public DateTime getLastModifiedDate()

Gets the date the usage record was last modified.

Returns:

The date the usage record was last modified.

getResourceId

public String getResourceId()

Gets the resource unique identifier.

Returns:

The resource unique identifier.

getResourceName

public String getResourceName()

Gets the name of the resource.

Returns:

The name of the resource.

getTotalCost

public double getTotalCost()

Gets the estimated total cost of usage.

Returns:

The estimated total cost of usage.

getUsdTotalCost

public double getUsdTotalCost()

Gets the estimated total cost of usage in USD.

Returns:

The estimated total cost of usage in USD.

setCurrencyCode

public void setCurrencyCode(String value)

Sets the code of the currency.

Parameters:

value - The code of the currency.

setCurrencyLocale

public void setCurrencyLocale(Locale value)

Sets the locale of the currency.

Parameters:

value - The locale of the currency.

setId

public void setId(String value)

Sets the resource unique identifier.

Parameters:

value - The resource unique identifier.

setLastModifiedDate

public void setLastModifiedDate(DateTime value)

Sets the date the usage record was last modified.

Parameters:

value - The date the usage record was last modified.

setResourceName

public void setResourceName(String value)

Sets the name of the resource.

Parameters:

value - The name of the resource.

setTotalCost

public void setTotalCost(double value)

Sets the estimated total cost of usage.

Parameters:

value - The estimated total cost of usage.

setUsdTotalCost

public void setUsdTotalCost(double value)

Sets the estimated total cost of usage in USD.

Parameters:

value - The estimated total cost of usage in USD.

Applies to