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

com.ziqni.admin.sdk.model.ProductAllOf 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.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;


/**
 * ProductAllOf
 */
@JsonPropertyOrder({
  ProductAllOf.JSON_PROPERTY_NAME,
  ProductAllOf.JSON_PROPERTY_DESCRIPTION,
  ProductAllOf.JSON_PROPERTY_ADJUSTMENT_FACTOR,
  ProductAllOf.JSON_PROPERTY_PRODUCT_REF_ID,
  ProductAllOf.JSON_PROPERTY_ACTION_TYPE_ADJUSTMENT_FACTORS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductAllOf {
  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_ADJUSTMENT_FACTOR = "adjustmentFactor";
  private Double adjustmentFactor;

  public static final String JSON_PROPERTY_PRODUCT_REF_ID = "productRefId";
  private String productRefId;

  public static final String JSON_PROPERTY_ACTION_TYPE_ADJUSTMENT_FACTORS = "actionTypeAdjustmentFactors";
  private List actionTypeAdjustmentFactors = null;


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

   /**
   * The name of the product
   * @return name
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "Hockey madness", required = true, value = "The name of the product")
  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getName() {
    return name;
  }


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


  public ProductAllOf 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 ProductAllOf adjustmentFactor(Double adjustmentFactor) {
    this.adjustmentFactor = adjustmentFactor;
    return this;
  }

   /**
   * The multiplier to apply to source values received for this product events
   * @return adjustmentFactor
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "1", required = true, value = "The multiplier to apply to source values received for this product events")
  @JsonProperty(JSON_PROPERTY_ADJUSTMENT_FACTOR)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getAdjustmentFactor() {
    return adjustmentFactor;
  }


  @JsonProperty(JSON_PROPERTY_ADJUSTMENT_FACTOR)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setAdjustmentFactor(Double adjustmentFactor) {
    this.adjustmentFactor = adjustmentFactor;
  }


  public ProductAllOf productRefId(String productRefId) {
    this.productRefId = productRefId;
    return this;
  }

   /**
   * The reference to this product in your system. The reference identifier can not be changed after the product has been created
   * @return productRefId
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "hockey-madness", required = true, value = "The reference to this product in your system. The reference identifier can not be changed after the product has been created")
  @JsonProperty(JSON_PROPERTY_PRODUCT_REF_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getProductRefId() {
    return productRefId;
  }


  @JsonProperty(JSON_PROPERTY_PRODUCT_REF_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setProductRefId(String productRefId) {
    this.productRefId = productRefId;
  }


  public ProductAllOf actionTypeAdjustmentFactors(List actionTypeAdjustmentFactors) {
    this.actionTypeAdjustmentFactors = actionTypeAdjustmentFactors;
    return this;
  }

  public ProductAllOf 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 Product_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;
    }
    ProductAllOf productAllOf = (ProductAllOf) o;
    return Objects.equals(this.name, productAllOf.name) &&
        Objects.equals(this.description, productAllOf.description) &&
        Objects.equals(this.adjustmentFactor, productAllOf.adjustmentFactor) &&
        Objects.equals(this.productRefId, productAllOf.productRefId) &&
        Objects.equals(this.actionTypeAdjustmentFactors, productAllOf.actionTypeAdjustmentFactors);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, description, adjustmentFactor, productRefId, actionTypeAdjustmentFactors);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProductAllOf {\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    adjustmentFactor: ").append(toIndentedString(adjustmentFactor)).append("\n");
    sb.append("    productRefId: ").append(toIndentedString(productRefId)).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 - 2024 Weber Informatics LLC | Privacy Policy