net.rrworld.henrikval.gen.model.V2AccountData 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 java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
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;
/**
* V2AccountData
*/
@JsonTypeName("v2_account_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 V2AccountData {
private String puuid;
private String region;
private Integer accountLevel;
private String name = null;
private String tag = null;
private String card;
private String title;
@Valid
private List platforms = new ArrayList<>();
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private OffsetDateTime updatedAt;
public V2AccountData puuid(String puuid) {
this.puuid = puuid;
return this;
}
/**
* Get puuid
* @return puuid
*/
@Schema(name = "puuid", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("puuid")
public String getPuuid() {
return puuid;
}
public void setPuuid(String puuid) {
this.puuid = puuid;
}
public V2AccountData 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 V2AccountData accountLevel(Integer accountLevel) {
this.accountLevel = accountLevel;
return this;
}
/**
* Get accountLevel
* @return accountLevel
*/
@Schema(name = "account_level", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("account_level")
public Integer getAccountLevel() {
return accountLevel;
}
public void setAccountLevel(Integer accountLevel) {
this.accountLevel = accountLevel;
}
public V2AccountData name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
*/
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V2AccountData tag(String tag) {
this.tag = tag;
return this;
}
/**
* Get tag
* @return tag
*/
@Schema(name = "tag", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("tag")
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public V2AccountData card(String card) {
this.card = card;
return this;
}
/**
* Get card
* @return card
*/
@Schema(name = "card", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("card")
public String getCard() {
return card;
}
public void setCard(String card) {
this.card = card;
}
public V2AccountData title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
*/
@Schema(name = "title", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public V2AccountData platforms(List platforms) {
this.platforms = platforms;
return this;
}
public V2AccountData addPlatformsItem(String platformsItem) {
if (this.platforms == null) {
this.platforms = new ArrayList<>();
}
this.platforms.add(platformsItem);
return this;
}
/**
* Get platforms
* @return platforms
*/
@Schema(name = "platforms", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("platforms")
public List getPlatforms() {
return platforms;
}
public void setPlatforms(List platforms) {
this.platforms = platforms;
}
public V2AccountData updatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
* @return updatedAt
*/
@Valid
@Schema(name = "updated_at", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("updated_at")
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V2AccountData v2AccountData = (V2AccountData) o;
return Objects.equals(this.puuid, v2AccountData.puuid) &&
Objects.equals(this.region, v2AccountData.region) &&
Objects.equals(this.accountLevel, v2AccountData.accountLevel) &&
Objects.equals(this.name, v2AccountData.name) &&
Objects.equals(this.tag, v2AccountData.tag) &&
Objects.equals(this.card, v2AccountData.card) &&
Objects.equals(this.title, v2AccountData.title) &&
Objects.equals(this.platforms, v2AccountData.platforms) &&
Objects.equals(this.updatedAt, v2AccountData.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(puuid, region, accountLevel, name, tag, card, title, platforms, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V2AccountData {\n");
sb.append(" puuid: ").append(toIndentedString(puuid)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" accountLevel: ").append(toIndentedString(accountLevel)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" tag: ").append(toIndentedString(tag)).append("\n");
sb.append(" card: ").append(toIndentedString(card)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" platforms: ").append(toIndentedString(platforms)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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 ");
}
}