# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .offboarding_reason import OffboardingReason


class QueryOffboardingResponseBody(object):
    _types = {
        "items": List[OffboardingReason],
    }

    def __init__(self, d=None):
        self.items: Optional[List[OffboardingReason]] = None
        init(self, d, self._types)

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


class QueryOffboardingResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._query_offboarding_response_body = QueryOffboardingResponseBody()

    def items(self, items: List[OffboardingReason]) -> "QueryOffboardingResponseBodyBuilder":
        self._query_offboarding_response_body.items = items
        return self

    def build(self) -> "QueryOffboardingResponseBody":
        return self._query_offboarding_response_body
