com.kibocommerce.sdk.fulfillment.model.HandleOption 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.Item;
import com.kibocommerce.sdk.fulfillment.model.TaskReason;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* HandleOption
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class HandleOption {
public static final String SERIALIZED_NAME_BLOCK_ASSIGNMENT = "blockAssignment";
@SerializedName(SERIALIZED_NAME_BLOCK_ASSIGNMENT)
private Boolean blockAssignment;
public static final String SERIALIZED_NAME_ITEMS = "items";
@SerializedName(SERIALIZED_NAME_ITEMS)
private List- items = null;
public static final String SERIALIZED_NAME_REASON = "reason";
@SerializedName(SERIALIZED_NAME_REASON)
private TaskReason reason = null;
public HandleOption blockAssignment(Boolean blockAssignment) {
this.blockAssignment = blockAssignment;
return this;
}
/**
* Get blockAssignment
* @return blockAssignment
**/
@ApiModelProperty(value = "")
public Boolean getBlockAssignment() {
return blockAssignment;
}
public void setBlockAssignment(Boolean blockAssignment) {
this.blockAssignment = blockAssignment;
}
public HandleOption items(List
- items) {
this.items = items;
return this;
}
public HandleOption addItemsItem(Item itemsItem) {
if (this.items == null) {
this.items = new ArrayList
- ();
}
this.items.add(itemsItem);
return this;
}
/**
* Get items
* @return items
**/
@ApiModelProperty(value = "")
public List
- getItems() {
return items;
}
public void setItems(List
- items) {
this.items = items;
}
public HandleOption reason(TaskReason reason) {
this.reason = reason;
return this;
}
/**
* Get reason
* @return reason
**/
@ApiModelProperty(value = "")
public TaskReason getReason() {
return reason;
}
public void setReason(TaskReason reason) {
this.reason = reason;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HandleOption handleOption = (HandleOption) o;
return Objects.equals(this.blockAssignment, handleOption.blockAssignment) &&
Objects.equals(this.items, handleOption.items) &&
Objects.equals(this.reason, handleOption.reason);
}
@Override
public int hashCode() {
return Objects.hash(blockAssignment, items, reason);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HandleOption {\n");
sb.append(" blockAssignment: ").append(toIndentedString(blockAssignment)).append("\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append(" reason: ").append(toIndentedString(reason)).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