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 * ImageSearchConfigUpdateAction 019 */ 020@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") 021public class ImageSearchConfigUpdateActionImpl implements ImageSearchConfigUpdateAction, ModelBase { 022 023 private String action; 024 025 @JsonCreator 026 ImageSearchConfigUpdateActionImpl(@JsonProperty("action") final String action) { 027 this.action = action; 028 } 029 030 public ImageSearchConfigUpdateActionImpl() { 031 } 032 033 /** 034 * 035 */ 036 037 public String getAction() { 038 return this.action; 039 } 040 041 @Override 042 public boolean equals(Object o) { 043 if (this == o) 044 return true; 045 046 if (o == null || getClass() != o.getClass()) 047 return false; 048 049 ImageSearchConfigUpdateActionImpl that = (ImageSearchConfigUpdateActionImpl) o; 050 051 return new EqualsBuilder().append(action, that.action).isEquals(); 052 } 053 054 @Override 055 public int hashCode() { 056 return new HashCodeBuilder(17, 37).append(action).toHashCode(); 057 } 058 059}