com.ziqni.admin.sdk.model.PointsStrategy 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.ConditionalOperator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* The target points to achieve
*/
@ApiModel(description = "The target points to achieve")
@JsonPropertyOrder({
PointsStrategy.JSON_PROPERTY_OPERATOR,
PointsStrategy.JSON_PROPERTY_POINTS_VALUE_UPPER,
PointsStrategy.JSON_PROPERTY_POINTS_VALUE,
PointsStrategy.JSON_PROPERTY_CONTEXT,
PointsStrategy.JSON_PROPERTY_ACTION
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PointsStrategy {
public static final String JSON_PROPERTY_OPERATOR = "operator";
private ConditionalOperator operator;
public static final String JSON_PROPERTY_POINTS_VALUE_UPPER = "pointsValueUpper";
private BigDecimal pointsValueUpper;
public static final String JSON_PROPERTY_POINTS_VALUE = "pointsValue";
private BigDecimal pointsValue;
public static final String JSON_PROPERTY_CONTEXT = "context";
private String context;
public static final String JSON_PROPERTY_ACTION = "action";
private String action;
public PointsStrategy operator(ConditionalOperator operator) {
this.operator = operator;
return this;
}
/**
* Get operator
* @return operator
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_OPERATOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public ConditionalOperator getOperator() {
return operator;
}
@JsonProperty(JSON_PROPERTY_OPERATOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOperator(ConditionalOperator operator) {
this.operator = operator;
}
public PointsStrategy pointsValueUpper(BigDecimal pointsValueUpper) {
this.pointsValueUpper = pointsValueUpper;
return this;
}
/**
* The upper points to achieve. This is only used where secondary number are required like, between, or average between
* @return pointsValueUpper
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The upper points to achieve. This is only used where secondary number are required like, between, or average between")
@JsonProperty(JSON_PROPERTY_POINTS_VALUE_UPPER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getPointsValueUpper() {
return pointsValueUpper;
}
@JsonProperty(JSON_PROPERTY_POINTS_VALUE_UPPER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPointsValueUpper(BigDecimal pointsValueUpper) {
this.pointsValueUpper = pointsValueUpper;
}
public PointsStrategy pointsValue(BigDecimal pointsValue) {
this.pointsValue = pointsValue;
return this;
}
/**
* The points to achieve
* @return pointsValue
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The points to achieve")
@JsonProperty(JSON_PROPERTY_POINTS_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getPointsValue() {
return pointsValue;
}
@JsonProperty(JSON_PROPERTY_POINTS_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPointsValue(BigDecimal pointsValue) {
this.pointsValue = pointsValue;
}
public PointsStrategy context(String context) {
this.context = context;
return this;
}
/**
* The context this strategy is bound to, like: achievement
* @return context
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The context this strategy is bound to, like: achievement")
@JsonProperty(JSON_PROPERTY_CONTEXT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getContext() {
return context;
}
@JsonProperty(JSON_PROPERTY_CONTEXT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setContext(String context) {
this.context = context;
}
public PointsStrategy action(String action) {
this.action = action;
return this;
}
/**
* The action this strategy is bound to, like: achievement.points
* @return action
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The action this strategy is bound to, like: achievement.points")
@JsonProperty(JSON_PROPERTY_ACTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getAction() {
return action;
}
@JsonProperty(JSON_PROPERTY_ACTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAction(String action) {
this.action = action;
}
/**
* Return true if this PointsStrategy object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PointsStrategy pointsStrategy = (PointsStrategy) o;
return Objects.equals(this.operator, pointsStrategy.operator) &&
Objects.equals(this.pointsValueUpper, pointsStrategy.pointsValueUpper) &&
Objects.equals(this.pointsValue, pointsStrategy.pointsValue) &&
Objects.equals(this.context, pointsStrategy.context) &&
Objects.equals(this.action, pointsStrategy.action);
}
@Override
public int hashCode() {
return Objects.hash(operator, pointsValueUpper, pointsValue, context, action);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PointsStrategy {\n");
sb.append(" operator: ").append(toIndentedString(operator)).append("\n");
sb.append(" pointsValueUpper: ").append(toIndentedString(pointsValueUpper)).append("\n");
sb.append(" pointsValue: ").append(toIndentedString(pointsValue)).append("\n");
sb.append(" context: ").append(toIndentedString(context)).append("\n");
sb.append(" action: ").append(toIndentedString(action)).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