com.infobip.model.WhatsAppSenderQualityResponse Maven / Gradle / Ivy
Show all versions of infobip-api-java-client Show documentation
/*
* 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 WhatsAppSenderQualityResponse model.
*/
public class WhatsAppSenderQualityResponse {
private List results = new ArrayList<>();
/**
* Sets results.
*
* Field description:
* List of the quality information related to specific senders.
*
* The field is required.
*
* @param results
* @return This {@link WhatsAppSenderQualityResponse instance}.
*/
public WhatsAppSenderQualityResponse results(List results) {
this.results = results;
return this;
}
/**
* Adds and item into results.
*
* Field description:
* List of the quality information related to specific senders.
*
* The field is required.
*
* @param resultsItem The item to be added to the list.
* @return This {@link WhatsAppSenderQualityResponse instance}.
*/
public WhatsAppSenderQualityResponse addResultsItem(WhatsAppSenderQuality resultsItem) {
if (this.results == null) {
this.results = new ArrayList<>();
}
this.results.add(resultsItem);
return this;
}
/**
* Returns results.
*
* Field description:
* List of the quality information related to specific senders.
*
* The field is required.
*
* @return results
*/
@JsonProperty("results")
public List getResults() {
return results;
}
/**
* Sets results.
*
* Field description:
* List of the quality information related to specific senders.
*
* The field is required.
*
* @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;
}
WhatsAppSenderQualityResponse whatsAppSenderQualityResponse = (WhatsAppSenderQualityResponse) o;
return Objects.equals(this.results, whatsAppSenderQualityResponse.results);
}
@Override
public int hashCode() {
return Objects.hash(results);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class WhatsAppSenderQualityResponse {")
.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);
}
}