
com.huaweicloud.sdk.functiongraph.v2.model.ShowEventResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.functiongraph.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.math.BigDecimal;
import java.util.Objects;
/** Response Object */
public class ShowEventResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private String id;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "content")
private String content;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "last_modified")
private BigDecimal lastModified;
public ShowEventResponse 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 ShowEventResponse withName(String name) {
this.name = name;
return this;
}
/** 测试事件名称。
*
* @return name */
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ShowEventResponse withContent(String content) {
this.content = content;
return this;
}
/** 测试事件content。
*
* @return content */
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public ShowEventResponse withLastModified(BigDecimal lastModified) {
this.lastModified = lastModified;
return this;
}
/** 上次修改的时间。
*
* @return lastModified */
public BigDecimal getLastModified() {
return lastModified;
}
public void setLastModified(BigDecimal lastModified) {
this.lastModified = lastModified;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ShowEventResponse showEventResponse = (ShowEventResponse) o;
return Objects.equals(this.id, showEventResponse.id) && Objects.equals(this.name, showEventResponse.name)
&& Objects.equals(this.content, showEventResponse.content)
&& Objects.equals(this.lastModified, showEventResponse.lastModified);
}
@Override
public int hashCode() {
return Objects.hash(id, name, content, lastModified);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowEventResponse {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" lastModified: ").append(toIndentedString(lastModified)).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