com.huaweicloud.sdk.cloudtest.v1.model.Review Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudtest.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Review
*/
public class Review {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "charger")
private String charger;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "create_time")
private String createTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "creator")
private String creator;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "deleted")
private String deleted;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "description")
private String description;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private String id;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "mindmap_id")
private String mindmapId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "node_id")
private String nodeId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "node_value")
private String nodeValue;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private String status;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "type")
private String type;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "update_time")
private String updateTime;
public Review withCharger(String charger) {
this.charger = charger;
return this;
}
/**
* 名称
* @return charger
*/
public String getCharger() {
return charger;
}
public void setCharger(String charger) {
this.charger = charger;
}
public Review withCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* 创建时间
* @return createTime
*/
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public Review withCreator(String creator) {
this.creator = creator;
return this;
}
/**
* 创建人
* @return creator
*/
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public Review withDeleted(String deleted) {
this.deleted = deleted;
return this;
}
/**
* 是否删除
* @return deleted
*/
public String getDeleted() {
return deleted;
}
public void setDeleted(String deleted) {
this.deleted = deleted;
}
public Review withDescription(String description) {
this.description = description;
return this;
}
/**
* 描述
* @return description
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Review withId(String id) {
this.id = id;
return this;
}
/**
* id 主键
* @return id
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Review withMindmapId(String mindmapId) {
this.mindmapId = mindmapId;
return this;
}
/**
* 脑图id
* @return mindmapId
*/
public String getMindmapId() {
return mindmapId;
}
public void setMindmapId(String mindmapId) {
this.mindmapId = mindmapId;
}
public Review withNodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* 节点id
* @return nodeId
*/
public String getNodeId() {
return nodeId;
}
public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}
public Review withNodeValue(String nodeValue) {
this.nodeValue = nodeValue;
return this;
}
/**
* 节点值
* @return nodeValue
*/
public String getNodeValue() {
return nodeValue;
}
public void setNodeValue(String nodeValue) {
this.nodeValue = nodeValue;
}
public Review withStatus(String status) {
this.status = status;
return this;
}
/**
* 状态
* @return status
*/
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Review withType(String type) {
this.type = type;
return this;
}
/**
* 类型
* @return type
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Review withUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
/**
* 更新时间
* @return updateTime
*/
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
Review that = (Review) obj;
return Objects.equals(this.charger, that.charger) && Objects.equals(this.createTime, that.createTime)
&& Objects.equals(this.creator, that.creator) && Objects.equals(this.deleted, that.deleted)
&& Objects.equals(this.description, that.description) && Objects.equals(this.id, that.id)
&& Objects.equals(this.mindmapId, that.mindmapId) && Objects.equals(this.nodeId, that.nodeId)
&& Objects.equals(this.nodeValue, that.nodeValue) && Objects.equals(this.status, that.status)
&& Objects.equals(this.type, that.type) && Objects.equals(this.updateTime, that.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(charger,
createTime,
creator,
deleted,
description,
id,
mindmapId,
nodeId,
nodeValue,
status,
type,
updateTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Review {\n");
sb.append(" charger: ").append(toIndentedString(charger)).append("\n");
sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n");
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" mindmapId: ").append(toIndentedString(mindmapId)).append("\n");
sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n");
sb.append(" nodeValue: ").append(toIndentedString(nodeValue)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" updateTime: ").append(toIndentedString(updateTime)).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 ");
}
}