Class MAPAllocation_Retention_Priority
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPAllocation_Retention_Priority
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPAllocation_Retention_Priority extends AbstractFieldsObject
API for MAP-MS-DataTypes.Allocation-Retention-Priority. Generated from the following ASN.1 type definition.Allocation-Retention-Priority ::= SEQUENCE { priority-level INTEGER, pre-emption-capability BOOLEAN OPTIONAL, pre-emption-vulnerability BOOLEAN OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... }
Added in release 8.Used as field type by
MAPEPS_QoS_Subscribed
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPAllocation_Retention_Priority()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPAllocation_Retention_Priority
clone()
Constructs a copy of this object and everything reachable from it.static MAPAllocation_Retention_Priority
copyOf(MAPAllocation_Retention_Priority 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.MAPExtensionContainer
getExtensionContainer()
Gets the value of the field extensionContainer.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.boolean
getPre_emption_capability()
Gets the value of the field pre-emption-capability.boolean
getPre_emption_vulnerability()
Gets the value of the field pre-emption-vulnerability.long
getPriority_level()
Gets the value of the field priority-level.boolean
hasExtensionContainer()
Tests whether the field extensionContainer has a value.boolean
hasPre_emption_capability()
Tests whether the field pre-emption-capability has a value.boolean
hasPre_emption_vulnerability()
Tests whether the field pre-emption-vulnerability has a value.boolean
hasPriority_level()
Tests whether the field priority-level has a value.MAPAllocation_Retention_Priority
setExtensionContainer(MAPExtensionContainer value)
Sets the value of the field extensionContainer.MAPAllocation_Retention_Priority
setPre_emption_capability(boolean value)
Sets the value of the field pre-emption-capability and marks the field as present.MAPAllocation_Retention_Priority
setPre_emption_capabilityPresent(boolean flag)
Sets the presence or absence of the optional field pre-emption-capability.MAPAllocation_Retention_Priority
setPre_emption_vulnerability(boolean value)
Sets the value of the field pre-emption-vulnerability and marks the field as present.MAPAllocation_Retention_Priority
setPre_emption_vulnerabilityPresent(boolean flag)
Sets the presence or absence of the optional field pre-emption-vulnerability.MAPAllocation_Retention_Priority
setPriority_level(long value)
Sets the value of the field priority-level and marks the field as present.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 MAPAllocation_Retention_Priority 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 MAPAllocation_Retention_Priority copyOf(MAPAllocation_Retention_Priority 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:
- MAPAllocation_Retention_Priority
-
getExtensionContainer
public MAPExtensionContainer getExtensionContainer()
Gets the value of the field extensionContainer.- Returns:
- value of field extensionContainer, 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
-
getPre_emption_capability
public boolean getPre_emption_capability()
Gets the value of the field pre-emption-capability.- Returns:
- value of field pre-emption-capability
-
getPre_emption_vulnerability
public boolean getPre_emption_vulnerability()
Gets the value of the field pre-emption-vulnerability.- Returns:
- value of field pre-emption-vulnerability
-
getPriority_level
public long getPriority_level()
Gets the value of the field priority-level.- Returns:
- value of field priority-level
-
hasExtensionContainer
public boolean hasExtensionContainer()
Tests whether the field extensionContainer has a value.- Returns:
- whether the field extensionContainer has a value
-
hasPre_emption_capability
public boolean hasPre_emption_capability()
Tests whether the field pre-emption-capability has a value.- Returns:
- whether the field pre-emption-capability has a value
-
hasPre_emption_vulnerability
public boolean hasPre_emption_vulnerability()
Tests whether the field pre-emption-vulnerability has a value.- Returns:
- whether the field pre-emption-vulnerability has a value
-
hasPriority_level
public boolean hasPriority_level()
Tests whether the field priority-level has a value.- Returns:
- whether the field priority-level has a value
-
setExtensionContainer
public MAPAllocation_Retention_Priority setExtensionContainer(MAPExtensionContainer value) throws IllegalStateException
Sets the value of the field extensionContainer. 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
-
setPre_emption_capability
public MAPAllocation_Retention_Priority setPre_emption_capability(boolean value) throws IllegalStateException
Sets the value of the field pre-emption-capability 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
-
setPre_emption_capabilityPresent
public MAPAllocation_Retention_Priority setPre_emption_capabilityPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field pre-emption-capability.- 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
-
setPre_emption_vulnerability
public MAPAllocation_Retention_Priority setPre_emption_vulnerability(boolean value) throws IllegalStateException
Sets the value of the field pre-emption-vulnerability 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
-
setPre_emption_vulnerabilityPresent
public MAPAllocation_Retention_Priority setPre_emption_vulnerabilityPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field pre-emption-vulnerability.- 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
-
setPriority_level
public MAPAllocation_Retention_Priority setPriority_level(long value) throws IllegalStateException
Sets the value of the field priority-level 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
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
-