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.
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.
|
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 |
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 |
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()