com.ziqni.admin.sdk.model.UpdateProductRequestAllOf 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. 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.ActionTypeAdjustmentFactor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* UpdateProductRequestAllOf
*/
@JsonPropertyOrder({
UpdateProductRequestAllOf.JSON_PROPERTY_NAME,
UpdateProductRequestAllOf.JSON_PROPERTY_PRODUCT_TYPE,
UpdateProductRequestAllOf.JSON_PROPERTY_DESCRIPTION,
UpdateProductRequestAllOf.JSON_PROPERTY_ICON,
UpdateProductRequestAllOf.JSON_PROPERTY_BANNER,
UpdateProductRequestAllOf.JSON_PROPERTY_BANNER_LOW_RESOLUTION,
UpdateProductRequestAllOf.JSON_PROPERTY_BANNER_HIGH_RESOLUTION,
UpdateProductRequestAllOf.JSON_PROPERTY_ADJUSTMENT_FACTOR,
UpdateProductRequestAllOf.JSON_PROPERTY_ACTION_TYPE_ADJUSTMENT_FACTORS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateProductRequestAllOf {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_PRODUCT_TYPE = "productType";
private String productType;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_ICON = "icon";
private String icon;
public static final String JSON_PROPERTY_BANNER = "banner";
private String banner;
public static final String JSON_PROPERTY_BANNER_LOW_RESOLUTION = "bannerLowResolution";
private String bannerLowResolution;
public static final String JSON_PROPERTY_BANNER_HIGH_RESOLUTION = "bannerHighResolution";
private String bannerHighResolution;
public static final String JSON_PROPERTY_ADJUSTMENT_FACTOR = "adjustmentFactor";
private Double adjustmentFactor;
public static final String JSON_PROPERTY_ACTION_TYPE_ADJUSTMENT_FACTORS = "actionTypeAdjustmentFactors";
private List actionTypeAdjustmentFactors = null;
public UpdateProductRequestAllOf name(String name) {
this.name = name;
return this;
}
/**
* The name of the product
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Hockey madness", value = "The name of the product")
@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 UpdateProductRequestAllOf productType(String productType) {
this.productType = productType;
return this;
}
/**
* Product type
* @return productType
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "product type", value = "Product type")
@JsonProperty(JSON_PROPERTY_PRODUCT_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProductType() {
return productType;
}
@JsonProperty(JSON_PROPERTY_PRODUCT_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProductType(String productType) {
this.productType = productType;
}
public UpdateProductRequestAllOf description(String description) {
this.description = description;
return this;
}
/**
* The description of the product for your reference
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Spin the hockey wheal", value = "The description of the product for your reference")
@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 UpdateProductRequestAllOf icon(String icon) {
this.icon = icon;
return this;
}
/**
* An Icon id that has been pre uploaded to the system to display for Product
* @return icon
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Dc4swmQBVd51K6gPQqFx", value = "An Icon id that has been pre uploaded to the system to display for Product")
@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 UpdateProductRequestAllOf banner(String banner) {
this.banner = banner;
return this;
}
/**
* Link to the banner
* @return banner
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "https://.cdn.ziqni.com/_id/", value = "Link to the banner")
@JsonProperty(JSON_PROPERTY_BANNER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBanner() {
return banner;
}
@JsonProperty(JSON_PROPERTY_BANNER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBanner(String banner) {
this.banner = banner;
}
public UpdateProductRequestAllOf bannerLowResolution(String bannerLowResolution) {
this.bannerLowResolution = bannerLowResolution;
return this;
}
/**
* Link to the bannerLowResolution
* @return bannerLowResolution
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "https://.cdn.ziqni.com/_id/", value = "Link to the bannerLowResolution")
@JsonProperty(JSON_PROPERTY_BANNER_LOW_RESOLUTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBannerLowResolution() {
return bannerLowResolution;
}
@JsonProperty(JSON_PROPERTY_BANNER_LOW_RESOLUTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBannerLowResolution(String bannerLowResolution) {
this.bannerLowResolution = bannerLowResolution;
}
public UpdateProductRequestAllOf bannerHighResolution(String bannerHighResolution) {
this.bannerHighResolution = bannerHighResolution;
return this;
}
/**
* Link to the bannerHighResolution
* @return bannerHighResolution
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "https://.cdn.ziqni.com/_id/", value = "Link to the bannerHighResolution")
@JsonProperty(JSON_PROPERTY_BANNER_HIGH_RESOLUTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBannerHighResolution() {
return bannerHighResolution;
}
@JsonProperty(JSON_PROPERTY_BANNER_HIGH_RESOLUTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBannerHighResolution(String bannerHighResolution) {
this.bannerHighResolution = bannerHighResolution;
}
public UpdateProductRequestAllOf adjustmentFactor(Double adjustmentFactor) {
this.adjustmentFactor = adjustmentFactor;
return this;
}
/**
* The multiplier to apply to source values received for this product events
* @return adjustmentFactor
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "The multiplier to apply to source values received for this product events")
@JsonProperty(JSON_PROPERTY_ADJUSTMENT_FACTOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getAdjustmentFactor() {
return adjustmentFactor;
}
@JsonProperty(JSON_PROPERTY_ADJUSTMENT_FACTOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdjustmentFactor(Double adjustmentFactor) {
this.adjustmentFactor = adjustmentFactor;
}
public UpdateProductRequestAllOf actionTypeAdjustmentFactors(List actionTypeAdjustmentFactors) {
this.actionTypeAdjustmentFactors = actionTypeAdjustmentFactors;
return this;
}
public UpdateProductRequestAllOf addActionTypeAdjustmentFactorsItem(ActionTypeAdjustmentFactor actionTypeAdjustmentFactorsItem) {
if (this.actionTypeAdjustmentFactors == null) {
this.actionTypeAdjustmentFactors = new ArrayList<>();
}
this.actionTypeAdjustmentFactors.add(actionTypeAdjustmentFactorsItem);
return this;
}
/**
* Get actionTypeAdjustmentFactors
* @return actionTypeAdjustmentFactors
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ACTION_TYPE_ADJUSTMENT_FACTORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getActionTypeAdjustmentFactors() {
return actionTypeAdjustmentFactors;
}
@JsonProperty(JSON_PROPERTY_ACTION_TYPE_ADJUSTMENT_FACTORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setActionTypeAdjustmentFactors(List actionTypeAdjustmentFactors) {
this.actionTypeAdjustmentFactors = actionTypeAdjustmentFactors;
}
/**
* Return true if this UpdateProductRequest_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;
}
UpdateProductRequestAllOf updateProductRequestAllOf = (UpdateProductRequestAllOf) o;
return Objects.equals(this.name, updateProductRequestAllOf.name) &&
Objects.equals(this.productType, updateProductRequestAllOf.productType) &&
Objects.equals(this.description, updateProductRequestAllOf.description) &&
Objects.equals(this.icon, updateProductRequestAllOf.icon) &&
Objects.equals(this.banner, updateProductRequestAllOf.banner) &&
Objects.equals(this.bannerLowResolution, updateProductRequestAllOf.bannerLowResolution) &&
Objects.equals(this.bannerHighResolution, updateProductRequestAllOf.bannerHighResolution) &&
Objects.equals(this.adjustmentFactor, updateProductRequestAllOf.adjustmentFactor) &&
Objects.equals(this.actionTypeAdjustmentFactors, updateProductRequestAllOf.actionTypeAdjustmentFactors);
}
@Override
public int hashCode() {
return Objects.hash(name, productType, description, icon, banner, bannerLowResolution, bannerHighResolution, adjustmentFactor, actionTypeAdjustmentFactors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateProductRequestAllOf {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" productType: ").append(toIndentedString(productType)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" icon: ").append(toIndentedString(icon)).append("\n");
sb.append(" banner: ").append(toIndentedString(banner)).append("\n");
sb.append(" bannerLowResolution: ").append(toIndentedString(bannerLowResolution)).append("\n");
sb.append(" bannerHighResolution: ").append(toIndentedString(bannerHighResolution)).append("\n");
sb.append(" adjustmentFactor: ").append(toIndentedString(adjustmentFactor)).append("\n");
sb.append(" actionTypeAdjustmentFactors: ").append(toIndentedString(actionTypeAdjustmentFactors)).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