net.rrworld.henrikval.gen.model.ValorantV1StatusRegionGet200ResponseData 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.StatusInner;
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;
/**
* ValorantV1StatusRegionGet200ResponseData
*/
@JsonTypeName("_valorant_v1_status__region__get_200_response_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 ValorantV1StatusRegionGet200ResponseData {
@Valid
private List<@Valid StatusInner> maintenances = new ArrayList<>();
@Valid
private List<@Valid StatusInner> incidents = new ArrayList<>();
public ValorantV1StatusRegionGet200ResponseData maintenances(List<@Valid StatusInner> maintenances) {
this.maintenances = maintenances;
return this;
}
public ValorantV1StatusRegionGet200ResponseData addMaintenancesItem(StatusInner maintenancesItem) {
if (this.maintenances == null) {
this.maintenances = new ArrayList<>();
}
this.maintenances.add(maintenancesItem);
return this;
}
/**
* Get maintenances
* @return maintenances
*/
@Valid
@Schema(name = "maintenances", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("maintenances")
public List<@Valid StatusInner> getMaintenances() {
return maintenances;
}
public void setMaintenances(List<@Valid StatusInner> maintenances) {
this.maintenances = maintenances;
}
public ValorantV1StatusRegionGet200ResponseData incidents(List<@Valid StatusInner> incidents) {
this.incidents = incidents;
return this;
}
public ValorantV1StatusRegionGet200ResponseData addIncidentsItem(StatusInner incidentsItem) {
if (this.incidents == null) {
this.incidents = new ArrayList<>();
}
this.incidents.add(incidentsItem);
return this;
}
/**
* Get incidents
* @return incidents
*/
@Valid
@Schema(name = "incidents", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("incidents")
public List<@Valid StatusInner> getIncidents() {
return incidents;
}
public void setIncidents(List<@Valid StatusInner> incidents) {
this.incidents = incidents;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ValorantV1StatusRegionGet200ResponseData valorantV1StatusRegionGet200ResponseData = (ValorantV1StatusRegionGet200ResponseData) o;
return Objects.equals(this.maintenances, valorantV1StatusRegionGet200ResponseData.maintenances) &&
Objects.equals(this.incidents, valorantV1StatusRegionGet200ResponseData.incidents);
}
@Override
public int hashCode() {
return Objects.hash(maintenances, incidents);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ValorantV1StatusRegionGet200ResponseData {\n");
sb.append(" maintenances: ").append(toIndentedString(maintenances)).append("\n");
sb.append(" incidents: ").append(toIndentedString(incidents)).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 ");
}
}