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

com.infobip.model.ResponseEnvelopeMessageResponseMessageResponseDetails 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.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * Represents ResponseEnvelopeMessageResponseMessageResponseDetails model.
 */
public class ResponseEnvelopeMessageResponseMessageResponseDetails {

    private String bulkId;

    private List messages = new ArrayList<>();

    /**
     * Sets bulkId.
     * 

* Field description: * Unique ID assigned to the request if messaging multiple recipients or sending multiple messages via a single API request. If not provided, it will be auto-generated and returned in the API response. Typically used for fetching delivery reports and message logs. * * @param bulkId * @return This {@link ResponseEnvelopeMessageResponseMessageResponseDetails instance}. */ public ResponseEnvelopeMessageResponseMessageResponseDetails bulkId(String bulkId) { this.bulkId = bulkId; return this; } /** * Returns bulkId. *

* Field description: * Unique ID assigned to the request if messaging multiple recipients or sending multiple messages via a single API request. If not provided, it will be auto-generated and returned in the API response. Typically used for fetching delivery reports and message logs. * * @return bulkId */ @JsonProperty("bulkId") public String getBulkId() { return bulkId; } /** * Sets bulkId. *

* Field description: * Unique ID assigned to the request if messaging multiple recipients or sending multiple messages via a single API request. If not provided, it will be auto-generated and returned in the API response. Typically used for fetching delivery reports and message logs. * * @param bulkId */ @JsonProperty("bulkId") public void setBulkId(String bulkId) { this.bulkId = bulkId; } /** * Sets messages. *

* Field description: * An array of message objects of a single message or multiple messages sent under one bulk ID. *

* The field is required. * * @param messages * @return This {@link ResponseEnvelopeMessageResponseMessageResponseDetails instance}. */ public ResponseEnvelopeMessageResponseMessageResponseDetails messages( List messages) { this.messages = messages; return this; } /** * Adds and item into messages. *

* Field description: * An array of message objects of a single message or multiple messages sent under one bulk ID. *

* The field is required. * * @param messagesItem The item to be added to the list. * @return This {@link ResponseEnvelopeMessageResponseMessageResponseDetails instance}. */ public ResponseEnvelopeMessageResponseMessageResponseDetails addMessagesItem( MessagesApiMessageResponseDetails messagesItem) { if (this.messages == null) { this.messages = new ArrayList<>(); } this.messages.add(messagesItem); return this; } /** * Returns messages. *

* Field description: * An array of message objects of a single message or multiple messages sent under one bulk ID. *

* The field is required. * * @return messages */ @JsonProperty("messages") public List getMessages() { return messages; } /** * Sets messages. *

* Field description: * An array of message objects of a single message or multiple messages sent under one bulk ID. *

* The field is required. * * @param messages */ @JsonProperty("messages") public void setMessages(List messages) { this.messages = messages; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ResponseEnvelopeMessageResponseMessageResponseDetails responseEnvelopeMessageResponseMessageResponseDetails = (ResponseEnvelopeMessageResponseMessageResponseDetails) o; return Objects.equals(this.bulkId, responseEnvelopeMessageResponseMessageResponseDetails.bulkId) && Objects.equals(this.messages, responseEnvelopeMessageResponseMessageResponseDetails.messages); } @Override public int hashCode() { return Objects.hash(bulkId, messages); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class ResponseEnvelopeMessageResponseMessageResponseDetails {") .append(newLine) .append(" bulkId: ") .append(toIndentedString(bulkId)) .append(newLine) .append(" messages: ") .append(toIndentedString(messages)) .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