com.ziqni.admin.sdk.model.ContestReducedAllOf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces.
*
* The version of the OpenAPI document: 3.0.11
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.ContestStatus;
import com.ziqni.admin.sdk.model.RewardReduced;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ContestReducedAllOf
*/
@JsonPropertyOrder({
ContestReducedAllOf.JSON_PROPERTY_COMPETITION_ID,
ContestReducedAllOf.JSON_PROPERTY_ROW,
ContestReducedAllOf.JSON_PROPERTY_NAME,
ContestReducedAllOf.JSON_PROPERTY_ROUND,
ContestReducedAllOf.JSON_PROPERTY_GROUP_STAGE,
ContestReducedAllOf.JSON_PROPERTY_ENTRANTS_FROM_CONTEST,
ContestReducedAllOf.JSON_PROPERTY_STATUS,
ContestReducedAllOf.JSON_PROPERTY_STATUS_CODE,
ContestReducedAllOf.JSON_PROPERTY_SCHEDULED_START_DATE,
ContestReducedAllOf.JSON_PROPERTY_SCHEDULED_END_DATE,
ContestReducedAllOf.JSON_PROPERTY_ACTUAL_START_DATE,
ContestReducedAllOf.JSON_PROPERTY_ACTUAL_END_DATE,
ContestReducedAllOf.JSON_PROPERTY_TAGS,
ContestReducedAllOf.JSON_PROPERTY_REWARDS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ContestReducedAllOf {
public static final String JSON_PROPERTY_COMPETITION_ID = "competitionId";
private String competitionId;
public static final String JSON_PROPERTY_ROW = "row";
private Integer row;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_ROUND = "round";
private Integer round;
public static final String JSON_PROPERTY_GROUP_STAGE = "groupStage";
private Integer groupStage;
public static final String JSON_PROPERTY_ENTRANTS_FROM_CONTEST = "entrantsFromContest";
private List entrantsFromContest = new ArrayList<>();
public static final String JSON_PROPERTY_STATUS = "status";
private ContestStatus status;
public static final String JSON_PROPERTY_STATUS_CODE = "statusCode";
private Integer statusCode;
public static final String JSON_PROPERTY_SCHEDULED_START_DATE = "scheduledStartDate";
private OffsetDateTime scheduledStartDate;
public static final String JSON_PROPERTY_SCHEDULED_END_DATE = "scheduledEndDate";
private OffsetDateTime scheduledEndDate;
public static final String JSON_PROPERTY_ACTUAL_START_DATE = "actualStartDate";
private OffsetDateTime actualStartDate;
public static final String JSON_PROPERTY_ACTUAL_END_DATE = "actualEndDate";
private OffsetDateTime actualEndDate;
public static final String JSON_PROPERTY_TAGS = "tags";
private List tags = null;
public static final String JSON_PROPERTY_REWARDS = "rewards";
private List rewards = null;
public ContestReducedAllOf competitionId(String competitionId) {
this.competitionId = competitionId;
return this;
}
/**
* A unique identifier of a Competition
* @return competitionId
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "Dc4swmQBVd51K6gPQqFx", required = true, value = "A unique identifier of a Competition")
@JsonProperty(JSON_PROPERTY_COMPETITION_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCompetitionId() {
return competitionId;
}
@JsonProperty(JSON_PROPERTY_COMPETITION_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCompetitionId(String competitionId) {
this.competitionId = competitionId;
}
public ContestReducedAllOf row(Integer row) {
this.row = row;
return this;
}
/**
* The row number for displaying the Contest in a table
* @return row
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "2", required = true, value = "The row number for displaying the Contest in a table")
@JsonProperty(JSON_PROPERTY_ROW)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getRow() {
return row;
}
@JsonProperty(JSON_PROPERTY_ROW)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRow(Integer row) {
this.row = row;
}
public ContestReducedAllOf name(String name) {
this.name = name;
return this;
}
/**
* A name for the Contest. Can be translated
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "Fish and Chips", required = true, value = "A name for the Contest. Can be translated")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public ContestReducedAllOf round(Integer round) {
this.round = round;
return this;
}
/**
* To what round does the contest belong
* @return round
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "2", required = true, value = "To what round does the contest belong")
@JsonProperty(JSON_PROPERTY_ROUND)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getRound() {
return round;
}
@JsonProperty(JSON_PROPERTY_ROUND)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRound(Integer round) {
this.round = round;
}
public ContestReducedAllOf groupStage(Integer groupStage) {
this.groupStage = groupStage;
return this;
}
/**
* Is used for more complex Competitions e.g. multi round competitions where round 1 group stage matched round 2
* @return groupStage
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "2", required = true, value = "Is used for more complex Competitions e.g. multi round competitions where round 1 group stage matched round 2")
@JsonProperty(JSON_PROPERTY_GROUP_STAGE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getGroupStage() {
return groupStage;
}
@JsonProperty(JSON_PROPERTY_GROUP_STAGE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setGroupStage(Integer groupStage) {
this.groupStage = groupStage;
}
public ContestReducedAllOf entrantsFromContest(List entrantsFromContest) {
this.entrantsFromContest = entrantsFromContest;
return this;
}
public ContestReducedAllOf addEntrantsFromContestItem(String entrantsFromContestItem) {
this.entrantsFromContest.add(entrantsFromContestItem);
return this;
}
/**
* A list of Ziqni contest identifiers to allow contests chaining. When a Progression competition is active and you have a 2 round competition the first round has to reference the second round then this parameter becomes mandatory instead of Optional.
* @return entrantsFromContest
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "- Dc4swmQBVd51K6gPQqFx - sc3jsrfLewVdt6KugPqFx", required = true, value = "A list of Ziqni contest identifiers to allow contests chaining. When a Progression competition is active and you have a 2 round competition the first round has to reference the second round then this parameter becomes mandatory instead of Optional.")
@JsonProperty(JSON_PROPERTY_ENTRANTS_FROM_CONTEST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getEntrantsFromContest() {
return entrantsFromContest;
}
@JsonProperty(JSON_PROPERTY_ENTRANTS_FROM_CONTEST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEntrantsFromContest(List entrantsFromContest) {
this.entrantsFromContest = entrantsFromContest;
}
public ContestReducedAllOf status(ContestStatus status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public ContestStatus getStatus() {
return status;
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStatus(ContestStatus status) {
this.status = status;
}
/**
* The code of the contest
* @return statusCode
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "3", required = true, value = "The code of the contest")
@JsonProperty(JSON_PROPERTY_STATUS_CODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getStatusCode() {
return statusCode;
}
public ContestReducedAllOf scheduledStartDate(OffsetDateTime scheduledStartDate) {
this.scheduledStartDate = scheduledStartDate;
return this;
}
/**
* ISO8601 timestamp for when a Contest should start. All records are stored in UTC time zone
* @return scheduledStartDate
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "ISO8601 timestamp for when a Contest should start. All records are stored in UTC time zone")
@JsonProperty(JSON_PROPERTY_SCHEDULED_START_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getScheduledStartDate() {
return scheduledStartDate;
}
@JsonProperty(JSON_PROPERTY_SCHEDULED_START_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setScheduledStartDate(OffsetDateTime scheduledStartDate) {
this.scheduledStartDate = scheduledStartDate;
}
public ContestReducedAllOf scheduledEndDate(OffsetDateTime scheduledEndDate) {
this.scheduledEndDate = scheduledEndDate;
return this;
}
/**
* ISO8601 timestamp for when a Contest should end. All records are stored in UTC time zone
* @return scheduledEndDate
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "ISO8601 timestamp for when a Contest should end. All records are stored in UTC time zone")
@JsonProperty(JSON_PROPERTY_SCHEDULED_END_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getScheduledEndDate() {
return scheduledEndDate;
}
@JsonProperty(JSON_PROPERTY_SCHEDULED_END_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setScheduledEndDate(OffsetDateTime scheduledEndDate) {
this.scheduledEndDate = scheduledEndDate;
}
/**
* ISO8601 timestamp for when a Contest started. All records are stored in UTC time zone
* @return actualStartDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "ISO8601 timestamp for when a Contest started. All records are stored in UTC time zone")
@JsonProperty(JSON_PROPERTY_ACTUAL_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getActualStartDate() {
return actualStartDate;
}
/**
* ISO8601 timestamp for when a Contest ended. All records are stored in UTC time zone
* @return actualEndDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "ISO8601 timestamp for when a Contest ended. All records are stored in UTC time zone")
@JsonProperty(JSON_PROPERTY_ACTUAL_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getActualEndDate() {
return actualEndDate;
}
public ContestReducedAllOf tags(List tags) {
this.tags = tags;
return this;
}
public ContestReducedAllOf addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
/**
* A list of id's used to tag
* @return tags
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "- Dc4swmQBVd51K6gPQqFx - Dc4swmQBVd51K6gPQqF2", value = "A list of id's used to tag")
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getTags() {
return tags;
}
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List tags) {
this.tags = tags;
}
public ContestReducedAllOf rewards(List rewards) {
this.rewards = rewards;
return this;
}
public ContestReducedAllOf addRewardsItem(RewardReduced rewardsItem) {
if (this.rewards == null) {
this.rewards = new ArrayList<>();
}
this.rewards.add(rewardsItem);
return this;
}
/**
* Get rewards
* @return rewards
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_REWARDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRewards() {
return rewards;
}
@JsonProperty(JSON_PROPERTY_REWARDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRewards(List rewards) {
this.rewards = rewards;
}
/**
* Return true if this ContestReduced_allOf object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ContestReducedAllOf contestReducedAllOf = (ContestReducedAllOf) o;
return Objects.equals(this.competitionId, contestReducedAllOf.competitionId) &&
Objects.equals(this.row, contestReducedAllOf.row) &&
Objects.equals(this.name, contestReducedAllOf.name) &&
Objects.equals(this.round, contestReducedAllOf.round) &&
Objects.equals(this.groupStage, contestReducedAllOf.groupStage) &&
Objects.equals(this.entrantsFromContest, contestReducedAllOf.entrantsFromContest) &&
Objects.equals(this.status, contestReducedAllOf.status) &&
Objects.equals(this.statusCode, contestReducedAllOf.statusCode) &&
Objects.equals(this.scheduledStartDate, contestReducedAllOf.scheduledStartDate) &&
Objects.equals(this.scheduledEndDate, contestReducedAllOf.scheduledEndDate) &&
Objects.equals(this.actualStartDate, contestReducedAllOf.actualStartDate) &&
Objects.equals(this.actualEndDate, contestReducedAllOf.actualEndDate) &&
Objects.equals(this.tags, contestReducedAllOf.tags) &&
Objects.equals(this.rewards, contestReducedAllOf.rewards);
}
@Override
public int hashCode() {
return Objects.hash(competitionId, row, name, round, groupStage, entrantsFromContest, status, statusCode, scheduledStartDate, scheduledEndDate, actualStartDate, actualEndDate, tags, rewards);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ContestReducedAllOf {\n");
sb.append(" competitionId: ").append(toIndentedString(competitionId)).append("\n");
sb.append(" row: ").append(toIndentedString(row)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" round: ").append(toIndentedString(round)).append("\n");
sb.append(" groupStage: ").append(toIndentedString(groupStage)).append("\n");
sb.append(" entrantsFromContest: ").append(toIndentedString(entrantsFromContest)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n");
sb.append(" scheduledStartDate: ").append(toIndentedString(scheduledStartDate)).append("\n");
sb.append(" scheduledEndDate: ").append(toIndentedString(scheduledEndDate)).append("\n");
sb.append(" actualStartDate: ").append(toIndentedString(actualStartDate)).append("\n");
sb.append(" actualEndDate: ").append(toIndentedString(actualEndDate)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" rewards: ").append(toIndentedString(rewards)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy