com.huaweicloud.sdk.apm.v1.model.SearchEnvTopologyResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.apm.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Response Object
*/
public class SearchEnvTopologyResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "node_list")
private List nodeList = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "line_list")
private List lineList = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "collector_config")
private Map collectorConfig = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "real_start_time")
private Long realStartTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "real_end_time")
private Long realEndTime;
public SearchEnvTopologyResponse withNodeList(List nodeList) {
this.nodeList = nodeList;
return this;
}
public SearchEnvTopologyResponse addNodeListItem(TopoNode nodeListItem) {
if (this.nodeList == null) {
this.nodeList = new ArrayList<>();
}
this.nodeList.add(nodeListItem);
return this;
}
public SearchEnvTopologyResponse withNodeList(Consumer> nodeListSetter) {
if (this.nodeList == null) {
this.nodeList = new ArrayList<>();
}
nodeListSetter.accept(this.nodeList);
return this;
}
/**
* 组件节点列表。
* @return nodeList
*/
public List getNodeList() {
return nodeList;
}
public void setNodeList(List nodeList) {
this.nodeList = nodeList;
}
public SearchEnvTopologyResponse withLineList(List lineList) {
this.lineList = lineList;
return this;
}
public SearchEnvTopologyResponse addLineListItem(TopoLine lineListItem) {
if (this.lineList == null) {
this.lineList = new ArrayList<>();
}
this.lineList.add(lineListItem);
return this;
}
public SearchEnvTopologyResponse withLineList(Consumer> lineListSetter) {
if (this.lineList == null) {
this.lineList = new ArrayList<>();
}
lineListSetter.accept(this.lineList);
return this;
}
/**
* 组件之间调用指向线列表。
* @return lineList
*/
public List getLineList() {
return lineList;
}
public void setLineList(List lineList) {
this.lineList = lineList;
}
public SearchEnvTopologyResponse withCollectorConfig(Map collectorConfig) {
this.collectorConfig = collectorConfig;
return this;
}
public SearchEnvTopologyResponse putCollectorConfigItem(String key, CollectorConfigModel collectorConfigItem) {
if (this.collectorConfig == null) {
this.collectorConfig = new HashMap<>();
}
this.collectorConfig.put(key, collectorConfigItem);
return this;
}
public SearchEnvTopologyResponse withCollectorConfig(
Consumer