# 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 MessagePushOverviewApplicationAppUsageRequestBody(object):
    _types = {
        "date": str,
        "cycle_type": int,
        "department_id": str,
    }

    def __init__(self, d=None):
        self.date: Optional[str] = None
        self.cycle_type: Optional[int] = None
        self.department_id: Optional[str] = None
        init(self, d, self._types)

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


class MessagePushOverviewApplicationAppUsageRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._message_push_overview_application_app_usage_request_body = MessagePushOverviewApplicationAppUsageRequestBody()

    def date(self, date: str) -> "MessagePushOverviewApplicationAppUsageRequestBodyBuilder":
        self._message_push_overview_application_app_usage_request_body.date = date
        return self

    def cycle_type(self, cycle_type: int) -> "MessagePushOverviewApplicationAppUsageRequestBodyBuilder":
        self._message_push_overview_application_app_usage_request_body.cycle_type = cycle_type
        return self

    def department_id(self, department_id: str) -> "MessagePushOverviewApplicationAppUsageRequestBodyBuilder":
        self._message_push_overview_application_app_usage_request_body.department_id = department_id
        return self

    def build(self) -> "MessagePushOverviewApplicationAppUsageRequestBody":
        return self._message_push_overview_application_app_usage_request_body
