# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class AuditRecipientDetail(object):
    _types = {
        "permission_action_type": str,
    }

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

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


class AuditRecipientDetailBuilder(object):
    def __init__(self) -> None:
        self._audit_recipient_detail = AuditRecipientDetail()

    def permission_action_type(self, permission_action_type: str) -> "AuditRecipientDetailBuilder":
        self._audit_recipient_detail.permission_action_type = permission_action_type
        return self

    def build(self) -> "AuditRecipientDetail":
        return self._audit_recipient_detail
