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

com.ziqni.admin.sdk.model.UpdateAwardStateRequest 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.  Change log:  2024-02-27 Added rewards reduced to the LeaderboardEntry response
 *
 * The version of the OpenAPI document: 3.0.17
 * 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.AwardStateActions;
import com.ziqni.admin.sdk.model.UpdateAwardStateRequestAllOf;
import com.ziqni.admin.sdk.model.UpdateModelDefault;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * UpdateAwardStateRequest
 */
@JsonPropertyOrder({
  UpdateAwardStateRequest.JSON_PROPERTY_CONSTRAINTS,
  UpdateAwardStateRequest.JSON_PROPERTY_ACTION,
  UpdateAwardStateRequest.JSON_PROPERTY_TRANSACTION_REFERENCE_ID,
  UpdateAwardStateRequest.JSON_PROPERTY_REASON_FOR_CHANGE,
  UpdateAwardStateRequest.JSON_PROPERTY_ID
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateAwardStateRequest {
  public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
  private List constraints = null;

  public static final String JSON_PROPERTY_ACTION = "action";
  private AwardStateActions action;

  public static final String JSON_PROPERTY_TRANSACTION_REFERENCE_ID = "transactionReferenceId";
  private String transactionReferenceId;

  public static final String JSON_PROPERTY_REASON_FOR_CHANGE = "reasonForChange";
  private String reasonForChange;

  public static final String JSON_PROPERTY_ID = "id";
  private String id;


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

  public UpdateAwardStateRequest addConstraintsItem(String constraintsItem) {
    if (this.constraints == null) {
      this.constraints = new ArrayList<>();
    }
    this.constraints.add(constraintsItem);
    return this;
  }

   /**
   * Additional system contraints if any
   * @return constraints
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Additional system contraints if any")
  @JsonProperty(JSON_PROPERTY_CONSTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getConstraints() {
    return constraints;
  }


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


  public UpdateAwardStateRequest action(AwardStateActions action) {
    this.action = action;
    return this;
  }

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

  public AwardStateActions getAction() {
    return action;
  }


  @JsonProperty(JSON_PROPERTY_ACTION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setAction(AwardStateActions action) {
    this.action = action;
  }


  public UpdateAwardStateRequest transactionReferenceId(String transactionReferenceId) {
    this.transactionReferenceId = transactionReferenceId;
    return this;
  }

   /**
   * The transaction ID to correlate with this request, max 128 characters
   * @return transactionReferenceId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The transaction ID to correlate with this request, max 128 characters")
  @JsonProperty(JSON_PROPERTY_TRANSACTION_REFERENCE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getTransactionReferenceId() {
    return transactionReferenceId;
  }


  @JsonProperty(JSON_PROPERTY_TRANSACTION_REFERENCE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTransactionReferenceId(String transactionReferenceId) {
    this.transactionReferenceId = transactionReferenceId;
  }


  public UpdateAwardStateRequest reasonForChange(String reasonForChange) {
    this.reasonForChange = reasonForChange;
    return this;
  }

   /**
   * Up to 300 character reason why this change was made [optional]
   * @return reasonForChange
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Up to 300 character reason why this change was made [optional]")
  @JsonProperty(JSON_PROPERTY_REASON_FOR_CHANGE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getReasonForChange() {
    return reasonForChange;
  }


  @JsonProperty(JSON_PROPERTY_REASON_FOR_CHANGE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setReasonForChange(String reasonForChange) {
    this.reasonForChange = reasonForChange;
  }


  public UpdateAwardStateRequest id(String id) {
    this.id = id;
    return this;
  }

   /**
   * A unique system generated identifier
   * @return id
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "sc1samQmVr61KgaPQq7x", required = true, value = "A unique system generated identifier")
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getId() {
    return id;
  }


  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setId(String id) {
    this.id = id;
  }


  /**
   * Return true if this UpdateAwardStateRequest object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateAwardStateRequest updateAwardStateRequest = (UpdateAwardStateRequest) o;
    return Objects.equals(this.constraints, updateAwardStateRequest.constraints) &&
        Objects.equals(this.action, updateAwardStateRequest.action) &&
        Objects.equals(this.transactionReferenceId, updateAwardStateRequest.transactionReferenceId) &&
        Objects.equals(this.reasonForChange, updateAwardStateRequest.reasonForChange) &&
        Objects.equals(this.id, updateAwardStateRequest.id);
  }

  @Override
  public int hashCode() {
    return Objects.hash(constraints, action, transactionReferenceId, reasonForChange, id);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateAwardStateRequest {\n");
    sb.append("    constraints: ").append(toIndentedString(constraints)).append("\n");
    sb.append("    action: ").append(toIndentedString(action)).append("\n");
    sb.append("    transactionReferenceId: ").append(toIndentedString(transactionReferenceId)).append("\n");
    sb.append("    reasonForChange: ").append(toIndentedString(reasonForChange)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).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