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

net.rrworld.henrikval.gen.model.MatchMetadata 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 com.fasterxml.jackson.annotation.JsonValue;
import java.util.UUID;
import net.rrworld.henrikval.gen.model.Maps;
import net.rrworld.henrikval.gen.model.MatchMetadataPremierInfo;
import net.rrworld.henrikval.gen.model.ModeIds;
import net.rrworld.henrikval.gen.model.Modes;
import net.rrworld.henrikval.gen.model.Regions;
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;

/**
 * MatchMetadata
 */

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

  private Maps map;

  private String gameVersion;

  private Integer gameLength;

  private Integer gameStart;

  private String gameStartPatched;

  private Integer roundsPlayed;

  private Modes mode;

  private ModeIds modeId;

  private String queue;

  private UUID seasonId;

  private String platform;

  private UUID matchid;

  private MatchMetadataPremierInfo premierInfo;

  private Regions region;

  private String cluster;

  public MatchMetadata map(Maps map) {
    this.map = map;
    return this;
  }

  /**
   * Get map
   * @return map
   */
  @Valid 
  @Schema(name = "map", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("map")
  public Maps getMap() {
    return map;
  }

  public void setMap(Maps map) {
    this.map = map;
  }

  public MatchMetadata gameVersion(String gameVersion) {
    this.gameVersion = gameVersion;
    return this;
  }

  /**
   * Get gameVersion
   * @return gameVersion
   */
  
  @Schema(name = "game_version", example = "release-03.12-shipping-16-649370", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("game_version")
  public String getGameVersion() {
    return gameVersion;
  }

  public void setGameVersion(String gameVersion) {
    this.gameVersion = gameVersion;
  }

  public MatchMetadata gameLength(Integer gameLength) {
    this.gameLength = gameLength;
    return this;
  }

  /**
   * Get gameLength
   * @return gameLength
   */
  
  @Schema(name = "game_length", example = "2356581", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("game_length")
  public Integer getGameLength() {
    return gameLength;
  }

  public void setGameLength(Integer gameLength) {
    this.gameLength = gameLength;
  }

  public MatchMetadata gameStart(Integer gameStart) {
    this.gameStart = gameStart;
    return this;
  }

  /**
   * Get gameStart
   * @return gameStart
   */
  
  @Schema(name = "game_start", example = "1641934366", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("game_start")
  public Integer getGameStart() {
    return gameStart;
  }

  public void setGameStart(Integer gameStart) {
    this.gameStart = gameStart;
  }

  public MatchMetadata gameStartPatched(String gameStartPatched) {
    this.gameStartPatched = gameStartPatched;
    return this;
  }

  /**
   * Get gameStartPatched
   * @return gameStartPatched
   */
  
  @Schema(name = "game_start_patched", example = "Tuesday, January 11, 2022 9:52 PM", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("game_start_patched")
  public String getGameStartPatched() {
    return gameStartPatched;
  }

  public void setGameStartPatched(String gameStartPatched) {
    this.gameStartPatched = gameStartPatched;
  }

  public MatchMetadata roundsPlayed(Integer roundsPlayed) {
    this.roundsPlayed = roundsPlayed;
    return this;
  }

  /**
   * Get roundsPlayed
   * @return roundsPlayed
   */
  
  @Schema(name = "rounds_played", example = "23", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("rounds_played")
  public Integer getRoundsPlayed() {
    return roundsPlayed;
  }

  public void setRoundsPlayed(Integer roundsPlayed) {
    this.roundsPlayed = roundsPlayed;
  }

  public MatchMetadata mode(Modes mode) {
    this.mode = mode;
    return this;
  }

  /**
   * Get mode
   * @return mode
   */
  @Valid 
  @Schema(name = "mode", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("mode")
  public Modes getMode() {
    return mode;
  }

  public void setMode(Modes mode) {
    this.mode = mode;
  }

  public MatchMetadata modeId(ModeIds modeId) {
    this.modeId = modeId;
    return this;
  }

  /**
   * Get modeId
   * @return modeId
   */
  @Valid 
  @Schema(name = "mode_id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("mode_id")
  public ModeIds getModeId() {
    return modeId;
  }

  public void setModeId(ModeIds modeId) {
    this.modeId = modeId;
  }

  public MatchMetadata queue(String queue) {
    this.queue = queue;
    return this;
  }

  /**
   * Get queue
   * @return queue
   */
  
  @Schema(name = "queue", example = "Standard", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("queue")
  public String getQueue() {
    return queue;
  }

  public void setQueue(String queue) {
    this.queue = queue;
  }

  public MatchMetadata seasonId(UUID seasonId) {
    this.seasonId = seasonId;
    return this;
  }

  /**
   * Get seasonId
   * @return seasonId
   */
  @Valid 
  @Schema(name = "season_id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("season_id")
  public UUID getSeasonId() {
    return seasonId;
  }

  public void setSeasonId(UUID seasonId) {
    this.seasonId = seasonId;
  }

  public MatchMetadata platform(String platform) {
    this.platform = platform;
    return this;
  }

  /**
   * Get platform
   * @return platform
   */
  
  @Schema(name = "platform", example = "PC", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("platform")
  public String getPlatform() {
    return platform;
  }

  public void setPlatform(String platform) {
    this.platform = platform;
  }

  public MatchMetadata matchid(UUID matchid) {
    this.matchid = matchid;
    return this;
  }

  /**
   * Get matchid
   * @return matchid
   */
  @Valid 
  @Schema(name = "matchid", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("matchid")
  public UUID getMatchid() {
    return matchid;
  }

  public void setMatchid(UUID matchid) {
    this.matchid = matchid;
  }

  public MatchMetadata premierInfo(MatchMetadataPremierInfo premierInfo) {
    this.premierInfo = premierInfo;
    return this;
  }

  /**
   * Get premierInfo
   * @return premierInfo
   */
  @Valid 
  @Schema(name = "premier_info", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("premier_info")
  public MatchMetadataPremierInfo getPremierInfo() {
    return premierInfo;
  }

  public void setPremierInfo(MatchMetadataPremierInfo premierInfo) {
    this.premierInfo = premierInfo;
  }

  public MatchMetadata region(Regions region) {
    this.region = region;
    return this;
  }

  /**
   * Get region
   * @return region
   */
  @Valid 
  @Schema(name = "region", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("region")
  public Regions getRegion() {
    return region;
  }

  public void setRegion(Regions region) {
    this.region = region;
  }

  public MatchMetadata cluster(String cluster) {
    this.cluster = cluster;
    return this;
  }

  /**
   * Get cluster
   * @return cluster
   */
  
  @Schema(name = "cluster", example = "London", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("cluster")
  public String getCluster() {
    return cluster;
  }

  public void setCluster(String cluster) {
    this.cluster = cluster;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    MatchMetadata matchMetadata = (MatchMetadata) o;
    return Objects.equals(this.map, matchMetadata.map) &&
        Objects.equals(this.gameVersion, matchMetadata.gameVersion) &&
        Objects.equals(this.gameLength, matchMetadata.gameLength) &&
        Objects.equals(this.gameStart, matchMetadata.gameStart) &&
        Objects.equals(this.gameStartPatched, matchMetadata.gameStartPatched) &&
        Objects.equals(this.roundsPlayed, matchMetadata.roundsPlayed) &&
        Objects.equals(this.mode, matchMetadata.mode) &&
        Objects.equals(this.modeId, matchMetadata.modeId) &&
        Objects.equals(this.queue, matchMetadata.queue) &&
        Objects.equals(this.seasonId, matchMetadata.seasonId) &&
        Objects.equals(this.platform, matchMetadata.platform) &&
        Objects.equals(this.matchid, matchMetadata.matchid) &&
        Objects.equals(this.premierInfo, matchMetadata.premierInfo) &&
        Objects.equals(this.region, matchMetadata.region) &&
        Objects.equals(this.cluster, matchMetadata.cluster);
  }

  @Override
  public int hashCode() {
    return Objects.hash(map, gameVersion, gameLength, gameStart, gameStartPatched, roundsPlayed, mode, modeId, queue, seasonId, platform, matchid, premierInfo, region, cluster);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class MatchMetadata {\n");
    sb.append("    map: ").append(toIndentedString(map)).append("\n");
    sb.append("    gameVersion: ").append(toIndentedString(gameVersion)).append("\n");
    sb.append("    gameLength: ").append(toIndentedString(gameLength)).append("\n");
    sb.append("    gameStart: ").append(toIndentedString(gameStart)).append("\n");
    sb.append("    gameStartPatched: ").append(toIndentedString(gameStartPatched)).append("\n");
    sb.append("    roundsPlayed: ").append(toIndentedString(roundsPlayed)).append("\n");
    sb.append("    mode: ").append(toIndentedString(mode)).append("\n");
    sb.append("    modeId: ").append(toIndentedString(modeId)).append("\n");
    sb.append("    queue: ").append(toIndentedString(queue)).append("\n");
    sb.append("    seasonId: ").append(toIndentedString(seasonId)).append("\n");
    sb.append("    platform: ").append(toIndentedString(platform)).append("\n");
    sb.append("    matchid: ").append(toIndentedString(matchid)).append("\n");
    sb.append("    premierInfo: ").append(toIndentedString(premierInfo)).append("\n");
    sb.append("    region: ").append(toIndentedString(region)).append("\n");
    sb.append("    cluster: ").append(toIndentedString(cluster)).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