
com.symphony.api.model.BaseMessage 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 BaseMessage {
@Schema(description = "The messageId is assigned by the ingestor service when a message is sent.")
/**
* The messageId is assigned by the ingestor service when a message is sent.
**/
private String id = null;
@Schema(required = true, description = "")
private String timestamp = null;
@Schema(required = true, description = "")
private String messageType = null;
@Schema(required = true, description = "")
private String streamId = null;
/**
* The messageId is assigned by the ingestor service when a message is sent.
* @return id
**/
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public BaseMessage id(String id) {
this.id = id;
return this;
}
/**
* Get timestamp
* @return timestamp
**/
@JsonProperty("timestamp")
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
public BaseMessage timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* Get messageType
* @return messageType
**/
@JsonProperty("messageType")
public String getMessageType() {
return messageType;
}
public void setMessageType(String messageType) {
this.messageType = messageType;
}
public BaseMessage messageType(String messageType) {
this.messageType = messageType;
return this;
}
/**
* Get streamId
* @return streamId
**/
@JsonProperty("streamId")
public String getStreamId() {
return streamId;
}
public void setStreamId(String streamId) {
this.streamId = streamId;
}
public BaseMessage streamId(String streamId) {
this.streamId = streamId;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BaseMessage {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" messageType: ").append(toIndentedString(messageType)).append("\n");
sb.append(" streamId: ").append(toIndentedString(streamId)).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