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