Class 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
    • Constructor Detail

      • MAPAllocation_Retention_Priority

        public MAPAllocation_Retention_Priority()
        Constructs an object with uninitialised state.
    • Method Detail

      • 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 class AbstractFieldsObject
        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
      • 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