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

org.symphonyoss.symphony.agent.model.ConnectionRequestMessage 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;
import org.symphonyoss.symphony.agent.model.V2BaseMessage;

/**
 * Generated when a connection request is sent.
 */
@ApiModel(description = "Generated when a connection request is sent.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-14T03:33:40.723-04:00")
public class ConnectionRequestMessage extends V2BaseMessage {
  @JsonProperty("requestingUserId")
  private Long requestingUserId = null;

  @JsonProperty("targetUserId")
  private Long targetUserId = null;

  @JsonProperty("firstRequestedAt")
  private Long firstRequestedAt = null;

  @JsonProperty("updatedAt")
  private Long updatedAt = null;

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

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

  public ConnectionRequestMessage requestingUserId(Long requestingUserId) {
    this.requestingUserId = requestingUserId;
    return this;
  }

   /**
   * Get requestingUserId
   * @return requestingUserId
  **/
  @ApiModelProperty(example = "null", value = "")
  public Long getRequestingUserId() {
    return requestingUserId;
  }

  public void setRequestingUserId(Long requestingUserId) {
    this.requestingUserId = requestingUserId;
  }

  public ConnectionRequestMessage targetUserId(Long targetUserId) {
    this.targetUserId = targetUserId;
    return this;
  }

   /**
   * Get targetUserId
   * @return targetUserId
  **/
  @ApiModelProperty(example = "null", value = "")
  public Long getTargetUserId() {
    return targetUserId;
  }

  public void setTargetUserId(Long targetUserId) {
    this.targetUserId = targetUserId;
  }

  public ConnectionRequestMessage firstRequestedAt(Long firstRequestedAt) {
    this.firstRequestedAt = firstRequestedAt;
    return this;
  }

   /**
   * Get firstRequestedAt
   * @return firstRequestedAt
  **/
  @ApiModelProperty(example = "null", value = "")
  public Long getFirstRequestedAt() {
    return firstRequestedAt;
  }

  public void setFirstRequestedAt(Long firstRequestedAt) {
    this.firstRequestedAt = firstRequestedAt;
  }

  public ConnectionRequestMessage updatedAt(Long updatedAt) {
    this.updatedAt = updatedAt;
    return this;
  }

   /**
   * Get updatedAt
   * @return updatedAt
  **/
  @ApiModelProperty(example = "null", value = "")
  public Long getUpdatedAt() {
    return updatedAt;
  }

  public void setUpdatedAt(Long updatedAt) {
    this.updatedAt = updatedAt;
  }

  public ConnectionRequestMessage requestCounter(Integer requestCounter) {
    this.requestCounter = requestCounter;
    return this;
  }

   /**
   * Get requestCounter
   * @return requestCounter
  **/
  @ApiModelProperty(example = "null", value = "")
  public Integer getRequestCounter() {
    return requestCounter;
  }

  public void setRequestCounter(Integer requestCounter) {
    this.requestCounter = requestCounter;
  }

  public ConnectionRequestMessage status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConnectionRequestMessage connectionRequestMessage = (ConnectionRequestMessage) o;
    return Objects.equals(this.requestingUserId, connectionRequestMessage.requestingUserId) &&
        Objects.equals(this.targetUserId, connectionRequestMessage.targetUserId) &&
        Objects.equals(this.firstRequestedAt, connectionRequestMessage.firstRequestedAt) &&
        Objects.equals(this.updatedAt, connectionRequestMessage.updatedAt) &&
        Objects.equals(this.requestCounter, connectionRequestMessage.requestCounter) &&
        Objects.equals(this.status, connectionRequestMessage.status) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(requestingUserId, targetUserId, firstRequestedAt, updatedAt, requestCounter, status, super.hashCode());
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConnectionRequestMessage {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    requestingUserId: ").append(toIndentedString(requestingUserId)).append("\n");
    sb.append("    targetUserId: ").append(toIndentedString(targetUserId)).append("\n");
    sb.append("    firstRequestedAt: ").append(toIndentedString(firstRequestedAt)).append("\n");
    sb.append("    updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
    sb.append("    requestCounter: ").append(toIndentedString(requestCounter)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).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