001 002package com.commercetools.api.models.order; 003 004import java.time.*; 005import java.util.*; 006 007import com.fasterxml.jackson.annotation.JsonCreator; 008import com.fasterxml.jackson.annotation.JsonProperty; 009import com.fasterxml.jackson.databind.annotation.*; 010 011import io.vrap.rmf.base.client.ModelBase; 012import io.vrap.rmf.base.client.utils.Generated; 013 014import org.apache.commons.lang3.builder.EqualsBuilder; 015import org.apache.commons.lang3.builder.HashCodeBuilder; 016 017/** 018 * OrderSearchFullTextValue 019 */ 020@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") 021public class OrderSearchFullTextValueImpl implements OrderSearchFullTextValue, ModelBase { 022 023 private String field; 024 025 private Integer boost; 026 027 private String customType; 028 029 private String value; 030 031 private String language; 032 033 private com.commercetools.api.models.order.OrderSearchMatchType mustMatch; 034 035 /** 036 * create instance with all properties 037 */ 038 @JsonCreator 039 OrderSearchFullTextValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Integer boost, 040 @JsonProperty("customType") final String customType, @JsonProperty("value") final String value, 041 @JsonProperty("language") final String language, 042 @JsonProperty("mustMatch") final com.commercetools.api.models.order.OrderSearchMatchType mustMatch) { 043 this.field = field; 044 this.boost = boost; 045 this.customType = customType; 046 this.value = value; 047 this.language = language; 048 this.mustMatch = mustMatch; 049 } 050 051 /** 052 * create empty instance 053 */ 054 public OrderSearchFullTextValueImpl() { 055 } 056 057 /** 058 * 059 */ 060 061 public String getField() { 062 return this.field; 063 } 064 065 /** 066 * 067 */ 068 069 public Integer getBoost() { 070 return this.boost; 071 } 072 073 /** 074 * 075 */ 076 077 public String getCustomType() { 078 return this.customType; 079 } 080 081 /** 082 * 083 */ 084 085 public String getValue() { 086 return this.value; 087 } 088 089 /** 090 * 091 */ 092 093 public String getLanguage() { 094 return this.language; 095 } 096 097 /** 098 * 099 */ 100 101 public com.commercetools.api.models.order.OrderSearchMatchType getMustMatch() { 102 return this.mustMatch; 103 } 104 105 public void setField(final String field) { 106 this.field = field; 107 } 108 109 public void setBoost(final Integer boost) { 110 this.boost = boost; 111 } 112 113 public void setCustomType(final String customType) { 114 this.customType = customType; 115 } 116 117 public void setValue(final String value) { 118 this.value = value; 119 } 120 121 public void setLanguage(final String language) { 122 this.language = language; 123 } 124 125 public void setMustMatch(final com.commercetools.api.models.order.OrderSearchMatchType mustMatch) { 126 this.mustMatch = mustMatch; 127 } 128 129 @Override 130 public boolean equals(Object o) { 131 if (this == o) 132 return true; 133 134 if (o == null || getClass() != o.getClass()) 135 return false; 136 137 OrderSearchFullTextValueImpl that = (OrderSearchFullTextValueImpl) o; 138 139 return new EqualsBuilder().append(field, that.field) 140 .append(boost, that.boost) 141 .append(customType, that.customType) 142 .append(value, that.value) 143 .append(language, that.language) 144 .append(mustMatch, that.mustMatch) 145 .isEquals(); 146 } 147 148 @Override 149 public int hashCode() { 150 return new HashCodeBuilder(17, 37).append(field) 151 .append(boost) 152 .append(customType) 153 .append(value) 154 .append(language) 155 .append(mustMatch) 156 .toHashCode(); 157 } 158 159}