com.ziqni.admin.sdk.model.UpdateProductRequestAllOf Maven / Gradle / Ivy
/*
* 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.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_DESCRIPTION,
UpdateProductRequestAllOf.JSON_PROPERTY_ICON,
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_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_ICON = "icon";
private String icon;
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 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 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.description, updateProductRequestAllOf.description) &&
Objects.equals(this.icon, updateProductRequestAllOf.icon) &&
Objects.equals(this.adjustmentFactor, updateProductRequestAllOf.adjustmentFactor) &&
Objects.equals(this.actionTypeAdjustmentFactors, updateProductRequestAllOf.actionTypeAdjustmentFactors);
}
@Override
public int hashCode() {
return Objects.hash(name, description, icon, 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(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" icon: ").append(toIndentedString(icon)).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