com.ziqni.admin.sdk.model.TournamentStrategies 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.RankingStrategy;
import com.ziqni.admin.sdk.model.ScoringStrategy;
import com.ziqni.admin.sdk.model.StrategyType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* TournamentStrategies
*/
@JsonPropertyOrder({
TournamentStrategies.JSON_PROPERTY_STRATEGY_TYPE,
TournamentStrategies.JSON_PROPERTY_RANKING_STRATEGY,
TournamentStrategies.JSON_PROPERTY_SCORING_STRATEGY
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TournamentStrategies {
public static final String JSON_PROPERTY_STRATEGY_TYPE = "strategyType";
private StrategyType strategyType;
public static final String JSON_PROPERTY_RANKING_STRATEGY = "rankingStrategy";
private RankingStrategy rankingStrategy;
public static final String JSON_PROPERTY_SCORING_STRATEGY = "scoringStrategy";
private ScoringStrategy scoringStrategy;
public TournamentStrategies strategyType(StrategyType strategyType) {
this.strategyType = strategyType;
return this;
}
/**
* Get strategyType
* @return strategyType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRATEGY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public StrategyType getStrategyType() {
return strategyType;
}
@JsonProperty(JSON_PROPERTY_STRATEGY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStrategyType(StrategyType strategyType) {
this.strategyType = strategyType;
}
public TournamentStrategies rankingStrategy(RankingStrategy rankingStrategy) {
this.rankingStrategy = rankingStrategy;
return this;
}
/**
* Get rankingStrategy
* @return rankingStrategy
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_RANKING_STRATEGY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public RankingStrategy getRankingStrategy() {
return rankingStrategy;
}
@JsonProperty(JSON_PROPERTY_RANKING_STRATEGY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRankingStrategy(RankingStrategy rankingStrategy) {
this.rankingStrategy = rankingStrategy;
}
public TournamentStrategies scoringStrategy(ScoringStrategy scoringStrategy) {
this.scoringStrategy = scoringStrategy;
return this;
}
/**
* Get scoringStrategy
* @return scoringStrategy
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_SCORING_STRATEGY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public ScoringStrategy getScoringStrategy() {
return scoringStrategy;
}
@JsonProperty(JSON_PROPERTY_SCORING_STRATEGY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setScoringStrategy(ScoringStrategy scoringStrategy) {
this.scoringStrategy = scoringStrategy;
}
/**
* Return true if this TournamentStrategies object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TournamentStrategies tournamentStrategies = (TournamentStrategies) o;
return Objects.equals(this.strategyType, tournamentStrategies.strategyType) &&
Objects.equals(this.rankingStrategy, tournamentStrategies.rankingStrategy) &&
Objects.equals(this.scoringStrategy, tournamentStrategies.scoringStrategy);
}
@Override
public int hashCode() {
return Objects.hash(strategyType, rankingStrategy, scoringStrategy);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TournamentStrategies {\n");
sb.append(" strategyType: ").append(toIndentedString(strategyType)).append("\n");
sb.append(" rankingStrategy: ").append(toIndentedString(rankingStrategy)).append("\n");
sb.append(" scoringStrategy: ").append(toIndentedString(scoringStrategy)).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