All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ziqni.admin.sdk.model.CreateContestRequestAllOf Maven / Gradle / Ivy

There is a newer version: 1.0.21
Show newest version
/*
 * ZIQNI Admin API
 * Ziqni Application Services are used to manage and configure spaces.
 *
 * The version of the OpenAPI document: 3.0.1
 * 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.CreateRewardRequest;
import com.ziqni.admin.sdk.model.RoundType;
import com.ziqni.admin.sdk.model.Rule;
import com.ziqni.admin.sdk.model.Strategy;
import com.ziqni.admin.sdk.model.Translation;
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;


/**
 * CreateContestRequestAllOf
 */
@JsonPropertyOrder({
  CreateContestRequestAllOf.JSON_PROPERTY_ROW,
  CreateContestRequestAllOf.JSON_PROPERTY_ROUND,
  CreateContestRequestAllOf.JSON_PROPERTY_GROUP_STAGE,
  CreateContestRequestAllOf.JSON_PROPERTY_GROUP_STAGE_LABEL,
  CreateContestRequestAllOf.JSON_PROPERTY_ENTRANTS_FROM_CONTEST,
  CreateContestRequestAllOf.JSON_PROPERTY_NAME,
  CreateContestRequestAllOf.JSON_PROPERTY_DESCRIPTION,
  CreateContestRequestAllOf.JSON_PROPERTY_TERMS_AND_CONDITIONS,
  CreateContestRequestAllOf.JSON_PROPERTY_ROUND_TYPE,
  CreateContestRequestAllOf.JSON_PROPERTY_MAX_NUMBER_OF_ENTRANTS,
  CreateContestRequestAllOf.JSON_PROPERTY_MIN_NUMBER_OF_ENTRANTS,
  CreateContestRequestAllOf.JSON_PROPERTY_RULES,
  CreateContestRequestAllOf.JSON_PROPERTY_SCHEDULED_START_DATE,
  CreateContestRequestAllOf.JSON_PROPERTY_SCHEDULED_END_DATE,
  CreateContestRequestAllOf.JSON_PROPERTY_STRATEGIES,
  CreateContestRequestAllOf.JSON_PROPERTY_CONSTRAINTS,
  CreateContestRequestAllOf.JSON_PROPERTY_ADD_CONSTRAINTS,
  CreateContestRequestAllOf.JSON_PROPERTY_TRANSLATIONS,
  CreateContestRequestAllOf.JSON_PROPERTY_REWARDS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CreateContestRequestAllOf {
  public static final String JSON_PROPERTY_ROW = "row";
  private Integer row;

  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_GROUP_STAGE_LABEL = "groupStageLabel";
  private String groupStageLabel;

  public static final String JSON_PROPERTY_ENTRANTS_FROM_CONTEST = "entrantsFromContest";
  private List entrantsFromContest = null;

  public static final String JSON_PROPERTY_NAME = "name";
  private String name;

  public static final String JSON_PROPERTY_DESCRIPTION = "description";
  private String description;

  public static final String JSON_PROPERTY_TERMS_AND_CONDITIONS = "termsAndConditions";
  private String termsAndConditions;

  public static final String JSON_PROPERTY_ROUND_TYPE = "roundType";
  private RoundType roundType;

  public static final String JSON_PROPERTY_MAX_NUMBER_OF_ENTRANTS = "maxNumberOfEntrants";
  private Integer maxNumberOfEntrants;

  public static final String JSON_PROPERTY_MIN_NUMBER_OF_ENTRANTS = "minNumberOfEntrants";
  private Integer minNumberOfEntrants;

  public static final String JSON_PROPERTY_RULES = "rules";
  private List rules = null;

  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_STRATEGIES = "strategies";
  private Strategy strategies;

  public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
  private List constraints = new ArrayList<>();

  public static final String JSON_PROPERTY_ADD_CONSTRAINTS = "addConstraints";
  private List addConstraints = null;

  public static final String JSON_PROPERTY_TRANSLATIONS = "translations";
  private List translations = null;

  public static final String JSON_PROPERTY_REWARDS = "rewards";
  private List rewards = null;


  public CreateContestRequestAllOf row(Integer row) {
    this.row = row;
    return this;
  }

   /**
   * The row number for displaying the Contest in a table
   * @return row
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2", value = "The row number for displaying the Contest in a table")
  @JsonProperty(JSON_PROPERTY_ROW)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getRow() {
    return row;
  }


  @JsonProperty(JSON_PROPERTY_ROW)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRow(Integer row) {
    this.row = row;
  }


  public CreateContestRequestAllOf round(Integer round) {
    this.round = round;
    return this;
  }

   /**
   * To what round does the contest belong
   * @return round
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2", value = "To what round does the contest belong")
  @JsonProperty(JSON_PROPERTY_ROUND)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getRound() {
    return round;
  }


  @JsonProperty(JSON_PROPERTY_ROUND)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRound(Integer round) {
    this.round = round;
  }


  public CreateContestRequestAllOf 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.Nullable
  @ApiModelProperty(example = "2", 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.USE_DEFAULTS)

  public Integer getGroupStage() {
    return groupStage;
  }


  @JsonProperty(JSON_PROPERTY_GROUP_STAGE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setGroupStage(Integer groupStage) {
    this.groupStage = groupStage;
  }


  public CreateContestRequestAllOf groupStageLabel(String groupStageLabel) {
    this.groupStageLabel = groupStageLabel;
    return this;
  }

   /**
   * The name of the group stages
   * @return groupStageLabel
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Semi-finals", value = "The name of the group stages")
  @JsonProperty(JSON_PROPERTY_GROUP_STAGE_LABEL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getGroupStageLabel() {
    return groupStageLabel;
  }


  @JsonProperty(JSON_PROPERTY_GROUP_STAGE_LABEL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setGroupStageLabel(String groupStageLabel) {
    this.groupStageLabel = groupStageLabel;
  }


  public CreateContestRequestAllOf entrantsFromContest(List entrantsFromContest) {
    this.entrantsFromContest = entrantsFromContest;
    return this;
  }

  public CreateContestRequestAllOf addEntrantsFromContestItem(String entrantsFromContestItem) {
    if (this.entrantsFromContest == null) {
      this.entrantsFromContest = new ArrayList<>();
    }
    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.Nullable
  @ApiModelProperty(example = "- Dc4swmQBVd51K6gPQqFx - sc3jsrfLewVdt6KugPqFx", 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.USE_DEFAULTS)

  public List getEntrantsFromContest() {
    return entrantsFromContest;
  }


  @JsonProperty(JSON_PROPERTY_ENTRANTS_FROM_CONTEST)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEntrantsFromContest(List entrantsFromContest) {
    this.entrantsFromContest = entrantsFromContest;
  }


  public CreateContestRequestAllOf 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 CreateContestRequestAllOf description(String description) {
    this.description = description;
    return this;
  }

   /**
   * A name for the Contest. Can be translated
   * @return description
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Fish and Chips contest", value = "A name for the Contest. Can be translated")
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getDescription() {
    return description;
  }


  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDescription(String description) {
    this.description = description;
  }


  public CreateContestRequestAllOf termsAndConditions(String termsAndConditions) {
    this.termsAndConditions = termsAndConditions;
    return this;
  }

   /**
   * A name for the Contest. Can be translated
   * @return termsAndConditions
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Buy 1 get 1 free", value = "A name for the Contest. Can be translated")
  @JsonProperty(JSON_PROPERTY_TERMS_AND_CONDITIONS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getTermsAndConditions() {
    return termsAndConditions;
  }


  @JsonProperty(JSON_PROPERTY_TERMS_AND_CONDITIONS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTermsAndConditions(String termsAndConditions) {
    this.termsAndConditions = termsAndConditions;
  }


  public CreateContestRequestAllOf roundType(RoundType roundType) {
    this.roundType = roundType;
    return this;
  }

   /**
   * Get roundType
   * @return roundType
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_ROUND_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public RoundType getRoundType() {
    return roundType;
  }


  @JsonProperty(JSON_PROPERTY_ROUND_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRoundType(RoundType roundType) {
    this.roundType = roundType;
  }


  public CreateContestRequestAllOf maxNumberOfEntrants(Integer maxNumberOfEntrants) {
    this.maxNumberOfEntrants = maxNumberOfEntrants;
    return this;
  }

   /**
   * Maximum number of entrants for the contest
   * @return maxNumberOfEntrants
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "9999", value = "Maximum number of entrants for the contest")
  @JsonProperty(JSON_PROPERTY_MAX_NUMBER_OF_ENTRANTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getMaxNumberOfEntrants() {
    return maxNumberOfEntrants;
  }


  @JsonProperty(JSON_PROPERTY_MAX_NUMBER_OF_ENTRANTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMaxNumberOfEntrants(Integer maxNumberOfEntrants) {
    this.maxNumberOfEntrants = maxNumberOfEntrants;
  }


  public CreateContestRequestAllOf minNumberOfEntrants(Integer minNumberOfEntrants) {
    this.minNumberOfEntrants = minNumberOfEntrants;
    return this;
  }

   /**
   * Minimum number of entrants for the contest
   * @return minNumberOfEntrants
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "0", required = true, value = "Minimum number of entrants for the contest")
  @JsonProperty(JSON_PROPERTY_MIN_NUMBER_OF_ENTRANTS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Integer getMinNumberOfEntrants() {
    return minNumberOfEntrants;
  }


  @JsonProperty(JSON_PROPERTY_MIN_NUMBER_OF_ENTRANTS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setMinNumberOfEntrants(Integer minNumberOfEntrants) {
    this.minNumberOfEntrants = minNumberOfEntrants;
  }


  public CreateContestRequestAllOf rules(List rules) {
    this.rules = rules;
    return this;
  }

  public CreateContestRequestAllOf addRulesItem(Rule rulesItem) {
    if (this.rules == null) {
      this.rules = new ArrayList<>();
    }
    this.rules.add(rulesItem);
    return this;
  }

   /**
   * Get rules
   * @return rules
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_RULES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getRules() {
    return rules;
  }


  @JsonProperty(JSON_PROPERTY_RULES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRules(List rules) {
    this.rules = rules;
  }


  public CreateContestRequestAllOf 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 CreateContestRequestAllOf 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;
  }


  public CreateContestRequestAllOf strategies(Strategy strategies) {
    this.strategies = strategies;
    return this;
  }

   /**
   * Get strategies
   * @return strategies
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_STRATEGIES)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Strategy getStrategies() {
    return strategies;
  }


  @JsonProperty(JSON_PROPERTY_STRATEGIES)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setStrategies(Strategy strategies) {
    this.strategies = strategies;
  }


  public CreateContestRequestAllOf constraints(List constraints) {
    this.constraints = constraints;
    return this;
  }

  public CreateContestRequestAllOf addConstraintsItem(String constraintsItem) {
    this.constraints.add(constraintsItem);
    return this;
  }

   /**
   * Additional constraints
   * @return constraints
   * @deprecated
  **/
  @Deprecated
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "- notifyMember - memberAcknowledgmentRequired - autoStart - auto Stop", required = true, value = "Additional constraints")
  @JsonProperty(JSON_PROPERTY_CONSTRAINTS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public List getConstraints() {
    return constraints;
  }


  @JsonProperty(JSON_PROPERTY_CONSTRAINTS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setConstraints(List constraints) {
    this.constraints = constraints;
  }


  public CreateContestRequestAllOf addConstraints(List addConstraints) {
    this.addConstraints = addConstraints;
    return this;
  }

  public CreateContestRequestAllOf addAddConstraintsItem(String addConstraintsItem) {
    if (this.addConstraints == null) {
      this.addConstraints = new ArrayList<>();
    }
    this.addConstraints.add(addConstraintsItem);
    return this;
  }

   /**
   * Additional constraints
   * @return addConstraints
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "- notifyMember - memberAcknowledgmentRequired - autoStart - auto Stop", value = "Additional constraints")
  @JsonProperty(JSON_PROPERTY_ADD_CONSTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getAddConstraints() {
    return addConstraints;
  }


  @JsonProperty(JSON_PROPERTY_ADD_CONSTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAddConstraints(List addConstraints) {
    this.addConstraints = addConstraints;
  }


  public CreateContestRequestAllOf translations(List translations) {
    this.translations = translations;
    return this;
  }

  public CreateContestRequestAllOf addTranslationsItem(Translation translationsItem) {
    if (this.translations == null) {
      this.translations = new ArrayList<>();
    }
    this.translations.add(translationsItem);
    return this;
  }

   /**
   * Get translations
   * @return translations
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_TRANSLATIONS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getTranslations() {
    return translations;
  }


  @JsonProperty(JSON_PROPERTY_TRANSLATIONS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTranslations(List translations) {
    this.translations = translations;
  }


  public CreateContestRequestAllOf rewards(List rewards) {
    this.rewards = rewards;
    return this;
  }

  public CreateContestRequestAllOf addRewardsItem(CreateRewardRequest 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 CreateContestRequest_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;
    }
    CreateContestRequestAllOf createContestRequestAllOf = (CreateContestRequestAllOf) o;
    return Objects.equals(this.row, createContestRequestAllOf.row) &&
        Objects.equals(this.round, createContestRequestAllOf.round) &&
        Objects.equals(this.groupStage, createContestRequestAllOf.groupStage) &&
        Objects.equals(this.groupStageLabel, createContestRequestAllOf.groupStageLabel) &&
        Objects.equals(this.entrantsFromContest, createContestRequestAllOf.entrantsFromContest) &&
        Objects.equals(this.name, createContestRequestAllOf.name) &&
        Objects.equals(this.description, createContestRequestAllOf.description) &&
        Objects.equals(this.termsAndConditions, createContestRequestAllOf.termsAndConditions) &&
        Objects.equals(this.roundType, createContestRequestAllOf.roundType) &&
        Objects.equals(this.maxNumberOfEntrants, createContestRequestAllOf.maxNumberOfEntrants) &&
        Objects.equals(this.minNumberOfEntrants, createContestRequestAllOf.minNumberOfEntrants) &&
        Objects.equals(this.rules, createContestRequestAllOf.rules) &&
        Objects.equals(this.scheduledStartDate, createContestRequestAllOf.scheduledStartDate) &&
        Objects.equals(this.scheduledEndDate, createContestRequestAllOf.scheduledEndDate) &&
        Objects.equals(this.strategies, createContestRequestAllOf.strategies) &&
        Objects.equals(this.constraints, createContestRequestAllOf.constraints) &&
        Objects.equals(this.addConstraints, createContestRequestAllOf.addConstraints) &&
        Objects.equals(this.translations, createContestRequestAllOf.translations) &&
        Objects.equals(this.rewards, createContestRequestAllOf.rewards);
  }

  @Override
  public int hashCode() {
    return Objects.hash(row, round, groupStage, groupStageLabel, entrantsFromContest, name, description, termsAndConditions, roundType, maxNumberOfEntrants, minNumberOfEntrants, rules, scheduledStartDate, scheduledEndDate, strategies, constraints, addConstraints, translations, rewards);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateContestRequestAllOf {\n");
    sb.append("    row: ").append(toIndentedString(row)).append("\n");
    sb.append("    round: ").append(toIndentedString(round)).append("\n");
    sb.append("    groupStage: ").append(toIndentedString(groupStage)).append("\n");
    sb.append("    groupStageLabel: ").append(toIndentedString(groupStageLabel)).append("\n");
    sb.append("    entrantsFromContest: ").append(toIndentedString(entrantsFromContest)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    termsAndConditions: ").append(toIndentedString(termsAndConditions)).append("\n");
    sb.append("    roundType: ").append(toIndentedString(roundType)).append("\n");
    sb.append("    maxNumberOfEntrants: ").append(toIndentedString(maxNumberOfEntrants)).append("\n");
    sb.append("    minNumberOfEntrants: ").append(toIndentedString(minNumberOfEntrants)).append("\n");
    sb.append("    rules: ").append(toIndentedString(rules)).append("\n");
    sb.append("    scheduledStartDate: ").append(toIndentedString(scheduledStartDate)).append("\n");
    sb.append("    scheduledEndDate: ").append(toIndentedString(scheduledEndDate)).append("\n");
    sb.append("    strategies: ").append(toIndentedString(strategies)).append("\n");
    sb.append("    constraints: ").append(toIndentedString(constraints)).append("\n");
    sb.append("    addConstraints: ").append(toIndentedString(addConstraints)).append("\n");
    sb.append("    translations: ").append(toIndentedString(translations)).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 - 2024 Weber Informatics LLC | Privacy Policy