from __future__ import annotations
from dataclasses import dataclass, field
from .battery_equipment_ref import BatteryEquipmentRef
from .containment_aggregation_structure import ContainmentAggregationStructure
from .refuelling_equipment_ref import RefuellingEquipmentRef
from .vehicle_charging_equipment_ref import VehicleChargingEquipmentRef

__NAMESPACE__ = "http://www.netex.org.uk/netex"


@dataclass(slots=True, kw_only=True)
class CompatibleEquipmentRefsRelStructure(ContainmentAggregationStructure):
    class Meta:
        name = "compatibleEquipmentRefs_RelStructure"

    vehicle_charging_equipment_ref_or_refuelling_equipment_ref_or_battery_equipment_ref: list[VehicleChargingEquipmentRef | RefuellingEquipmentRef | BatteryEquipmentRef] = field(
        default_factory=list,
        metadata={
            "type": "Elements",
            "choices": (
                {
                    "name": "VehicleChargingEquipmentRef",
                    "type": VehicleChargingEquipmentRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "RefuellingEquipmentRef",
                    "type": RefuellingEquipmentRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "BatteryEquipmentRef",
                    "type": BatteryEquipmentRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
            ),
        }
    )