public interface UsedServiceUnit extends GroupedAvp
7.1.9 Used-Service-Unit AVP The Used-Service-Unit AVP (AVP code 446) is of type grouped as specified in IETF RFC 4006 [402]. It contains additional 3GPP specific charging parameters. It has the following ABNF grammar: Used-Service-Unit ::= < AVP Header: 446 > [ Reporting-Reason ] [ Tariff-Change-Usage ] [ CC-Time ] [ CC-Total-Octets ] [ CC-Input-Octets ] [ CC-Output-Octets ] [ CC-Service-Specific-Units ] *[ Event-Charging-Timestamp ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
long |
getCcInputOctets()
Returns the value of the CC-Input-Octets AVP, of type Unsigned64.
|
long |
getCcOutputOctets()
Returns the value of the CC-Output-Octets AVP, of type Unsigned64.
|
long |
getCcServiceSpecificUnits()
Returns the value of the CC-Service-Specific-Units AVP, of type Unsigned64.
|
long |
getCcTime()
Returns the value of the CC-Time AVP, of type Unsigned32.
|
long |
getCcTotalOctets()
Returns the value of the CC-Total-Octets AVP, of type Unsigned64.
|
java.util.Date[] |
getEventChargingTimestamps()
Returns the set of Event-Charging-Timestamp AVPs.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
ReportingReason |
getReportingReason()
Returns the value of the Reporting-Reason AVP, of type Enumerated.
|
TariffChangeUsage |
getTariffChangeUsage()
Returns the value of the Tariff-Change-Usage AVP, of type Enumerated.
|
boolean |
hasCcInputOctets()
Returns true if the CC-Input-Octets AVP is present in the Used-Service-Unit AVP.
|
boolean |
hasCcOutputOctets()
Returns true if the CC-Output-Octets AVP is present in the Used-Service-Unit AVP.
|
boolean |
hasCcServiceSpecificUnits()
Returns true if the CC-Service-Specific-Units AVP is present in the Used-Service-Unit AVP.
|
boolean |
hasCcTime()
Returns true if the CC-Time AVP is present in the Used-Service-Unit AVP.
|
boolean |
hasCcTotalOctets()
Returns true if the CC-Total-Octets AVP is present in the Used-Service-Unit AVP.
|
boolean |
hasReportingReason()
Returns true if the Reporting-Reason AVP is present in the Used-Service-Unit AVP.
|
boolean |
hasTariffChangeUsage()
Returns true if the Tariff-Change-Usage AVP is present in the Used-Service-Unit AVP.
|
void |
removeCcInputOctets()
Removes the CC-Input-Octets AVP from the Used-Service-Unit AVP.
|
void |
removeCcOutputOctets()
Removes the CC-Output-Octets AVP from the Used-Service-Unit AVP.
|
void |
removeCcServiceSpecificUnits()
Removes the CC-Service-Specific-Units AVP from the Used-Service-Unit AVP.
|
void |
removeCcTime()
Removes the CC-Time AVP from the Used-Service-Unit AVP.
|
void |
removeCcTotalOctets()
Removes the CC-Total-Octets AVP from the Used-Service-Unit AVP.
|
void |
removeEventChargingTimestamps()
Removes all Event-Charging-Timestamp AVPs from the Used-Service-Unit AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Used-Service-Unit AVP.
|
void |
removeReportingReason()
Removes the Reporting-Reason AVP from the Used-Service-Unit AVP.
|
void |
removeTariffChangeUsage()
Removes the Tariff-Change-Usage AVP from the Used-Service-Unit AVP.
|
void |
setCcInputOctets(long ccInputOctets)
Sets the value of the CC-Input-Octets AVP, of type Unsigned64.
|
void |
setCcOutputOctets(long ccOutputOctets)
Sets the value of the CC-Output-Octets AVP, of type Unsigned64.
|
void |
setCcServiceSpecificUnits(long ccServiceSpecificUnits)
Sets the value of the CC-Service-Specific-Units AVP, of type Unsigned64.
|
void |
setCcTime(long ccTime)
Sets the value of the CC-Time AVP, of type Unsigned32.
|
void |
setCcTotalOctets(long ccTotalOctets)
Sets the value of the CC-Total-Octets AVP, of type Unsigned64.
|
void |
setEventChargingTimestamp(java.util.Date eventChargingTimestamp)
Sets a single Event-Charging-Timestamp AVP in the Used-Service-Unit AVP, of type Time.
|
void |
setEventChargingTimestamps(java.util.Date[] eventChargingTimestamps)
Sets the set of Event-Charging-Timestamp AVPs, with all the values in the given array.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setReportingReason(ReportingReason reportingReason)
Sets the value of the Reporting-Reason AVP, of type Enumerated.
|
void |
setTariffChangeUsage(TariffChangeUsage tariffChangeUsage)
Sets the value of the Tariff-Change-Usage AVP, of type Enumerated.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasReportingReason()
ReportingReason getReportingReason()
void setReportingReason(ReportingReason reportingReason)
java.lang.NullPointerException
- if reportingReason
is null
.void removeReportingReason()
boolean hasTariffChangeUsage()
TariffChangeUsage getTariffChangeUsage()
void setTariffChangeUsage(TariffChangeUsage tariffChangeUsage)
java.lang.NullPointerException
- if tariffChangeUsage
is null
.void removeTariffChangeUsage()
boolean hasCcTime()
long getCcTime()
hasCcTime()
to check the existence of this AVP.java.lang.IllegalStateException
- if the CC-Time AVP has not been set.void setCcTime(long ccTime)
void removeCcTime()
boolean hasCcTotalOctets()
long getCcTotalOctets()
hasCcTotalOctets()
to check the existence of this AVP.java.lang.IllegalStateException
- if the CC-Total-Octets AVP has not been set.void setCcTotalOctets(long ccTotalOctets)
void removeCcTotalOctets()
boolean hasCcInputOctets()
long getCcInputOctets()
hasCcInputOctets()
to check the existence of this AVP.java.lang.IllegalStateException
- if the CC-Input-Octets AVP has not been set.void setCcInputOctets(long ccInputOctets)
void removeCcInputOctets()
boolean hasCcOutputOctets()
long getCcOutputOctets()
hasCcOutputOctets()
to check the existence of this AVP.java.lang.IllegalStateException
- if the CC-Output-Octets AVP has not been set.void setCcOutputOctets(long ccOutputOctets)
void removeCcOutputOctets()
boolean hasCcServiceSpecificUnits()
long getCcServiceSpecificUnits()
hasCcServiceSpecificUnits()
to check the existence of this AVP.java.lang.IllegalStateException
- if the CC-Service-Specific-Units AVP has not been set.void setCcServiceSpecificUnits(long ccServiceSpecificUnits)
void removeCcServiceSpecificUnits()
java.util.Date[] getEventChargingTimestamps()
void setEventChargingTimestamp(java.util.Date eventChargingTimestamp)
java.lang.NullPointerException
- if eventChargingTimestamp
is null
.void setEventChargingTimestamps(java.util.Date[] eventChargingTimestamps)
java.lang.NullPointerException
- if eventChargingTimestamps
is null
.void removeEventChargingTimestamps()
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()