net.rrworld.henrikval.gen.model.V1LifetimeMatchesItemMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of henrikapi-val-client Show documentation
Show all versions of henrikapi-val-client Show documentation
Valorant Java client based on HenrikDev-API
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 net.rrworld.henrikval.gen.model.V1LifetimeMatchesItemMetaMap;
import net.rrworld.henrikval.gen.model.V1LifetimeMatchesItemMetaSeason;
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;
/**
* V1LifetimeMatchesItemMeta
*/
@JsonTypeName("v1_lifetime_matches_item_meta")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class V1LifetimeMatchesItemMeta {
private String id;
private V1LifetimeMatchesItemMetaMap map;
private String version;
private String mode;
private String startedAt;
private V1LifetimeMatchesItemMetaSeason season;
private String region = null;
private String cluster = null;
public V1LifetimeMatchesItemMeta id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
*/
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V1LifetimeMatchesItemMeta map(V1LifetimeMatchesItemMetaMap map) {
this.map = map;
return this;
}
/**
* Get map
* @return map
*/
@Valid
@Schema(name = "map", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("map")
public V1LifetimeMatchesItemMetaMap getMap() {
return map;
}
public void setMap(V1LifetimeMatchesItemMetaMap map) {
this.map = map;
}
public V1LifetimeMatchesItemMeta version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
*/
@Schema(name = "version", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("version")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public V1LifetimeMatchesItemMeta mode(String mode) {
this.mode = mode;
return this;
}
/**
* Get mode
* @return mode
*/
@Schema(name = "mode", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("mode")
public String getMode() {
return mode;
}
public void setMode(String mode) {
this.mode = mode;
}
public V1LifetimeMatchesItemMeta startedAt(String startedAt) {
this.startedAt = startedAt;
return this;
}
/**
* Get startedAt
* @return startedAt
*/
@Schema(name = "started_at", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("started_at")
public String getStartedAt() {
return startedAt;
}
public void setStartedAt(String startedAt) {
this.startedAt = startedAt;
}
public V1LifetimeMatchesItemMeta season(V1LifetimeMatchesItemMetaSeason season) {
this.season = season;
return this;
}
/**
* Get season
* @return season
*/
@Valid
@Schema(name = "season", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("season")
public V1LifetimeMatchesItemMetaSeason getSeason() {
return season;
}
public void setSeason(V1LifetimeMatchesItemMetaSeason season) {
this.season = season;
}
public V1LifetimeMatchesItemMeta region(String region) {
this.region = region;
return this;
}
/**
* Get region
* @return region
*/
@Schema(name = "region", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("region")
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public V1LifetimeMatchesItemMeta cluster(String cluster) {
this.cluster = cluster;
return this;
}
/**
* Get cluster
* @return cluster
*/
@Schema(name = "cluster", 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;
}
V1LifetimeMatchesItemMeta v1LifetimeMatchesItemMeta = (V1LifetimeMatchesItemMeta) o;
return Objects.equals(this.id, v1LifetimeMatchesItemMeta.id) &&
Objects.equals(this.map, v1LifetimeMatchesItemMeta.map) &&
Objects.equals(this.version, v1LifetimeMatchesItemMeta.version) &&
Objects.equals(this.mode, v1LifetimeMatchesItemMeta.mode) &&
Objects.equals(this.startedAt, v1LifetimeMatchesItemMeta.startedAt) &&
Objects.equals(this.season, v1LifetimeMatchesItemMeta.season) &&
Objects.equals(this.region, v1LifetimeMatchesItemMeta.region) &&
Objects.equals(this.cluster, v1LifetimeMatchesItemMeta.cluster);
}
@Override
public int hashCode() {
return Objects.hash(id, map, version, mode, startedAt, season, region, cluster);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1LifetimeMatchesItemMeta {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" map: ").append(toIndentedString(map)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" mode: ").append(toIndentedString(mode)).append("\n");
sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n");
sb.append(" season: ").append(toIndentedString(season)).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 ");
}
}