public interface AocCostInformation extends GroupedAvp
7.2.12 A AoC-Cost-Information AVP The AoC-Cost-Information AVP (AVP code 2053) is of type Grouped and holds accumulated and incremental cost information for the AoC service It has the following ABNF grammar: AoC-Cost-Information ::= < AVP Header: 2053 > [ Accumulated-Cost] * [ Incremental-Cost ] [ Currency-Code ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
AccumulatedCost |
getAccumulatedCost()
Returns the value of the Accumulated-Cost AVP, of type Grouped.
|
long |
getCurrencyCode()
Returns the value of the Currency-Code AVP, of type Unsigned32.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
IncrementalCost[] |
getIncrementalCosts()
Returns the set of Incremental-Cost AVPs.
|
boolean |
hasAccumulatedCost()
Returns true if the Accumulated-Cost AVP is present in the AoC-Cost-Information AVP.
|
boolean |
hasCurrencyCode()
Returns true if the Currency-Code AVP is present in the AoC-Cost-Information AVP.
|
void |
removeAccumulatedCost()
Removes the Accumulated-Cost AVP from the AoC-Cost-Information AVP.
|
void |
removeCurrencyCode()
Removes the Currency-Code AVP from the AoC-Cost-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the AoC-Cost-Information AVP.
|
void |
removeIncrementalCosts()
Removes all Incremental-Cost AVPs from the AoC-Cost-Information AVP.
|
void |
setAccumulatedCost(AccumulatedCost accumulatedCost)
Sets the value of the Accumulated-Cost AVP, of type Grouped.
|
void |
setCurrencyCode(long currencyCode)
Sets the value of the Currency-Code AVP, of type Unsigned32.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setIncrementalCost(IncrementalCost incrementalCost)
Sets a single Incremental-Cost AVP in the AoC-Cost-Information AVP, of type Grouped.
|
void |
setIncrementalCosts(IncrementalCost[] incrementalCosts)
Sets the set of Incremental-Cost AVPs, with all the values in the given array.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasAccumulatedCost()
AccumulatedCost getAccumulatedCost()
void setAccumulatedCost(AccumulatedCost accumulatedCost)
java.lang.NullPointerException
- if accumulatedCost
is null
.void removeAccumulatedCost()
IncrementalCost[] getIncrementalCosts()
void setIncrementalCost(IncrementalCost incrementalCost)
java.lang.NullPointerException
- if incrementalCost
is null
.void setIncrementalCosts(IncrementalCost[] incrementalCosts)
java.lang.NullPointerException
- if incrementalCosts
is null
.void removeIncrementalCosts()
boolean hasCurrencyCode()
long getCurrencyCode()
hasCurrencyCode()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Currency-Code AVP has not been set.void setCurrencyCode(long currencyCode)
void removeCurrencyCode()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()