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