com.kibocommerce.sdk.fulfillment.model.TaskDefinition 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.TaskInput;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* TaskDefinition
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class TaskDefinition {
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_INPUTS = "inputs";
@SerializedName(SERIALIZED_NAME_INPUTS)
private List inputs = null;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_PRIORITY = "priority";
@SerializedName(SERIALIZED_NAME_PRIORITY)
private Integer priority;
public static final String SERIALIZED_NAME_SKIPPABLE = "skippable";
@SerializedName(SERIALIZED_NAME_SKIPPABLE)
private Boolean skippable;
public static final String SERIALIZED_NAME_SUBJECT = "subject";
@SerializedName(SERIALIZED_NAME_SUBJECT)
private String subject;
public TaskDefinition description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public TaskDefinition id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public TaskDefinition inputs(List inputs) {
this.inputs = inputs;
return this;
}
public TaskDefinition addInputsItem(TaskInput inputsItem) {
if (this.inputs == null) {
this.inputs = new ArrayList();
}
this.inputs.add(inputsItem);
return this;
}
/**
* Get inputs
* @return inputs
**/
@ApiModelProperty(value = "")
public List getInputs() {
return inputs;
}
public void setInputs(List inputs) {
this.inputs = inputs;
}
public TaskDefinition 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 TaskDefinition priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* Get priority
* @return priority
**/
@ApiModelProperty(value = "")
public Integer getPriority() {
return priority;
}
public void setPriority(Integer priority) {
this.priority = priority;
}
public TaskDefinition skippable(Boolean skippable) {
this.skippable = skippable;
return this;
}
/**
* Get skippable
* @return skippable
**/
@ApiModelProperty(value = "")
public Boolean getSkippable() {
return skippable;
}
public void setSkippable(Boolean skippable) {
this.skippable = skippable;
}
public TaskDefinition subject(String subject) {
this.subject = subject;
return this;
}
/**
* Get subject
* @return subject
**/
@ApiModelProperty(value = "")
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TaskDefinition taskDefinition = (TaskDefinition) o;
return Objects.equals(this.description, taskDefinition.description) &&
Objects.equals(this.id, taskDefinition.id) &&
Objects.equals(this.inputs, taskDefinition.inputs) &&
Objects.equals(this.name, taskDefinition.name) &&
Objects.equals(this.priority, taskDefinition.priority) &&
Objects.equals(this.skippable, taskDefinition.skippable) &&
Objects.equals(this.subject, taskDefinition.subject);
}
@Override
public int hashCode() {
return Objects.hash(description, id, inputs, name, priority, skippable, subject);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TaskDefinition {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
sb.append(" skippable: ").append(toIndentedString(skippable)).append("\n");
sb.append(" subject: ").append(toIndentedString(subject)).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