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

org.symphonyoss.symphony.agent.model.V4Stream 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 java.util.ArrayList;
import java.util.List;
import org.symphonyoss.symphony.agent.model.V4User;

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

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

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

  @JsonProperty("members")
  private List members = new ArrayList();

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

  public V4Stream streamId(String streamId) {
    this.streamId = streamId;
    return this;
  }

   /**
   * Id of stream
   * @return streamId
  **/
  @ApiModelProperty(example = "null", value = "Id of stream")
  public String getStreamId() {
    return streamId;
  }

  public void setStreamId(String streamId) {
    this.streamId = streamId;
  }

  public V4Stream streamType(String streamType) {
    this.streamType = streamType;
    return this;
  }

   /**
   * Stream type, possible values are:   - IM   - MIM   - ROOM   - POST 
   * @return streamType
  **/
  @ApiModelProperty(example = "null", value = "Stream type, possible values are:   - IM   - MIM   - ROOM   - POST ")
  public String getStreamType() {
    return streamType;
  }

  public void setStreamType(String streamType) {
    this.streamType = streamType;
  }

  public V4Stream roomName(String roomName) {
    this.roomName = roomName;
    return this;
  }

   /**
   * Applicable only to rooms
   * @return roomName
  **/
  @ApiModelProperty(example = "null", value = "Applicable only to rooms")
  public String getRoomName() {
    return roomName;
  }

  public void setRoomName(String roomName) {
    this.roomName = roomName;
  }

  public V4Stream members(List members) {
    this.members = members;
    return this;
  }

  public V4Stream addMembersItem(V4User membersItem) {
    this.members.add(membersItem);
    return this;
  }

   /**
   * Applicable only to IM Created
   * @return members
  **/
  @ApiModelProperty(example = "null", value = "Applicable only to IM Created")
  public List getMembers() {
    return members;
  }

  public void setMembers(List members) {
    this.members = members;
  }

  public V4Stream external(Boolean external) {
    this.external = external;
    return this;
  }

   /**
   * Get external
   * @return external
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getExternal() {
    return external;
  }

  public void setExternal(Boolean external) {
    this.external = external;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V4Stream v4Stream = (V4Stream) o;
    return Objects.equals(this.streamId, v4Stream.streamId) &&
        Objects.equals(this.streamType, v4Stream.streamType) &&
        Objects.equals(this.roomName, v4Stream.roomName) &&
        Objects.equals(this.members, v4Stream.members) &&
        Objects.equals(this.external, v4Stream.external);
  }

  @Override
  public int hashCode() {
    return Objects.hash(streamId, streamType, roomName, members, external);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V4Stream {\n");
    
    sb.append("    streamId: ").append(toIndentedString(streamId)).append("\n");
    sb.append("    streamType: ").append(toIndentedString(streamType)).append("\n");
    sb.append("    roomName: ").append(toIndentedString(roomName)).append("\n");
    sb.append("    members: ").append(toIndentedString(members)).append("\n");
    sb.append("    external: ").append(toIndentedString(external)).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