# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class MountPointInfo(object):
    _types = {
        "mount_type": str,
        "mount_key": str,
        "ext": Dict[str, str],
    }

    def __init__(self, d=None):
        self.mount_type: Optional[str] = None
        self.mount_key: Optional[str] = None
        self.ext: Optional[Dict[str, str]] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "MountPointInfoBuilder":
        return MountPointInfoBuilder()


class MountPointInfoBuilder(object):
    def __init__(self) -> None:
        self._mount_point_info = MountPointInfo()

    def mount_type(self, mount_type: str) -> "MountPointInfoBuilder":
        self._mount_point_info.mount_type = mount_type
        return self

    def mount_key(self, mount_key: str) -> "MountPointInfoBuilder":
        self._mount_point_info.mount_key = mount_key
        return self

    def ext(self, ext: Dict[str, str]) -> "MountPointInfoBuilder":
        self._mount_point_info.ext = ext
        return self

    def build(self) -> "MountPointInfo":
        return self._mount_point_info
