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

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


/**
 * UpdateProductRequestAllOf
 */
@JsonPropertyOrder({
  UpdateProductRequestAllOf.JSON_PROPERTY_NAME,
  UpdateProductRequestAllOf.JSON_PROPERTY_DESCRIPTION,
  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_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 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.adjustmentFactor, updateProductRequestAllOf.adjustmentFactor) &&
        Objects.equals(this.actionTypeAdjustmentFactors, updateProductRequestAllOf.actionTypeAdjustmentFactors);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, description, 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("    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 - 2024 Weber Informatics LLC | Privacy Policy