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

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

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

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

  @JsonProperty("visibleOnProfile")
  private Boolean visibleOnProfile = null;

  @JsonProperty("companyWide")
  private Boolean companyWide = null;

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

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

  public Signal name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Signal name
   * @return name
  **/
  @ApiModelProperty(value = "Signal name")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Signal query(String query) {
    this.query = query;
    return this;
  }

   /**
   * The query used to define this signal. The query is defined as \"field:value\" pairs combined by the operators \"AND\" or \"OR\". Supported fields are (case-insensitive): \"author\", \"hashtag\" and \"cashtag\". MUST contain at least one \"hashtag\" or \"cashtag\" definition. 
   * @return query
  **/
  @ApiModelProperty(value = "The query used to define this signal. The query is defined as \"field:value\" pairs combined by the operators \"AND\" or \"OR\". Supported fields are (case-insensitive): \"author\", \"hashtag\" and \"cashtag\". MUST contain at least one \"hashtag\" or \"cashtag\" definition. ")
  public String getQuery() {
    return query;
  }

  public void setQuery(String query) {
    this.query = query;
  }

  public Signal visibleOnProfile(Boolean visibleOnProfile) {
    this.visibleOnProfile = visibleOnProfile;
    return this;
  }

   /**
   * Whether the signal is visible on its creator's profile
   * @return visibleOnProfile
  **/
  @ApiModelProperty(value = "Whether the signal is visible on its creator's profile")
  public Boolean getVisibleOnProfile() {
    return visibleOnProfile;
  }

  public void setVisibleOnProfile(Boolean visibleOnProfile) {
    this.visibleOnProfile = visibleOnProfile;
  }

  public Signal companyWide(Boolean companyWide) {
    this.companyWide = companyWide;
    return this;
  }

   /**
   * Whether the signal is a push signal
   * @return companyWide
  **/
  @ApiModelProperty(value = "Whether the signal is a push signal")
  public Boolean getCompanyWide() {
    return companyWide;
  }

  public void setCompanyWide(Boolean companyWide) {
    this.companyWide = companyWide;
  }

  public Signal id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Signal ID
   * @return id
  **/
  @ApiModelProperty(value = "Signal ID")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Signal timestamp(Long timestamp) {
    this.timestamp = timestamp;
    return this;
  }

   /**
   * Timestamp when the signal was created, in milliseconds since Jan 1 1970
   * @return timestamp
  **/
  @ApiModelProperty(value = "Timestamp when the signal was created, in milliseconds since Jan 1 1970")
  public Long getTimestamp() {
    return timestamp;
  }

  public void setTimestamp(Long timestamp) {
    this.timestamp = timestamp;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Signal signal = (Signal) o;
    return Objects.equals(this.name, signal.name) &&
        Objects.equals(this.query, signal.query) &&
        Objects.equals(this.visibleOnProfile, signal.visibleOnProfile) &&
        Objects.equals(this.companyWide, signal.companyWide) &&
        Objects.equals(this.id, signal.id) &&
        Objects.equals(this.timestamp, signal.timestamp);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, query, visibleOnProfile, companyWide, id, timestamp);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Signal {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    query: ").append(toIndentedString(query)).append("\n");
    sb.append("    visibleOnProfile: ").append(toIndentedString(visibleOnProfile)).append("\n");
    sb.append("    companyWide: ").append(toIndentedString(companyWide)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    timestamp: ").append(toIndentedString(timestamp)).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