public interface TimeQuotaMechanism extends GroupedAvp
7.2.116 A Time-Quota-Mechanism The Time-Quota-Mechanism AVP (AVP code 1270) is of type Grouped. It has the following syntax: Time-Quota-Mechanism ::= < AVP Header: 1270> { Time-Quota-Type } { Base-Time-Interval } The OCS may include this AVP in an Multiple-Services-Credit-Control AVP, when granting time quota.Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
long |
getBaseTimeInterval()
Returns the value of the Base-Time-Interval AVP, of type Unsigned32.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
TimeQuotaType |
getTimeQuotaType()
Returns the value of the Time-Quota-Type AVP, of type Enumerated.
|
boolean |
hasBaseTimeInterval()
Returns true if the Base-Time-Interval AVP is present in the Time-Quota-Mechanism AVP.
|
boolean |
hasTimeQuotaType()
Returns true if the Time-Quota-Type AVP is present in the Time-Quota-Mechanism AVP.
|
void |
removeBaseTimeInterval()
Removes the Base-Time-Interval AVP from the Time-Quota-Mechanism AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Time-Quota-Mechanism AVP.
|
void |
removeTimeQuotaType()
Removes the Time-Quota-Type AVP from the Time-Quota-Mechanism AVP.
|
void |
setBaseTimeInterval(long baseTimeInterval)
Sets the value of the Base-Time-Interval AVP, of type Unsigned32.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setTimeQuotaType(TimeQuotaType timeQuotaType)
Sets the value of the Time-Quota-Type AVP, of type Enumerated.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasTimeQuotaType()
TimeQuotaType getTimeQuotaType()
void setTimeQuotaType(TimeQuotaType timeQuotaType)
java.lang.NullPointerException
- if timeQuotaType
is null
.void removeTimeQuotaType()
boolean hasBaseTimeInterval()
long getBaseTimeInterval()
hasBaseTimeInterval()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Base-Time-Interval AVP has not been set.void setBaseTimeInterval(long baseTimeInterval)
void removeBaseTimeInterval()
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()