All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.importapi.models.orders.SyncInfoImpl Maven / Gradle / Ivy

There is a newer version: 17.15.1
Show newest version

package com.commercetools.importapi.models.orders;

import java.time.*;
import java.util.*;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.*;

import io.vrap.rmf.base.client.ModelBase;
import io.vrap.rmf.base.client.utils.Generated;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * SyncInfo
 */
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class SyncInfoImpl implements SyncInfo, ModelBase {

    private com.commercetools.importapi.models.common.ChannelKeyReference channel;

    private String externalId;

    private java.time.ZonedDateTime syncedAt;

    /**
     * create instance with all properties
     */
    @JsonCreator
    SyncInfoImpl(@JsonProperty("channel") final com.commercetools.importapi.models.common.ChannelKeyReference channel,
            @JsonProperty("externalId") final String externalId,
            @JsonProperty("syncedAt") final java.time.ZonedDateTime syncedAt) {
        this.channel = channel;
        this.externalId = externalId;
        this.syncedAt = syncedAt;
    }

    /**
     * create empty instance
     */
    public SyncInfoImpl() {
    }

    /**
     *  

Maps to SyncInfo.channel

*/ public com.commercetools.importapi.models.common.ChannelKeyReference getChannel() { return this.channel; } /** *

Maps to SyncInfo.externalId

*/ public String getExternalId() { return this.externalId; } /** *

Maps to SyncInfo.syncedAt

*/ public java.time.ZonedDateTime getSyncedAt() { return this.syncedAt; } public void setChannel(final com.commercetools.importapi.models.common.ChannelKeyReference channel) { this.channel = channel; } public void setExternalId(final String externalId) { this.externalId = externalId; } public void setSyncedAt(final java.time.ZonedDateTime syncedAt) { this.syncedAt = syncedAt; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SyncInfoImpl that = (SyncInfoImpl) o; return new EqualsBuilder().append(channel, that.channel) .append(externalId, that.externalId) .append(syncedAt, that.syncedAt) .append(channel, that.channel) .append(externalId, that.externalId) .append(syncedAt, that.syncedAt) .isEquals(); } @Override public int hashCode() { return new HashCodeBuilder(17, 37).append(channel).append(externalId).append(syncedAt).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("channel", channel) .append("externalId", externalId) .append("syncedAt", syncedAt) .build(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy