com.kibocommerce.sdk.fulfillment.model.ManifestRequest Maven / Gradle / Ivy
The newest version!
/*
* Kibo Fulfillment API - Production Profile
* REST API backing the Kibo Fulfiller User Interface
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.kibocommerce.sdk.fulfillment.model;
import java.util.Objects;
import java.util.Arrays;
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 com.kibocommerce.sdk.fulfillment.model.ManifestRequestShipment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* ManifestRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class ManifestRequest {
public static final String SERIALIZED_NAME_CARRIER_ID = "carrierId";
@SerializedName(SERIALIZED_NAME_CARRIER_ID)
private String carrierId;
public static final String SERIALIZED_NAME_INCLUDED_SHIPMENTS = "includedShipments";
@SerializedName(SERIALIZED_NAME_INCLUDED_SHIPMENTS)
private List includedShipments = null;
public static final String SERIALIZED_NAME_LOCATION_CODE = "locationCode";
@SerializedName(SERIALIZED_NAME_LOCATION_CODE)
private String locationCode;
public ManifestRequest carrierId(String carrierId) {
this.carrierId = carrierId;
return this;
}
/**
* Get carrierId
* @return carrierId
**/
@ApiModelProperty(value = "")
public String getCarrierId() {
return carrierId;
}
public void setCarrierId(String carrierId) {
this.carrierId = carrierId;
}
public ManifestRequest includedShipments(List includedShipments) {
this.includedShipments = includedShipments;
return this;
}
public ManifestRequest addIncludedShipmentsItem(ManifestRequestShipment includedShipmentsItem) {
if (this.includedShipments == null) {
this.includedShipments = new ArrayList();
}
this.includedShipments.add(includedShipmentsItem);
return this;
}
/**
* Get includedShipments
* @return includedShipments
**/
@ApiModelProperty(value = "")
public List getIncludedShipments() {
return includedShipments;
}
public void setIncludedShipments(List includedShipments) {
this.includedShipments = includedShipments;
}
public ManifestRequest locationCode(String locationCode) {
this.locationCode = locationCode;
return this;
}
/**
* Get locationCode
* @return locationCode
**/
@ApiModelProperty(value = "")
public String getLocationCode() {
return locationCode;
}
public void setLocationCode(String locationCode) {
this.locationCode = locationCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ManifestRequest manifestRequest = (ManifestRequest) o;
return Objects.equals(this.carrierId, manifestRequest.carrierId) &&
Objects.equals(this.includedShipments, manifestRequest.includedShipments) &&
Objects.equals(this.locationCode, manifestRequest.locationCode);
}
@Override
public int hashCode() {
return Objects.hash(carrierId, includedShipments, locationCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ManifestRequest {\n");
sb.append(" carrierId: ").append(toIndentedString(carrierId)).append("\n");
sb.append(" includedShipments: ").append(toIndentedString(includedShipments)).append("\n");
sb.append(" locationCode: ").append(toIndentedString(locationCode)).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