# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class CreatePermissionPublicPasswordResponseBody(object):
    _types = {
        "password": str,
    }

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

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


class CreatePermissionPublicPasswordResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_permission_public_password_response_body = CreatePermissionPublicPasswordResponseBody()

    def password(self, password: str) -> "CreatePermissionPublicPasswordResponseBodyBuilder":
        self._create_permission_public_password_response_body.password = password
        return self

    def build(self) -> "CreatePermissionPublicPasswordResponseBody":
        return self._create_permission_public_password_response_body
