from __future__ import annotations
from dataclasses import dataclass, field
from .entity_in_version_structure import VersionedChildStructure
from .multilingual_string import MultilingualString
from .type_of_locatable_spot_enumeration import TypeOfLocatableSpotEnumeration
from .type_of_locatable_spot_ref import TypeOfLocatableSpotRef

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


@dataclass(slots=True, kw_only=True)
class DeckSpaceCapacityVersionedChildStructure(VersionedChildStructure):
    class Meta:
        name = "DeckSpaceCapacity_VersionedChildStructure"

    name: None | MultilingualString = field(
        default=None,
        metadata={
            "name": "Name",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    locatable_spot_type: None | TypeOfLocatableSpotEnumeration = field(
        default=None,
        metadata={
            "name": "LocatableSpotType",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    type_of_locatable_spot_ref: None | TypeOfLocatableSpotRef = field(
        default=None,
        metadata={
            "name": "TypeOfLocatableSpotRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    capacity: None | int = field(
        default=None,
        metadata={
            "name": "Capacity",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )