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 * ImageSearchConfigRequest
019 */
020@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
021public class ImageSearchConfigRequestImpl implements ImageSearchConfigRequest, ModelBase {
022
023    private java.util.List<com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction> actions;
024
025    @JsonCreator
026    ImageSearchConfigRequestImpl(
027            @JsonProperty("actions") final java.util.List<com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction> actions) {
028        this.actions = actions;
029    }
030
031    public ImageSearchConfigRequestImpl() {
032    }
033
034    /**
035     *  <p>The list of update actions to be performed on the project.</p>
036     */
037
038    public java.util.List<com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction> getActions() {
039        return this.actions;
040    }
041
042    public void setActions(
043            final com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction... actions) {
044        this.actions = new ArrayList<>(Arrays.asList(actions));
045    }
046
047    public void setActions(
048            final java.util.List<com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction> actions) {
049        this.actions = actions;
050    }
051
052    @Override
053    public boolean equals(Object o) {
054        if (this == o)
055            return true;
056
057        if (o == null || getClass() != o.getClass())
058            return false;
059
060        ImageSearchConfigRequestImpl that = (ImageSearchConfigRequestImpl) o;
061
062        return new EqualsBuilder().append(actions, that.actions).isEquals();
063    }
064
065    @Override
066    public int hashCode() {
067        return new HashCodeBuilder(17, 37).append(actions).toHashCode();
068    }
069
070}