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