001
002package com.commercetools.history.models.change_value;
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 * ParcelChangeValue
019 */
020@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
021public class ParcelChangeValueImpl implements ParcelChangeValue, ModelBase {
022
023    private String id;
024
025    private String createdAt;
026
027    /**
028     * create instance with all properties
029     */
030    @JsonCreator
031    ParcelChangeValueImpl(@JsonProperty("id") final String id, @JsonProperty("createdAt") final String createdAt) {
032        this.id = id;
033        this.createdAt = createdAt;
034    }
035
036    /**
037     * create empty instance
038     */
039    public ParcelChangeValueImpl() {
040    }
041
042    /**
043     *  <p><code>id</code> of the Parcel.</p>
044     */
045
046    public String getId() {
047        return this.id;
048    }
049
050    /**
051     *  <p>Date and time (UTC) the Parcel was created.</p>
052     */
053
054    public String getCreatedAt() {
055        return this.createdAt;
056    }
057
058    public void setId(final String id) {
059        this.id = id;
060    }
061
062    public void setCreatedAt(final String createdAt) {
063        this.createdAt = createdAt;
064    }
065
066    @Override
067    public boolean equals(Object o) {
068        if (this == o)
069            return true;
070
071        if (o == null || getClass() != o.getClass())
072            return false;
073
074        ParcelChangeValueImpl that = (ParcelChangeValueImpl) o;
075
076        return new EqualsBuilder().append(id, that.id)
077                .append(createdAt, that.createdAt)
078                .append(id, that.id)
079                .append(createdAt, that.createdAt)
080                .isEquals();
081    }
082
083    @Override
084    public int hashCode() {
085        return new HashCodeBuilder(17, 37).append(id).append(createdAt).toHashCode();
086    }
087
088}