com.autotec.sdk.model.Vehicle Maven / Gradle / Ivy
The newest version!
/*
* AutoTec Services API
* API for methods pertaining to all AutoTec services
*
* OpenAPI spec version: 1.0.6
*
*
* 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.autotec.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.autotec.sdk.model.VehicleHistory;
import com.autotec.sdk.model.VehicleInformation;
import com.autotec.sdk.model.VehicleOwnershipActivity;
import com.autotec.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;
/**
* Vehicle
*/
public class Vehicle {
@SerializedName("history")
private VehicleHistory history = 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 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
* @return vehicleOwnerHistory
**/
@ApiModelProperty(value = "ownership history for the vehicle")
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.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, 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(" 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 ");
}
}