com.huaweicloud.sdk.cloudtest.v1.model.SimpleResourceInfo 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 SimpleResourceInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "type")
private String type;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "owner")
private String owner;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "resource_id")
private String resourceId;
public SimpleResourceInfo withType(String type) {
this.type = type;
return this;
}
/**
* 资源类型
* @return type
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public SimpleResourceInfo withOwner(String owner) {
this.owner = owner;
return this;
}
/**
* 资源责任人
* @return owner
*/
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
public SimpleResourceInfo withResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* 资源id
* @return resourceId
*/
public String getResourceId() {
return resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
SimpleResourceInfo that = (SimpleResourceInfo) obj;
return Objects.equals(this.type, that.type) && Objects.equals(this.owner, that.owner)
&& Objects.equals(this.resourceId, that.resourceId);
}
@Override
public int hashCode() {
return Objects.hash(type, owner, resourceId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SimpleResourceInfo {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
sb.append(" resourceId: ").append(toIndentedString(resourceId)).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 ");
}
}