public interface UsageRecord
| Modifier and Type | Interface and Description |
|---|---|
static class |
UsageRecord.OperationResult |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSUMER_ID
KEY for : The user (or the Consumer Identity, that in the S2S
communication is another service).
|
static String |
OPERATION_RESULT
KEY for : The Operation Result of the accounted operation.
|
static String |
SCOPE
KEY for : The scope
|
| 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 |
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}
|
static final String OPERATION_RESULT
static final String CONSUMER_ID
static final String SCOPE
UsageRecord.OperationResult getOperationResult()
void setOperationResult(UsageRecord.OperationResult operationResult) throws InvalidValueException
operationResult - the Operation Result to setInvalidValueExceptionString getConsumerId()
void setConsumerId(String consumerId) throws InvalidValueException
consumerId - Consumer IDInvalidValueExceptionString getScope()
void setScope(String scope) throws InvalidValueException
scope - the scope of the {#UsageRecord}InvalidValueExceptionCopyright © 2019. All Rights Reserved.