"""Houses UI Request Builder"""

from pyrestsdk.requestbuilder import BaseRequestBuilder
from pyservicenow.builder._ui_user_request_builder import UIUserRequestBuilder



class UIRequestBuilder(BaseRequestBuilder):
    """The UI Request Builder type"""

    @property
    def User(self) -> UIUserRequestBuilder:
        """Constructs a UI User request builder

        Returns:
            UIUserRequestBuilder: UI User request builder
        """

        return UIUserRequestBuilder(
            self.append_segment_to_request_url("user"), self.request_client
        )
