All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.model.EmailSuppressionInfoPageResponse Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
/*
 * This class is auto generated from the Infobip OpenAPI specification
 * through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
 * powered by the OpenAPI Generator (https://openapi-generator.tech).
 *
 * Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
 * or contact us @ [email protected].
 */

package com.infobip.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * Suppression get response.
 */
public class EmailSuppressionInfoPageResponse {

    private List results = new ArrayList<>();

    private EmailPageDetails paging;

    /**
     * Sets results.
     * 

* Field description: * Suppressed addresses for requested paging information. *

* The field is required. * * @param results * @return This {@link EmailSuppressionInfoPageResponse instance}. */ public EmailSuppressionInfoPageResponse results(List results) { this.results = results; return this; } /** * Adds and item into results. *

* Field description: * Suppressed addresses for requested paging information. *

* The field is required. * * @param resultsItem The item to be added to the list. * @return This {@link EmailSuppressionInfoPageResponse instance}. */ public EmailSuppressionInfoPageResponse addResultsItem(EmailSuppressionInfo resultsItem) { if (this.results == null) { this.results = new ArrayList<>(); } this.results.add(resultsItem); return this; } /** * Returns results. *

* Field description: * Suppressed addresses for requested paging information. *

* The field is required. * * @return results */ @JsonProperty("results") public List getResults() { return results; } /** * Sets results. *

* Field description: * Suppressed addresses for requested paging information. *

* The field is required. * * @param results */ @JsonProperty("results") public void setResults(List results) { this.results = results; } /** * Sets paging. *

* The field is required. * * @param paging * @return This {@link EmailSuppressionInfoPageResponse instance}. */ public EmailSuppressionInfoPageResponse paging(EmailPageDetails paging) { this.paging = paging; return this; } /** * Returns paging. *

* The field is required. * * @return paging */ @JsonProperty("paging") public EmailPageDetails getPaging() { return paging; } /** * Sets paging. *

* The field is required. * * @param paging */ @JsonProperty("paging") public void setPaging(EmailPageDetails paging) { this.paging = paging; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } EmailSuppressionInfoPageResponse emailSuppressionInfoPageResponse = (EmailSuppressionInfoPageResponse) o; return Objects.equals(this.results, emailSuppressionInfoPageResponse.results) && Objects.equals(this.paging, emailSuppressionInfoPageResponse.paging); } @Override public int hashCode() { return Objects.hash(results, paging); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class EmailSuppressionInfoPageResponse {") .append(newLine) .append(" results: ") .append(toIndentedString(results)) .append(newLine) .append(" paging: ") .append(toIndentedString(paging)) .append(newLine) .append("}") .toString(); } private String toIndentedString(Object o) { if (o == null) { return "null"; } String lineSeparator = System.lineSeparator(); String lineSeparatorFollowedByIndentation = lineSeparator + " "; return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy