Class UsageRecordBase
java.lang.Object
com.microsoft.store.partnercenter.models.ResourceBase
com.microsoft.store.partnercenter.models.usage.UsageRecordBase
- Direct Known Subclasses:
AzureResourceMonthlyUsageRecord,CustomerMonthlyUsageRecord,MeterUsageRecord,ResourceUsageRecord,SubscriptionDailyUsageRecord,SubscriptionMonthlyUsageRecord
public class UsageRecordBase extends ResourceBase
Defines the common properties for all usage records.
-
Constructor Summary
Constructors Constructor Description UsageRecordBase() -
Method Summary
Modifier and Type Method Description LocalegetCurrencyLocale()Gets the locale of the currency.org.joda.time.DateTimegetLastModifiedDate()Gets the date the usage record was last modified.StringgetResourceId()Gets the resource unique identifier.StringgetResourceName()Gets the name of the resource.doublegetTotalCost()Gets the estimated total cost of usage.voidsetCurrencyLocale(Locale value)Sets the locale of the currency.voidsetId(String value)Sets the resource unique identifier.voidsetLastModifiedDate(org.joda.time.DateTime value)Sets the date the usage record was last modified.voidsetResourceName(String value)Sets the name of the resource.voidsetTotalCost(double value)Sets the estimated total cost of usage.
-
Constructor Details
-
UsageRecordBase
public UsageRecordBase()
-
-
Method Details
-
getCurrencyLocale
Gets the locale of the currency.- Returns:
- The locale of the currency.
-
setCurrencyLocale
Sets the locale of the currency.- Parameters:
value- The locale of the currency.
-
setLastModifiedDate
public void setLastModifiedDate(org.joda.time.DateTime value)Sets the date the usage record was last modified.- Parameters:
value- The date the usage record was last modified.
-
getResourceId
Gets the resource unique identifier.- Returns:
- The resource unique identifier.
-
setId
Sets the resource unique identifier.- Parameters:
value- The resource unique identifier.
-
getResourceName
Gets the name of the resource.- Returns:
- The name of the resource.
-
setResourceName
Sets the name of the resource.- Parameters:
value- The name of the resource.
-
getTotalCost
public double getTotalCost()Gets the estimated total cost of usage.- Returns:
- The estimated total cost of usage.
-
setTotalCost
public void setTotalCost(double value)Sets the estimated total cost of usage.- Parameters:
value- The estimated total cost of usage.
-
getLastModifiedDate
public org.joda.time.DateTime getLastModifiedDate()Gets the date the usage record was last modified.- Returns:
- The date the usage record was last modified.
-