Class CS1ServiceFilteringResponseArg
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CS1ServiceFilteringResponseArg
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CS1ServiceFilteringResponseArg extends AbstractFieldsObject
API for Core-INAP-CS1-DataTypes.ServiceFilteringResponseArg. Generated from the following ASN.1 type definition.ServiceFilteringResponseArg ::= SEQUENCE { countersValue CountersValue, filteringCriteria FilteringCriteria, extensions SEQUENCE (SIZE (1..1000)) OF ExtensionField OPTIONAL, ... }
Used as argument type by
CS1Operations.serviceFilteringResponse
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CS1ServiceFilteringResponseArg()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CS1ServiceFilteringResponseArg
clone()
Constructs a copy of this object and everything reachable from it.static CS1ServiceFilteringResponseArg
copyOf(CS1ServiceFilteringResponseArg 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.CS1CounterAndValue[]
getCountersValue()
Gets the value of the field countersValue.CS1ExtensionField[]
getExtensions()
Gets the value of the field extensions.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.CS1FilteringCriteria
getFilteringCriteria()
Gets the value of the field filteringCriteria.boolean
hasCountersValue()
Tests whether the field countersValue has a value.boolean
hasExtensions()
Tests whether the field extensions has a value.boolean
hasFilteringCriteria()
Tests whether the field filteringCriteria has a value.CS1ServiceFilteringResponseArg
setCountersValue(CS1CounterAndValue[] value)
Sets the value of the field countersValue.CS1ServiceFilteringResponseArg
setExtensions(CS1ExtensionField[] value)
Sets the value of the field extensions.CS1ServiceFilteringResponseArg
setFilteringCriteria(CS1FilteringCriteria value)
Sets the value of the field filteringCriteria.void
setReadOnly()
Sets this and all its fields to be immutable.-
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 CS1ServiceFilteringResponseArg 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 CS1ServiceFilteringResponseArg copyOf(CS1ServiceFilteringResponseArg 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:
- CS1ServiceFilteringResponseArg
-
getCountersValue
public CS1CounterAndValue[] getCountersValue()
Gets the value of the field countersValue.- Returns:
- value of field countersValue, or null if not present
-
getExtensions
public CS1ExtensionField[] getExtensions()
Gets the value of the field extensions.- Returns:
- value of field extensions, or null if not present
-
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
-
getFilteringCriteria
public CS1FilteringCriteria getFilteringCriteria()
Gets the value of the field filteringCriteria.- Returns:
- value of field filteringCriteria, or null if not present
-
hasCountersValue
public boolean hasCountersValue()
Tests whether the field countersValue has a value.- Returns:
- whether the field countersValue has a value
-
hasExtensions
public boolean hasExtensions()
Tests whether the field extensions has a value.- Returns:
- whether the field extensions has a value
-
hasFilteringCriteria
public boolean hasFilteringCriteria()
Tests whether the field filteringCriteria has a value.- Returns:
- whether the field filteringCriteria has a value
-
setCountersValue
public CS1ServiceFilteringResponseArg setCountersValue(CS1CounterAndValue[] value) throws IllegalStateException
Sets the value of the field countersValue.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setExtensions
public CS1ServiceFilteringResponseArg setExtensions(CS1ExtensionField[] value) throws IllegalStateException
Sets the value of the field extensions. 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
-
setFilteringCriteria
public CS1ServiceFilteringResponseArg setFilteringCriteria(CS1FilteringCriteria value) throws IllegalStateException
Sets the value of the field filteringCriteria.- Parameters:
value
- the new value for the field- 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
-
-