com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesByIssueResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudtest.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 ListTestCasesByIssueResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "case_status_map")
private Map caseStatusMap = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "new_create")
private Integer newCreate;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "designing")
private Integer designing;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "finished")
private Integer finished;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "testing")
private Integer testing;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "test_case_num")
private Integer testCaseNum;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "testcases")
private List testcases = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "total_count")
private Integer totalCount;
public ListTestCasesByIssueResponse withCaseStatusMap(Map caseStatusMap) {
this.caseStatusMap = caseStatusMap;
return this;
}
public ListTestCasesByIssueResponse putCaseStatusMapItem(String key, Integer caseStatusMapItem) {
if (this.caseStatusMap == null) {
this.caseStatusMap = new HashMap<>();
}
this.caseStatusMap.put(key, caseStatusMapItem);
return this;
}
public ListTestCasesByIssueResponse withCaseStatusMap(Consumer