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

net.rrworld.henrikval.gen.model.V4Match 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.V4MatchCoachesInner;
import net.rrworld.henrikval.gen.model.V4MatchKillsInner;
import net.rrworld.henrikval.gen.model.V4MatchMetadata;
import net.rrworld.henrikval.gen.model.V4MatchObserversInner;
import net.rrworld.henrikval.gen.model.V4MatchPlayersInner;
import net.rrworld.henrikval.gen.model.V4MatchRoundsInner;
import net.rrworld.henrikval.gen.model.V4MatchTeamsInner;
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;

/**
 * V4Match
 */

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

  private V4MatchMetadata metadata;

  @Valid
  private List<@Valid V4MatchPlayersInner> players = new ArrayList<>();

  @Valid
  private List<@Valid V4MatchObserversInner> observers = new ArrayList<>();

  @Valid
  private List<@Valid V4MatchCoachesInner> coaches = new ArrayList<>();

  @Valid
  private List<@Valid V4MatchTeamsInner> teams = new ArrayList<>();

  @Valid
  private List<@Valid V4MatchRoundsInner> rounds = new ArrayList<>();

  @Valid
  private List<@Valid V4MatchKillsInner> kills = new ArrayList<>();

  public V4Match metadata(V4MatchMetadata metadata) {
    this.metadata = metadata;
    return this;
  }

  /**
   * Get metadata
   * @return metadata
   */
  @Valid 
  @Schema(name = "metadata", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("metadata")
  public V4MatchMetadata getMetadata() {
    return metadata;
  }

  public void setMetadata(V4MatchMetadata metadata) {
    this.metadata = metadata;
  }

  public V4Match players(List<@Valid V4MatchPlayersInner> players) {
    this.players = players;
    return this;
  }

  public V4Match addPlayersItem(V4MatchPlayersInner playersItem) {
    if (this.players == null) {
      this.players = new ArrayList<>();
    }
    this.players.add(playersItem);
    return this;
  }

  /**
   * Get players
   * @return players
   */
  @Valid 
  @Schema(name = "players", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("players")
  public List<@Valid V4MatchPlayersInner> getPlayers() {
    return players;
  }

  public void setPlayers(List<@Valid V4MatchPlayersInner> players) {
    this.players = players;
  }

  public V4Match observers(List<@Valid V4MatchObserversInner> observers) {
    this.observers = observers;
    return this;
  }

  public V4Match addObserversItem(V4MatchObserversInner observersItem) {
    if (this.observers == null) {
      this.observers = new ArrayList<>();
    }
    this.observers.add(observersItem);
    return this;
  }

  /**
   * Get observers
   * @return observers
   */
  @Valid 
  @Schema(name = "observers", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("observers")
  public List<@Valid V4MatchObserversInner> getObservers() {
    return observers;
  }

  public void setObservers(List<@Valid V4MatchObserversInner> observers) {
    this.observers = observers;
  }

  public V4Match coaches(List<@Valid V4MatchCoachesInner> coaches) {
    this.coaches = coaches;
    return this;
  }

  public V4Match addCoachesItem(V4MatchCoachesInner coachesItem) {
    if (this.coaches == null) {
      this.coaches = new ArrayList<>();
    }
    this.coaches.add(coachesItem);
    return this;
  }

  /**
   * Get coaches
   * @return coaches
   */
  @Valid 
  @Schema(name = "coaches", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("coaches")
  public List<@Valid V4MatchCoachesInner> getCoaches() {
    return coaches;
  }

  public void setCoaches(List<@Valid V4MatchCoachesInner> coaches) {
    this.coaches = coaches;
  }

  public V4Match teams(List<@Valid V4MatchTeamsInner> teams) {
    this.teams = teams;
    return this;
  }

  public V4Match addTeamsItem(V4MatchTeamsInner teamsItem) {
    if (this.teams == null) {
      this.teams = new ArrayList<>();
    }
    this.teams.add(teamsItem);
    return this;
  }

  /**
   * Get teams
   * @return teams
   */
  @Valid 
  @Schema(name = "teams", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("teams")
  public List<@Valid V4MatchTeamsInner> getTeams() {
    return teams;
  }

  public void setTeams(List<@Valid V4MatchTeamsInner> teams) {
    this.teams = teams;
  }

  public V4Match rounds(List<@Valid V4MatchRoundsInner> rounds) {
    this.rounds = rounds;
    return this;
  }

  public V4Match addRoundsItem(V4MatchRoundsInner roundsItem) {
    if (this.rounds == null) {
      this.rounds = new ArrayList<>();
    }
    this.rounds.add(roundsItem);
    return this;
  }

  /**
   * Get rounds
   * @return rounds
   */
  @Valid 
  @Schema(name = "rounds", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("rounds")
  public List<@Valid V4MatchRoundsInner> getRounds() {
    return rounds;
  }

  public void setRounds(List<@Valid V4MatchRoundsInner> rounds) {
    this.rounds = rounds;
  }

  public V4Match kills(List<@Valid V4MatchKillsInner> kills) {
    this.kills = kills;
    return this;
  }

  public V4Match addKillsItem(V4MatchKillsInner killsItem) {
    if (this.kills == null) {
      this.kills = new ArrayList<>();
    }
    this.kills.add(killsItem);
    return this;
  }

  /**
   * Get kills
   * @return kills
   */
  @Valid 
  @Schema(name = "kills", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("kills")
  public List<@Valid V4MatchKillsInner> getKills() {
    return kills;
  }

  public void setKills(List<@Valid V4MatchKillsInner> kills) {
    this.kills = kills;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V4Match v4Match = (V4Match) o;
    return Objects.equals(this.metadata, v4Match.metadata) &&
        Objects.equals(this.players, v4Match.players) &&
        Objects.equals(this.observers, v4Match.observers) &&
        Objects.equals(this.coaches, v4Match.coaches) &&
        Objects.equals(this.teams, v4Match.teams) &&
        Objects.equals(this.rounds, v4Match.rounds) &&
        Objects.equals(this.kills, v4Match.kills);
  }

  @Override
  public int hashCode() {
    return Objects.hash(metadata, players, observers, coaches, teams, rounds, kills);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V4Match {\n");
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
    sb.append("    players: ").append(toIndentedString(players)).append("\n");
    sb.append("    observers: ").append(toIndentedString(observers)).append("\n");
    sb.append("    coaches: ").append(toIndentedString(coaches)).append("\n");
    sb.append("    teams: ").append(toIndentedString(teams)).append("\n");
    sb.append("    rounds: ").append(toIndentedString(rounds)).append("\n");
    sb.append("    kills: ").append(toIndentedString(kills)).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