
com.graphhopper.routeopt.client.model.Shipment Maven / Gradle / Ivy
/**
* Route Optimization API
* Our Route Optimization API solves the so called vehicle routing problem fast. It calculates an optimal tour for a set of vehicles, services and constraints
*
* 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.graphhopper.routeopt.client.model;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import com.graphhopper.routeopt.client.model.Stop;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Shipment
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-09-22T09:15:07.913+02:00")
public class Shipment {
@SerializedName("id")
private String id = null;
@SerializedName("name")
private String name = null;
@SerializedName("priority")
private Integer priority = null;
@SerializedName("pickup")
private Stop pickup = null;
@SerializedName("delivery")
private Stop delivery = null;
@SerializedName("size")
private List size = new ArrayList();
@SerializedName("required_skills")
private List requiredSkills = new ArrayList();
@SerializedName("allowed_vehicles")
private List allowedVehicles = new ArrayList();
public Shipment id(String id) {
this.id = id;
return this;
}
/**
* Unique identifier of service
* @return id
**/
@ApiModelProperty(example = "null", value = "Unique identifier of service")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Shipment name(String name) {
this.name = name;
return this;
}
/**
* name of shipment
* @return name
**/
@ApiModelProperty(example = "null", value = "name of shipment")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Shipment priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* priority of service, i.e. 1 = high, 2 = normal, 3 = low. default is 2.
* @return priority
**/
@ApiModelProperty(example = "null", value = "priority of service, i.e. 1 = high, 2 = normal, 3 = low. default is 2.")
public Integer getPriority() {
return priority;
}
public void setPriority(Integer priority) {
this.priority = priority;
}
public Shipment pickup(Stop pickup) {
this.pickup = pickup;
return this;
}
/**
* Get pickup
* @return pickup
**/
@ApiModelProperty(example = "null", value = "")
public Stop getPickup() {
return pickup;
}
public void setPickup(Stop pickup) {
this.pickup = pickup;
}
public Shipment delivery(Stop delivery) {
this.delivery = delivery;
return this;
}
/**
* Get delivery
* @return delivery
**/
@ApiModelProperty(example = "null", value = "")
public Stop getDelivery() {
return delivery;
}
public void setDelivery(Stop delivery) {
this.delivery = delivery;
}
public Shipment size(List size) {
this.size = size;
return this;
}
public Shipment addSizeItem(Integer sizeItem) {
this.size.add(sizeItem);
return this;
}
/**
* array of capacity dimensions
* @return size
**/
@ApiModelProperty(example = "null", value = "array of capacity dimensions")
public List getSize() {
return size;
}
public void setSize(List size) {
this.size = size;
}
public Shipment requiredSkills(List requiredSkills) {
this.requiredSkills = requiredSkills;
return this;
}
public Shipment addRequiredSkillsItem(String requiredSkillsItem) {
this.requiredSkills.add(requiredSkillsItem);
return this;
}
/**
* array of required skills
* @return requiredSkills
**/
@ApiModelProperty(example = "null", value = "array of required skills")
public List getRequiredSkills() {
return requiredSkills;
}
public void setRequiredSkills(List requiredSkills) {
this.requiredSkills = requiredSkills;
}
public Shipment allowedVehicles(List allowedVehicles) {
this.allowedVehicles = allowedVehicles;
return this;
}
public Shipment addAllowedVehiclesItem(String allowedVehiclesItem) {
this.allowedVehicles.add(allowedVehiclesItem);
return this;
}
/**
* array of allowed vehicle ids
* @return allowedVehicles
**/
@ApiModelProperty(example = "null", value = "array of allowed vehicle ids")
public List getAllowedVehicles() {
return allowedVehicles;
}
public void setAllowedVehicles(List allowedVehicles) {
this.allowedVehicles = allowedVehicles;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Shipment shipment = (Shipment) o;
return Objects.equals(this.id, shipment.id) &&
Objects.equals(this.name, shipment.name) &&
Objects.equals(this.priority, shipment.priority) &&
Objects.equals(this.pickup, shipment.pickup) &&
Objects.equals(this.delivery, shipment.delivery) &&
Objects.equals(this.size, shipment.size) &&
Objects.equals(this.requiredSkills, shipment.requiredSkills) &&
Objects.equals(this.allowedVehicles, shipment.allowedVehicles);
}
@Override
public int hashCode() {
return Objects.hash(id, name, priority, pickup, delivery, size, requiredSkills, allowedVehicles);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Shipment {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
sb.append(" pickup: ").append(toIndentedString(pickup)).append("\n");
sb.append(" delivery: ").append(toIndentedString(delivery)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" requiredSkills: ").append(toIndentedString(requiredSkills)).append("\n");
sb.append(" allowedVehicles: ").append(toIndentedString(allowedVehicles)).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 - 2025 Weber Informatics LLC | Privacy Policy