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

org.symphonyoss.symphony.agent.model.V4ImportResponse Maven / Gradle / Ivy

There is a newer version: 1.50.1
Show newest version
/*
 * Agent API
 * This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content.  - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined to be atomic, ie will succeed in their entirety or fail and have changed nothing. - If it returns a 40X status then it will have sent no message to any stream even if a request to aome subset of the requested streams would have succeeded. - If this contract cannot be met for any reason then this is an error and the response code will be 50X. - MessageML is a markup language for messages. See reference here: https://developers.symphony.com/documentation/message_format_reference 
 *
 * OpenAPI spec version: 1.48.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package org.symphonyoss.symphony.agent.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * V4ImportResponse
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-14T03:33:40.723-04:00")
public class V4ImportResponse {
  @JsonProperty("messageId")
  private String messageId = null;

  @JsonProperty("originatingSystemId")
  private String originatingSystemId = null;

  @JsonProperty("originalMessageId")
  private String originalMessageId = null;

  @JsonProperty("diagnostic")
  private String diagnostic = null;

  public V4ImportResponse messageId(String messageId) {
    this.messageId = messageId;
    return this;
  }

   /**
   * If the message was successfully imported then the message ID in the system of the newly created message. 
   * @return messageId
  **/
  @ApiModelProperty(example = "null", value = "If the message was successfully imported then the message ID in the system of the newly created message. ")
  public String getMessageId() {
    return messageId;
  }

  public void setMessageId(String messageId) {
    this.messageId = messageId;
  }

  public V4ImportResponse originatingSystemId(String originatingSystemId) {
    this.originatingSystemId = originatingSystemId;
    return this;
  }

   /**
   * The ID of the system through which the message was originally sent. 
   * @return originatingSystemId
  **/
  @ApiModelProperty(example = "null", value = "The ID of the system through which the message was originally sent. ")
  public String getOriginatingSystemId() {
    return originatingSystemId;
  }

  public void setOriginatingSystemId(String originatingSystemId) {
    this.originatingSystemId = originatingSystemId;
  }

  public V4ImportResponse originalMessageId(String originalMessageId) {
    this.originalMessageId = originalMessageId;
    return this;
  }

   /**
   * The ID of the message in the original system. 
   * @return originalMessageId
  **/
  @ApiModelProperty(example = "null", value = "The ID of the message in the original system. ")
  public String getOriginalMessageId() {
    return originalMessageId;
  }

  public void setOriginalMessageId(String originalMessageId) {
    this.originalMessageId = originalMessageId;
  }

  public V4ImportResponse diagnostic(String diagnostic) {
    this.diagnostic = diagnostic;
    return this;
  }

   /**
   * A diagnostic message containing an error message in the event that the message import failed. May also be present in the case of a successful call if there is useful narrative to return. 
   * @return diagnostic
  **/
  @ApiModelProperty(example = "null", value = "A diagnostic message containing an error message in the event that the message import failed. May also be present in the case of a successful call if there is useful narrative to return. ")
  public String getDiagnostic() {
    return diagnostic;
  }

  public void setDiagnostic(String diagnostic) {
    this.diagnostic = diagnostic;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V4ImportResponse v4ImportResponse = (V4ImportResponse) o;
    return Objects.equals(this.messageId, v4ImportResponse.messageId) &&
        Objects.equals(this.originatingSystemId, v4ImportResponse.originatingSystemId) &&
        Objects.equals(this.originalMessageId, v4ImportResponse.originalMessageId) &&
        Objects.equals(this.diagnostic, v4ImportResponse.diagnostic);
  }

  @Override
  public int hashCode() {
    return Objects.hash(messageId, originatingSystemId, originalMessageId, diagnostic);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V4ImportResponse {\n");
    
    sb.append("    messageId: ").append(toIndentedString(messageId)).append("\n");
    sb.append("    originatingSystemId: ").append(toIndentedString(originatingSystemId)).append("\n");
    sb.append("    originalMessageId: ").append(toIndentedString(originalMessageId)).append("\n");
    sb.append("    diagnostic: ").append(toIndentedString(diagnostic)).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 String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy