# 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 Header(object):
    _types = {
        "title": str,
    }

    def __init__(self, d=None):
        self.title: Optional[str] = None
        init(self, d, self._types)

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


class HeaderBuilder(object):
    def __init__(self) -> None:
        self._header = Header()

    def title(self, title: str) -> "HeaderBuilder":
        self._header.title = title
        return self

    def build(self) -> "Header":
        return self._header
