001 002package com.commercetools.ml.models.image_search_config; 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 * ImageSearchConfigResponse 019 */ 020@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") 021public class ImageSearchConfigResponseImpl implements ImageSearchConfigResponse, ModelBase { 022 023 private com.commercetools.ml.models.image_search_config.ImageSearchConfigStatus status; 024 025 private java.time.ZonedDateTime lastModifiedAt; 026 027 @JsonCreator 028 ImageSearchConfigResponseImpl( 029 @JsonProperty("status") final com.commercetools.ml.models.image_search_config.ImageSearchConfigStatus status, 030 @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt) { 031 this.status = status; 032 this.lastModifiedAt = lastModifiedAt; 033 } 034 035 public ImageSearchConfigResponseImpl() { 036 } 037 038 /** 039 * <p>The image search activation status.</p> 040 */ 041 042 public com.commercetools.ml.models.image_search_config.ImageSearchConfigStatus getStatus() { 043 return this.status; 044 } 045 046 /** 047 * 048 */ 049 050 public java.time.ZonedDateTime getLastModifiedAt() { 051 return this.lastModifiedAt; 052 } 053 054 public void setStatus(final com.commercetools.ml.models.image_search_config.ImageSearchConfigStatus status) { 055 this.status = status; 056 } 057 058 public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { 059 this.lastModifiedAt = lastModifiedAt; 060 } 061 062 @Override 063 public boolean equals(Object o) { 064 if (this == o) 065 return true; 066 067 if (o == null || getClass() != o.getClass()) 068 return false; 069 070 ImageSearchConfigResponseImpl that = (ImageSearchConfigResponseImpl) o; 071 072 return new EqualsBuilder().append(status, that.status).append(lastModifiedAt, that.lastModifiedAt).isEquals(); 073 } 074 075 @Override 076 public int hashCode() { 077 return new HashCodeBuilder(17, 37).append(status).append(lastModifiedAt).toHashCode(); 078 } 079 080}