# 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 ActiveLocationRequestBody(object):
    _types = {
        "location_id": str,
        "effective_time": str,
        "active": bool,
        "operation_reason": str,
    }

    def __init__(self, d=None):
        self.location_id: Optional[str] = None
        self.effective_time: Optional[str] = None
        self.active: Optional[bool] = None
        self.operation_reason: Optional[str] = None
        init(self, d, self._types)

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


class ActiveLocationRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._active_location_request_body = ActiveLocationRequestBody()

    def location_id(self, location_id: str) -> "ActiveLocationRequestBodyBuilder":
        self._active_location_request_body.location_id = location_id
        return self

    def effective_time(self, effective_time: str) -> "ActiveLocationRequestBodyBuilder":
        self._active_location_request_body.effective_time = effective_time
        return self

    def active(self, active: bool) -> "ActiveLocationRequestBodyBuilder":
        self._active_location_request_body.active = active
        return self

    def operation_reason(self, operation_reason: str) -> "ActiveLocationRequestBodyBuilder":
        self._active_location_request_body.operation_reason = operation_reason
        return self

    def build(self) -> "ActiveLocationRequestBody":
        return self._active_location_request_body
