com.huaweicloud.sdk.cloudtest.v1.model.SystemConfig 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;
/**
* SystemConfig
*/
public class SystemConfig {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private String id;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "key")
private String key;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "value")
private String value;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "remark")
private String remark;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "region_id")
private String regionId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "project_id")
private String projectId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "update_time")
private String updateTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "update_name")
private String updateName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "update_num")
private String updateNum;
public SystemConfig withId(String id) {
this.id = id;
return this;
}
/**
* 配置项主键
* @return id
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public SystemConfig withKey(String key) {
this.key = key;
return this;
}
/**
* 系统配置名称
* @return key
*/
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public SystemConfig withValue(String value) {
this.value = value;
return this;
}
/**
* 系统配置状态
* @return value
*/
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public SystemConfig withRemark(String remark) {
this.remark = remark;
return this;
}
/**
* 描述
* @return remark
*/
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public SystemConfig withRegionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* region_id
* @return regionId
*/
public String getRegionId() {
return regionId;
}
public void setRegionId(String regionId) {
this.regionId = regionId;
}
public SystemConfig withProjectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* 项目ID
* @return projectId
*/
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public SystemConfig withUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
/**
* 更新时间
* @return updateTime
*/
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public SystemConfig withUpdateName(String updateName) {
this.updateName = updateName;
return this;
}
/**
* 更新人名称
* @return updateName
*/
public String getUpdateName() {
return updateName;
}
public void setUpdateName(String updateName) {
this.updateName = updateName;
}
public SystemConfig withUpdateNum(String updateNum) {
this.updateNum = updateNum;
return this;
}
/**
* 更新人编号
* @return updateNum
*/
public String getUpdateNum() {
return updateNum;
}
public void setUpdateNum(String updateNum) {
this.updateNum = updateNum;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
SystemConfig that = (SystemConfig) obj;
return Objects.equals(this.id, that.id) && Objects.equals(this.key, that.key)
&& Objects.equals(this.value, that.value) && Objects.equals(this.remark, that.remark)
&& Objects.equals(this.regionId, that.regionId) && Objects.equals(this.projectId, that.projectId)
&& Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.updateName, that.updateName)
&& Objects.equals(this.updateNum, that.updateNum);
}
@Override
public int hashCode() {
return Objects.hash(id, key, value, remark, regionId, projectId, updateTime, updateName, updateNum);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SystemConfig {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" remark: ").append(toIndentedString(remark)).append("\n");
sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n");
sb.append(" updateName: ").append(toIndentedString(updateName)).append("\n");
sb.append(" updateNum: ").append(toIndentedString(updateNum)).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 ");
}
}