want to iterate thru bidChoices list and map using scala, below is the java code. what to perform the same using scala.
private String generateRestBody(String baseUrl, String auctionId, String baseAuctionId, List<String> bidChoices) {
return BODY_TEMPLATE.formatted(
DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(OffsetDateTime.now()),
bidChoices.stream()
.map(slotNo -> SELECTION_URI_TEMPLATE.formatted(BASE_URL, AUCTION_ID, BASE_AUCTION_ID, slotNo))
.collect(Collectors.joining(","))).replaceAll("\n", "");
}