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

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

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


class CreatePeriodRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_period_request_body = CreatePeriodRequestBody()

    def period_rule_id(self, period_rule_id: str) -> "CreatePeriodRequestBodyBuilder":
        self._create_period_request_body.period_rule_id = period_rule_id
        return self

    def start_month(self, start_month: str) -> "CreatePeriodRequestBodyBuilder":
        self._create_period_request_body.start_month = start_month
        return self

    def build(self) -> "CreatePeriodRequestBody":
        return self._create_period_request_body
