public interface UsageRecord extends Comparable<UsageRecord>
| Modifier and Type | Interface and Description |
|---|---|
static class |
UsageRecord.OperationResult |
| Modifier and Type | Method and Description |
|---|---|
String |
getAggregatedUsageRecordId()
Return the id of the usage record aggregating this, null if this record
has not been aggregated by any record.
|
String |
getConsumerId()
Return the identity of the entity that consumed the resource
|
Calendar |
getCreationTime()
Return the creation time for this {#UsageRecord}
|
String |
getCreatorId()
Return the identity of the entity creating this {#UsageRecord}
|
String |
getId()
Return the unique id for this {#UsageRecord}
|
UsageRecord.OperationResult |
getOperationResult() |
Map<String,Serializable> |
getResourceProperties()
Return all resource-specific properties.
|
Serializable |
getResourceProperty(String key)
Return the value of the given resource property.
|
String |
getResourceScope()
Return the accounting scope of the {#UsageRecord}
|
void |
setAggregatedUsageRecordId(String aggregatedId)
Set the id of the usage record aggregating this
|
void |
setConsumerId(String consumerId)
Set the identity of the entity that consumed the resource
|
void |
setCreationTime(Calendar creationTime)
Set the creation time for this {#UsageRecord}
|
void |
setCreatorId(String creatorId)
Set the identity of the entity creating this {#UsageRecord}
|
void |
setId(String id)
Set the unique id for this {#UsageRecord}
|
void |
setOperationResult(UsageRecord.OperationResult operationResult)
Set the Operation Result related to the accounted Usage Record
|
void |
setResourceProperties(Map<String,Serializable> resourceSpecificProperties)
Set all resource-specific properties, replacing existing ones
|
void |
setResourceProperty(String key,
Serializable value)
Set the value of the given resource property.
|
void |
setResourceScope(String scope)
Set the accounting scope of the {#UsageRecord}
|
void |
validate()
Validate the Resource Record
|
compareToString getId()
void setId(String id) throws InvalidValueException
id - {#UsageRecord} Unique IDInvalidValueExceptionString getCreatorId()
void setCreatorId(String creatorId) throws InvalidValueException
creatorId - Creator IDInvalidValueExceptionString getConsumerId()
void setConsumerId(String consumerId) throws InvalidValueException
consumerId - Consumer IDInvalidValueExceptionCalendar getCreationTime()
void setCreationTime(Calendar creationTime) throws InvalidValueException
creationTime - creation timeInvalidValueExceptionString getResourceScope()
void setResourceScope(String scope) throws InvalidValueException
scope - The accounting scope of the {#UsageRecord}InvalidValueExceptionString getAggregatedUsageRecordId()
void setAggregatedUsageRecordId(String aggregatedId) throws InvalidValueException
aggregatedId - The ID of the aggregation RecordInvalidValueExceptionMap<String,Serializable> getResourceProperties()
void setResourceProperties(Map<String,Serializable> resourceSpecificProperties) throws InvalidValueException
InvalidValueExceptionSerializable getResourceProperty(String key)
key - the key of the requested propertyvoid setResourceProperty(String key, Serializable value) throws InvalidValueException
key - the key of the requested propertyvalue - the value of the given resource propertyInvalidValueExceptionUsageRecord.OperationResult getOperationResult()
void setOperationResult(UsageRecord.OperationResult operationResult) throws InvalidValueException
operationResult - the Operation Result to setInvalidValueExceptionvoid validate()
throws InvalidValueException
InvalidValueExceptionCopyright © 2015. All Rights Reserved.