Class CS1FilteredCallTreatment
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CS1FilteredCallTreatment
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CS1FilteredCallTreatment extends AbstractFieldsObject
API for Core-INAP-CS1-DataTypes.FilteredCallTreatment. Generated from the following ASN.1 type definition and the adaptations below.FilteredCallTreatment ::= SEQUENCE { sFBillingChargingCharacteristics SFBillingChargingCharacteristics, informationToSend InformationToSend OPTIONAL, maximumNumberOfCounters MaximumNumberOfCounters OPTIONAL, releaseCause Cause OPTIONAL } Core-INAP-CS1-DataTypes { FilteredCallTreatment { sFBillingChargingCharacteristics { @forceOptional } } }
Used as field type by
CS1ActivateServiceFilteringArg
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CS1FilteredCallTreatment()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CS1FilteredCallTreatment
clone()
Constructs a copy of this object and everything reachable from it.static CS1FilteredCallTreatment
copyOf(CS1FilteredCallTreatment from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.static FieldAccessor[]
getFieldAccessors()
Gets a new array of the accessors for fields of this type.Map<String,Object>
getFieldsMap(boolean withAbsents)
Gets a Map from field-name to field-value.CS1InformationToSend
getInformationToSend()
Gets the value of the field informationToSend.int
getMaximumNumberOfCounters()
Gets the value of the field maximumNumberOfCounters.Cause
getReleaseCause()
Gets the value of the field releaseCause.CS1SFBillingChargingCharacteristics
getSFBillingChargingCharacteristics()
Gets the value of the field sFBillingChargingCharacteristics.boolean
hasInformationToSend()
Tests whether the field informationToSend has a value.boolean
hasMaximumNumberOfCounters()
Tests whether the field maximumNumberOfCounters has a value.boolean
hasReleaseCause()
Tests whether the field releaseCause has a value.boolean
hasSFBillingChargingCharacteristics()
Tests whether the field sFBillingChargingCharacteristics has a value.CS1FilteredCallTreatment
setInformationToSend(CS1InformationToSend value)
Sets the value of the field informationToSend.CS1FilteredCallTreatment
setMaximumNumberOfCounters(int value)
Sets the value of the field maximumNumberOfCounters and marks the field as present.CS1FilteredCallTreatment
setMaximumNumberOfCountersPresent(boolean flag)
Sets the presence or absence of the optional field maximumNumberOfCounters.void
setReadOnly()
Sets this and all its fields to be immutable.CS1FilteredCallTreatment
setReleaseCause(Cause value)
Sets the value of the field releaseCause.CS1FilteredCallTreatment
setSFBillingChargingCharacteristics(CS1SFBillingChargingCharacteristics value)
Sets the value of the field sFBillingChargingCharacteristics.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly
-
-
-
-
Method Detail
-
clone
public CS1FilteredCallTreatment clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Specified by:
clone
in classAbstractDataObject
- Returns:
- copy of object
-
copyOf
public static CS1FilteredCallTreatment copyOf(CS1FilteredCallTreatment from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.- Parameters:
from
- the object from which to copy- Returns:
- CS1FilteredCallTreatment
-
getFieldAccessors
public static FieldAccessor[] getFieldAccessors()
Gets a new array of the accessors for fields of this type.- Returns:
- FieldAccessor[]
-
getFieldsMap
public Map<String,Object> getFieldsMap(boolean withAbsents)
Gets a Map from field-name to field-value. For a field of primitive type, the field-value is boxed. For an absent optional field, the field-value is AbstractFieldsObject.FIELD_ABSENT. For an unitialised mandatory field, the field-value is AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getInformationToSend
public CS1InformationToSend getInformationToSend()
Gets the value of the field informationToSend.- Returns:
- value of field informationToSend, or null if not present
-
getMaximumNumberOfCounters
public int getMaximumNumberOfCounters()
Gets the value of the field maximumNumberOfCounters.- Returns:
- value of field maximumNumberOfCounters
-
getReleaseCause
public Cause getReleaseCause()
Gets the value of the field releaseCause.- Returns:
- value of field releaseCause, or null if not present
-
getSFBillingChargingCharacteristics
public CS1SFBillingChargingCharacteristics getSFBillingChargingCharacteristics()
Gets the value of the field sFBillingChargingCharacteristics.- Returns:
- value of field sFBillingChargingCharacteristics, or null if not present
-
hasInformationToSend
public boolean hasInformationToSend()
Tests whether the field informationToSend has a value.- Returns:
- whether the field informationToSend has a value
-
hasMaximumNumberOfCounters
public boolean hasMaximumNumberOfCounters()
Tests whether the field maximumNumberOfCounters has a value.- Returns:
- whether the field maximumNumberOfCounters has a value
-
hasReleaseCause
public boolean hasReleaseCause()
Tests whether the field releaseCause has a value.- Returns:
- whether the field releaseCause has a value
-
hasSFBillingChargingCharacteristics
public boolean hasSFBillingChargingCharacteristics()
Tests whether the field sFBillingChargingCharacteristics has a value.- Returns:
- whether the field sFBillingChargingCharacteristics has a value
-
setInformationToSend
public CS1FilteredCallTreatment setInformationToSend(CS1InformationToSend value) throws IllegalStateException
Sets the value of the field informationToSend. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setMaximumNumberOfCounters
public CS1FilteredCallTreatment setMaximumNumberOfCounters(int value) throws IllegalStateException
Sets the value of the field maximumNumberOfCounters and marks the field as present.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setMaximumNumberOfCountersPresent
public CS1FilteredCallTreatment setMaximumNumberOfCountersPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field maximumNumberOfCounters.- Parameters:
flag
- either true if the field should be marked as present or false if the field should be marked as absent- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setReleaseCause
public CS1FilteredCallTreatment setReleaseCause(Cause value) throws IllegalStateException
Sets the value of the field releaseCause. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setSFBillingChargingCharacteristics
public CS1FilteredCallTreatment setSFBillingChargingCharacteristics(CS1SFBillingChargingCharacteristics value) throws IllegalStateException
Sets the value of the field sFBillingChargingCharacteristics. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-