
com.infobip.model.EmailLogsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-api-java-client Show documentation
Show all versions of infobip-api-java-client Show documentation
API client in Java for Infobip's API (http://dev.infobip.com/).
/*
* Infobip Client API Libraries OpenAPI Specification
* OpenAPI specification containing public endpoints supported in client API libraries.
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.infobip.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** EmailLogsResult */
public class EmailLogsResult {
public static final String SERIALIZED_NAME_RESULTS = "results";
@SerializedName(SERIALIZED_NAME_RESULTS)
private List results = null;
public EmailLogsResult results(List results) {
this.results = results;
return this;
}
public EmailLogsResult addResultsItem(EmailLog resultsItem) {
if (this.results == null) {
this.results = new ArrayList<>();
}
this.results.add(resultsItem);
return this;
}
/**
* Get results
*
* @return results
*/
public List getResults() {
return results;
}
public void setResults(List results) {
this.results = results;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmailLogsResult emailLogsResult = (EmailLogsResult) o;
return Objects.equals(this.results, emailLogsResult.results);
}
@Override
public int hashCode() {
return Objects.hash(results);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmailLogsResult {\n");
sb.append(" results: ").append(toIndentedString(results)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy