def by_device_compliance_policy_state_id(self,device_compliance_policy_state_id: str) -> DeviceCompliancePolicyStateItemRequestBuilder:
        """
        Provides operations to manage the deviceCompliancePolicyStates property of the microsoft.graph.managedDevice entity.
        param device_compliance_policy_state_id: The unique identifier of deviceCompliancePolicyState
        Returns: DeviceCompliancePolicyStateItemRequestBuilder
        """
        if device_compliance_policy_state_id is None:
            raise TypeError("device_compliance_policy_state_id cannot be null.")
        from .item.device_compliance_policy_state_item_request_builder import DeviceCompliancePolicyStateItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["deviceCompliancePolicyState%2Did"] = device_compliance_policy_state_id
        return DeviceCompliancePolicyStateItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the deviceCompliancePolicyStates property of the microsoft.graph.managedDevice entity.
        param device_compliance_policy_state_id: The unique identifier of deviceCompliancePolicyState
        Returns: DeviceCompliancePolicyStateItemRequestBuilder
        
msgraph/generated/users/item/managed_devices/item/device_compliance_policy_states/device_compliance_policy_states_request_builder.py