com.kibocommerce.sdk.fulfillment.model.CustomerSurvey 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.AuditInfo;
import com.kibocommerce.sdk.fulfillment.model.CustomerSurveyEntry;
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;
/**
* CustomerSurvey
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class CustomerSurvey {
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
private Map attributes = null;
public static final String SERIALIZED_NAME_AUDIT_INFO = "auditInfo";
@SerializedName(SERIALIZED_NAME_AUDIT_INFO)
private AuditInfo auditInfo = null;
public static final String SERIALIZED_NAME_ENTRIES = "entries";
@SerializedName(SERIALIZED_NAME_ENTRIES)
private List entries = null;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_SHIPMENT_NUMBER = "shipmentNumber";
@SerializedName(SERIALIZED_NAME_SHIPMENT_NUMBER)
private Integer shipmentNumber;
public static final String SERIALIZED_NAME_SITE_ID = "siteId";
@SerializedName(SERIALIZED_NAME_SITE_ID)
private Integer siteId;
public static final String SERIALIZED_NAME_TENANT_ID = "tenantId";
@SerializedName(SERIALIZED_NAME_TENANT_ID)
private Integer tenantId;
public CustomerSurvey attributes(Map attributes) {
this.attributes = attributes;
return this;
}
public CustomerSurvey 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 CustomerSurvey auditInfo(AuditInfo auditInfo) {
this.auditInfo = auditInfo;
return this;
}
/**
* Get auditInfo
* @return auditInfo
**/
@ApiModelProperty(value = "")
public AuditInfo getAuditInfo() {
return auditInfo;
}
public void setAuditInfo(AuditInfo auditInfo) {
this.auditInfo = auditInfo;
}
public CustomerSurvey entries(List entries) {
this.entries = entries;
return this;
}
public CustomerSurvey addEntriesItem(CustomerSurveyEntry entriesItem) {
if (this.entries == null) {
this.entries = new ArrayList();
}
this.entries.add(entriesItem);
return this;
}
/**
* Get entries
* @return entries
**/
@ApiModelProperty(value = "")
public List getEntries() {
return entries;
}
public void setEntries(List entries) {
this.entries = entries;
}
public CustomerSurvey 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 CustomerSurvey shipmentNumber(Integer shipmentNumber) {
this.shipmentNumber = shipmentNumber;
return this;
}
/**
* Get shipmentNumber
* @return shipmentNumber
**/
@ApiModelProperty(value = "")
public Integer getShipmentNumber() {
return shipmentNumber;
}
public void setShipmentNumber(Integer shipmentNumber) {
this.shipmentNumber = shipmentNumber;
}
public CustomerSurvey siteId(Integer siteId) {
this.siteId = siteId;
return this;
}
/**
* Get siteId
* @return siteId
**/
@ApiModelProperty(value = "")
public Integer getSiteId() {
return siteId;
}
public void setSiteId(Integer siteId) {
this.siteId = siteId;
}
public CustomerSurvey tenantId(Integer tenantId) {
this.tenantId = tenantId;
return this;
}
/**
* Get tenantId
* @return tenantId
**/
@ApiModelProperty(value = "")
public Integer getTenantId() {
return tenantId;
}
public void setTenantId(Integer tenantId) {
this.tenantId = tenantId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CustomerSurvey customerSurvey = (CustomerSurvey) o;
return Objects.equals(this.attributes, customerSurvey.attributes) &&
Objects.equals(this.auditInfo, customerSurvey.auditInfo) &&
Objects.equals(this.entries, customerSurvey.entries) &&
Objects.equals(this.id, customerSurvey.id) &&
Objects.equals(this.shipmentNumber, customerSurvey.shipmentNumber) &&
Objects.equals(this.siteId, customerSurvey.siteId) &&
Objects.equals(this.tenantId, customerSurvey.tenantId);
}
@Override
public int hashCode() {
return Objects.hash(attributes, auditInfo, entries, id, shipmentNumber, siteId, tenantId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CustomerSurvey {\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" auditInfo: ").append(toIndentedString(auditInfo)).append("\n");
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" shipmentNumber: ").append(toIndentedString(shipmentNumber)).append("\n");
sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n");
sb.append(" tenantId: ").append(toIndentedString(tenantId)).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