net.rrworld.henrikval.gen.model.V1mmrh 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.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.rrworld.henrikval.gen.model.V1mmrhDataInner;
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;
/**
* V1mmrh
*/
@JsonTypeName("v1mmrh")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class V1mmrh {
private Integer status;
private String name;
private String tag;
@Valid
private List<@Valid V1mmrhDataInner> data = new ArrayList<>();
public V1mmrh status(Integer status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
*/
@Schema(name = "status", example = "200", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("status")
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public V1mmrh name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
*/
@Schema(name = "name", example = "Henrik3", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V1mmrh tag(String tag) {
this.tag = tag;
return this;
}
/**
* Get tag
* @return tag
*/
@Schema(name = "tag", example = "EUW3", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("tag")
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public V1mmrh data(List<@Valid V1mmrhDataInner> data) {
this.data = data;
return this;
}
public V1mmrh addDataItem(V1mmrhDataInner dataItem) {
if (this.data == null) {
this.data = new ArrayList<>();
}
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
*/
@Valid
@Schema(name = "data", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("data")
public List<@Valid V1mmrhDataInner> getData() {
return data;
}
public void setData(List<@Valid V1mmrhDataInner> data) {
this.data = data;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1mmrh v1mmrh = (V1mmrh) o;
return Objects.equals(this.status, v1mmrh.status) &&
Objects.equals(this.name, v1mmrh.name) &&
Objects.equals(this.tag, v1mmrh.tag) &&
Objects.equals(this.data, v1mmrh.data);
}
@Override
public int hashCode() {
return Objects.hash(status, name, tag, data);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1mmrh {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" tag: ").append(toIndentedString(tag)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).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 ");
}
}