com.symphony.api.model.RoomUpdatedMessage 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 updated.
**/
@Schema(description="Generated when a room is updated.")
public class RoomUpdatedMessage extends V2BaseMessage {
@Schema(description = "")
private String oldName = null;
@Schema(description = "")
private String newName = null;
@Schema(description = "")
private List keywords = null;
@Schema(description = "")
private String oldDescription = null;
@Schema(description = "")
private String newDescription = null;
@Schema(description = "")
private Boolean membersCanInvite = null;
@Schema(description = "")
private Boolean discoverable = null;
@Schema(description = "")
private Boolean readOnly = null;
@Schema(description = "")
private Boolean copyProtected = null;
/**
* Get oldName
* @return oldName
**/
@JsonProperty("oldName")
public String getOldName() {
return oldName;
}
public void setOldName(String oldName) {
this.oldName = oldName;
}
public RoomUpdatedMessage oldName(String oldName) {
this.oldName = oldName;
return this;
}
/**
* Get newName
* @return newName
**/
@JsonProperty("newName")
public String getNewName() {
return newName;
}
public void setNewName(String newName) {
this.newName = newName;
}
public RoomUpdatedMessage newName(String newName) {
this.newName = newName;
return this;
}
/**
* Get keywords
* @return keywords
**/
@JsonProperty("keywords")
public List getKeywords() {
return keywords;
}
public void setKeywords(List keywords) {
this.keywords = keywords;
}
public RoomUpdatedMessage keywords(List keywords) {
this.keywords = keywords;
return this;
}
public RoomUpdatedMessage addKeywordsItem(RoomTag keywordsItem) {
this.keywords.add(keywordsItem);
return this;
}
/**
* Get oldDescription
* @return oldDescription
**/
@JsonProperty("oldDescription")
public String getOldDescription() {
return oldDescription;
}
public void setOldDescription(String oldDescription) {
this.oldDescription = oldDescription;
}
public RoomUpdatedMessage oldDescription(String oldDescription) {
this.oldDescription = oldDescription;
return this;
}
/**
* Get newDescription
* @return newDescription
**/
@JsonProperty("newDescription")
public String getNewDescription() {
return newDescription;
}
public void setNewDescription(String newDescription) {
this.newDescription = newDescription;
}
public RoomUpdatedMessage newDescription(String newDescription) {
this.newDescription = newDescription;
return this;
}
/**
* Get membersCanInvite
* @return membersCanInvite
**/
@JsonProperty("membersCanInvite")
public Boolean isMembersCanInvite() {
return membersCanInvite;
}
public void setMembersCanInvite(Boolean membersCanInvite) {
this.membersCanInvite = membersCanInvite;
}
public RoomUpdatedMessage membersCanInvite(Boolean membersCanInvite) {
this.membersCanInvite = membersCanInvite;
return this;
}
/**
* Get discoverable
* @return discoverable
**/
@JsonProperty("discoverable")
public Boolean isDiscoverable() {
return discoverable;
}
public void setDiscoverable(Boolean discoverable) {
this.discoverable = discoverable;
}
public RoomUpdatedMessage discoverable(Boolean discoverable) {
this.discoverable = discoverable;
return this;
}
/**
* Get readOnly
* @return readOnly
**/
@JsonProperty("readOnly")
public Boolean isReadOnly() {
return readOnly;
}
public void setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
}
public RoomUpdatedMessage readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* Get copyProtected
* @return copyProtected
**/
@JsonProperty("copyProtected")
public Boolean isCopyProtected() {
return copyProtected;
}
public void setCopyProtected(Boolean copyProtected) {
this.copyProtected = copyProtected;
}
public RoomUpdatedMessage copyProtected(Boolean copyProtected) {
this.copyProtected = copyProtected;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoomUpdatedMessage {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" oldName: ").append(toIndentedString(oldName)).append("\n");
sb.append(" newName: ").append(toIndentedString(newName)).append("\n");
sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n");
sb.append(" oldDescription: ").append(toIndentedString(oldDescription)).append("\n");
sb.append(" newDescription: ").append(toIndentedString(newDescription)).append("\n");
sb.append(" membersCanInvite: ").append(toIndentedString(membersCanInvite)).append("\n");
sb.append(" discoverable: ").append(toIndentedString(discoverable)).append("\n");
sb.append(" readOnly: ").append(toIndentedString(readOnly)).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