com.symphony.api.model.RoomCreatedMessage Maven / Gradle / Ivy
package com.symphony.api.model;
import com.symphony.api.model.RoomTag;
import com.symphony.api.model.V2BaseMessage;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
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;
/**
* Generated when a room is created.
**/
@Schema(description="Generated when a room is created.")
public class RoomCreatedMessage extends V2BaseMessage {
@Schema(description = "")
private Long creationDate = null;
@Schema(description = "")
private String name = null;
@Schema(description = "")
private List keywords = null;
@Schema(description = "")
private String description = null;
@Schema(description = "The Symphony userId of the user who created the room.")
/**
* The Symphony userId of the user who created the room.
**/
private Long createdByUserId = null;
@Schema(description = "")
private Boolean readOnly = null;
@Schema(description = "")
private Boolean discoverable = null;
@Schema(description = "")
private Boolean _public = null;
@Schema(description = "")
private Boolean membersCanInvite = null;
@Schema(description = "")
private Boolean copyProtected = null;
/**
* Get creationDate
* @return creationDate
**/
@JsonProperty("creationDate")
public Long getCreationDate() {
return creationDate;
}
public void setCreationDate(Long creationDate) {
this.creationDate = creationDate;
}
public RoomCreatedMessage creationDate(Long creationDate) {
this.creationDate = creationDate;
return this;
}
/**
* Get name
* @return name
**/
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public RoomCreatedMessage name(String name) {
this.name = name;
return this;
}
/**
* Get keywords
* @return keywords
**/
@JsonProperty("keywords")
public List getKeywords() {
return keywords;
}
public void setKeywords(List keywords) {
this.keywords = keywords;
}
public RoomCreatedMessage keywords(List keywords) {
this.keywords = keywords;
return this;
}
public RoomCreatedMessage addKeywordsItem(RoomTag keywordsItem) {
this.keywords.add(keywordsItem);
return this;
}
/**
* Get description
* @return description
**/
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public RoomCreatedMessage description(String description) {
this.description = description;
return this;
}
/**
* The Symphony userId of the user who created the room.
* @return createdByUserId
**/
@JsonProperty("createdByUserId")
public Long getCreatedByUserId() {
return createdByUserId;
}
public void setCreatedByUserId(Long createdByUserId) {
this.createdByUserId = createdByUserId;
}
public RoomCreatedMessage createdByUserId(Long createdByUserId) {
this.createdByUserId = createdByUserId;
return this;
}
/**
* Get readOnly
* @return readOnly
**/
@JsonProperty("readOnly")
public Boolean isReadOnly() {
return readOnly;
}
public void setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
}
public RoomCreatedMessage readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* Get discoverable
* @return discoverable
**/
@JsonProperty("discoverable")
public Boolean isDiscoverable() {
return discoverable;
}
public void setDiscoverable(Boolean discoverable) {
this.discoverable = discoverable;
}
public RoomCreatedMessage discoverable(Boolean discoverable) {
this.discoverable = discoverable;
return this;
}
/**
* Get _public
* @return _public
**/
@JsonProperty("public")
public Boolean isPublic() {
return _public;
}
public void setPublic(Boolean _public) {
this._public = _public;
}
public RoomCreatedMessage _public(Boolean _public) {
this._public = _public;
return this;
}
/**
* Get membersCanInvite
* @return membersCanInvite
**/
@JsonProperty("membersCanInvite")
public Boolean isMembersCanInvite() {
return membersCanInvite;
}
public void setMembersCanInvite(Boolean membersCanInvite) {
this.membersCanInvite = membersCanInvite;
}
public RoomCreatedMessage membersCanInvite(Boolean membersCanInvite) {
this.membersCanInvite = membersCanInvite;
return this;
}
/**
* Get copyProtected
* @return copyProtected
**/
@JsonProperty("copyProtected")
public Boolean isCopyProtected() {
return copyProtected;
}
public void setCopyProtected(Boolean copyProtected) {
this.copyProtected = copyProtected;
}
public RoomCreatedMessage copyProtected(Boolean copyProtected) {
this.copyProtected = copyProtected;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoomCreatedMessage {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" createdByUserId: ").append(toIndentedString(createdByUserId)).append("\n");
sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n");
sb.append(" discoverable: ").append(toIndentedString(discoverable)).append("\n");
sb.append(" _public: ").append(toIndentedString(_public)).append("\n");
sb.append(" membersCanInvite: ").append(toIndentedString(membersCanInvite)).append("\n");
sb.append(" copyProtected: ").append(toIndentedString(copyProtected)).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