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

com.infobip.model.WhatsAppWebhookInboundListReplyContent 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;

/**
 * Represents WhatsAppWebhookInboundListReplyContent model.
 */
public class WhatsAppWebhookInboundListReplyContent extends WhatsAppWebhookInboundContent {

    private String id;

    private String title;

    private String description;

    private WhatsAppContext context;

    /**
     * Constructs a new {@link WhatsAppWebhookInboundListReplyContent} instance.
     */
    public WhatsAppWebhookInboundListReplyContent() {
        super("INTERACTIVE_LIST_REPLY");
    }

    /**
     * Sets id.
     * 

* Field description: * Identifier of the selected row. *

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

* Field description: * Identifier of the selected row. *

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

* Field description: * Identifier of the selected row. *

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

* Field description: * Title of the selected row. *

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

* Field description: * Title of the selected row. *

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

* Field description: * Title of the selected row. *

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

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

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

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