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

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

The 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.50.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 com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * V5FirehoseReadRequest
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-03-13T13:44:51.568-04:00")
public class V5FirehoseReadRequest {
  @JsonProperty("ackId")
  private String ackId = null;

  @JsonProperty("maxMsgs")
  private Integer maxMsgs = null;

  @JsonProperty("timeout")
  private Integer timeout = null;

  public V5FirehoseReadRequest ackId(String ackId) {
    this.ackId = ackId;
    return this;
  }

   /**
   * The ackId which acknowledges that the current batch of messages have been successfully received by the client
   * @return ackId
  **/
  @ApiModelProperty(value = "The ackId which acknowledges that the current batch of messages have been successfully received by the client")
  public String getAckId() {
    return ackId;
  }

  public void setAckId(String ackId) {
    this.ackId = ackId;
  }

  public V5FirehoseReadRequest maxMsgs(Integer maxMsgs) {
    this.maxMsgs = maxMsgs;
    return this;
  }

   /**
   * The maximum number of messages which should be retrieved by this read request
   * @return maxMsgs
  **/
  @ApiModelProperty(value = "The maximum number of messages which should be retrieved by this read request")
  public Integer getMaxMsgs() {
    return maxMsgs;
  }

  public void setMaxMsgs(Integer maxMsgs) {
    this.maxMsgs = maxMsgs;
  }

  public V5FirehoseReadRequest timeout(Integer timeout) {
    this.timeout = timeout;
    return this;
  }

   /**
   * The time in seconds for which the server will wait before timing out
   * @return timeout
  **/
  @ApiModelProperty(value = "The time in seconds for which the server will wait before timing out")
  public Integer getTimeout() {
    return timeout;
  }

  public void setTimeout(Integer timeout) {
    this.timeout = timeout;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V5FirehoseReadRequest v5FirehoseReadRequest = (V5FirehoseReadRequest) o;
    return Objects.equals(this.ackId, v5FirehoseReadRequest.ackId) &&
        Objects.equals(this.maxMsgs, v5FirehoseReadRequest.maxMsgs) &&
        Objects.equals(this.timeout, v5FirehoseReadRequest.timeout);
  }

  @Override
  public int hashCode() {
    return Objects.hash(ackId, maxMsgs, timeout);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V5FirehoseReadRequest {\n");
    
    sb.append("    ackId: ").append(toIndentedString(ackId)).append("\n");
    sb.append("    maxMsgs: ").append(toIndentedString(maxMsgs)).append("\n");
    sb.append("    timeout: ").append(toIndentedString(timeout)).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