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

com.ziqni.admin.sdk.model.UpdateAchievementRequestAllOf 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.AchievementLiveStatus;
import com.ziqni.admin.sdk.model.DependantOn;
import com.ziqni.admin.sdk.model.Scheduling;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * UpdateAchievementRequestAllOf
 */
@JsonPropertyOrder({
  UpdateAchievementRequestAllOf.JSON_PROPERTY_NAME,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_DESCRIPTION,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_TERMS_AND_CONDITIONS,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_ICON,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_SCHEDULING,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_ACHIEVEMENT_LIVE_STATUS,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_MAX_NUMBER_OF_ISSUES,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_CONSTRAINTS,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_ACHIEVEMENT_DEPENDENCIES,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_MEMBER_TAGS_FILTER,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_PRODUCT_TAGS_FILTER,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_ADD_CONSTRAINTS,
  UpdateAchievementRequestAllOf.JSON_PROPERTY_REMOVE_CONSTRAINTS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateAchievementRequestAllOf {
  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_ICON = "icon";
  private String icon;

  public static final String JSON_PROPERTY_SCHEDULING = "scheduling";
  private Scheduling scheduling;

  public static final String JSON_PROPERTY_ACHIEVEMENT_LIVE_STATUS = "achievementLiveStatus";
  private AchievementLiveStatus achievementLiveStatus;

  public static final String JSON_PROPERTY_MAX_NUMBER_OF_ISSUES = "maxNumberOfIssues";
  private Integer maxNumberOfIssues;

  public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
  private List constraints = null;

  public static final String JSON_PROPERTY_ACHIEVEMENT_DEPENDENCIES = "achievementDependencies";
  private DependantOn achievementDependencies;

  public static final String JSON_PROPERTY_MEMBER_TAGS_FILTER = "memberTagsFilter";
  private DependantOn memberTagsFilter;

  public static final String JSON_PROPERTY_PRODUCT_TAGS_FILTER = "productTagsFilter";
  private DependantOn productTagsFilter;

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

  public static final String JSON_PROPERTY_REMOVE_CONSTRAINTS = "removeConstraints";
  private List removeConstraints = null;


  public UpdateAchievementRequestAllOf name(String name) {
    this.name = name;
    return this;
  }

   /**
   * A name for the Achievement. Can be translated
   * @return name
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Welcome badge", value = "A name for the Achievement. Can be translated")
  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getName() {
    return name;
  }


  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setName(String name) {
    this.name = name;
  }


  public UpdateAchievementRequestAllOf description(String description) {
    this.description = description;
    return this;
  }

   /**
   * A name for the Achievement. Can be translated
   * @return description
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "A Badge to welcome you on board", value = "A name for the Achievement. 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 UpdateAchievementRequestAllOf termsAndConditions(String termsAndConditions) {
    this.termsAndConditions = termsAndConditions;
    return this;
  }

   /**
   * Terms and conditions of an achievement. Can be translated
   * @return termsAndConditions
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Participate to win", value = "Terms and conditions of an achievement. 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 UpdateAchievementRequestAllOf icon(String icon) {
    this.icon = icon;
    return this;
  }

   /**
   * An Icon id that has been pre uploaded to the system to display for Achievement
   * @return icon
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Dc4swmQBVd51K6gPQqFx", value = "An Icon id that has been pre uploaded to the system to display for Achievement")
  @JsonProperty(JSON_PROPERTY_ICON)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getIcon() {
    return icon;
  }


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


  public UpdateAchievementRequestAllOf scheduling(Scheduling scheduling) {
    this.scheduling = scheduling;
    return this;
  }

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

  public Scheduling getScheduling() {
    return scheduling;
  }


  @JsonProperty(JSON_PROPERTY_SCHEDULING)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setScheduling(Scheduling scheduling) {
    this.scheduling = scheduling;
  }


  public UpdateAchievementRequestAllOf achievementLiveStatus(AchievementLiveStatus achievementLiveStatus) {
    this.achievementLiveStatus = achievementLiveStatus;
    return this;
  }

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

  public AchievementLiveStatus getAchievementLiveStatus() {
    return achievementLiveStatus;
  }


  @JsonProperty(JSON_PROPERTY_ACHIEVEMENT_LIVE_STATUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAchievementLiveStatus(AchievementLiveStatus achievementLiveStatus) {
    this.achievementLiveStatus = achievementLiveStatus;
  }


  public UpdateAchievementRequestAllOf maxNumberOfIssues(Integer maxNumberOfIssues) {
    this.maxNumberOfIssues = maxNumberOfIssues;
    return this;
  }

   /**
   * Maximum number of issued achievements
   * @return maxNumberOfIssues
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "9999", value = "Maximum number of issued achievements")
  @JsonProperty(JSON_PROPERTY_MAX_NUMBER_OF_ISSUES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getMaxNumberOfIssues() {
    return maxNumberOfIssues;
  }


  @JsonProperty(JSON_PROPERTY_MAX_NUMBER_OF_ISSUES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMaxNumberOfIssues(Integer maxNumberOfIssues) {
    this.maxNumberOfIssues = maxNumberOfIssues;
  }


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

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

   /**
   * Additional constraints
   * @return constraints
   * @deprecated
  **/
  @Deprecated
  @javax.annotation.Nullable
  @ApiModelProperty(example = "- notifyMember - isHidden - deprecated - optinRequiredForEntrants", value = "Additional constraints")
  @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 UpdateAchievementRequestAllOf achievementDependencies(DependantOn achievementDependencies) {
    this.achievementDependencies = achievementDependencies;
    return this;
  }

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

  public DependantOn getAchievementDependencies() {
    return achievementDependencies;
  }


  @JsonProperty(JSON_PROPERTY_ACHIEVEMENT_DEPENDENCIES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAchievementDependencies(DependantOn achievementDependencies) {
    this.achievementDependencies = achievementDependencies;
  }


  public UpdateAchievementRequestAllOf memberTagsFilter(DependantOn memberTagsFilter) {
    this.memberTagsFilter = memberTagsFilter;
    return this;
  }

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

  public DependantOn getMemberTagsFilter() {
    return memberTagsFilter;
  }


  @JsonProperty(JSON_PROPERTY_MEMBER_TAGS_FILTER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMemberTagsFilter(DependantOn memberTagsFilter) {
    this.memberTagsFilter = memberTagsFilter;
  }


  public UpdateAchievementRequestAllOf productTagsFilter(DependantOn productTagsFilter) {
    this.productTagsFilter = productTagsFilter;
    return this;
  }

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

  public DependantOn getProductTagsFilter() {
    return productTagsFilter;
  }


  @JsonProperty(JSON_PROPERTY_PRODUCT_TAGS_FILTER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setProductTagsFilter(DependantOn productTagsFilter) {
    this.productTagsFilter = productTagsFilter;
  }


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

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

   /**
   * Get addConstraints
   * @return addConstraints
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @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 UpdateAchievementRequestAllOf removeConstraints(List removeConstraints) {
    this.removeConstraints = removeConstraints;
    return this;
  }

  public UpdateAchievementRequestAllOf addRemoveConstraintsItem(String removeConstraintsItem) {
    if (this.removeConstraints == null) {
      this.removeConstraints = new ArrayList<>();
    }
    this.removeConstraints.add(removeConstraintsItem);
    return this;
  }

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

  public List getRemoveConstraints() {
    return removeConstraints;
  }


  @JsonProperty(JSON_PROPERTY_REMOVE_CONSTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRemoveConstraints(List removeConstraints) {
    this.removeConstraints = removeConstraints;
  }


  /**
   * Return true if this UpdateAchievementRequest_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;
    }
    UpdateAchievementRequestAllOf updateAchievementRequestAllOf = (UpdateAchievementRequestAllOf) o;
    return Objects.equals(this.name, updateAchievementRequestAllOf.name) &&
        Objects.equals(this.description, updateAchievementRequestAllOf.description) &&
        Objects.equals(this.termsAndConditions, updateAchievementRequestAllOf.termsAndConditions) &&
        Objects.equals(this.icon, updateAchievementRequestAllOf.icon) &&
        Objects.equals(this.scheduling, updateAchievementRequestAllOf.scheduling) &&
        Objects.equals(this.achievementLiveStatus, updateAchievementRequestAllOf.achievementLiveStatus) &&
        Objects.equals(this.maxNumberOfIssues, updateAchievementRequestAllOf.maxNumberOfIssues) &&
        Objects.equals(this.constraints, updateAchievementRequestAllOf.constraints) &&
        Objects.equals(this.achievementDependencies, updateAchievementRequestAllOf.achievementDependencies) &&
        Objects.equals(this.memberTagsFilter, updateAchievementRequestAllOf.memberTagsFilter) &&
        Objects.equals(this.productTagsFilter, updateAchievementRequestAllOf.productTagsFilter) &&
        Objects.equals(this.addConstraints, updateAchievementRequestAllOf.addConstraints) &&
        Objects.equals(this.removeConstraints, updateAchievementRequestAllOf.removeConstraints);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, description, termsAndConditions, icon, scheduling, achievementLiveStatus, maxNumberOfIssues, constraints, achievementDependencies, memberTagsFilter, productTagsFilter, addConstraints, removeConstraints);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateAchievementRequestAllOf {\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("    icon: ").append(toIndentedString(icon)).append("\n");
    sb.append("    scheduling: ").append(toIndentedString(scheduling)).append("\n");
    sb.append("    achievementLiveStatus: ").append(toIndentedString(achievementLiveStatus)).append("\n");
    sb.append("    maxNumberOfIssues: ").append(toIndentedString(maxNumberOfIssues)).append("\n");
    sb.append("    constraints: ").append(toIndentedString(constraints)).append("\n");
    sb.append("    achievementDependencies: ").append(toIndentedString(achievementDependencies)).append("\n");
    sb.append("    memberTagsFilter: ").append(toIndentedString(memberTagsFilter)).append("\n");
    sb.append("    productTagsFilter: ").append(toIndentedString(productTagsFilter)).append("\n");
    sb.append("    addConstraints: ").append(toIndentedString(addConstraints)).append("\n");
    sb.append("    removeConstraints: ").append(toIndentedString(removeConstraints)).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