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

com.autocheckinsurance.sdk.model.Vehicle 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.autocheckinsurance.sdk.model.VehicleHistory;
import com.autocheckinsurance.sdk.model.VehicleInformation;
import com.autocheckinsurance.sdk.model.VehicleOwnershipActivity;
import com.autocheckinsurance.sdk.model.VehicleRecall;
import com.autocheckinsurance.sdk.model.VehicleScoring;
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 vehicle and it's requested data.  NOTE: Data elements returned are dependent on the request.
 */
@ApiModel(description = "The vehicle and it's requested data.  NOTE: Data elements returned are dependent on the request.")

public class Vehicle {
  @SerializedName("history")
  private VehicleHistory history = null;

  @SerializedName("recalls")
  private VehicleRecall recalls = null;

  @SerializedName("referenceNumber")
  private String referenceNumber = null;

  @SerializedName("scoring")
  private VehicleScoring scoring = null;

  @SerializedName("vehicleInformation")
  private VehicleInformation vehicleInformation = null;

  @SerializedName("vehicleOwnerHistory")
  private java.util.List vehicleOwnerHistory = null;

  public Vehicle history(VehicleHistory history) {
    this.history = history;
    return this;
  }

   /**
   * Get history
   * @return history
  **/
  @ApiModelProperty(value = "")
  public VehicleHistory getHistory() {
    return history;
  }

  public void setHistory(VehicleHistory history) {
    this.history = history;
  }

  public Vehicle recalls(VehicleRecall recalls) {
    this.recalls = recalls;
    return this;
  }

   /**
   * recall information for the vehicle
   * @return recalls
  **/
  @ApiModelProperty(value = "recall information for the vehicle")
  public VehicleRecall getRecalls() {
    return recalls;
  }

  public void setRecalls(VehicleRecall recalls) {
    this.recalls = recalls;
  }

  public Vehicle referenceNumber(String referenceNumber) {
    this.referenceNumber = referenceNumber;
    return this;
  }

   /**
   * the reference number for the caller's tracking purposes
   * @return referenceNumber
  **/
  @ApiModelProperty(value = "the reference number for the caller's tracking purposes")
  public String getReferenceNumber() {
    return referenceNumber;
  }

  public void setReferenceNumber(String referenceNumber) {
    this.referenceNumber = referenceNumber;
  }

  public Vehicle scoring(VehicleScoring scoring) {
    this.scoring = scoring;
    return this;
  }

   /**
   * Get scoring
   * @return scoring
  **/
  @ApiModelProperty(value = "")
  public VehicleScoring getScoring() {
    return scoring;
  }

  public void setScoring(VehicleScoring scoring) {
    this.scoring = scoring;
  }

  public Vehicle vehicleInformation(VehicleInformation vehicleInformation) {
    this.vehicleInformation = vehicleInformation;
    return this;
  }

   /**
   * Get vehicleInformation
   * @return vehicleInformation
  **/
  @ApiModelProperty(value = "")
  public VehicleInformation getVehicleInformation() {
    return vehicleInformation;
  }

  public void setVehicleInformation(VehicleInformation vehicleInformation) {
    this.vehicleInformation = vehicleInformation;
  }

  public Vehicle vehicleOwnerHistory(java.util.List vehicleOwnerHistory) {
    this.vehicleOwnerHistory = vehicleOwnerHistory;
    return this;
  }

  public Vehicle addVehicleOwnerHistoryItem(VehicleOwnershipActivity vehicleOwnerHistoryItem) {
    if (this.vehicleOwnerHistory == null) {
      this.vehicleOwnerHistory = new java.util.ArrayList<>();
    }
    this.vehicleOwnerHistory.add(vehicleOwnerHistoryItem);
    return this;
  }

   /**
   * ownership history for the vehicle (Please note that ownership activity is a separately licensed section of the vehicle history responses. Please contact your Red Mountain sales team if you wish to receive ownership activity information)
   * @return vehicleOwnerHistory
  **/
  @ApiModelProperty(value = "ownership history for the vehicle (Please note that ownership activity is a separately licensed section of the vehicle history responses. Please contact your Red Mountain sales team if you wish to receive ownership activity information)")
  public java.util.List getVehicleOwnerHistory() {
    return vehicleOwnerHistory;
  }

  public void setVehicleOwnerHistory(java.util.List vehicleOwnerHistory) {
    this.vehicleOwnerHistory = vehicleOwnerHistory;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Vehicle vehicle = (Vehicle) o;
    return Objects.equals(this.history, vehicle.history) &&
        Objects.equals(this.recalls, vehicle.recalls) &&
        Objects.equals(this.referenceNumber, vehicle.referenceNumber) &&
        Objects.equals(this.scoring, vehicle.scoring) &&
        Objects.equals(this.vehicleInformation, vehicle.vehicleInformation) &&
        Objects.equals(this.vehicleOwnerHistory, vehicle.vehicleOwnerHistory);
  }

  @Override
  public int hashCode() {
    return Objects.hash(history, recalls, referenceNumber, scoring, vehicleInformation, vehicleOwnerHistory);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Vehicle {\n");
    
    sb.append("    history: ").append(toIndentedString(history)).append("\n");
    sb.append("    recalls: ").append(toIndentedString(recalls)).append("\n");
    sb.append("    referenceNumber: ").append(toIndentedString(referenceNumber)).append("\n");
    sb.append("    scoring: ").append(toIndentedString(scoring)).append("\n");
    sb.append("    vehicleInformation: ").append(toIndentedString(vehicleInformation)).append("\n");
    sb.append("    vehicleOwnerHistory: ").append(toIndentedString(vehicleOwnerHistory)).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