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

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

/**
 * An array of message objects of a single message or multiple messages sent under one bulk ID.
 */
public class MessagesApiMessageResponseDetails {

    private String messageId;

    private MessageStatus status;

    private String destination;

    private Object details;

    /**
     * Sets messageId.
     * 

* Field description: * Unique message ID. If not provided, it will be auto-generated and returned in the API response. * * @param messageId * @return This {@link MessagesApiMessageResponseDetails instance}. */ public MessagesApiMessageResponseDetails messageId(String messageId) { this.messageId = messageId; return this; } /** * Returns messageId. *

* Field description: * Unique message ID. If not provided, it will be auto-generated and returned in the API response. * * @return messageId */ @JsonProperty("messageId") public String getMessageId() { return messageId; } /** * Sets messageId. *

* Field description: * Unique message ID. If not provided, it will be auto-generated and returned in the API response. * * @param messageId */ @JsonProperty("messageId") public void setMessageId(String messageId) { this.messageId = messageId; } /** * Sets status. * * @param status * @return This {@link MessagesApiMessageResponseDetails instance}. */ public MessagesApiMessageResponseDetails status(MessageStatus status) { this.status = status; return this; } /** * Returns status. * * @return status */ @JsonProperty("status") public MessageStatus getStatus() { return status; } /** * Sets status. * * @param status */ @JsonProperty("status") public void setStatus(MessageStatus status) { this.status = status; } /** * Sets destination. *

* Field description: * The destination address of the message, i.e., its recipient. * * @param destination * @return This {@link MessagesApiMessageResponseDetails instance}. */ public MessagesApiMessageResponseDetails destination(String destination) { this.destination = destination; return this; } /** * Returns destination. *

* Field description: * The destination address of the message, i.e., its recipient. * * @return destination */ @JsonProperty("destination") public String getDestination() { return destination; } /** * Sets destination. *

* Field description: * The destination address of the message, i.e., its recipient. * * @param destination */ @JsonProperty("destination") public void setDestination(String destination) { this.destination = destination; } /** * Sets details. *

* Field description: * Other details of the message. * * @param details * @return This {@link MessagesApiMessageResponseDetails instance}. */ public MessagesApiMessageResponseDetails details(Object details) { this.details = details; return this; } /** * Returns details. *

* Field description: * Other details of the message. * * @return details */ @JsonProperty("details") public Object getDetails() { return details; } /** * Sets details. *

* Field description: * Other details of the message. * * @param details */ @JsonProperty("details") public void setDetails(Object details) { this.details = details; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessagesApiMessageResponseDetails messagesApiMessageResponseDetails = (MessagesApiMessageResponseDetails) o; return Objects.equals(this.messageId, messagesApiMessageResponseDetails.messageId) && Objects.equals(this.status, messagesApiMessageResponseDetails.status) && Objects.equals(this.destination, messagesApiMessageResponseDetails.destination) && Objects.equals(this.details, messagesApiMessageResponseDetails.details); } @Override public int hashCode() { return Objects.hash(messageId, status, destination, details); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class MessagesApiMessageResponseDetails {") .append(newLine) .append(" messageId: ") .append(toIndentedString(messageId)) .append(newLine) .append(" status: ") .append(toIndentedString(status)) .append(newLine) .append(" destination: ") .append(toIndentedString(destination)) .append(newLine) .append(" details: ") .append(toIndentedString(details)) .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