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

com.infobip.model.WhatsAppSingleMessageInfo 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 WhatsAppSingleMessageInfo model.
 */
public class WhatsAppSingleMessageInfo {

    private String to;

    private Integer messageCount;

    private String messageId;

    private WhatsAppSingleMessageStatus status;

    /**
     * Sets to.
     * 

* Field description: * The destination address of the message. * * @param to * @return This {@link WhatsAppSingleMessageInfo instance}. */ public WhatsAppSingleMessageInfo to(String to) { this.to = to; return this; } /** * Returns to. *

* Field description: * The destination address of the message. * * @return to */ @JsonProperty("to") public String getTo() { return to; } /** * Sets to. *

* Field description: * The destination address of the message. * * @param to */ @JsonProperty("to") public void setTo(String to) { this.to = to; } /** * Sets messageCount. *

* Field description: * Number of messages required to deliver. * * @param messageCount * @return This {@link WhatsAppSingleMessageInfo instance}. */ public WhatsAppSingleMessageInfo messageCount(Integer messageCount) { this.messageCount = messageCount; return this; } /** * Returns messageCount. *

* Field description: * Number of messages required to deliver. * * @return messageCount */ @JsonProperty("messageCount") public Integer getMessageCount() { return messageCount; } /** * Sets messageCount. *

* Field description: * Number of messages required to deliver. * * @param messageCount */ @JsonProperty("messageCount") public void setMessageCount(Integer messageCount) { this.messageCount = messageCount; } /** * Sets messageId. *

* Field description: * The ID that uniquely identifies the message sent. If not passed, it will be automatically generated and returned in a response. * * @param messageId * @return This {@link WhatsAppSingleMessageInfo instance}. */ public WhatsAppSingleMessageInfo messageId(String messageId) { this.messageId = messageId; return this; } /** * Returns messageId. *

* Field description: * The ID that uniquely identifies the message sent. If not passed, it will be automatically generated and returned in a response. * * @return messageId */ @JsonProperty("messageId") public String getMessageId() { return messageId; } /** * Sets messageId. *

* Field description: * The ID that uniquely identifies the message sent. If not passed, it will be automatically generated and returned in a response. * * @param messageId */ @JsonProperty("messageId") public void setMessageId(String messageId) { this.messageId = messageId; } /** * Sets status. * * @param status * @return This {@link WhatsAppSingleMessageInfo instance}. */ public WhatsAppSingleMessageInfo status(WhatsAppSingleMessageStatus status) { this.status = status; return this; } /** * Returns status. * * @return status */ @JsonProperty("status") public WhatsAppSingleMessageStatus getStatus() { return status; } /** * Sets status. * * @param status */ @JsonProperty("status") public void setStatus(WhatsAppSingleMessageStatus status) { this.status = status; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppSingleMessageInfo whatsAppSingleMessageInfo = (WhatsAppSingleMessageInfo) o; return Objects.equals(this.to, whatsAppSingleMessageInfo.to) && Objects.equals(this.messageCount, whatsAppSingleMessageInfo.messageCount) && Objects.equals(this.messageId, whatsAppSingleMessageInfo.messageId) && Objects.equals(this.status, whatsAppSingleMessageInfo.status); } @Override public int hashCode() { return Objects.hash(to, messageCount, messageId, status); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppSingleMessageInfo {") .append(newLine) .append(" to: ") .append(toIndentedString(to)) .append(newLine) .append(" messageCount: ") .append(toIndentedString(messageCount)) .append(newLine) .append(" messageId: ") .append(toIndentedString(messageId)) .append(newLine) .append(" status: ") .append(toIndentedString(status)) .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