All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.rrworld.henrikval.gen.model.MatchRoundsInnerPlayerStatsInner Maven / Gradle / Ivy

The newest version!
package net.rrworld.henrikval.gen.model;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.rrworld.henrikval.gen.model.MatchKill;
import net.rrworld.henrikval.gen.model.MatchRoundsInnerPlayerStatsInnerAbilityCasts;
import net.rrworld.henrikval.gen.model.MatchRoundsInnerPlayerStatsInnerDamageEventsInner;
import net.rrworld.henrikval.gen.model.MatchRoundsInnerPlayerStatsInnerEconomy;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;


import java.util.*;
import javax.annotation.Generated;

/**
 * MatchRoundsInnerPlayerStatsInner
 */

@JsonTypeName("match_rounds_inner_player_stats_inner")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class MatchRoundsInnerPlayerStatsInner {

  private MatchRoundsInnerPlayerStatsInnerAbilityCasts abilityCasts;

  private String playerPuuid;

  private String playerDisplayName;

  private String playerTeam;

  @Valid
  private List<@Valid MatchRoundsInnerPlayerStatsInnerDamageEventsInner> damageEvents = new ArrayList<>();

  private Integer damage;

  private Integer bodyshots;

  private Integer headshots;

  private Integer legshots;

  @Valid
  private List<@Valid MatchKill> killEvents = new ArrayList<>();

  private Integer kills;

  private Integer score;

  private MatchRoundsInnerPlayerStatsInnerEconomy economy;

  private Boolean wasAfk;

  private Boolean wasPenalized;

  private Boolean stayedInSpawn;

  public MatchRoundsInnerPlayerStatsInner abilityCasts(MatchRoundsInnerPlayerStatsInnerAbilityCasts abilityCasts) {
    this.abilityCasts = abilityCasts;
    return this;
  }

  /**
   * Get abilityCasts
   * @return abilityCasts
   */
  @Valid 
  @Schema(name = "ability_casts", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("ability_casts")
  public MatchRoundsInnerPlayerStatsInnerAbilityCasts getAbilityCasts() {
    return abilityCasts;
  }

  public void setAbilityCasts(MatchRoundsInnerPlayerStatsInnerAbilityCasts abilityCasts) {
    this.abilityCasts = abilityCasts;
  }

  public MatchRoundsInnerPlayerStatsInner playerPuuid(String playerPuuid) {
    this.playerPuuid = playerPuuid;
    return this;
  }

  /**
   * Get playerPuuid
   * @return playerPuuid
   */
  
  @Schema(name = "player_puuid", example = "54942ced-1967-5f66-8a16-1e0dae875641", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("player_puuid")
  public String getPlayerPuuid() {
    return playerPuuid;
  }

  public void setPlayerPuuid(String playerPuuid) {
    this.playerPuuid = playerPuuid;
  }

  public MatchRoundsInnerPlayerStatsInner playerDisplayName(String playerDisplayName) {
    this.playerDisplayName = playerDisplayName;
    return this;
  }

  /**
   * Get playerDisplayName
   * @return playerDisplayName
   */
  
  @Schema(name = "player_display_name", example = "Henrik3#EUW3", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("player_display_name")
  public String getPlayerDisplayName() {
    return playerDisplayName;
  }

  public void setPlayerDisplayName(String playerDisplayName) {
    this.playerDisplayName = playerDisplayName;
  }

  public MatchRoundsInnerPlayerStatsInner playerTeam(String playerTeam) {
    this.playerTeam = playerTeam;
    return this;
  }

  /**
   * Get playerTeam
   * @return playerTeam
   */
  
  @Schema(name = "player_team", example = "Red", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("player_team")
  public String getPlayerTeam() {
    return playerTeam;
  }

  public void setPlayerTeam(String playerTeam) {
    this.playerTeam = playerTeam;
  }

  public MatchRoundsInnerPlayerStatsInner damageEvents(List<@Valid MatchRoundsInnerPlayerStatsInnerDamageEventsInner> damageEvents) {
    this.damageEvents = damageEvents;
    return this;
  }

  public MatchRoundsInnerPlayerStatsInner addDamageEventsItem(MatchRoundsInnerPlayerStatsInnerDamageEventsInner damageEventsItem) {
    if (this.damageEvents == null) {
      this.damageEvents = new ArrayList<>();
    }
    this.damageEvents.add(damageEventsItem);
    return this;
  }

  /**
   * Get damageEvents
   * @return damageEvents
   */
  @Valid 
  @Schema(name = "damage_events", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("damage_events")
  public List<@Valid MatchRoundsInnerPlayerStatsInnerDamageEventsInner> getDamageEvents() {
    return damageEvents;
  }

  public void setDamageEvents(List<@Valid MatchRoundsInnerPlayerStatsInnerDamageEventsInner> damageEvents) {
    this.damageEvents = damageEvents;
  }

  public MatchRoundsInnerPlayerStatsInner damage(Integer damage) {
    this.damage = damage;
    return this;
  }

  /**
   * Get damage
   * @return damage
   */
  
  @Schema(name = "damage", example = "282", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("damage")
  public Integer getDamage() {
    return damage;
  }

  public void setDamage(Integer damage) {
    this.damage = damage;
  }

  public MatchRoundsInnerPlayerStatsInner bodyshots(Integer bodyshots) {
    this.bodyshots = bodyshots;
    return this;
  }

  /**
   * Get bodyshots
   * @return bodyshots
   */
  
  @Schema(name = "bodyshots", example = "7", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("bodyshots")
  public Integer getBodyshots() {
    return bodyshots;
  }

  public void setBodyshots(Integer bodyshots) {
    this.bodyshots = bodyshots;
  }

  public MatchRoundsInnerPlayerStatsInner headshots(Integer headshots) {
    this.headshots = headshots;
    return this;
  }

  /**
   * Get headshots
   * @return headshots
   */
  
  @Schema(name = "headshots", example = "1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("headshots")
  public Integer getHeadshots() {
    return headshots;
  }

  public void setHeadshots(Integer headshots) {
    this.headshots = headshots;
  }

  public MatchRoundsInnerPlayerStatsInner legshots(Integer legshots) {
    this.legshots = legshots;
    return this;
  }

  /**
   * Get legshots
   * @return legshots
   */
  
  @Schema(name = "legshots", example = "1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("legshots")
  public Integer getLegshots() {
    return legshots;
  }

  public void setLegshots(Integer legshots) {
    this.legshots = legshots;
  }

  public MatchRoundsInnerPlayerStatsInner killEvents(List<@Valid MatchKill> killEvents) {
    this.killEvents = killEvents;
    return this;
  }

  public MatchRoundsInnerPlayerStatsInner addKillEventsItem(MatchKill killEventsItem) {
    if (this.killEvents == null) {
      this.killEvents = new ArrayList<>();
    }
    this.killEvents.add(killEventsItem);
    return this;
  }

  /**
   * Get killEvents
   * @return killEvents
   */
  @Valid 
  @Schema(name = "kill_events", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("kill_events")
  public List<@Valid MatchKill> getKillEvents() {
    return killEvents;
  }

  public void setKillEvents(List<@Valid MatchKill> killEvents) {
    this.killEvents = killEvents;
  }

  public MatchRoundsInnerPlayerStatsInner kills(Integer kills) {
    this.kills = kills;
    return this;
  }

  /**
   * Get kills
   * @return kills
   */
  
  @Schema(name = "kills", example = "2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("kills")
  public Integer getKills() {
    return kills;
  }

  public void setKills(Integer kills) {
    this.kills = kills;
  }

  public MatchRoundsInnerPlayerStatsInner score(Integer score) {
    this.score = score;
    return this;
  }

  /**
   * Get score
   * @return score
   */
  
  @Schema(name = "score", example = "430", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("score")
  public Integer getScore() {
    return score;
  }

  public void setScore(Integer score) {
    this.score = score;
  }

  public MatchRoundsInnerPlayerStatsInner economy(MatchRoundsInnerPlayerStatsInnerEconomy economy) {
    this.economy = economy;
    return this;
  }

  /**
   * Get economy
   * @return economy
   */
  @Valid 
  @Schema(name = "economy", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("economy")
  public MatchRoundsInnerPlayerStatsInnerEconomy getEconomy() {
    return economy;
  }

  public void setEconomy(MatchRoundsInnerPlayerStatsInnerEconomy economy) {
    this.economy = economy;
  }

  public MatchRoundsInnerPlayerStatsInner wasAfk(Boolean wasAfk) {
    this.wasAfk = wasAfk;
    return this;
  }

  /**
   * Get wasAfk
   * @return wasAfk
   */
  
  @Schema(name = "was_afk", example = "false", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("was_afk")
  public Boolean getWasAfk() {
    return wasAfk;
  }

  public void setWasAfk(Boolean wasAfk) {
    this.wasAfk = wasAfk;
  }

  public MatchRoundsInnerPlayerStatsInner wasPenalized(Boolean wasPenalized) {
    this.wasPenalized = wasPenalized;
    return this;
  }

  /**
   * Get wasPenalized
   * @return wasPenalized
   */
  
  @Schema(name = "was_penalized", example = "false", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("was_penalized")
  public Boolean getWasPenalized() {
    return wasPenalized;
  }

  public void setWasPenalized(Boolean wasPenalized) {
    this.wasPenalized = wasPenalized;
  }

  public MatchRoundsInnerPlayerStatsInner stayedInSpawn(Boolean stayedInSpawn) {
    this.stayedInSpawn = stayedInSpawn;
    return this;
  }

  /**
   * Get stayedInSpawn
   * @return stayedInSpawn
   */
  
  @Schema(name = "stayed_in_spawn", example = "false", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("stayed_in_spawn")
  public Boolean getStayedInSpawn() {
    return stayedInSpawn;
  }

  public void setStayedInSpawn(Boolean stayedInSpawn) {
    this.stayedInSpawn = stayedInSpawn;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    MatchRoundsInnerPlayerStatsInner matchRoundsInnerPlayerStatsInner = (MatchRoundsInnerPlayerStatsInner) o;
    return Objects.equals(this.abilityCasts, matchRoundsInnerPlayerStatsInner.abilityCasts) &&
        Objects.equals(this.playerPuuid, matchRoundsInnerPlayerStatsInner.playerPuuid) &&
        Objects.equals(this.playerDisplayName, matchRoundsInnerPlayerStatsInner.playerDisplayName) &&
        Objects.equals(this.playerTeam, matchRoundsInnerPlayerStatsInner.playerTeam) &&
        Objects.equals(this.damageEvents, matchRoundsInnerPlayerStatsInner.damageEvents) &&
        Objects.equals(this.damage, matchRoundsInnerPlayerStatsInner.damage) &&
        Objects.equals(this.bodyshots, matchRoundsInnerPlayerStatsInner.bodyshots) &&
        Objects.equals(this.headshots, matchRoundsInnerPlayerStatsInner.headshots) &&
        Objects.equals(this.legshots, matchRoundsInnerPlayerStatsInner.legshots) &&
        Objects.equals(this.killEvents, matchRoundsInnerPlayerStatsInner.killEvents) &&
        Objects.equals(this.kills, matchRoundsInnerPlayerStatsInner.kills) &&
        Objects.equals(this.score, matchRoundsInnerPlayerStatsInner.score) &&
        Objects.equals(this.economy, matchRoundsInnerPlayerStatsInner.economy) &&
        Objects.equals(this.wasAfk, matchRoundsInnerPlayerStatsInner.wasAfk) &&
        Objects.equals(this.wasPenalized, matchRoundsInnerPlayerStatsInner.wasPenalized) &&
        Objects.equals(this.stayedInSpawn, matchRoundsInnerPlayerStatsInner.stayedInSpawn);
  }

  @Override
  public int hashCode() {
    return Objects.hash(abilityCasts, playerPuuid, playerDisplayName, playerTeam, damageEvents, damage, bodyshots, headshots, legshots, killEvents, kills, score, economy, wasAfk, wasPenalized, stayedInSpawn);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class MatchRoundsInnerPlayerStatsInner {\n");
    sb.append("    abilityCasts: ").append(toIndentedString(abilityCasts)).append("\n");
    sb.append("    playerPuuid: ").append(toIndentedString(playerPuuid)).append("\n");
    sb.append("    playerDisplayName: ").append(toIndentedString(playerDisplayName)).append("\n");
    sb.append("    playerTeam: ").append(toIndentedString(playerTeam)).append("\n");
    sb.append("    damageEvents: ").append(toIndentedString(damageEvents)).append("\n");
    sb.append("    damage: ").append(toIndentedString(damage)).append("\n");
    sb.append("    bodyshots: ").append(toIndentedString(bodyshots)).append("\n");
    sb.append("    headshots: ").append(toIndentedString(headshots)).append("\n");
    sb.append("    legshots: ").append(toIndentedString(legshots)).append("\n");
    sb.append("    killEvents: ").append(toIndentedString(killEvents)).append("\n");
    sb.append("    kills: ").append(toIndentedString(kills)).append("\n");
    sb.append("    score: ").append(toIndentedString(score)).append("\n");
    sb.append("    economy: ").append(toIndentedString(economy)).append("\n");
    sb.append("    wasAfk: ").append(toIndentedString(wasAfk)).append("\n");
    sb.append("    wasPenalized: ").append(toIndentedString(wasPenalized)).append("\n");
    sb.append("    stayedInSpawn: ").append(toIndentedString(stayedInSpawn)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy