content: package org.hiast.recommendationsapi.adapter.in.web.request;
  
  import com.fasterxml.jackson.annotation.JsonFormat;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import java.time.Instant;
  
  public class RatingEventRequest {
      @JsonProperty("userId")
      private int userId;
  
      @JsonProperty("movieId")
      private int movieId;
  
      @JsonProperty("rating")
      private double rating;
  
      @JsonProperty("timestamp")
      @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "UTC")
      private Instant timestamp;
  
      public RatingEventRequest() {}
  
      public int getUserId() { return userId; }
      public void setUserId(int userId) { this.userId = userId; }
  
      public int getMovieId() { return movieId; }
      public void setMovieId(int movieId) { this.movieId = movieId; }
  
      public double getRating() { return rating; }
      public void setRating(double rating) { this.rating = rating; }
  
      public Instant getTimestamp() { return timestamp; }
      public void setTimestamp(Instant timestamp) { this.timestamp = timestamp; }
  } 