@staticmethod
def _get_unique_key(obj):
    """Returns a unique key for passed object for data model building."""
    if obj.__class__.__name__ in ['Member', 'Pool', 'LoadBalancer',
        'Listener', 'Amphora', 'L7Policy', 'L7Rule', 'VThunder']:
        return obj.__class__.__name__ + str(obj.id)
    elif obj.__class__.__name__ in ['SessionPersistence', 'HealthMonitor']:
        return obj.__class__.__name__ + obj.pool_id
    elif obj.__class__.__name__ in ['ListenerStatistics']:
        return obj.__class__.__name__ + obj.listener_id + obj.amphora_id
    elif obj.__class__.__name__ in ['VRRPGroup', 'Vip']:
        return obj.__class__.__name__ + obj.load_balancer_id
    elif obj.__class__.__name__ in ['AmphoraHealth']:
        return obj.__class__.__name__ + obj.amphora_id
    elif obj.__class__.__name__ in ['SNI']:
        return obj.__class__.__name__ + obj.listener_id + obj.tls_container_id
    elif obj.__class__.__name__ in ['Quotas']:
        return obj.__class__.__name__ + obj.project_id
    else:
        raise NotImplementedError
