001 002package com.commercetools.history.models.common; 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 * ShippingRatePriceTier 019 */ 020@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") 021public class ShippingRatePriceTierImpl implements ShippingRatePriceTier, ModelBase { 022 023 private com.commercetools.history.models.common.ShippingRateTierType type; 024 025 /** 026 * create instance with all properties 027 */ 028 @JsonCreator 029 ShippingRatePriceTierImpl( 030 @JsonProperty("type") final com.commercetools.history.models.common.ShippingRateTierType type) { 031 this.type = type; 032 } 033 034 /** 035 * create empty instance 036 */ 037 public ShippingRatePriceTierImpl() { 038 } 039 040 /** 041 * 042 */ 043 044 public com.commercetools.history.models.common.ShippingRateTierType getType() { 045 return this.type; 046 } 047 048 public void setType(final com.commercetools.history.models.common.ShippingRateTierType type) { 049 this.type = type; 050 } 051 052 @Override 053 public boolean equals(Object o) { 054 if (this == o) 055 return true; 056 057 if (o == null || getClass() != o.getClass()) 058 return false; 059 060 ShippingRatePriceTierImpl that = (ShippingRatePriceTierImpl) o; 061 062 return new EqualsBuilder().append(type, that.type).append(type, that.type).isEquals(); 063 } 064 065 @Override 066 public int hashCode() { 067 return new HashCodeBuilder(17, 37).append(type).toHashCode(); 068 } 069 070}