All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kibocommerce.sdk.fulfillment.model.EntityModelOfWorkflowProcess 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.Links;
import com.kibocommerce.sdk.fulfillment.model.TaskDefinition;
import com.kibocommerce.sdk.fulfillment.model.WorkflowProcessVariable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * EntityModelOfWorkflowProcess
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class EntityModelOfWorkflowProcess {
  public static final String SERIALIZED_NAME_LINKS = "_links";
  @SerializedName(SERIALIZED_NAME_LINKS)
  private Links links = null;

  public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
  @SerializedName(SERIALIZED_NAME_ATTRIBUTES)
  private Map attributes = null;

  public static final String SERIALIZED_NAME_CONTAINER_ALIAS = "containerAlias";
  @SerializedName(SERIALIZED_NAME_CONTAINER_ALIAS)
  private String containerAlias;

  public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId";
  @SerializedName(SERIALIZED_NAME_CONTAINER_ID)
  private String containerId;

  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_TASKS = "tasks";
  @SerializedName(SERIALIZED_NAME_TASKS)
  private List tasks = null;

  public static final String SERIALIZED_NAME_VARIABLES = "variables";
  @SerializedName(SERIALIZED_NAME_VARIABLES)
  private List variables = null;

  public static final String SERIALIZED_NAME_VERSION = "version";
  @SerializedName(SERIALIZED_NAME_VERSION)
  private String version;

  public EntityModelOfWorkflowProcess links(Links links) {
    this.links = links;
    return this;
  }

   /**
   * Get links
   * @return links
  **/
  @ApiModelProperty(value = "")
  public Links getLinks() {
    return links;
  }

  public void setLinks(Links links) {
    this.links = links;
  }

  public EntityModelOfWorkflowProcess attributes(Map attributes) {
    this.attributes = attributes;
    return this;
  }

  public EntityModelOfWorkflowProcess 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 EntityModelOfWorkflowProcess containerAlias(String containerAlias) {
    this.containerAlias = containerAlias;
    return this;
  }

   /**
   * Get containerAlias
   * @return containerAlias
  **/
  @ApiModelProperty(value = "")
  public String getContainerAlias() {
    return containerAlias;
  }

  public void setContainerAlias(String containerAlias) {
    this.containerAlias = containerAlias;
  }

  public EntityModelOfWorkflowProcess containerId(String containerId) {
    this.containerId = containerId;
    return this;
  }

   /**
   * Get containerId
   * @return containerId
  **/
  @ApiModelProperty(value = "")
  public String getContainerId() {
    return containerId;
  }

  public void setContainerId(String containerId) {
    this.containerId = containerId;
  }

  public EntityModelOfWorkflowProcess 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 EntityModelOfWorkflowProcess tasks(List tasks) {
    this.tasks = tasks;
    return this;
  }

  public EntityModelOfWorkflowProcess addTasksItem(TaskDefinition tasksItem) {
    if (this.tasks == null) {
      this.tasks = new ArrayList();
    }
    this.tasks.add(tasksItem);
    return this;
  }

   /**
   * Get tasks
   * @return tasks
  **/
  @ApiModelProperty(value = "")
  public List getTasks() {
    return tasks;
  }

  public void setTasks(List tasks) {
    this.tasks = tasks;
  }

  public EntityModelOfWorkflowProcess variables(List variables) {
    this.variables = variables;
    return this;
  }

  public EntityModelOfWorkflowProcess addVariablesItem(WorkflowProcessVariable variablesItem) {
    if (this.variables == null) {
      this.variables = new ArrayList();
    }
    this.variables.add(variablesItem);
    return this;
  }

   /**
   * Get variables
   * @return variables
  **/
  @ApiModelProperty(value = "")
  public List getVariables() {
    return variables;
  }

  public void setVariables(List variables) {
    this.variables = variables;
  }

  public EntityModelOfWorkflowProcess version(String version) {
    this.version = version;
    return this;
  }

   /**
   * Get version
   * @return version
  **/
  @ApiModelProperty(value = "")
  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EntityModelOfWorkflowProcess entityModelOfWorkflowProcess = (EntityModelOfWorkflowProcess) o;
    return Objects.equals(this.links, entityModelOfWorkflowProcess.links) &&
        Objects.equals(this.attributes, entityModelOfWorkflowProcess.attributes) &&
        Objects.equals(this.containerAlias, entityModelOfWorkflowProcess.containerAlias) &&
        Objects.equals(this.containerId, entityModelOfWorkflowProcess.containerId) &&
        Objects.equals(this.id, entityModelOfWorkflowProcess.id) &&
        Objects.equals(this.tasks, entityModelOfWorkflowProcess.tasks) &&
        Objects.equals(this.variables, entityModelOfWorkflowProcess.variables) &&
        Objects.equals(this.version, entityModelOfWorkflowProcess.version);
  }

  @Override
  public int hashCode() {
    return Objects.hash(links, attributes, containerAlias, containerId, id, tasks, variables, version);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EntityModelOfWorkflowProcess {\n");
    
    sb.append("    links: ").append(toIndentedString(links)).append("\n");
    sb.append("    attributes: ").append(toIndentedString(attributes)).append("\n");
    sb.append("    containerAlias: ").append(toIndentedString(containerAlias)).append("\n");
    sb.append("    containerId: ").append(toIndentedString(containerId)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    tasks: ").append(toIndentedString(tasks)).append("\n");
    sb.append("    variables: ").append(toIndentedString(variables)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).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