com.huaweicloud.sdk.cloudtest.v1.model.NameAndValueAndCodeVo 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;
/**
* 用户自定义结果对应的用例数目
*/
public class NameAndValueAndCodeVo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "value")
private Integer value;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "code")
private String code;
public NameAndValueAndCodeVo withName(String name) {
this.name = name;
return this;
}
/**
* 名称
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public NameAndValueAndCodeVo withValue(Integer value) {
this.value = value;
return this;
}
/**
* 值
* @return value
*/
public Integer getValue() {
return value;
}
public void setValue(Integer value) {
this.value = value;
}
public NameAndValueAndCodeVo withCode(String code) {
this.code = code;
return this;
}
/**
* 编码
* @return code
*/
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
NameAndValueAndCodeVo that = (NameAndValueAndCodeVo) obj;
return Objects.equals(this.name, that.name) && Objects.equals(this.value, that.value)
&& Objects.equals(this.code, that.code);
}
@Override
public int hashCode() {
return Objects.hash(name, value, code);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NameAndValueAndCodeVo {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).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 ");
}
}