content: package com.airbnb.airpal.api.queries;
  
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.hubspot.rosetta.StoredAsJson;
  import lombok.*;
  import org.joda.time.DateTime;
  
  import javax.validation.constraints.NotNull;
  import java.util.UUID;
  
  @Data
  @AllArgsConstructor
  @NoArgsConstructor
  public class UserSavedQuery implements SavedQuery
  {
      @NotNull
      @JsonProperty
      @StoredAsJson
      private FeaturedQuery.QueryWithPlaceholders queryWithPlaceholders;
  
      @NotNull
      @JsonProperty
      private String user;
  
      @NotNull
      @JsonProperty
      private String name;
  
      @NotNull
      @JsonProperty
      private String description;
  
      @NotNull
      private DateTime createdAt;
  
      @NotNull
      @JsonProperty
      private UUID uuid;
  
      @NotNull
      @JsonProperty
      private boolean featured = false;
  
      @JsonProperty
      public String getCreatedAt()
      {
          if (createdAt != null) {
              return createdAt.toDateTimeISO().toString();
          } else {
              return null;
          }
      }
  }
  