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

com.autocheckinsurance.sdk.model.VehicleScoring Maven / Gradle / Ivy

The newest version!
/*
 * ACI Services API
 * API for methods pertaining to all ACI services
 *
 * OpenAPI spec version: 3.0.2
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.autocheckinsurance.sdk.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;

/**
 * the score compared to other vehicles of this make, model, and year
 */
@ApiModel(description = "the score compared to other vehicles of this make, model, and year")

public class VehicleScoring {
  @SerializedName("age")
  private Integer age = null;

  @SerializedName("compareScoreRangeHigh")
  private Integer compareScoreRangeHigh = null;

  @SerializedName("compareScoreRangeLow")
  private Integer compareScoreRangeLow = null;

  @SerializedName("ownerCount")
  private Integer ownerCount = null;

  @SerializedName("score")
  private Integer score = null;

  public VehicleScoring age(Integer age) {
    this.age = age;
    return this;
  }

   /**
   * the vehicle's age
   * @return age
  **/
  @ApiModelProperty(value = "the vehicle's age")
  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }

  public VehicleScoring compareScoreRangeHigh(Integer compareScoreRangeHigh) {
    this.compareScoreRangeHigh = compareScoreRangeHigh;
    return this;
  }

   /**
   * the high end of the score range
   * @return compareScoreRangeHigh
  **/
  @ApiModelProperty(value = "the high end of the score range")
  public Integer getCompareScoreRangeHigh() {
    return compareScoreRangeHigh;
  }

  public void setCompareScoreRangeHigh(Integer compareScoreRangeHigh) {
    this.compareScoreRangeHigh = compareScoreRangeHigh;
  }

  public VehicleScoring compareScoreRangeLow(Integer compareScoreRangeLow) {
    this.compareScoreRangeLow = compareScoreRangeLow;
    return this;
  }

   /**
   * the low end of the score range
   * @return compareScoreRangeLow
  **/
  @ApiModelProperty(value = "the low end of the score range")
  public Integer getCompareScoreRangeLow() {
    return compareScoreRangeLow;
  }

  public void setCompareScoreRangeLow(Integer compareScoreRangeLow) {
    this.compareScoreRangeLow = compareScoreRangeLow;
  }

  public VehicleScoring ownerCount(Integer ownerCount) {
    this.ownerCount = ownerCount;
    return this;
  }

   /**
   * the number of owners
   * @return ownerCount
  **/
  @ApiModelProperty(value = "the number of owners")
  public Integer getOwnerCount() {
    return ownerCount;
  }

  public void setOwnerCount(Integer ownerCount) {
    this.ownerCount = ownerCount;
  }

  public VehicleScoring score(Integer score) {
    this.score = score;
    return this;
  }

   /**
   * the score of this vehicle
   * @return score
  **/
  @ApiModelProperty(value = "the score of this vehicle")
  public Integer getScore() {
    return score;
  }

  public void setScore(Integer score) {
    this.score = score;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    VehicleScoring vehicleScoring = (VehicleScoring) o;
    return Objects.equals(this.age, vehicleScoring.age) &&
        Objects.equals(this.compareScoreRangeHigh, vehicleScoring.compareScoreRangeHigh) &&
        Objects.equals(this.compareScoreRangeLow, vehicleScoring.compareScoreRangeLow) &&
        Objects.equals(this.ownerCount, vehicleScoring.ownerCount) &&
        Objects.equals(this.score, vehicleScoring.score);
  }

  @Override
  public int hashCode() {
    return Objects.hash(age, compareScoreRangeHigh, compareScoreRangeLow, ownerCount, score);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class VehicleScoring {\n");
    
    sb.append("    age: ").append(toIndentedString(age)).append("\n");
    sb.append("    compareScoreRangeHigh: ").append(toIndentedString(compareScoreRangeHigh)).append("\n");
    sb.append("    compareScoreRangeLow: ").append(toIndentedString(compareScoreRangeLow)).append("\n");
    sb.append("    ownerCount: ").append(toIndentedString(ownerCount)).append("\n");
    sb.append("    score: ").append(toIndentedString(score)).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