com.symphony.api.model.RoomAttributes Maven / Gradle / Ivy
package com.symphony.api.model;
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 RoomAttributes {
@Schema(description = "Room name.")
/**
* Room name.
**/
private String name = null;
@Schema(description = "Room description.")
/**
* Room description.
**/
private String description = null;
@Schema(description = "If true, any chatroom participant can add new participants. If false, only owners can add new participants.")
/**
* If true, any chatroom participant can add new participants. If false, only owners can add new participants.
**/
private Boolean membersCanInvite = null;
@Schema(description = "If true, this chatroom (name, description and messages) can be searched and listed by non-participants. If false, only participants can search this room.")
/**
* If true, this chatroom (name, description and messages) can be searched and listed by non-participants. If false, only participants can search this room.
**/
private Boolean discoverable = null;
/**
* Room name.
* @return name
**/
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public RoomAttributes name(String name) {
this.name = name;
return this;
}
/**
* Room description.
* @return description
**/
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public RoomAttributes description(String description) {
this.description = description;
return this;
}
/**
* If true, any chatroom participant can add new participants. If false, only owners can add new participants.
* @return membersCanInvite
**/
@JsonProperty("membersCanInvite")
public Boolean isMembersCanInvite() {
return membersCanInvite;
}
public void setMembersCanInvite(Boolean membersCanInvite) {
this.membersCanInvite = membersCanInvite;
}
public RoomAttributes membersCanInvite(Boolean membersCanInvite) {
this.membersCanInvite = membersCanInvite;
return this;
}
/**
* If true, this chatroom (name, description and messages) can be searched and listed by non-participants. If false, only participants can search this room.
* @return discoverable
**/
@JsonProperty("discoverable")
public Boolean isDiscoverable() {
return discoverable;
}
public void setDiscoverable(Boolean discoverable) {
this.discoverable = discoverable;
}
public RoomAttributes discoverable(Boolean discoverable) {
this.discoverable = discoverable;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoomAttributes {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" membersCanInvite: ").append(toIndentedString(membersCanInvite)).append("\n");
sb.append(" discoverable: ").append(toIndentedString(discoverable)).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