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

com.symphony.api.model.V4MessageBlastResponse Maven / Gradle / Ivy

There is a newer version: 8.0.5
Show newest version
package com.symphony.api.model;

import com.symphony.api.model.Error;
import com.symphony.api.model.V4Message;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;

/**
  * Wrapper response for a single message sent to multiple streams
 **/
@Schema(description="Wrapper response for a single message sent to multiple streams")
public class V4MessageBlastResponse   {
  
  @Schema(description = "List of messages successfully sent")
 /**
   * List of messages successfully sent  
  **/
  private List messages = null;
  
  @Schema(description = "List of streams where the messages ingestion has failed")
 /**
   * List of streams where the messages ingestion has failed  
  **/
  private Map errors = null;
 /**
   * List of messages successfully sent
   * @return messages
  **/
  @JsonProperty("messages")
  public List getMessages() {
    return messages;
  }

  public void setMessages(List messages) {
    this.messages = messages;
  }

  public V4MessageBlastResponse messages(List messages) {
    this.messages = messages;
    return this;
  }

  public V4MessageBlastResponse addMessagesItem(V4Message messagesItem) {
    this.messages.add(messagesItem);
    return this;
  }

 /**
   * List of streams where the messages ingestion has failed
   * @return errors
  **/
  @JsonProperty("errors")
  public Map getErrors() {
    return errors;
  }

  public void setErrors(Map errors) {
    this.errors = errors;
  }

  public V4MessageBlastResponse errors(Map errors) {
    this.errors = errors;
    return this;
  }

  public V4MessageBlastResponse putErrorsItem(String key, Error errorsItem) {
    this.errors.put(key, errorsItem);
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V4MessageBlastResponse {\n");
    
    sb.append("    messages: ").append(toIndentedString(messages)).append("\n");
    sb.append("    errors: ").append(toIndentedString(errors)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private static String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy