com.huaweicloud.sdk.apm.v1.model.EnvNodeModel Maven / Gradle / Ivy
package com.huaweicloud.sdk.apm.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDate;
import java.util.Objects;
/**
* 环境信息。
*/
public class EnvNodeModel {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private Long id;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "gmt_create")
private LocalDate gmtCreate;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "gmt_modify")
private LocalDate gmtModify;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "app_id")
private Long appId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "business_name")
private String businessName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "inner_domain_id")
private Integer innerDomainId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "is_default")
private Boolean isDefault;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "app_name")
private String appName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "business_id")
private Long businessId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "region")
private String region;
public EnvNodeModel withId(Long id) {
this.id = id;
return this;
}
/**
* 环境id。
* @return id
*/
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public EnvNodeModel withGmtCreate(LocalDate gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* 创建时间。
* @return gmtCreate
*/
public LocalDate getGmtCreate() {
return gmtCreate;
}
public void setGmtCreate(LocalDate gmtCreate) {
this.gmtCreate = gmtCreate;
}
public EnvNodeModel withGmtModify(LocalDate gmtModify) {
this.gmtModify = gmtModify;
return this;
}
/**
* 修改时间。
* @return gmtModify
*/
public LocalDate getGmtModify() {
return gmtModify;
}
public void setGmtModify(LocalDate gmtModify) {
this.gmtModify = gmtModify;
}
public EnvNodeModel withAppId(Long appId) {
this.appId = appId;
return this;
}
/**
* 组件id。
* @return appId
*/
public Long getAppId() {
return appId;
}
public void setAppId(Long appId) {
this.appId = appId;
}
public EnvNodeModel withBusinessName(String businessName) {
this.businessName = businessName;
return this;
}
/**
* 应用名称。
* @return businessName
*/
public String getBusinessName() {
return businessName;
}
public void setBusinessName(String businessName) {
this.businessName = businessName;
}
public EnvNodeModel withInnerDomainId(Integer innerDomainId) {
this.innerDomainId = innerDomainId;
return this;
}
/**
* 租户id。
* @return innerDomainId
*/
public Integer getInnerDomainId() {
return innerDomainId;
}
public void setInnerDomainId(Integer innerDomainId) {
this.innerDomainId = innerDomainId;
}
public EnvNodeModel withName(String name) {
this.name = name;
return this;
}
/**
* 环境名称。
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public EnvNodeModel withIsDefault(Boolean isDefault) {
this.isDefault = isDefault;
return this;
}
/**
* 是否是默认环境。
* @return isDefault
*/
public Boolean getIsDefault() {
return isDefault;
}
public void setIsDefault(Boolean isDefault) {
this.isDefault = isDefault;
}
public EnvNodeModel withAppName(String appName) {
this.appName = appName;
return this;
}
/**
* 组件名称。
* @return appName
*/
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public EnvNodeModel withBusinessId(Long businessId) {
this.businessId = businessId;
return this;
}
/**
* 应用id。
* @return businessId
*/
public Long getBusinessId() {
return businessId;
}
public void setBusinessId(Long businessId) {
this.businessId = businessId;
}
public EnvNodeModel withRegion(String region) {
this.region = region;
return this;
}
/**
* 区域。
* @return region
*/
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
EnvNodeModel that = (EnvNodeModel) obj;
return Objects.equals(this.id, that.id) && Objects.equals(this.gmtCreate, that.gmtCreate)
&& Objects.equals(this.gmtModify, that.gmtModify) && Objects.equals(this.appId, that.appId)
&& Objects.equals(this.businessName, that.businessName)
&& Objects.equals(this.innerDomainId, that.innerDomainId) && Objects.equals(this.name, that.name)
&& Objects.equals(this.isDefault, that.isDefault) && Objects.equals(this.appName, that.appName)
&& Objects.equals(this.businessId, that.businessId) && Objects.equals(this.region, that.region);
}
@Override
public int hashCode() {
return Objects.hash(id,
gmtCreate,
gmtModify,
appId,
businessName,
innerDomainId,
name,
isDefault,
appName,
businessId,
region);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnvNodeModel {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" gmtCreate: ").append(toIndentedString(gmtCreate)).append("\n");
sb.append(" gmtModify: ").append(toIndentedString(gmtModify)).append("\n");
sb.append(" appId: ").append(toIndentedString(appId)).append("\n");
sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n");
sb.append(" innerDomainId: ").append(toIndentedString(innerDomainId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n");
sb.append(" appName: ").append(toIndentedString(appName)).append("\n");
sb.append(" businessId: ").append(toIndentedString(businessId)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).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 ");
}
}