All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.model.WhatsAppInteractiveRowContent Maven / Gradle / Ivy

The newest version!
/*
 * 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 @ support@infobip.com.
 */

package com.infobip.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

/**
 * An array of rows sent within a section. Section must contain at least one row. Message can have up to ten rows.
 */
public class WhatsAppInteractiveRowContent {

    private String id;

    private String title;

    private String description;

    /**
     * Sets id.
     * 

* Field description: * Identifier of the row. It must be unique across all sections. *

* The field is required. * * @param id * @return This {@link WhatsAppInteractiveRowContent instance}. */ public WhatsAppInteractiveRowContent id(String id) { this.id = id; return this; } /** * Returns id. *

* Field description: * Identifier of the row. It must be unique across all sections. *

* The field is required. * * @return id */ @JsonProperty("id") public String getId() { return id; } /** * Sets id. *

* Field description: * Identifier of the row. It must be unique across all sections. *

* The field is required. * * @param id */ @JsonProperty("id") public void setId(String id) { this.id = id; } /** * Sets title. *

* Field description: * Title of the row. *

* The field is required. * * @param title * @return This {@link WhatsAppInteractiveRowContent instance}. */ public WhatsAppInteractiveRowContent title(String title) { this.title = title; return this; } /** * Returns title. *

* Field description: * Title of the row. *

* The field is required. * * @return title */ @JsonProperty("title") public String getTitle() { return title; } /** * Sets title. *

* Field description: * Title of the row. *

* The field is required. * * @param title */ @JsonProperty("title") public void setTitle(String title) { this.title = title; } /** * Sets description. *

* Field description: * Description of the row. * * @param description * @return This {@link WhatsAppInteractiveRowContent instance}. */ public WhatsAppInteractiveRowContent description(String description) { this.description = description; return this; } /** * Returns description. *

* Field description: * Description of the row. * * @return description */ @JsonProperty("description") public String getDescription() { return description; } /** * Sets description. *

* Field description: * Description of the row. * * @param description */ @JsonProperty("description") public void setDescription(String description) { this.description = description; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppInteractiveRowContent whatsAppInteractiveRowContent = (WhatsAppInteractiveRowContent) o; return Objects.equals(this.id, whatsAppInteractiveRowContent.id) && Objects.equals(this.title, whatsAppInteractiveRowContent.title) && Objects.equals(this.description, whatsAppInteractiveRowContent.description); } @Override public int hashCode() { return Objects.hash(id, title, description); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppInteractiveRowContent {") .append(newLine) .append(" id: ") .append(toIndentedString(id)) .append(newLine) .append(" title: ") .append(toIndentedString(title)) .append(newLine) .append(" description: ") .append(toIndentedString(description)) .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