All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanListRequest Maven / Gradle / Ivy

There is a newer version: 3.1.114
Show newest version
package com.huaweicloud.sdk.cloudtest.v1.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * Request Object
 */
public class ShowPlanListRequest {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "project_id")

    private String projectId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "offset")

    private Long offset;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "limit")

    private Long limit;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "name")

    private String name;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "current_stage")

    private String currentStage;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "branch_uri")

    private String branchUri;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "query_all_version")

    private Boolean queryAllVersion;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "fix_version_ids")

    private String fixVersionIds;

    public ShowPlanListRequest withProjectId(String projectId) {
        this.projectId = projectId;
        return this;
    }

    /**
     * 项目id,项目唯一标识,固定长度32位字符
     * @return projectId
     */
    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public ShowPlanListRequest withOffset(Long offset) {
        this.offset = offset;
        return this;
    }

    /**
     * 起始偏移量,表示从此偏移量开始查询, offset大于等于0
     * minimum: 0
     * maximum: 999
     * @return offset
     */
    public Long getOffset() {
        return offset;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public ShowPlanListRequest withLimit(Long limit) {
        this.limit = limit;
        return this;
    }

    /**
     * 每页显示的条目数量,最大支持200条
     * minimum: 1
     * maximum: 200
     * @return limit
     */
    public Long getLimit() {
        return limit;
    }

    public void setLimit(Long limit) {
        this.limit = limit;
    }

    public ShowPlanListRequest withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * 模糊查询使用(针对测试计划名称)
     * @return name
     */
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ShowPlanListRequest withCurrentStage(String currentStage) {
        this.currentStage = currentStage;
        return this;
    }

    /**
     * 测试计划所处阶段(create,design,execute,report)
     * @return currentStage
     */
    public String getCurrentStage() {
        return currentStage;
    }

    public void setCurrentStage(String currentStage) {
        this.currentStage = currentStage;
    }

    public ShowPlanListRequest withBranchUri(String branchUri) {
        this.branchUri = branchUri;
        return this;
    }

    /**
     * 分支Uri,默认master
     * @return branchUri
     */
    public String getBranchUri() {
        return branchUri;
    }

    public void setBranchUri(String branchUri) {
        this.branchUri = branchUri;
    }

    public ShowPlanListRequest withQueryAllVersion(Boolean queryAllVersion) {
        this.queryAllVersion = queryAllVersion;
        return this;
    }

    /**
     * 是否查询所有版本下测试计划,默认为false。若值为true, 查询所有版本下测试计划; 若为false, 查询branch_uri指定分支下的测试计划, branch_uri为空时默认为master
     * @return queryAllVersion
     */
    public Boolean getQueryAllVersion() {
        return queryAllVersion;
    }

    public void setQueryAllVersion(Boolean queryAllVersion) {
        this.queryAllVersion = queryAllVersion;
    }

    public ShowPlanListRequest withFixVersionIds(String fixVersionIds) {
        this.fixVersionIds = fixVersionIds;
        return this;
    }

    /**
     * 测试计划关联的迭代。迭代id以逗号间隔
     * @return fixVersionIds
     */
    public String getFixVersionIds() {
        return fixVersionIds;
    }

    public void setFixVersionIds(String fixVersionIds) {
        this.fixVersionIds = fixVersionIds;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        ShowPlanListRequest that = (ShowPlanListRequest) obj;
        return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.offset, that.offset)
            && Objects.equals(this.limit, that.limit) && Objects.equals(this.name, that.name)
            && Objects.equals(this.currentStage, that.currentStage) && Objects.equals(this.branchUri, that.branchUri)
            && Objects.equals(this.queryAllVersion, that.queryAllVersion)
            && Objects.equals(this.fixVersionIds, that.fixVersionIds);
    }

    @Override
    public int hashCode() {
        return Objects.hash(projectId, offset, limit, name, currentStage, branchUri, queryAllVersion, fixVersionIds);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ShowPlanListRequest {\n");
        sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
        sb.append("    offset: ").append(toIndentedString(offset)).append("\n");
        sb.append("    limit: ").append(toIndentedString(limit)).append("\n");
        sb.append("    name: ").append(toIndentedString(name)).append("\n");
        sb.append("    currentStage: ").append(toIndentedString(currentStage)).append("\n");
        sb.append("    branchUri: ").append(toIndentedString(branchUri)).append("\n");
        sb.append("    queryAllVersion: ").append(toIndentedString(queryAllVersion)).append("\n");
        sb.append("    fixVersionIds: ").append(toIndentedString(fixVersionIds)).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    ");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy