
com.huaweicloud.sdk.functiongraph.v2.model.CreateEventRequestBody Maven / Gradle / Ivy
package com.huaweicloud.sdk.functiongraph.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** 创建测试事件请求体。 */
public class CreateEventRequestBody {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "content")
private String content;
public CreateEventRequestBody withName(String name) {
this.name = name;
return this;
}
/** 测试事件名称。只能由字母、数字、中划线和下划线组成,且必须以大写或小写字母开头。
*
* @return name */
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CreateEventRequestBody withContent(String content) {
this.content = content;
return this;
}
/** 测试事件content。
*
* @return content */
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateEventRequestBody createEventRequestBody = (CreateEventRequestBody) o;
return Objects.equals(this.name, createEventRequestBody.name)
&& Objects.equals(this.content, createEventRequestBody.content);
}
@Override
public int hashCode() {
return Objects.hash(name, content);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateEventRequestBody {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" content: ").append(toIndentedString(content)).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 - 2025 Weber Informatics LLC | Privacy Policy