com.kibocommerce.sdk.fulfillment.model.PackageMeasurements 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.Measurement;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* PackageMeasurements
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class PackageMeasurements {
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
private Map attributes = null;
public static final String SERIALIZED_NAME_HEIGHT = "height";
@SerializedName(SERIALIZED_NAME_HEIGHT)
private Measurement height = null;
public static final String SERIALIZED_NAME_LENGTH = "length";
@SerializedName(SERIALIZED_NAME_LENGTH)
private Measurement length = null;
public static final String SERIALIZED_NAME_WEIGHT = "weight";
@SerializedName(SERIALIZED_NAME_WEIGHT)
private Measurement weight = null;
public static final String SERIALIZED_NAME_WIDTH = "width";
@SerializedName(SERIALIZED_NAME_WIDTH)
private Measurement width = null;
public PackageMeasurements attributes(Map attributes) {
this.attributes = attributes;
return this;
}
public PackageMeasurements putAttributesItem(String key, Object attributesItem) {
if (this.attributes == null) {
this.attributes = new HashMap();
}
this.attributes.put(key, attributesItem);
return this;
}
/**
* Get attributes
* @return attributes
**/
@ApiModelProperty(value = "")
public Map getAttributes() {
return attributes;
}
public void setAttributes(Map attributes) {
this.attributes = attributes;
}
public PackageMeasurements height(Measurement height) {
this.height = height;
return this;
}
/**
* Get height
* @return height
**/
@ApiModelProperty(value = "")
public Measurement getHeight() {
return height;
}
public void setHeight(Measurement height) {
this.height = height;
}
public PackageMeasurements length(Measurement length) {
this.length = length;
return this;
}
/**
* Get length
* @return length
**/
@ApiModelProperty(value = "")
public Measurement getLength() {
return length;
}
public void setLength(Measurement length) {
this.length = length;
}
public PackageMeasurements weight(Measurement weight) {
this.weight = weight;
return this;
}
/**
* Get weight
* @return weight
**/
@ApiModelProperty(value = "")
public Measurement getWeight() {
return weight;
}
public void setWeight(Measurement weight) {
this.weight = weight;
}
public PackageMeasurements width(Measurement width) {
this.width = width;
return this;
}
/**
* Get width
* @return width
**/
@ApiModelProperty(value = "")
public Measurement getWidth() {
return width;
}
public void setWidth(Measurement width) {
this.width = width;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PackageMeasurements packageMeasurements = (PackageMeasurements) o;
return Objects.equals(this.attributes, packageMeasurements.attributes) &&
Objects.equals(this.height, packageMeasurements.height) &&
Objects.equals(this.length, packageMeasurements.length) &&
Objects.equals(this.weight, packageMeasurements.weight) &&
Objects.equals(this.width, packageMeasurements.width);
}
@Override
public int hashCode() {
return Objects.hash(attributes, height, length, weight, width);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PackageMeasurements {\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" height: ").append(toIndentedString(height)).append("\n");
sb.append(" length: ").append(toIndentedString(length)).append("\n");
sb.append(" weight: ").append(toIndentedString(weight)).append("\n");
sb.append(" width: ").append(toIndentedString(width)).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