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

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

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

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

  @JsonProperty("creatorUser")
  private V4User creatorUser = null;

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

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

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

  @JsonProperty("public")
  private Boolean _public = null;

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

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

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

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

  @JsonProperty("keywords")
  private List keywords = null;

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

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

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

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

  public V4RoomProperties description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Get description
   * @return description
  **/
  @ApiModelProperty(value = "")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public V4RoomProperties creatorUser(V4User creatorUser) {
    this.creatorUser = creatorUser;
    return this;
  }

   /**
   * Get creatorUser
   * @return creatorUser
  **/
  @ApiModelProperty(value = "")
  public V4User getCreatorUser() {
    return creatorUser;
  }

  public void setCreatorUser(V4User creatorUser) {
    this.creatorUser = creatorUser;
  }

  public V4RoomProperties createdDate(Long createdDate) {
    this.createdDate = createdDate;
    return this;
  }

   /**
   * Timestamp
   * @return createdDate
  **/
  @ApiModelProperty(value = "Timestamp")
  public Long getCreatedDate() {
    return createdDate;
  }

  public void setCreatedDate(Long createdDate) {
    this.createdDate = createdDate;
  }

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

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

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

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

   /**
   * Get crossPod
   * @return crossPod
  **/
  @ApiModelProperty(value = "")
  public Boolean getCrossPod() {
    return crossPod;
  }

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

  public V4RoomProperties _public(Boolean _public) {
    this._public = _public;
    return this;
  }

   /**
   * Get _public
   * @return _public
  **/
  @ApiModelProperty(value = "")
  public Boolean getPublic() {
    return _public;
  }

  public void setPublic(Boolean _public) {
    this._public = _public;
  }

  public V4RoomProperties copyProtected(Boolean copyProtected) {
    this.copyProtected = copyProtected;
    return this;
  }

   /**
   * Get copyProtected
   * @return copyProtected
  **/
  @ApiModelProperty(value = "")
  public Boolean getCopyProtected() {
    return copyProtected;
  }

  public void setCopyProtected(Boolean copyProtected) {
    this.copyProtected = copyProtected;
  }

  public V4RoomProperties readOnly(Boolean readOnly) {
    this.readOnly = readOnly;
    return this;
  }

   /**
   * Get readOnly
   * @return readOnly
  **/
  @ApiModelProperty(value = "")
  public Boolean getReadOnly() {
    return readOnly;
  }

  public void setReadOnly(Boolean readOnly) {
    this.readOnly = readOnly;
  }

  public V4RoomProperties discoverable(Boolean discoverable) {
    this.discoverable = discoverable;
    return this;
  }

   /**
   * Get discoverable
   * @return discoverable
  **/
  @ApiModelProperty(value = "")
  public Boolean getDiscoverable() {
    return discoverable;
  }

  public void setDiscoverable(Boolean discoverable) {
    this.discoverable = discoverable;
  }

  public V4RoomProperties membersCanInvite(Boolean membersCanInvite) {
    this.membersCanInvite = membersCanInvite;
    return this;
  }

   /**
   * Get membersCanInvite
   * @return membersCanInvite
  **/
  @ApiModelProperty(value = "")
  public Boolean getMembersCanInvite() {
    return membersCanInvite;
  }

  public void setMembersCanInvite(Boolean membersCanInvite) {
    this.membersCanInvite = membersCanInvite;
  }

  public V4RoomProperties keywords(List keywords) {
    this.keywords = keywords;
    return this;
  }

  public V4RoomProperties addKeywordsItem(V4KeyValuePair keywordsItem) {
    if (this.keywords == null) {
      this.keywords = new ArrayList();
    }
    this.keywords.add(keywordsItem);
    return this;
  }

   /**
   * Get keywords
   * @return keywords
  **/
  @ApiModelProperty(value = "")
  public List getKeywords() {
    return keywords;
  }

  public void setKeywords(List keywords) {
    this.keywords = keywords;
  }

  public V4RoomProperties canViewHistory(Boolean canViewHistory) {
    this.canViewHistory = canViewHistory;
    return this;
  }

   /**
   * Get canViewHistory
   * @return canViewHistory
  **/
  @ApiModelProperty(value = "")
  public Boolean getCanViewHistory() {
    return canViewHistory;
  }

  public void setCanViewHistory(Boolean canViewHistory) {
    this.canViewHistory = canViewHistory;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V4RoomProperties v4RoomProperties = (V4RoomProperties) o;
    return Objects.equals(this.name, v4RoomProperties.name) &&
        Objects.equals(this.description, v4RoomProperties.description) &&
        Objects.equals(this.creatorUser, v4RoomProperties.creatorUser) &&
        Objects.equals(this.createdDate, v4RoomProperties.createdDate) &&
        Objects.equals(this.external, v4RoomProperties.external) &&
        Objects.equals(this.crossPod, v4RoomProperties.crossPod) &&
        Objects.equals(this._public, v4RoomProperties._public) &&
        Objects.equals(this.copyProtected, v4RoomProperties.copyProtected) &&
        Objects.equals(this.readOnly, v4RoomProperties.readOnly) &&
        Objects.equals(this.discoverable, v4RoomProperties.discoverable) &&
        Objects.equals(this.membersCanInvite, v4RoomProperties.membersCanInvite) &&
        Objects.equals(this.keywords, v4RoomProperties.keywords) &&
        Objects.equals(this.canViewHistory, v4RoomProperties.canViewHistory);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, description, creatorUser, createdDate, external, crossPod, _public, copyProtected, readOnly, discoverable, membersCanInvite, keywords, canViewHistory);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V4RoomProperties {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    creatorUser: ").append(toIndentedString(creatorUser)).append("\n");
    sb.append("    createdDate: ").append(toIndentedString(createdDate)).append("\n");
    sb.append("    external: ").append(toIndentedString(external)).append("\n");
    sb.append("    crossPod: ").append(toIndentedString(crossPod)).append("\n");
    sb.append("    _public: ").append(toIndentedString(_public)).append("\n");
    sb.append("    copyProtected: ").append(toIndentedString(copyProtected)).append("\n");
    sb.append("    readOnly: ").append(toIndentedString(readOnly)).append("\n");
    sb.append("    discoverable: ").append(toIndentedString(discoverable)).append("\n");
    sb.append("    membersCanInvite: ").append(toIndentedString(membersCanInvite)).append("\n");
    sb.append("    keywords: ").append(toIndentedString(keywords)).append("\n");
    sb.append("    canViewHistory: ").append(toIndentedString(canViewHistory)).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