com.volcengine.rocketmq.model.MessageInfoForQueryMessageByMsgIdOutput Maven / Gradle / Ivy
/*
* rocketmq
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* 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 com.volcengine.rocketmq.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* MessageInfoForQueryMessageByMsgIdOutput
*/
public class MessageInfoForQueryMessageByMsgIdOutput {
@SerializedName("Body")
private String body = null;
@SerializedName("CreateTimestamp")
private Long createTimestamp = null;
@SerializedName("IsExist")
private Boolean isExist = null;
@SerializedName("MessageId")
private String messageId = null;
@SerializedName("MessageKey")
private String messageKey = null;
@SerializedName("MessageSize")
private Integer messageSize = null;
@SerializedName("ProducerHost")
private String producerHost = null;
@SerializedName("StoreTimestamp")
private Long storeTimestamp = null;
@SerializedName("Tag")
private String tag = null;
@SerializedName("TopicName")
private String topicName = null;
public MessageInfoForQueryMessageByMsgIdOutput body(String body) {
this.body = body;
return this;
}
/**
* Get body
* @return body
**/
@Schema(description = "")
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public MessageInfoForQueryMessageByMsgIdOutput createTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
return this;
}
/**
* Get createTimestamp
* @return createTimestamp
**/
@Schema(description = "")
public Long getCreateTimestamp() {
return createTimestamp;
}
public void setCreateTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
}
public MessageInfoForQueryMessageByMsgIdOutput isExist(Boolean isExist) {
this.isExist = isExist;
return this;
}
/**
* Get isExist
* @return isExist
**/
@Schema(description = "")
public Boolean isIsExist() {
return isExist;
}
public void setIsExist(Boolean isExist) {
this.isExist = isExist;
}
public MessageInfoForQueryMessageByMsgIdOutput messageId(String messageId) {
this.messageId = messageId;
return this;
}
/**
* Get messageId
* @return messageId
**/
@Schema(description = "")
public String getMessageId() {
return messageId;
}
public void setMessageId(String messageId) {
this.messageId = messageId;
}
public MessageInfoForQueryMessageByMsgIdOutput messageKey(String messageKey) {
this.messageKey = messageKey;
return this;
}
/**
* Get messageKey
* @return messageKey
**/
@Schema(description = "")
public String getMessageKey() {
return messageKey;
}
public void setMessageKey(String messageKey) {
this.messageKey = messageKey;
}
public MessageInfoForQueryMessageByMsgIdOutput messageSize(Integer messageSize) {
this.messageSize = messageSize;
return this;
}
/**
* Get messageSize
* @return messageSize
**/
@Schema(description = "")
public Integer getMessageSize() {
return messageSize;
}
public void setMessageSize(Integer messageSize) {
this.messageSize = messageSize;
}
public MessageInfoForQueryMessageByMsgIdOutput producerHost(String producerHost) {
this.producerHost = producerHost;
return this;
}
/**
* Get producerHost
* @return producerHost
**/
@Schema(description = "")
public String getProducerHost() {
return producerHost;
}
public void setProducerHost(String producerHost) {
this.producerHost = producerHost;
}
public MessageInfoForQueryMessageByMsgIdOutput storeTimestamp(Long storeTimestamp) {
this.storeTimestamp = storeTimestamp;
return this;
}
/**
* Get storeTimestamp
* @return storeTimestamp
**/
@Schema(description = "")
public Long getStoreTimestamp() {
return storeTimestamp;
}
public void setStoreTimestamp(Long storeTimestamp) {
this.storeTimestamp = storeTimestamp;
}
public MessageInfoForQueryMessageByMsgIdOutput tag(String tag) {
this.tag = tag;
return this;
}
/**
* Get tag
* @return tag
**/
@Schema(description = "")
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public MessageInfoForQueryMessageByMsgIdOutput topicName(String topicName) {
this.topicName = topicName;
return this;
}
/**
* Get topicName
* @return topicName
**/
@Schema(description = "")
public String getTopicName() {
return topicName;
}
public void setTopicName(String topicName) {
this.topicName = topicName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MessageInfoForQueryMessageByMsgIdOutput messageInfoForQueryMessageByMsgIdOutput = (MessageInfoForQueryMessageByMsgIdOutput) o;
return Objects.equals(this.body, messageInfoForQueryMessageByMsgIdOutput.body) &&
Objects.equals(this.createTimestamp, messageInfoForQueryMessageByMsgIdOutput.createTimestamp) &&
Objects.equals(this.isExist, messageInfoForQueryMessageByMsgIdOutput.isExist) &&
Objects.equals(this.messageId, messageInfoForQueryMessageByMsgIdOutput.messageId) &&
Objects.equals(this.messageKey, messageInfoForQueryMessageByMsgIdOutput.messageKey) &&
Objects.equals(this.messageSize, messageInfoForQueryMessageByMsgIdOutput.messageSize) &&
Objects.equals(this.producerHost, messageInfoForQueryMessageByMsgIdOutput.producerHost) &&
Objects.equals(this.storeTimestamp, messageInfoForQueryMessageByMsgIdOutput.storeTimestamp) &&
Objects.equals(this.tag, messageInfoForQueryMessageByMsgIdOutput.tag) &&
Objects.equals(this.topicName, messageInfoForQueryMessageByMsgIdOutput.topicName);
}
@Override
public int hashCode() {
return Objects.hash(body, createTimestamp, isExist, messageId, messageKey, messageSize, producerHost, storeTimestamp, tag, topicName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MessageInfoForQueryMessageByMsgIdOutput {\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append(" createTimestamp: ").append(toIndentedString(createTimestamp)).append("\n");
sb.append(" isExist: ").append(toIndentedString(isExist)).append("\n");
sb.append(" messageId: ").append(toIndentedString(messageId)).append("\n");
sb.append(" messageKey: ").append(toIndentedString(messageKey)).append("\n");
sb.append(" messageSize: ").append(toIndentedString(messageSize)).append("\n");
sb.append(" producerHost: ").append(toIndentedString(producerHost)).append("\n");
sb.append(" storeTimestamp: ").append(toIndentedString(storeTimestamp)).append("\n");
sb.append(" tag: ").append(toIndentedString(tag)).append("\n");
sb.append(" topicName: ").append(toIndentedString(topicName)).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 ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy