org.symphonyoss.symphony.agent.model.RoomUpdatedMessage 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.RoomTag;
import org.symphonyoss.symphony.agent.model.V2BaseMessage;
/**
* Generated when a room is updated.
*/
@ApiModel(description = "Generated when a room is updated.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-03-13T13:44:51.568-04:00")
public class RoomUpdatedMessage extends V2BaseMessage {
@JsonProperty("oldName")
private String oldName = null;
@JsonProperty("newName")
private String newName = null;
@JsonProperty("keywords")
private List keywords = null;
@JsonProperty("oldDescription")
private String oldDescription = null;
@JsonProperty("newDescription")
private String newDescription = null;
@JsonProperty("membersCanInvite")
private Boolean membersCanInvite = null;
@JsonProperty("discoverable")
private Boolean discoverable = null;
@JsonProperty("readOnly")
private Boolean readOnly = null;
@JsonProperty("copyProtected")
private Boolean copyProtected = null;
public RoomUpdatedMessage oldName(String oldName) {
this.oldName = oldName;
return this;
}
/**
* Get oldName
* @return oldName
**/
@ApiModelProperty(value = "")
public String getOldName() {
return oldName;
}
public void setOldName(String oldName) {
this.oldName = oldName;
}
public RoomUpdatedMessage newName(String newName) {
this.newName = newName;
return this;
}
/**
* Get newName
* @return newName
**/
@ApiModelProperty(value = "")
public String getNewName() {
return newName;
}
public void setNewName(String newName) {
this.newName = newName;
}
public RoomUpdatedMessage keywords(List keywords) {
this.keywords = keywords;
return this;
}
public RoomUpdatedMessage addKeywordsItem(RoomTag 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 RoomUpdatedMessage oldDescription(String oldDescription) {
this.oldDescription = oldDescription;
return this;
}
/**
* Get oldDescription
* @return oldDescription
**/
@ApiModelProperty(value = "")
public String getOldDescription() {
return oldDescription;
}
public void setOldDescription(String oldDescription) {
this.oldDescription = oldDescription;
}
public RoomUpdatedMessage newDescription(String newDescription) {
this.newDescription = newDescription;
return this;
}
/**
* Get newDescription
* @return newDescription
**/
@ApiModelProperty(value = "")
public String getNewDescription() {
return newDescription;
}
public void setNewDescription(String newDescription) {
this.newDescription = newDescription;
}
public RoomUpdatedMessage 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 RoomUpdatedMessage 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 RoomUpdatedMessage 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 RoomUpdatedMessage 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RoomUpdatedMessage roomUpdatedMessage = (RoomUpdatedMessage) o;
return Objects.equals(this.oldName, roomUpdatedMessage.oldName) &&
Objects.equals(this.newName, roomUpdatedMessage.newName) &&
Objects.equals(this.keywords, roomUpdatedMessage.keywords) &&
Objects.equals(this.oldDescription, roomUpdatedMessage.oldDescription) &&
Objects.equals(this.newDescription, roomUpdatedMessage.newDescription) &&
Objects.equals(this.membersCanInvite, roomUpdatedMessage.membersCanInvite) &&
Objects.equals(this.discoverable, roomUpdatedMessage.discoverable) &&
Objects.equals(this.readOnly, roomUpdatedMessage.readOnly) &&
Objects.equals(this.copyProtected, roomUpdatedMessage.copyProtected) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(oldName, newName, keywords, oldDescription, newDescription, membersCanInvite, discoverable, readOnly, copyProtected, super.hashCode());
}
@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 String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}