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

com.infobip.model.MessagesApiWebhookEventSubjectContent 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 @ [email protected].
 */

package com.infobip.model;

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

/**
 * Represents MessagesApiWebhookEventSubjectContent model.
 */
public class MessagesApiWebhookEventSubjectContent extends MessagesApiWebhookEventContent {

    private String text;

    private String cleanText;

    private String keyword;

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

    /**
     * Sets text.
     * 

* Field description: * Subject of the message. *

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

* Field description: * Subject of the message. *

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

* Field description: * Subject of the message. *

* The field is required. * * @param text */ @JsonProperty("text") public void setText(String text) { this.text = text; } /** * Sets cleanText. *

* Field description: * Subject of the message without the keyword (if a keyword was sent). *

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

* Field description: * Subject of the message without the keyword (if a keyword was sent). *

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

* Field description: * Subject of the message without the keyword (if a keyword was sent). *

* The field is required. * * @param cleanText */ @JsonProperty("cleanText") public void setCleanText(String cleanText) { this.cleanText = cleanText; } /** * Sets keyword. *

* Field description: * Keyword extracted from the message subject. * * @param keyword * @return This {@link MessagesApiWebhookEventSubjectContent instance}. */ public MessagesApiWebhookEventSubjectContent keyword(String keyword) { this.keyword = keyword; return this; } /** * Returns keyword. *

* Field description: * Keyword extracted from the message subject. * * @return keyword */ @JsonProperty("keyword") public String getKeyword() { return keyword; } /** * Sets keyword. *

* Field description: * Keyword extracted from the message subject. * * @param keyword */ @JsonProperty("keyword") public void setKeyword(String keyword) { this.keyword = keyword; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessagesApiWebhookEventSubjectContent messagesApiWebhookEventSubjectContent = (MessagesApiWebhookEventSubjectContent) o; return Objects.equals(this.text, messagesApiWebhookEventSubjectContent.text) && Objects.equals(this.cleanText, messagesApiWebhookEventSubjectContent.cleanText) && Objects.equals(this.keyword, messagesApiWebhookEventSubjectContent.keyword) && super.equals(o); } @Override public int hashCode() { return Objects.hash(text, cleanText, keyword, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class MessagesApiWebhookEventSubjectContent {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" text: ") .append(toIndentedString(text)) .append(newLine) .append(" cleanText: ") .append(toIndentedString(cleanText)) .append(newLine) .append(" keyword: ") .append(toIndentedString(keyword)) .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