class InfraActiveRequestsRepositoryCustomController {

    @PostMapping(value = "/infraActiveRequests/checkInstanceNameDuplicate")
    public InfraActiveRequests checkInstanceNameDuplicate(
            @RequestBody InstanceNameDuplicateCheckRequest instanceNameDuplicateCheckRequest) {
        return infraActiveRequestsRepository.checkInstanceNameDuplicate(
                instanceNameDuplicateCheckRequest.getInstanceIdMap(),
                instanceNameDuplicateCheckRequest.getInstanceName(),
                instanceNameDuplicateCheckRequest.getRequestScope());
    }

}