
com.infobip.model.SmsDeliveryResult Maven / Gradle / Ivy
/*
* 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;
/**
* Represents SmsDeliveryResult model.
*/
public class SmsDeliveryResult {
private List results = null;
/**
* Sets results.
*
* @param results
* @return This {@link SmsDeliveryResult instance}.
*/
public SmsDeliveryResult results(List results) {
this.results = results;
return this;
}
/**
* Adds and item into results.
*
* @param resultsItem The item to be added to the list.
* @return This {@link SmsDeliveryResult instance}.
*/
public SmsDeliveryResult addResultsItem(SmsReport resultsItem) {
if (this.results == null) {
this.results = new ArrayList<>();
}
this.results.add(resultsItem);
return this;
}
/**
* Returns results.
*
* @return results
*/
@JsonProperty("results")
public List getResults() {
return results;
}
/**
* Sets results.
*
* @param results
*/
@JsonProperty("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;
}
SmsDeliveryResult smsDeliveryResult = (SmsDeliveryResult) o;
return Objects.equals(this.results, smsDeliveryResult.results);
}
@Override
public int hashCode() {
return Objects.hash(results);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class SmsDeliveryResult {")
.append(newLine)
.append(" results: ")
.append(toIndentedString(results))
.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