from __future__ import annotations
from dataclasses import dataclass, field
from typing import Optional
from resqml22.absolute_pressure import AbsolutePressure
from resqml22.abstract_pressure_interval import AbstractPressureInterval

__NAMESPACE__ = "http://www.energistics.org/energyml/data/commonv2"


@dataclass
class AbsolutePressureInterval(AbstractPressureInterval):
    min_pressure: Optional[AbsolutePressure] = field(
        default=None,
        metadata={
            "name": "MinPressure",
            "type": "Element",
            "namespace": "http://www.energistics.org/energyml/data/commonv2",
            "required": True,
        }
    )
    max_pressure: Optional[AbsolutePressure] = field(
        default=None,
        metadata={
            "name": "MaxPressure",
            "type": "Element",
            "namespace": "http://www.energistics.org/energyml/data/commonv2",
            "required": True,
        }
    )
