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

com.criteo.marketing.model.LoyatyPoints Maven / Gradle / Ivy

There is a newer version: 1.0.28
Show newest version
/*
 * Marketing API v.1.0
 * IMPORTANT: This swagger links to Criteo production environment. Any test applied here will thus impact real campaigns.
 *
 * OpenAPI spec version: v.1.0
 * 
 *
 * 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.criteo.marketing.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * LoyatyPoints
 */

public class LoyatyPoints {
  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_POINTS_VALUE = "pointsValue";
  @SerializedName(SERIALIZED_NAME_POINTS_VALUE)
  private Long pointsValue;

  public static final String SERIALIZED_NAME_RATIO = "ratio";
  @SerializedName(SERIALIZED_NAME_RATIO)
  private Double ratio;

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

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public LoyatyPoints pointsValue(Long pointsValue) {
    this.pointsValue = pointsValue;
    return this;
  }

   /**
   * Get pointsValue
   * @return pointsValue
  **/
  @ApiModelProperty(value = "")
  public Long getPointsValue() {
    return pointsValue;
  }

  public void setPointsValue(Long pointsValue) {
    this.pointsValue = pointsValue;
  }

  public LoyatyPoints ratio(Double ratio) {
    this.ratio = ratio;
    return this;
  }

   /**
   * Get ratio
   * @return ratio
  **/
  @ApiModelProperty(value = "")
  public Double getRatio() {
    return ratio;
  }

  public void setRatio(Double ratio) {
    this.ratio = ratio;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LoyatyPoints loyatyPoints = (LoyatyPoints) o;
    return Objects.equals(this.name, loyatyPoints.name) &&
        Objects.equals(this.pointsValue, loyatyPoints.pointsValue) &&
        Objects.equals(this.ratio, loyatyPoints.ratio);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, pointsValue, ratio);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LoyatyPoints {\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    pointsValue: ").append(toIndentedString(pointsValue)).append("\n");
    sb.append("    ratio: ").append(toIndentedString(ratio)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy