001
002package com.commercetools.ml.models.general_category_recommendations;
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 * GeneralCategoryRecommendationPagedQueryResponse
019 */
020@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
021public class GeneralCategoryRecommendationPagedQueryResponseImpl
022        implements GeneralCategoryRecommendationPagedQueryResponse, ModelBase {
023
024    private Long count;
025
026    private Long total;
027
028    private Long offset;
029
030    private java.util.List<com.commercetools.ml.models.general_category_recommendations.GeneralCategoryRecommendation> results;
031
032    @JsonCreator
033    GeneralCategoryRecommendationPagedQueryResponseImpl(@JsonProperty("count") final Long count,
034            @JsonProperty("total") final Long total, @JsonProperty("offset") final Long offset,
035            @JsonProperty("results") final java.util.List<com.commercetools.ml.models.general_category_recommendations.GeneralCategoryRecommendation> results) {
036        this.count = count;
037        this.total = total;
038        this.offset = offset;
039        this.results = results;
040    }
041
042    public GeneralCategoryRecommendationPagedQueryResponseImpl() {
043    }
044
045    /**
046     *
047     */
048
049    public Long getCount() {
050        return this.count;
051    }
052
053    /**
054     *
055     */
056
057    public Long getTotal() {
058        return this.total;
059    }
060
061    /**
062     *  <p>Number of elements skipped.</p>
063     */
064
065    public Long getOffset() {
066        return this.offset;
067    }
068
069    /**
070     *
071     */
072
073    public java.util.List<com.commercetools.ml.models.general_category_recommendations.GeneralCategoryRecommendation> getResults() {
074        return this.results;
075    }
076
077    public void setCount(final Long count) {
078        this.count = count;
079    }
080
081    public void setTotal(final Long total) {
082        this.total = total;
083    }
084
085    public void setOffset(final Long offset) {
086        this.offset = offset;
087    }
088
089    public void setResults(
090            final com.commercetools.ml.models.general_category_recommendations.GeneralCategoryRecommendation... results) {
091        this.results = new ArrayList<>(Arrays.asList(results));
092    }
093
094    public void setResults(
095            final java.util.List<com.commercetools.ml.models.general_category_recommendations.GeneralCategoryRecommendation> results) {
096        this.results = results;
097    }
098
099    @Override
100    public boolean equals(Object o) {
101        if (this == o)
102            return true;
103
104        if (o == null || getClass() != o.getClass())
105            return false;
106
107        GeneralCategoryRecommendationPagedQueryResponseImpl that = (GeneralCategoryRecommendationPagedQueryResponseImpl) o;
108
109        return new EqualsBuilder().append(count, that.count)
110                .append(total, that.total)
111                .append(offset, that.offset)
112                .append(results, that.results)
113                .isEquals();
114    }
115
116    @Override
117    public int hashCode() {
118        return new HashCodeBuilder(17, 37).append(count).append(total).append(offset).append(results).toHashCode();
119    }
120
121}