
com.infobip.model.MessagesApiMessageListItem 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.Objects;
/**
* List Items.
*/
public class MessagesApiMessageListItem {
private String text;
private String description;
private String imageUrl;
/**
* Sets text.
*
* Field description:
* Item Text.
*
* The field is required.
*
* @param text
* @return This {@link MessagesApiMessageListItem instance}.
*/
public MessagesApiMessageListItem text(String text) {
this.text = text;
return this;
}
/**
* Returns text.
*
* Field description:
* Item Text.
*
* The field is required.
*
* @return text
*/
@JsonProperty("text")
public String getText() {
return text;
}
/**
* Sets text.
*
* Field description:
* Item Text.
*
* The field is required.
*
* @param text
*/
@JsonProperty("text")
public void setText(String text) {
this.text = text;
}
/**
* Sets description.
*
* Field description:
* Item Description.
*
* @param description
* @return This {@link MessagesApiMessageListItem instance}.
*/
public MessagesApiMessageListItem description(String description) {
this.description = description;
return this;
}
/**
* Returns description.
*
* Field description:
* Item Description.
*
* @return description
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
* Sets description.
*
* Field description:
* Item Description.
*
* @param description
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
/**
* Sets imageUrl.
*
* Field description:
* Item's Image URL.
*
* @param imageUrl
* @return This {@link MessagesApiMessageListItem instance}.
*/
public MessagesApiMessageListItem imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* Returns imageUrl.
*
* Field description:
* Item's Image URL.
*
* @return imageUrl
*/
@JsonProperty("imageUrl")
public String getImageUrl() {
return imageUrl;
}
/**
* Sets imageUrl.
*
* Field description:
* Item's Image URL.
*
* @param imageUrl
*/
@JsonProperty("imageUrl")
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MessagesApiMessageListItem messagesApiMessageListItem = (MessagesApiMessageListItem) o;
return Objects.equals(this.text, messagesApiMessageListItem.text)
&& Objects.equals(this.description, messagesApiMessageListItem.description)
&& Objects.equals(this.imageUrl, messagesApiMessageListItem.imageUrl);
}
@Override
public int hashCode() {
return Objects.hash(text, description, imageUrl);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class MessagesApiMessageListItem {")
.append(newLine)
.append(" text: ")
.append(toIndentedString(text))
.append(newLine)
.append(" description: ")
.append(toIndentedString(description))
.append(newLine)
.append(" imageUrl: ")
.append(toIndentedString(imageUrl))
.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);
}
}