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

com.autocheckinsurance.sdk.model.VehicleRecall 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.RecallRecord;
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 recall information for a vehicle
 */
@ApiModel(description = "the recall information for a vehicle")

public class VehicleRecall {
  @SerializedName("count")
  private Integer count = null;

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

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

  public VehicleRecall count(Integer count) {
    this.count = count;
    return this;
  }

   /**
   * the number of recall records
   * @return count
  **/
  @ApiModelProperty(value = "the number of recall records")
  public Integer getCount() {
    return count;
  }

  public void setCount(Integer count) {
    this.count = count;
  }

  public VehicleRecall manufacturerURL(String manufacturerURL) {
    this.manufacturerURL = manufacturerURL;
    return this;
  }

   /**
   * the manufacturer's URL
   * @return manufacturerURL
  **/
  @ApiModelProperty(value = "the manufacturer's URL")
  public String getManufacturerURL() {
    return manufacturerURL;
  }

  public void setManufacturerURL(String manufacturerURL) {
    this.manufacturerURL = manufacturerURL;
  }

  public VehicleRecall recallRecords(java.util.List recallRecords) {
    this.recallRecords = recallRecords;
    return this;
  }

  public VehicleRecall addRecallRecordsItem(RecallRecord recallRecordsItem) {
    if (this.recallRecords == null) {
      this.recallRecords = new java.util.ArrayList<>();
    }
    this.recallRecords.add(recallRecordsItem);
    return this;
  }

   /**
   * the list of recalls for the vehicle
   * @return recallRecords
  **/
  @ApiModelProperty(value = "the list of recalls for the vehicle")
  public java.util.List getRecallRecords() {
    return recallRecords;
  }

  public void setRecallRecords(java.util.List recallRecords) {
    this.recallRecords = recallRecords;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    VehicleRecall vehicleRecall = (VehicleRecall) o;
    return Objects.equals(this.count, vehicleRecall.count) &&
        Objects.equals(this.manufacturerURL, vehicleRecall.manufacturerURL) &&
        Objects.equals(this.recallRecords, vehicleRecall.recallRecords);
  }

  @Override
  public int hashCode() {
    return Objects.hash(count, manufacturerURL, recallRecords);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class VehicleRecall {\n");
    
    sb.append("    count: ").append(toIndentedString(count)).append("\n");
    sb.append("    manufacturerURL: ").append(toIndentedString(manufacturerURL)).append("\n");
    sb.append("    recallRecords: ").append(toIndentedString(recallRecords)).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