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

com.infobip.model.MessagesApiToDestination 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 a simple destination.
 */
public class MessagesApiToDestination {

    private String to;

    private String messageId;

    /**
     * Sets to.
     * 

* Field description: * The destination address of the message. It can be alphanumeric or numeric. *

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

* Field description: * The destination address of the message. It can be alphanumeric or numeric. *

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

* Field description: * The destination address of the message. It can be alphanumeric or numeric. *

* The field is required. * * @param to */ @JsonProperty("to") public void setTo(String to) { this.to = to; } /** * Sets messageId. *

* Field description: * The ID that uniquely identifies the message sent. * * @param messageId * @return This {@link MessagesApiToDestination instance}. */ public MessagesApiToDestination messageId(String messageId) { this.messageId = messageId; return this; } /** * Returns messageId. *

* Field description: * The ID that uniquely identifies the message sent. * * @return messageId */ @JsonProperty("messageId") public String getMessageId() { return messageId; } /** * Sets messageId. *

* Field description: * The ID that uniquely identifies the message sent. * * @param messageId */ @JsonProperty("messageId") public void setMessageId(String messageId) { this.messageId = messageId; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessagesApiToDestination messagesApiToDestination = (MessagesApiToDestination) o; return Objects.equals(this.to, messagesApiToDestination.to) && Objects.equals(this.messageId, messagesApiToDestination.messageId); } @Override public int hashCode() { return Objects.hash(to, messageId); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class MessagesApiToDestination {") .append(newLine) .append(" to: ") .append(toIndentedString(to)) .append(newLine) .append(" messageId: ") .append(toIndentedString(messageId)) .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