|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.GSUPoolReference
public class GSUPoolReference
GSUPoolReference is a lightweight representation of the Grouped [G-S-U-Pool-Reference] Avp. The GSUPoolReference is returned in the GrantedServiceUnit of the Credit-Control-Answer and associates the quota with a credit pool.
The [G-S-U-Pool-Reference] Avp is defined in RFC 4006 - Diameter Credit-Control Application.
Constructor Summary | |
---|---|
GSUPoolReference()
Constructs an empty GSUPoolReference object representing the [G-S-U-Pool-Reference] Avp. |
|
GSUPoolReference(java.util.List<Avp> avps)
Constructs a GSUPoolReference object representing the Grouped [G-S-U-Pool-Reference] Avp. |
Method Summary | |
---|---|
java.lang.Integer |
getCcUnitType()
Gets the value corresponding to the payload of the {CC-Unit-Type} Avp. |
java.lang.Integer |
getGSUPoolIdentifier()
Gets the value corresponding to the payload of the {G-S-U-Pool-Identifier} Avp. |
UnitValue |
getUnitValue()
Gets the value corresponding to the payload of the {Unit-Value} Avp. |
void |
setCcUnitType(java.lang.Integer ccUnitType)
Sets the value corresponding to the payload of the {CC-Unit-Type} Avp. |
void |
setGSUPoolIdentifier(java.lang.Integer poolIdentifier)
Sets the value corresponding to the payload of the {G-S-U-Pool-Identifier} Avp. |
void |
setUnitValue(UnitValue unitValue)
Sets the value corresponding to the payload of the {Unit-Value} Avp. |
Avp |
toAvp()
Transforms a GSUPoolReference object into a Grouped [G-S-U-Pool-Reference] Avp. |
void |
validate()
Validates the members of the GSUPoolReference object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GSUPoolReference()
public GSUPoolReference(java.util.List<Avp> avps) throws AvpTransformationException
The method takes a List of Avps as an input. If an Avp code inside the list corresponds to a member of GSUPoolReference, the member will be populated with the Avp value during construction. If an Avp code is unknown, the value will be silently discarded.
avps
- a list of Avps that can appear in the Grouped
[G-S-U-Pool-Reference] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.Integer getGSUPoolIdentifier()
public void setGSUPoolIdentifier(java.lang.Integer poolIdentifier)
poolIdentifier
- the value corresponding to the payload of the {G-S-U-Pool-Identifier} Avp.public java.lang.Integer getCcUnitType()
public void setCcUnitType(java.lang.Integer ccUnitType)
ccUnitType
- the value corresponding to the payload of the {CC-Unit-Type} Avp.public UnitValue getUnitValue()
public void setUnitValue(UnitValue unitValue)
unitValue
- the value corresponding to the payload of the {Unit-Value} Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of GSUPoolReference is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of GSUPoolReference will be transformed into Avps nested inside of the [G-S-U-Pool-Reference] Avp.
AvpTransformationException
- if a member of GSUPoolReference is in an unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |