com.volcengine.rocketmq.model.MessageSendRequest 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;
/**
* MessageSendRequest
*/
public class MessageSendRequest {
@SerializedName("Body")
private String body = null;
@SerializedName("InstanceId")
private String instanceId = null;
@SerializedName("Key")
private String key = null;
@SerializedName("Tag")
private String tag = null;
@SerializedName("Topic")
private String topic = null;
public MessageSendRequest body(String body) {
this.body = body;
return this;
}
/**
* Get body
* @return body
**/
@NotNull
@Schema(required = true, description = "")
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public MessageSendRequest instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* Get instanceId
* @return instanceId
**/
@NotNull
@Schema(required = true, description = "")
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public MessageSendRequest key(String key) {
this.key = key;
return this;
}
/**
* Get key
* @return key
**/
@Schema(description = "")
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public MessageSendRequest 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 MessageSendRequest topic(String topic) {
this.topic = topic;
return this;
}
/**
* Get topic
* @return topic
**/
@NotNull
@Schema(required = true, description = "")
public String getTopic() {
return topic;
}
public void setTopic(String topic) {
this.topic = topic;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MessageSendRequest messageSendRequest = (MessageSendRequest) o;
return Objects.equals(this.body, messageSendRequest.body) &&
Objects.equals(this.instanceId, messageSendRequest.instanceId) &&
Objects.equals(this.key, messageSendRequest.key) &&
Objects.equals(this.tag, messageSendRequest.tag) &&
Objects.equals(this.topic, messageSendRequest.topic);
}
@Override
public int hashCode() {
return Objects.hash(body, instanceId, key, tag, topic);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MessageSendRequest {\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" tag: ").append(toIndentedString(tag)).append("\n");
sb.append(" topic: ").append(toIndentedString(topic)).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