# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .bp_role_organization import BpRoleOrganization


class QuerySecurityGroupRequestBody(object):
    _types = {
        "item_list": List[BpRoleOrganization],
    }

    def __init__(self, d=None):
        self.item_list: Optional[List[BpRoleOrganization]] = None
        init(self, d, self._types)

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


class QuerySecurityGroupRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._query_security_group_request_body = QuerySecurityGroupRequestBody()

    def item_list(self, item_list: List[BpRoleOrganization]) -> "QuerySecurityGroupRequestBodyBuilder":
        self._query_security_group_request_body.item_list = item_list
        return self

    def build(self) -> "QuerySecurityGroupRequestBody":
        return self._query_security_group_request_body
