All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.huaweicloud.sdk.apm.v1.model.InstanceInfo Maven / Gradle / Ivy
package com.huaweicloud.sdk.apm.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 实例信息。
*/
public class InstanceInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "instance_id")
private Long instanceId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "business_name")
private String businessName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "business_id")
private Long businessId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "app_name")
private String appName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "host_name")
private String hostName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "instance_name")
private String instanceName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ip_address")
private String ipAddress;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "env_id")
private Long envId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "agent_version")
private String agentVersion;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "last_heartbeat")
private Long lastHeartbeat;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "register_time")
private Long registerTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "last_modify_user_id")
private String lastModifyUserId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "instance_status")
private Integer instanceStatus;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "last_modify_user_name")
private String lastModifyUserName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "last_modify_time")
private Long lastModifyTime;
public InstanceInfo withInstanceId(Long instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* 实例id。
* @return instanceId
*/
public Long getInstanceId() {
return instanceId;
}
public void setInstanceId(Long instanceId) {
this.instanceId = instanceId;
}
public InstanceInfo withBusinessName(String businessName) {
this.businessName = businessName;
return this;
}
/**
* 应用名称。
* @return businessName
*/
public String getBusinessName() {
return businessName;
}
public void setBusinessName(String businessName) {
this.businessName = businessName;
}
public InstanceInfo 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 InstanceInfo withAppName(String appName) {
this.appName = appName;
return this;
}
/**
* 组件名称。
* @return appName
*/
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public InstanceInfo withHostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* 主机名称。
* @return hostName
*/
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public InstanceInfo withInstanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* 实例名称。
* @return instanceName
*/
public String getInstanceName() {
return instanceName;
}
public void setInstanceName(String instanceName) {
this.instanceName = instanceName;
}
public InstanceInfo withIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* 主机ip地址。
* @return ipAddress
*/
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public InstanceInfo withEnvId(Long envId) {
this.envId = envId;
return this;
}
/**
* 环境ID。
* @return envId
*/
public Long getEnvId() {
return envId;
}
public void setEnvId(Long envId) {
this.envId = envId;
}
public InstanceInfo withAgentVersion(String agentVersion) {
this.agentVersion = agentVersion;
return this;
}
/**
* Javaagent版本。
* @return agentVersion
*/
public String getAgentVersion() {
return agentVersion;
}
public void setAgentVersion(String agentVersion) {
this.agentVersion = agentVersion;
}
public InstanceInfo withLastHeartbeat(Long lastHeartbeat) {
this.lastHeartbeat = lastHeartbeat;
return this;
}
/**
* 最后心跳时间。
* @return lastHeartbeat
*/
public Long getLastHeartbeat() {
return lastHeartbeat;
}
public void setLastHeartbeat(Long lastHeartbeat) {
this.lastHeartbeat = lastHeartbeat;
}
public InstanceInfo withRegisterTime(Long registerTime) {
this.registerTime = registerTime;
return this;
}
/**
* 注册时间。
* @return registerTime
*/
public Long getRegisterTime() {
return registerTime;
}
public void setRegisterTime(Long registerTime) {
this.registerTime = registerTime;
}
public InstanceInfo withLastModifyUserId(String lastModifyUserId) {
this.lastModifyUserId = lastModifyUserId;
return this;
}
/**
* 最后修改用户id。
* @return lastModifyUserId
*/
public String getLastModifyUserId() {
return lastModifyUserId;
}
public void setLastModifyUserId(String lastModifyUserId) {
this.lastModifyUserId = lastModifyUserId;
}
public InstanceInfo withInstanceStatus(Integer instanceStatus) {
this.instanceStatus = instanceStatus;
return this;
}
/**
* 实例状态。
* @return instanceStatus
*/
public Integer getInstanceStatus() {
return instanceStatus;
}
public void setInstanceStatus(Integer instanceStatus) {
this.instanceStatus = instanceStatus;
}
public InstanceInfo withLastModifyUserName(String lastModifyUserName) {
this.lastModifyUserName = lastModifyUserName;
return this;
}
/**
* 最后修改用户名称。
* @return lastModifyUserName
*/
public String getLastModifyUserName() {
return lastModifyUserName;
}
public void setLastModifyUserName(String lastModifyUserName) {
this.lastModifyUserName = lastModifyUserName;
}
public InstanceInfo withLastModifyTime(Long lastModifyTime) {
this.lastModifyTime = lastModifyTime;
return this;
}
/**
* 最后修改时间。
* @return lastModifyTime
*/
public Long getLastModifyTime() {
return lastModifyTime;
}
public void setLastModifyTime(Long lastModifyTime) {
this.lastModifyTime = lastModifyTime;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
InstanceInfo that = (InstanceInfo) obj;
return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.businessName, that.businessName)
&& Objects.equals(this.businessId, that.businessId) && Objects.equals(this.appName, that.appName)
&& Objects.equals(this.hostName, that.hostName) && Objects.equals(this.instanceName, that.instanceName)
&& Objects.equals(this.ipAddress, that.ipAddress) && Objects.equals(this.envId, that.envId)
&& Objects.equals(this.agentVersion, that.agentVersion)
&& Objects.equals(this.lastHeartbeat, that.lastHeartbeat)
&& Objects.equals(this.registerTime, that.registerTime)
&& Objects.equals(this.lastModifyUserId, that.lastModifyUserId)
&& Objects.equals(this.instanceStatus, that.instanceStatus)
&& Objects.equals(this.lastModifyUserName, that.lastModifyUserName)
&& Objects.equals(this.lastModifyTime, that.lastModifyTime);
}
@Override
public int hashCode() {
return Objects.hash(instanceId,
businessName,
businessId,
appName,
hostName,
instanceName,
ipAddress,
envId,
agentVersion,
lastHeartbeat,
registerTime,
lastModifyUserId,
instanceStatus,
lastModifyUserName,
lastModifyTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InstanceInfo {\n");
sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n");
sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n");
sb.append(" businessId: ").append(toIndentedString(businessId)).append("\n");
sb.append(" appName: ").append(toIndentedString(appName)).append("\n");
sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n");
sb.append(" instanceName: ").append(toIndentedString(instanceName)).append("\n");
sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
sb.append(" envId: ").append(toIndentedString(envId)).append("\n");
sb.append(" agentVersion: ").append(toIndentedString(agentVersion)).append("\n");
sb.append(" lastHeartbeat: ").append(toIndentedString(lastHeartbeat)).append("\n");
sb.append(" registerTime: ").append(toIndentedString(registerTime)).append("\n");
sb.append(" lastModifyUserId: ").append(toIndentedString(lastModifyUserId)).append("\n");
sb.append(" instanceStatus: ").append(toIndentedString(instanceStatus)).append("\n");
sb.append(" lastModifyUserName: ").append(toIndentedString(lastModifyUserName)).append("\n");
sb.append(" lastModifyTime: ").append(toIndentedString(lastModifyTime)).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 ");
}
}