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

com.symphony.api.model.V2StreamAttributes Maven / Gradle / Ivy

package com.symphony.api.model;

import com.symphony.api.model.V2ConversationSpecificStreamAttributes;
import com.symphony.api.model.V2RoomSpecificStreamAttributes;
import com.symphony.api.model.V2StreamType;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;

public class V2StreamAttributes   {
  
  @Schema(description = "The stream ID.")
 /**
   * The stream ID.  
  **/
  private String id = null;
  
  @Schema(description = "If true, this is a cross-pod stream.")
 /**
   * If true, this is a cross-pod stream.  
  **/
  private Boolean crossPod = null;
  
  @Schema(description = "INTERNAL if the creator of this stream belongs to the pod, EXTERNAL otherwise")
 /**
   * INTERNAL if the creator of this stream belongs to the pod, EXTERNAL otherwise  
  **/
  private String origin = null;
  
  @Schema(description = "If true, this stream is active.")
 /**
   * If true, this stream is active.  
  **/
  private Boolean active = null;
  
  @Schema(description = "unix timestamp of the last message sent in the stream")
 /**
   * unix timestamp of the last message sent in the stream  
  **/
  private Long lastMessageDate = null;
  
  @Schema(description = "")
  private V2StreamType streamType = null;
  
  @Schema(description = "")
  private V2ConversationSpecificStreamAttributes streamAttributes = null;
  
  @Schema(description = "")
  private V2RoomSpecificStreamAttributes roomAttributes = null;
 /**
   * The stream ID.
   * @return id
  **/
  @JsonProperty("id")
  public String getId() {
    return id;
  }

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

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

 /**
   * If true, this is a cross-pod stream.
   * @return crossPod
  **/
  @JsonProperty("crossPod")
  public Boolean isCrossPod() {
    return crossPod;
  }

  public void setCrossPod(Boolean crossPod) {
    this.crossPod = crossPod;
  }

  public V2StreamAttributes crossPod(Boolean crossPod) {
    this.crossPod = crossPod;
    return this;
  }

 /**
   * INTERNAL if the creator of this stream belongs to the pod, EXTERNAL otherwise
   * @return origin
  **/
  @JsonProperty("origin")
  public String getOrigin() {
    return origin;
  }

  public void setOrigin(String origin) {
    this.origin = origin;
  }

  public V2StreamAttributes origin(String origin) {
    this.origin = origin;
    return this;
  }

 /**
   * If true, this stream is active.
   * @return active
  **/
  @JsonProperty("active")
  public Boolean isActive() {
    return active;
  }

  public void setActive(Boolean active) {
    this.active = active;
  }

  public V2StreamAttributes active(Boolean active) {
    this.active = active;
    return this;
  }

 /**
   * unix timestamp of the last message sent in the stream
   * @return lastMessageDate
  **/
  @JsonProperty("lastMessageDate")
  public Long getLastMessageDate() {
    return lastMessageDate;
  }

  public void setLastMessageDate(Long lastMessageDate) {
    this.lastMessageDate = lastMessageDate;
  }

  public V2StreamAttributes lastMessageDate(Long lastMessageDate) {
    this.lastMessageDate = lastMessageDate;
    return this;
  }

 /**
   * Get streamType
   * @return streamType
  **/
  @JsonProperty("streamType")
  public V2StreamType getStreamType() {
    return streamType;
  }

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

  public V2StreamAttributes streamType(V2StreamType streamType) {
    this.streamType = streamType;
    return this;
  }

 /**
   * Get streamAttributes
   * @return streamAttributes
  **/
  @JsonProperty("streamAttributes")
  public V2ConversationSpecificStreamAttributes getStreamAttributes() {
    return streamAttributes;
  }

  public void setStreamAttributes(V2ConversationSpecificStreamAttributes streamAttributes) {
    this.streamAttributes = streamAttributes;
  }

  public V2StreamAttributes streamAttributes(V2ConversationSpecificStreamAttributes streamAttributes) {
    this.streamAttributes = streamAttributes;
    return this;
  }

 /**
   * Get roomAttributes
   * @return roomAttributes
  **/
  @JsonProperty("roomAttributes")
  public V2RoomSpecificStreamAttributes getRoomAttributes() {
    return roomAttributes;
  }

  public void setRoomAttributes(V2RoomSpecificStreamAttributes roomAttributes) {
    this.roomAttributes = roomAttributes;
  }

  public V2StreamAttributes roomAttributes(V2RoomSpecificStreamAttributes roomAttributes) {
    this.roomAttributes = roomAttributes;
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V2StreamAttributes {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    crossPod: ").append(toIndentedString(crossPod)).append("\n");
    sb.append("    origin: ").append(toIndentedString(origin)).append("\n");
    sb.append("    active: ").append(toIndentedString(active)).append("\n");
    sb.append("    lastMessageDate: ").append(toIndentedString(lastMessageDate)).append("\n");
    sb.append("    streamType: ").append(toIndentedString(streamType)).append("\n");
    sb.append("    streamAttributes: ").append(toIndentedString(streamAttributes)).append("\n");
    sb.append("    roomAttributes: ").append(toIndentedString(roomAttributes)).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 static String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy