com.kibocommerce.sdk.fulfillment.model.PickWaveProductMatch 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 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;
/**
* PickWaveProductMatch
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class PickWaveProductMatch {
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
private Map attributes = null;
/**
* Gets or Sets identifier
*/
@JsonAdapter(IdentifierEnum.Adapter.class)
public enum IdentifierEnum {
UPC("UPC"),
PRODUCT_CODE("PRODUCT_CODE");
private String value;
IdentifierEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IdentifierEnum fromValue(String text) {
for (IdentifierEnum b : IdentifierEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final IdentifierEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IdentifierEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IdentifierEnum.fromValue(String.valueOf(value));
}
}
}
public static final String SERIALIZED_NAME_IDENTIFIER = "identifier";
@SerializedName(SERIALIZED_NAME_IDENTIFIER)
private IdentifierEnum identifier;
/**
* Gets or Sets matchType
*/
@JsonAdapter(MatchTypeEnum.Adapter.class)
public enum MatchTypeEnum {
EXACT("EXACT"),
CONTAINS("CONTAINS"),
STARTS_WITH("STARTS_WITH"),
ENDS_WITH("ENDS_WITH");
private String value;
MatchTypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static MatchTypeEnum fromValue(String text) {
for (MatchTypeEnum b : MatchTypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final MatchTypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public MatchTypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return MatchTypeEnum.fromValue(String.valueOf(value));
}
}
}
public static final String SERIALIZED_NAME_MATCH_TYPE = "matchType";
@SerializedName(SERIALIZED_NAME_MATCH_TYPE)
private MatchTypeEnum matchType;
public static final String SERIALIZED_NAME_VALUE = "value";
@SerializedName(SERIALIZED_NAME_VALUE)
private String value;
public PickWaveProductMatch attributes(Map attributes) {
this.attributes = attributes;
return this;
}
public PickWaveProductMatch 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 PickWaveProductMatch identifier(IdentifierEnum identifier) {
this.identifier = identifier;
return this;
}
/**
* Get identifier
* @return identifier
**/
@ApiModelProperty(value = "")
public IdentifierEnum getIdentifier() {
return identifier;
}
public void setIdentifier(IdentifierEnum identifier) {
this.identifier = identifier;
}
public PickWaveProductMatch matchType(MatchTypeEnum matchType) {
this.matchType = matchType;
return this;
}
/**
* Get matchType
* @return matchType
**/
@ApiModelProperty(value = "")
public MatchTypeEnum getMatchType() {
return matchType;
}
public void setMatchType(MatchTypeEnum matchType) {
this.matchType = matchType;
}
public PickWaveProductMatch value(String value) {
this.value = value;
return this;
}
/**
* Get value
* @return value
**/
@ApiModelProperty(value = "")
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PickWaveProductMatch pickWaveProductMatch = (PickWaveProductMatch) o;
return Objects.equals(this.attributes, pickWaveProductMatch.attributes) &&
Objects.equals(this.identifier, pickWaveProductMatch.identifier) &&
Objects.equals(this.matchType, pickWaveProductMatch.matchType) &&
Objects.equals(this.value, pickWaveProductMatch.value);
}
@Override
public int hashCode() {
return Objects.hash(attributes, identifier, matchType, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PickWaveProductMatch {\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n");
sb.append(" matchType: ").append(toIndentedString(matchType)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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