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

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

There is a newer version: 1.0.24
Show newest version
/*
 * 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.GridLocation;
import com.ziqni.admin.sdk.model.UpdateRewardRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * UpdateInstantWinTile
 */
@JsonPropertyOrder({
  UpdateInstantWinTile.JSON_PROPERTY_ICON,
  UpdateInstantWinTile.JSON_PROPERTY_TEXT,
  UpdateInstantWinTile.JSON_PROPERTY_CONTRAINTS,
  UpdateInstantWinTile.JSON_PROPERTY_REWARD,
  UpdateInstantWinTile.JSON_PROPERTY_LOCATION,
  UpdateInstantWinTile.JSON_PROPERTY_PROBABILITY
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateInstantWinTile {
  public static final String JSON_PROPERTY_ICON = "icon";
  private String icon;

  public static final String JSON_PROPERTY_TEXT = "text";
  private String text;

  public static final String JSON_PROPERTY_CONTRAINTS = "contraints";
  private List contraints = null;

  public static final String JSON_PROPERTY_REWARD = "reward";
  private UpdateRewardRequest reward;

  public static final String JSON_PROPERTY_LOCATION = "location";
  private GridLocation location;

  public static final String JSON_PROPERTY_PROBABILITY = "probability";
  private Double probability;


  public UpdateInstantWinTile icon(String icon) {
    this.icon = icon;
    return this;
  }

   /**
   * The id to the image file
   * @return icon
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "The id to the image file")
  @JsonProperty(JSON_PROPERTY_ICON)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getIcon() {
    return icon;
  }


  @JsonProperty(JSON_PROPERTY_ICON)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIcon(String icon) {
    this.icon = icon;
  }


  public UpdateInstantWinTile text(String text) {
    this.text = text;
    return this;
  }

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

  public String getText() {
    return text;
  }


  @JsonProperty(JSON_PROPERTY_TEXT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setText(String text) {
    this.text = text;
  }


  public UpdateInstantWinTile contraints(List contraints) {
    this.contraints = contraints;
    return this;
  }

  public UpdateInstantWinTile addContraintsItem(String contraintsItem) {
    if (this.contraints == null) {
      this.contraints = new ArrayList<>();
    }
    this.contraints.add(contraintsItem);
    return this;
  }

   /**
   * hasPrizes, glow
   * @return contraints
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "hasPrizes", value = "hasPrizes, glow")
  @JsonProperty(JSON_PROPERTY_CONTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getContraints() {
    return contraints;
  }


  @JsonProperty(JSON_PROPERTY_CONTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setContraints(List contraints) {
    this.contraints = contraints;
  }


  public UpdateInstantWinTile reward(UpdateRewardRequest reward) {
    this.reward = reward;
    return this;
  }

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

  public UpdateRewardRequest getReward() {
    return reward;
  }


  @JsonProperty(JSON_PROPERTY_REWARD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setReward(UpdateRewardRequest reward) {
    this.reward = reward;
  }


  public UpdateInstantWinTile location(GridLocation location) {
    this.location = location;
    return this;
  }

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

  public GridLocation getLocation() {
    return location;
  }


  @JsonProperty(JSON_PROPERTY_LOCATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLocation(GridLocation location) {
    this.location = location;
  }


  public UpdateInstantWinTile probability(Double probability) {
    this.probability = probability;
    return this;
  }

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

  public Double getProbability() {
    return probability;
  }


  @JsonProperty(JSON_PROPERTY_PROBABILITY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setProbability(Double probability) {
    this.probability = probability;
  }


  /**
   * Return true if this UpdateInstantWinTile object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateInstantWinTile updateInstantWinTile = (UpdateInstantWinTile) o;
    return Objects.equals(this.icon, updateInstantWinTile.icon) &&
        Objects.equals(this.text, updateInstantWinTile.text) &&
        Objects.equals(this.contraints, updateInstantWinTile.contraints) &&
        Objects.equals(this.reward, updateInstantWinTile.reward) &&
        Objects.equals(this.location, updateInstantWinTile.location) &&
        Objects.equals(this.probability, updateInstantWinTile.probability);
  }

  @Override
  public int hashCode() {
    return Objects.hash(icon, text, contraints, reward, location, probability);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateInstantWinTile {\n");
    sb.append("    icon: ").append(toIndentedString(icon)).append("\n");
    sb.append("    text: ").append(toIndentedString(text)).append("\n");
    sb.append("    contraints: ").append(toIndentedString(contraints)).append("\n");
    sb.append("    reward: ").append(toIndentedString(reward)).append("\n");
    sb.append("    location: ").append(toIndentedString(location)).append("\n");
    sb.append("    probability: ").append(toIndentedString(probability)).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