
com.infobip.model.WhatsAppInteractiveButtonsActionContent Maven / Gradle / Ivy
/*
* 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;
/** Message action. */
public class WhatsAppInteractiveButtonsActionContent {
public static final String SERIALIZED_NAME_BUTTONS = "buttons";
@SerializedName(SERIALIZED_NAME_BUTTONS)
private List buttons = new ArrayList<>();
public WhatsAppInteractiveButtonsActionContent buttons(
List buttons) {
this.buttons = buttons;
return this;
}
public WhatsAppInteractiveButtonsActionContent addButtonsItem(
WhatsAppInteractiveButtonContent buttonsItem) {
this.buttons.add(buttonsItem);
return this;
}
/**
* An array of buttons sent in a message. It can have up to three buttons.
*
* @return buttons
*/
public List getButtons() {
return buttons;
}
public void setButtons(List buttons) {
this.buttons = buttons;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WhatsAppInteractiveButtonsActionContent whatsAppInteractiveButtonsActionContent =
(WhatsAppInteractiveButtonsActionContent) o;
return Objects.equals(this.buttons, whatsAppInteractiveButtonsActionContent.buttons);
}
@Override
public int hashCode() {
return Objects.hash(buttons);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WhatsAppInteractiveButtonsActionContent {\n");
sb.append(" buttons: ").append(toIndentedString(buttons)).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