com.github.jonahwh.tesla_api_client.model.DestinationCharger Maven / Gradle / Ivy
/*
* Tesla Model S JSON API
* TODO: Add a description
*
* OpenAPI spec version: 1.0
*
*
* 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.github.jonahwh.tesla_api_client.model;
import java.util.Objects;
import java.util.Arrays;
import com.github.jonahwh.tesla_api_client.model.DestinationChargerLocation;
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;
/**
* DestinationCharger
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-04-11T20:35:46.716-07:00")
public class DestinationCharger {
@SerializedName("location")
private DestinationChargerLocation location = null;
@SerializedName("name")
private String name = null;
@SerializedName("type")
private String type = "destination";
@SerializedName("distance_miles")
private Double distanceMiles = null;
public DestinationCharger location(DestinationChargerLocation location) {
this.location = location;
return this;
}
/**
* Get location
* @return location
**/
@ApiModelProperty(value = "")
public DestinationChargerLocation getLocation() {
return location;
}
public void setLocation(DestinationChargerLocation location) {
this.location = location;
}
public DestinationCharger 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 DestinationCharger type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public DestinationCharger distanceMiles(Double distanceMiles) {
this.distanceMiles = distanceMiles;
return this;
}
/**
* Get distanceMiles
* @return distanceMiles
**/
@ApiModelProperty(value = "")
public Double getDistanceMiles() {
return distanceMiles;
}
public void setDistanceMiles(Double distanceMiles) {
this.distanceMiles = distanceMiles;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DestinationCharger destinationCharger = (DestinationCharger) o;
return Objects.equals(this.location, destinationCharger.location) &&
Objects.equals(this.name, destinationCharger.name) &&
Objects.equals(this.type, destinationCharger.type) &&
Objects.equals(this.distanceMiles, destinationCharger.distanceMiles);
}
@Override
public int hashCode() {
return Objects.hash(location, name, type, distanceMiles);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DestinationCharger {\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" distanceMiles: ").append(toIndentedString(distanceMiles)).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 ");
}
}