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