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    /**
026     * create instance with all properties
027     */
028    @JsonCreator
029    ImageSearchConfigRequestImpl(
030            @JsonProperty("actions") final java.util.List<com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction> actions) {
031        this.actions = actions;
032    }
033
034    /**
035     * create empty instance
036     */
037    public ImageSearchConfigRequestImpl() {
038    }
039
040    /**
041     *  <p>The list of update actions to be performed on the project.</p>
042     */
043
044    public java.util.List<com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction> getActions() {
045        return this.actions;
046    }
047
048    public void setActions(
049            final com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction... actions) {
050        this.actions = new ArrayList<>(Arrays.asList(actions));
051    }
052
053    public void setActions(
054            final java.util.List<com.commercetools.ml.models.image_search_config.ImageSearchConfigUpdateAction> actions) {
055        this.actions = actions;
056    }
057
058    @Override
059    public boolean equals(Object o) {
060        if (this == o)
061            return true;
062
063        if (o == null || getClass() != o.getClass())
064            return false;
065
066        ImageSearchConfigRequestImpl that = (ImageSearchConfigRequestImpl) o;
067
068        return new EqualsBuilder().append(actions, that.actions).append(actions, that.actions).isEquals();
069    }
070
071    @Override
072    public int hashCode() {
073        return new HashCodeBuilder(17, 37).append(actions).toHashCode();
074    }
075
076}