net.rrworld.henrikval.gen.model.V1PremierSeasonDataInner 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.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import net.rrworld.henrikval.gen.model.V1PremierSeasonDataInnerEventsInner;
import net.rrworld.henrikval.gen.model.V1PremierSeasonDataInnerScheduledEventsInner;
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;
/**
* V1PremierSeasonDataInner
*/
@JsonTypeName("v1_premier_season_data_inner")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class V1PremierSeasonDataInner {
private UUID id;
private UUID championshipEventId;
private BigDecimal championshipPointsRequired;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private OffsetDateTime startsAt;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private OffsetDateTime endsAt;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private OffsetDateTime enrollmentStartsAt;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private OffsetDateTime enrollmentEndsAt;
@Valid
private List<@Valid V1PremierSeasonDataInnerEventsInner> events = new ArrayList<>();
@Valid
private List<@Valid V1PremierSeasonDataInnerScheduledEventsInner> scheduledEvents = new ArrayList<>();
public V1PremierSeasonDataInner id(UUID id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
*/
@Valid
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public V1PremierSeasonDataInner championshipEventId(UUID championshipEventId) {
this.championshipEventId = championshipEventId;
return this;
}
/**
* Get championshipEventId
* @return championshipEventId
*/
@Valid
@Schema(name = "championship_event_id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("championship_event_id")
public UUID getChampionshipEventId() {
return championshipEventId;
}
public void setChampionshipEventId(UUID championshipEventId) {
this.championshipEventId = championshipEventId;
}
public V1PremierSeasonDataInner championshipPointsRequired(BigDecimal championshipPointsRequired) {
this.championshipPointsRequired = championshipPointsRequired;
return this;
}
/**
* Get championshipPointsRequired
* @return championshipPointsRequired
*/
@Valid
@Schema(name = "championship_points_required", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("championship_points_required")
public BigDecimal getChampionshipPointsRequired() {
return championshipPointsRequired;
}
public void setChampionshipPointsRequired(BigDecimal championshipPointsRequired) {
this.championshipPointsRequired = championshipPointsRequired;
}
public V1PremierSeasonDataInner startsAt(OffsetDateTime startsAt) {
this.startsAt = startsAt;
return this;
}
/**
* Get startsAt
* @return startsAt
*/
@Valid
@Schema(name = "starts_at", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("starts_at")
public OffsetDateTime getStartsAt() {
return startsAt;
}
public void setStartsAt(OffsetDateTime startsAt) {
this.startsAt = startsAt;
}
public V1PremierSeasonDataInner endsAt(OffsetDateTime endsAt) {
this.endsAt = endsAt;
return this;
}
/**
* Get endsAt
* @return endsAt
*/
@Valid
@Schema(name = "ends_at", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("ends_at")
public OffsetDateTime getEndsAt() {
return endsAt;
}
public void setEndsAt(OffsetDateTime endsAt) {
this.endsAt = endsAt;
}
public V1PremierSeasonDataInner enrollmentStartsAt(OffsetDateTime enrollmentStartsAt) {
this.enrollmentStartsAt = enrollmentStartsAt;
return this;
}
/**
* Get enrollmentStartsAt
* @return enrollmentStartsAt
*/
@Valid
@Schema(name = "enrollment_starts_at", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("enrollment_starts_at")
public OffsetDateTime getEnrollmentStartsAt() {
return enrollmentStartsAt;
}
public void setEnrollmentStartsAt(OffsetDateTime enrollmentStartsAt) {
this.enrollmentStartsAt = enrollmentStartsAt;
}
public V1PremierSeasonDataInner enrollmentEndsAt(OffsetDateTime enrollmentEndsAt) {
this.enrollmentEndsAt = enrollmentEndsAt;
return this;
}
/**
* Get enrollmentEndsAt
* @return enrollmentEndsAt
*/
@Valid
@Schema(name = "enrollment_ends_at", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("enrollment_ends_at")
public OffsetDateTime getEnrollmentEndsAt() {
return enrollmentEndsAt;
}
public void setEnrollmentEndsAt(OffsetDateTime enrollmentEndsAt) {
this.enrollmentEndsAt = enrollmentEndsAt;
}
public V1PremierSeasonDataInner events(List<@Valid V1PremierSeasonDataInnerEventsInner> events) {
this.events = events;
return this;
}
public V1PremierSeasonDataInner addEventsItem(V1PremierSeasonDataInnerEventsInner eventsItem) {
if (this.events == null) {
this.events = new ArrayList<>();
}
this.events.add(eventsItem);
return this;
}
/**
* Get events
* @return events
*/
@Valid
@Schema(name = "events", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("events")
public List<@Valid V1PremierSeasonDataInnerEventsInner> getEvents() {
return events;
}
public void setEvents(List<@Valid V1PremierSeasonDataInnerEventsInner> events) {
this.events = events;
}
public V1PremierSeasonDataInner scheduledEvents(List<@Valid V1PremierSeasonDataInnerScheduledEventsInner> scheduledEvents) {
this.scheduledEvents = scheduledEvents;
return this;
}
public V1PremierSeasonDataInner addScheduledEventsItem(V1PremierSeasonDataInnerScheduledEventsInner scheduledEventsItem) {
if (this.scheduledEvents == null) {
this.scheduledEvents = new ArrayList<>();
}
this.scheduledEvents.add(scheduledEventsItem);
return this;
}
/**
* Get scheduledEvents
* @return scheduledEvents
*/
@Valid
@Schema(name = "scheduled_events", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("scheduled_events")
public List<@Valid V1PremierSeasonDataInnerScheduledEventsInner> getScheduledEvents() {
return scheduledEvents;
}
public void setScheduledEvents(List<@Valid V1PremierSeasonDataInnerScheduledEventsInner> scheduledEvents) {
this.scheduledEvents = scheduledEvents;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1PremierSeasonDataInner v1PremierSeasonDataInner = (V1PremierSeasonDataInner) o;
return Objects.equals(this.id, v1PremierSeasonDataInner.id) &&
Objects.equals(this.championshipEventId, v1PremierSeasonDataInner.championshipEventId) &&
Objects.equals(this.championshipPointsRequired, v1PremierSeasonDataInner.championshipPointsRequired) &&
Objects.equals(this.startsAt, v1PremierSeasonDataInner.startsAt) &&
Objects.equals(this.endsAt, v1PremierSeasonDataInner.endsAt) &&
Objects.equals(this.enrollmentStartsAt, v1PremierSeasonDataInner.enrollmentStartsAt) &&
Objects.equals(this.enrollmentEndsAt, v1PremierSeasonDataInner.enrollmentEndsAt) &&
Objects.equals(this.events, v1PremierSeasonDataInner.events) &&
Objects.equals(this.scheduledEvents, v1PremierSeasonDataInner.scheduledEvents);
}
@Override
public int hashCode() {
return Objects.hash(id, championshipEventId, championshipPointsRequired, startsAt, endsAt, enrollmentStartsAt, enrollmentEndsAt, events, scheduledEvents);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1PremierSeasonDataInner {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" championshipEventId: ").append(toIndentedString(championshipEventId)).append("\n");
sb.append(" championshipPointsRequired: ").append(toIndentedString(championshipPointsRequired)).append("\n");
sb.append(" startsAt: ").append(toIndentedString(startsAt)).append("\n");
sb.append(" endsAt: ").append(toIndentedString(endsAt)).append("\n");
sb.append(" enrollmentStartsAt: ").append(toIndentedString(enrollmentStartsAt)).append("\n");
sb.append(" enrollmentEndsAt: ").append(toIndentedString(enrollmentEndsAt)).append("\n");
sb.append(" events: ").append(toIndentedString(events)).append("\n");
sb.append(" scheduledEvents: ").append(toIndentedString(scheduledEvents)).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 ");
}
}