|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.MultipleServicesCreditControl
public class MultipleServicesCreditControl
MultipleServicesCreditControl is a lightweight representation of the Grouped [Multiple-Services-Credit-Control] Avp.
The [Multiple-Services-Credit-Control] Avp is defined in RFC 4006 - Diameter Credit-Control Application.
Constructor Summary | |
---|---|
MultipleServicesCreditControl()
Constructs an empty MultipleServicesCreditControl object representing the [Multiple-Services-Credit-Control] Avp. |
|
MultipleServicesCreditControl(java.util.List<Avp> avps)
Constructs a MultipleServicesCreditControl object representing the Grouped [Multiple-Services-Credit-Control] Avp. |
Method Summary | |
---|---|
FinalUnitIndication |
getFinalUnitIndication()
Gets the value corresponding to the payload of the [Final-Unit-Indication] Avp. |
GrantedServiceUnit |
getGrantedServiceUnit()
Gets the value corresponding to the payload of the [Granted-Service-Unit] Avp. |
GSUPoolReference |
getGSUPoolReference()
Gets the value corresponding to the payload of the [GSU-Pool-Reference] Avp. |
PSFurnishChargingInformation |
getPsFurnishChargingInformation()
Gets the value corresponding to the payload of the [PS-Furnish-Charging-Information] Avp. |
java.lang.Integer |
getQuotaConsumptionTime()
Gets the value corresponding to the payload of the [Quota-Consumption-Time] Avp. |
java.lang.Integer |
getQuotaHoldingTime()
Gets the value corresponding to the payload of the [Quota-Holding-Time] Avp. |
java.lang.Integer |
getRatingGroup()
Gets the value corresponding to the payload of the [Rating-Group] Avp. |
java.lang.Integer[] |
getReportingReasons()
Gets the values corresponding to the payloads of the [Reporting-Reason] Avps. |
RequestedServiceUnit |
getRequestedServiceUnit()
Gets the value corresponding to the payload of the [Requested-Service-Unit] Avp. |
java.lang.Integer |
getResultCode()
Gets the value corresponding to the payload of the [Result-Code] Avp. |
java.lang.Integer |
getServiceIdentifier()
Gets the value corresponding to the payload of the [Service-Identifier] Avp. |
java.lang.Integer |
getTimeQuotaThreshold()
Gets the value corresponding to the payload of the [Time-Quota-Threshold] Avp. |
java.lang.Integer[] |
getTriggerTypes()
Gets the values corresponding to the payloads of the [Trigger-Type] Avps. |
java.lang.Integer |
getUnitQuotaThreshold()
Gets the value corresponding to the payload of the [Unit-Quota-Threshold] Avp. |
UsedServiceUnit[] |
getUsedServiceUnits()
Gets the values corresponding to the payloads of the [Used-Service-Unit] Avps. |
java.lang.Integer |
getValidityTime()
Gets the value corresponding to the payload of the [Validity-Time] Avp. |
java.lang.Integer |
getVolumeQuotaThreshold()
Gets the value corresponding to the payload of the [Volume-Quota-Threshold] Avp. |
void |
setFinalUnitIndication(FinalUnitIndication finalUnitIndication)
Sets the value corresponding to the payload of the [Final-Unit-Indication] Avp. |
void |
setGrantedServiceUnit(GrantedServiceUnit grantedServiceUnit)
Sets the value corresponding to the payload of the [Granted-Service-Unit] Avp. |
void |
setGSUPoolReference(GSUPoolReference poolReference)
Sets the value corresponding to the payload of the [GSU-Pool-Reference] Avp. |
void |
setPsFurnishChargingInformation(PSFurnishChargingInformation psFurnishChargingInformation)
Sets the value corresponding to the payload of the [PS-Furnish-Charging-Information] Avp. |
void |
setQuotaConsumptionTime(java.lang.Integer quotaConsumptionTime)
Sets the value corresponding to the payload of the [Quota-Consumption-Time] Avp. |
void |
setQuotaHoldingTime(java.lang.Integer quotaHoldingTime)
Sets the value corresponding to the payload of the [Quota-Holding-Time] Avp. |
void |
setRatingGroup(java.lang.Integer ratingGroup)
Sets the value corresponding to the payload of the [Rating-Group] Avp. |
void |
setReportingReasons(java.lang.Integer[] reportingReasons)
Sets the values corresponding to the payloads of the [Reporting-Reason] Avps. |
void |
setRequestedServiceUnit(RequestedServiceUnit requestedServiceUnit)
Sets the value corresponding to the payload of the [Requested-Service-Unit] Avp. |
void |
setResultCode(java.lang.Integer resultCode)
Sets the value corresponding to the payload of the [Result-Code] Avp. |
void |
setServiceIdentifier(java.lang.Integer serviceIdentifier)
Sets the value corresponding to the payload of the [Service-Identifier] Avp. |
void |
setTimeQuotaThreshold(java.lang.Integer timeQuotaThreshold)
Sets the value corresponding to the payload of the [Time-Quota-Threshold] Avp. |
void |
setTriggerTypes(java.lang.Integer[] triggerTypes)
Sets the values corresponding to the payloads of the [Trigger-Type] Avps. |
void |
setUnitQuotaThreshold(java.lang.Integer unitQuotaThreshold)
Sets the value corresponding to the payload of the [Unit-Quota-Threshold] Avp. |
void |
setUsedServiceUnits(UsedServiceUnit[] usedServiceUnits)
Sets the values corresponding to the payloads of the [Used-Service-Unit] Avps. |
void |
setValidityTime(java.lang.Integer validityTime)
Sets the value corresponding to the payload of the [Validity-Time] Avp. |
void |
setVolumeQuotaThreshold(java.lang.Integer volumeQuotaThreshold)
Sets the value corresponding to the payload of the [Volume-Quota-Threshold] Avp. |
Avp |
toAvp()
Transforms a MultipleServicesCreditControl object into a Grouped [Multiple-Services-Credit-Control] Avp. |
void |
validate()
Validates the members of the MultipleServicesCreditControl object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipleServicesCreditControl()
public MultipleServicesCreditControl(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 MultipleServicesCreditControl, 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
[Multiple-Services-Credit-Control] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public FinalUnitIndication getFinalUnitIndication()
public void setFinalUnitIndication(FinalUnitIndication finalUnitIndication)
finalUnitIndication
- the value corresponding to the payload of the [Final-Unit-Indication] Avp.public GrantedServiceUnit getGrantedServiceUnit()
public void setGrantedServiceUnit(GrantedServiceUnit grantedServiceUnit)
grantedServiceUnit
- the value corresponding to the payload of the [Granted-Service-Unit] Avp.public GSUPoolReference getGSUPoolReference()
public void setGSUPoolReference(GSUPoolReference poolReference)
poolReference
- the value corresponding to the payload of the [GSU-Pool-Reference] Avp.public java.lang.Integer getRatingGroup()
public void setRatingGroup(java.lang.Integer ratingGroup)
ratingGroup
- the value corresponding to the payload of the [Rating-Group] Avp.public RequestedServiceUnit getRequestedServiceUnit()
public void setRequestedServiceUnit(RequestedServiceUnit requestedServiceUnit)
requestedServiceUnit
- the value corresponding to the payload of the [Requested-Service-Unit] Avp.public java.lang.Integer getResultCode()
public void setResultCode(java.lang.Integer resultCode)
resultCode
- the value corresponding to the payload of the [Result-Code] Avp.public java.lang.Integer getServiceIdentifier()
public void setServiceIdentifier(java.lang.Integer serviceIdentifier)
serviceIdentifier
- the value corresponding to the payload of the [Service-Identifier] Avp.public UsedServiceUnit[] getUsedServiceUnits()
public void setUsedServiceUnits(UsedServiceUnit[] usedServiceUnits)
usedServiceUnits
- the values corresponding to the payloads of the [Used-Service-Unit] Avps.public java.lang.Integer getValidityTime()
public void setValidityTime(java.lang.Integer validityTime)
validityTime
- the value corresponding to the payload of the [Validity-Time] Avp.public PSFurnishChargingInformation getPsFurnishChargingInformation()
public void setPsFurnishChargingInformation(PSFurnishChargingInformation psFurnishChargingInformation)
psFurnishChargingInformation
- the value corresponding to the payload of the [PS-Furnish-Charging-Information] Avp.public java.lang.Integer getQuotaConsumptionTime()
public void setQuotaConsumptionTime(java.lang.Integer quotaConsumptionTime)
quotaConsumptionTime
- the value corresponding to the payload of the [Quota-Consumption-Time] Avp.public java.lang.Integer getQuotaHoldingTime()
public void setQuotaHoldingTime(java.lang.Integer quotaHoldingTime)
quotaHoldingTime
- the value corresponding to the payload of the [Quota-Holding-Time] Avp.public java.lang.Integer[] getReportingReasons()
public void setReportingReasons(java.lang.Integer[] reportingReasons)
reportingReasons
- the values corresponding to the payloads of the [Reporting-Reason] Avps.public java.lang.Integer getTimeQuotaThreshold()
public void setTimeQuotaThreshold(java.lang.Integer timeQuotaThreshold)
timeQuotaThreshold
- the value corresponding to the payload of the [Time-Quota-Threshold] Avp.public java.lang.Integer[] getTriggerTypes()
public void setTriggerTypes(java.lang.Integer[] triggerTypes)
triggerTypes
- the values corresponding to the payloads of the [Trigger-Type] Avps.public java.lang.Integer getUnitQuotaThreshold()
public void setUnitQuotaThreshold(java.lang.Integer unitQuotaThreshold)
unitQuotaThreshold
- the value corresponding to the payload of the [Unit-Quota-Threshold] Avp.public java.lang.Integer getVolumeQuotaThreshold()
public void setVolumeQuotaThreshold(java.lang.Integer volumeQuotaThreshold)
volumeQuotaThreshold
- the value corresponding to the payload of the [Volume-Quota-Threshold] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of MultipleServicesCreditControl is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of MultipleServicesCreditControl will be transformed into Avps nested inside of the [Multiple-Services-Credit-Control] Avp.
AvpTransformationException
- if a member of MultipleServicesCreditControl is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |