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

net.rrworld.henrikval.gen.model.V1PremierTeamHistoryData 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.V1PremierTeamHistoryDataLeagueMatchesInner;
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;

/**
 * V1PremierTeamHistoryData
 */

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

  @Valid
  private List<@Valid V1PremierTeamHistoryDataLeagueMatchesInner> leagueMatches = new ArrayList<>();

  public V1PremierTeamHistoryData leagueMatches(List<@Valid V1PremierTeamHistoryDataLeagueMatchesInner> leagueMatches) {
    this.leagueMatches = leagueMatches;
    return this;
  }

  public V1PremierTeamHistoryData addLeagueMatchesItem(V1PremierTeamHistoryDataLeagueMatchesInner leagueMatchesItem) {
    if (this.leagueMatches == null) {
      this.leagueMatches = new ArrayList<>();
    }
    this.leagueMatches.add(leagueMatchesItem);
    return this;
  }

  /**
   * Get leagueMatches
   * @return leagueMatches
   */
  @Valid 
  @Schema(name = "league_matches", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("league_matches")
  public List<@Valid V1PremierTeamHistoryDataLeagueMatchesInner> getLeagueMatches() {
    return leagueMatches;
  }

  public void setLeagueMatches(List<@Valid V1PremierTeamHistoryDataLeagueMatchesInner> leagueMatches) {
    this.leagueMatches = leagueMatches;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1PremierTeamHistoryData v1PremierTeamHistoryData = (V1PremierTeamHistoryData) o;
    return Objects.equals(this.leagueMatches, v1PremierTeamHistoryData.leagueMatches);
  }

  @Override
  public int hashCode() {
    return Objects.hash(leagueMatches);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1PremierTeamHistoryData {\n");
    sb.append("    leagueMatches: ").append(toIndentedString(leagueMatches)).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