public abstract class BasicUsageRecord extends AbstractRecord implements UsageRecord
UsageRecord.OperationResultCONSUMER_ID, OPERATION_RESULT, SCOPE| Constructor and Description |
|---|
BasicUsageRecord() |
BasicUsageRecord(Map<String,? extends Serializable> properties) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConsumerId()
Return the user (or the Consumer Identity, that in the S2S
communication is another service)
|
UsageRecord.OperationResult |
getOperationResult() |
String |
getRecordType()
Return the
Record Type |
String |
getScope()
Return the scope of this {#UsageRecord}
|
void |
setConsumerId(String consumerId)
Set the user (or the Consumer Identity, that in the S2S
communication is another service)
|
void |
setOperationResult(UsageRecord.OperationResult operationResult)
Set the Operation Result related to the accounted Usage Record
|
void |
setScope(String scope)
Set the scope of the {#UsageRecord}
|
compareTo, getAggregatedFields, getComputedFields, getCreationTime, getId, getQuerableKeys, getRequiredFields, getResourceProperties, getResourceProperty, removeResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, timestampToCalendar, toString, validatepublic BasicUsageRecord()
public BasicUsageRecord(Map<String,? extends Serializable> properties) throws InvalidValueException
InvalidValueExceptionpublic String getConsumerId()
getConsumerId in interface UsageRecordpublic void setConsumerId(String consumerId) throws InvalidValueException
setConsumerId in interface UsageRecordconsumerId - Consumer IDInvalidValueExceptionpublic String getRecordType()
RecordRecord TypegetRecordType in interface RecordRecord Typepublic String getScope()
getScope in interface UsageRecordpublic void setScope(String scope) throws InvalidValueException
setScope in interface UsageRecordscope - the scope of the {#UsageRecord}InvalidValueExceptionpublic UsageRecord.OperationResult getOperationResult()
getOperationResult in interface UsageRecordpublic void setOperationResult(UsageRecord.OperationResult operationResult) throws InvalidValueException
setOperationResult in interface UsageRecordoperationResult - the Operation Result to setInvalidValueExceptionCopyright © 2020. All Rights Reserved.