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

com.ziqni.admin.sdk.model.AwardScheduling 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * Determines how the award release will be scheduled
 */
@ApiModel(description = "Determines how the award release will be scheduled")
@JsonPropertyOrder({
  AwardScheduling.JSON_PROPERTY_THEN_AWARD_ACTIVE_FROM,
  AwardScheduling.JSON_PROPERTY_THEN_AWARD_ACTIVE_UNTIL,
  AwardScheduling.JSON_PROPERTY_ON_STATUS_CHANGE_TO
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AwardScheduling {
  public static final String JSON_PROPERTY_THEN_AWARD_ACTIVE_FROM = "thenAwardActiveFrom";
  private String thenAwardActiveFrom;

  public static final String JSON_PROPERTY_THEN_AWARD_ACTIVE_UNTIL = "thenAwardActiveUntil";
  private String thenAwardActiveUntil;

  public static final String JSON_PROPERTY_ON_STATUS_CHANGE_TO = "onStatusChangeTo";
  private AwardStateActions onStatusChangeTo;


  public AwardScheduling thenAwardActiveFrom(String thenAwardActiveFrom) {
    this.thenAwardActiveFrom = thenAwardActiveFrom;
    return this;
  }

   /**
   * This is either a ISO-8601 date string like 2024-06-06T08:00:00 for a specific point in time. For duration: P3Y6M4DT12H30M5S (3 years, 6 months, 4 days, 12 hours, 30 minutes, and 5 seconds)
   * @return thenAwardActiveFrom
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "This is either a ISO-8601 date string like 2024-06-06T08:00:00 for a specific point in time. For duration: P3Y6M4DT12H30M5S (3 years, 6 months, 4 days, 12 hours, 30 minutes, and 5 seconds)")
  @JsonProperty(JSON_PROPERTY_THEN_AWARD_ACTIVE_FROM)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getThenAwardActiveFrom() {
    return thenAwardActiveFrom;
  }


  @JsonProperty(JSON_PROPERTY_THEN_AWARD_ACTIVE_FROM)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setThenAwardActiveFrom(String thenAwardActiveFrom) {
    this.thenAwardActiveFrom = thenAwardActiveFrom;
  }


  public AwardScheduling thenAwardActiveUntil(String thenAwardActiveUntil) {
    this.thenAwardActiveUntil = thenAwardActiveUntil;
    return this;
  }

   /**
   * This is either a ISO-8601 date string like 2024-06-06T08:00:00 for a specific point in time. For duration: P3Y6M4DT12H30M5S (3 years, 6 months, 4 days, 12 hours, 30 minutes, and 5 seconds)
   * @return thenAwardActiveUntil
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "This is either a ISO-8601 date string like 2024-06-06T08:00:00 for a specific point in time. For duration: P3Y6M4DT12H30M5S (3 years, 6 months, 4 days, 12 hours, 30 minutes, and 5 seconds)")
  @JsonProperty(JSON_PROPERTY_THEN_AWARD_ACTIVE_UNTIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getThenAwardActiveUntil() {
    return thenAwardActiveUntil;
  }


  @JsonProperty(JSON_PROPERTY_THEN_AWARD_ACTIVE_UNTIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setThenAwardActiveUntil(String thenAwardActiveUntil) {
    this.thenAwardActiveUntil = thenAwardActiveUntil;
  }


  public AwardScheduling onStatusChangeTo(AwardStateActions onStatusChangeTo) {
    this.onStatusChangeTo = onStatusChangeTo;
    return this;
  }

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

  public AwardStateActions getOnStatusChangeTo() {
    return onStatusChangeTo;
  }


  @JsonProperty(JSON_PROPERTY_ON_STATUS_CHANGE_TO)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setOnStatusChangeTo(AwardStateActions onStatusChangeTo) {
    this.onStatusChangeTo = onStatusChangeTo;
  }


  /**
   * Return true if this AwardScheduling object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AwardScheduling awardScheduling = (AwardScheduling) o;
    return Objects.equals(this.thenAwardActiveFrom, awardScheduling.thenAwardActiveFrom) &&
        Objects.equals(this.thenAwardActiveUntil, awardScheduling.thenAwardActiveUntil) &&
        Objects.equals(this.onStatusChangeTo, awardScheduling.onStatusChangeTo);
  }

  @Override
  public int hashCode() {
    return Objects.hash(thenAwardActiveFrom, thenAwardActiveUntil, onStatusChangeTo);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AwardScheduling {\n");
    sb.append("    thenAwardActiveFrom: ").append(toIndentedString(thenAwardActiveFrom)).append("\n");
    sb.append("    thenAwardActiveUntil: ").append(toIndentedString(thenAwardActiveUntil)).append("\n");
    sb.append("    onStatusChangeTo: ").append(toIndentedString(onStatusChangeTo)).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