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

com.huaweicloud.sdk.cloudtest.v1.model.ListSubTaskCaseOverstockUsingResponse 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 com.huaweicloud.sdk.core.SdkResponse;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;

/**
 * Response Object
 */
public class ListSubTaskCaseOverstockUsingResponse extends SdkResponse {

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

    private Long endRow;

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

    private Boolean hasNextPage;

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

    private Boolean hasPreviousPage;

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

    private Boolean isFirstPage;

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

    private Boolean isLastPage;

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

    private List list = null;

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

    private Integer navigateFirstPage;

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

    private Integer navigateLastPage;

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

    private Integer navigatePages;

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

    private List navigatepageNums = null;

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

    private Integer nextPage;

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

    private Integer pageNum;

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

    private Integer pageSize;

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

    private Integer pages;

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

    private Integer prePage;

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

    private Integer size;

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

    private Long startRow;

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

    private Long total;

    public ListSubTaskCaseOverstockUsingResponse withEndRow(Long endRow) {
        this.endRow = endRow;
        return this;
    }

    /**
     * 当前页面最后一个元素在数据库中的行号
     * @return endRow
     */
    public Long getEndRow() {
        return endRow;
    }

    public void setEndRow(Long endRow) {
        this.endRow = endRow;
    }

    public ListSubTaskCaseOverstockUsingResponse withHasNextPage(Boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
        return this;
    }

    /**
     * 是否有下一页
     * @return hasNextPage
     */
    public Boolean getHasNextPage() {
        return hasNextPage;
    }

    public void setHasNextPage(Boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
    }

    public ListSubTaskCaseOverstockUsingResponse withHasPreviousPage(Boolean hasPreviousPage) {
        this.hasPreviousPage = hasPreviousPage;
        return this;
    }

    /**
     * 是否有前一页
     * @return hasPreviousPage
     */
    public Boolean getHasPreviousPage() {
        return hasPreviousPage;
    }

    public void setHasPreviousPage(Boolean hasPreviousPage) {
        this.hasPreviousPage = hasPreviousPage;
    }

    public ListSubTaskCaseOverstockUsingResponse withIsFirstPage(Boolean isFirstPage) {
        this.isFirstPage = isFirstPage;
        return this;
    }

    /**
     * 是否为第一页
     * @return isFirstPage
     */
    public Boolean getIsFirstPage() {
        return isFirstPage;
    }

    public void setIsFirstPage(Boolean isFirstPage) {
        this.isFirstPage = isFirstPage;
    }

    public ListSubTaskCaseOverstockUsingResponse withIsLastPage(Boolean isLastPage) {
        this.isLastPage = isLastPage;
        return this;
    }

    /**
     * 是否为最后一页
     * @return isLastPage
     */
    public Boolean getIsLastPage() {
        return isLastPage;
    }

    public void setIsLastPage(Boolean isLastPage) {
        this.isLastPage = isLastPage;
    }

    public ListSubTaskCaseOverstockUsingResponse withList(List list) {
        this.list = list;
        return this;
    }

    public ListSubTaskCaseOverstockUsingResponse addListItem(SubtaskcaseOverstockDto listItem) {
        if (this.list == null) {
            this.list = new ArrayList<>();
        }
        this.list.add(listItem);
        return this;
    }

    public ListSubTaskCaseOverstockUsingResponse withList(Consumer> listSetter) {
        if (this.list == null) {
            this.list = new ArrayList<>();
        }
        listSetter.accept(this.list);
        return this;
    }

    /**
     * 返回结果
     * @return list
     */
    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public ListSubTaskCaseOverstockUsingResponse withNavigateFirstPage(Integer navigateFirstPage) {
        this.navigateFirstPage = navigateFirstPage;
        return this;
    }

    /**
     * 导航条上的第一页
     * @return navigateFirstPage
     */
    public Integer getNavigateFirstPage() {
        return navigateFirstPage;
    }

    public void setNavigateFirstPage(Integer navigateFirstPage) {
        this.navigateFirstPage = navigateFirstPage;
    }

    public ListSubTaskCaseOverstockUsingResponse withNavigateLastPage(Integer navigateLastPage) {
        this.navigateLastPage = navigateLastPage;
        return this;
    }

    /**
     * 导航条上的最后一页
     * @return navigateLastPage
     */
    public Integer getNavigateLastPage() {
        return navigateLastPage;
    }

    public void setNavigateLastPage(Integer navigateLastPage) {
        this.navigateLastPage = navigateLastPage;
    }

    public ListSubTaskCaseOverstockUsingResponse withNavigatePages(Integer navigatePages) {
        this.navigatePages = navigatePages;
        return this;
    }

    /**
     * 导航页码数
     * @return navigatePages
     */
    public Integer getNavigatePages() {
        return navigatePages;
    }

    public void setNavigatePages(Integer navigatePages) {
        this.navigatePages = navigatePages;
    }

    public ListSubTaskCaseOverstockUsingResponse withNavigatepageNums(List navigatepageNums) {
        this.navigatepageNums = navigatepageNums;
        return this;
    }

    public ListSubTaskCaseOverstockUsingResponse addNavigatepageNumsItem(Integer navigatepageNumsItem) {
        if (this.navigatepageNums == null) {
            this.navigatepageNums = new ArrayList<>();
        }
        this.navigatepageNums.add(navigatepageNumsItem);
        return this;
    }

    public ListSubTaskCaseOverstockUsingResponse withNavigatepageNums(Consumer> navigatepageNumsSetter) {
        if (this.navigatepageNums == null) {
            this.navigatepageNums = new ArrayList<>();
        }
        navigatepageNumsSetter.accept(this.navigatepageNums);
        return this;
    }

    /**
     * 所有导航页号
     * @return navigatepageNums
     */
    public List getNavigatepageNums() {
        return navigatepageNums;
    }

    public void setNavigatepageNums(List navigatepageNums) {
        this.navigatepageNums = navigatepageNums;
    }

    public ListSubTaskCaseOverstockUsingResponse withNextPage(Integer nextPage) {
        this.nextPage = nextPage;
        return this;
    }

    /**
     * 下一页
     * @return nextPage
     */
    public Integer getNextPage() {
        return nextPage;
    }

    public void setNextPage(Integer nextPage) {
        this.nextPage = nextPage;
    }

    public ListSubTaskCaseOverstockUsingResponse withPageNum(Integer pageNum) {
        this.pageNum = pageNum;
        return this;
    }

    /**
     * 当前页
     * @return pageNum
     */
    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public ListSubTaskCaseOverstockUsingResponse withPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    /**
     * 每页的数量
     * @return pageSize
     */
    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public ListSubTaskCaseOverstockUsingResponse withPages(Integer pages) {
        this.pages = pages;
        return this;
    }

    /**
     * 总页数
     * @return pages
     */
    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public ListSubTaskCaseOverstockUsingResponse withPrePage(Integer prePage) {
        this.prePage = prePage;
        return this;
    }

    /**
     * 前一页
     * @return prePage
     */
    public Integer getPrePage() {
        return prePage;
    }

    public void setPrePage(Integer prePage) {
        this.prePage = prePage;
    }

    public ListSubTaskCaseOverstockUsingResponse withSize(Integer size) {
        this.size = size;
        return this;
    }

    /**
     * 当前页的数量
     * @return size
     */
    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public ListSubTaskCaseOverstockUsingResponse withStartRow(Long startRow) {
        this.startRow = startRow;
        return this;
    }

    /**
     * 当前页面第一个元素在数据库中的行号
     * @return startRow
     */
    public Long getStartRow() {
        return startRow;
    }

    public void setStartRow(Long startRow) {
        this.startRow = startRow;
    }

    public ListSubTaskCaseOverstockUsingResponse withTotal(Long total) {
        this.total = total;
        return this;
    }

    /**
     * 总条数
     * @return total
     */
    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        ListSubTaskCaseOverstockUsingResponse that = (ListSubTaskCaseOverstockUsingResponse) obj;
        return Objects.equals(this.endRow, that.endRow) && Objects.equals(this.hasNextPage, that.hasNextPage)
            && Objects.equals(this.hasPreviousPage, that.hasPreviousPage)
            && Objects.equals(this.isFirstPage, that.isFirstPage) && Objects.equals(this.isLastPage, that.isLastPage)
            && Objects.equals(this.list, that.list) && Objects.equals(this.navigateFirstPage, that.navigateFirstPage)
            && Objects.equals(this.navigateLastPage, that.navigateLastPage)
            && Objects.equals(this.navigatePages, that.navigatePages)
            && Objects.equals(this.navigatepageNums, that.navigatepageNums)
            && Objects.equals(this.nextPage, that.nextPage) && Objects.equals(this.pageNum, that.pageNum)
            && Objects.equals(this.pageSize, that.pageSize) && Objects.equals(this.pages, that.pages)
            && Objects.equals(this.prePage, that.prePage) && Objects.equals(this.size, that.size)
            && Objects.equals(this.startRow, that.startRow) && Objects.equals(this.total, that.total);
    }

    @Override
    public int hashCode() {
        return Objects.hash(endRow,
            hasNextPage,
            hasPreviousPage,
            isFirstPage,
            isLastPage,
            list,
            navigateFirstPage,
            navigateLastPage,
            navigatePages,
            navigatepageNums,
            nextPage,
            pageNum,
            pageSize,
            pages,
            prePage,
            size,
            startRow,
            total);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ListSubTaskCaseOverstockUsingResponse {\n");
        sb.append("    endRow: ").append(toIndentedString(endRow)).append("\n");
        sb.append("    hasNextPage: ").append(toIndentedString(hasNextPage)).append("\n");
        sb.append("    hasPreviousPage: ").append(toIndentedString(hasPreviousPage)).append("\n");
        sb.append("    isFirstPage: ").append(toIndentedString(isFirstPage)).append("\n");
        sb.append("    isLastPage: ").append(toIndentedString(isLastPage)).append("\n");
        sb.append("    list: ").append(toIndentedString(list)).append("\n");
        sb.append("    navigateFirstPage: ").append(toIndentedString(navigateFirstPage)).append("\n");
        sb.append("    navigateLastPage: ").append(toIndentedString(navigateLastPage)).append("\n");
        sb.append("    navigatePages: ").append(toIndentedString(navigatePages)).append("\n");
        sb.append("    navigatepageNums: ").append(toIndentedString(navigatepageNums)).append("\n");
        sb.append("    nextPage: ").append(toIndentedString(nextPage)).append("\n");
        sb.append("    pageNum: ").append(toIndentedString(pageNum)).append("\n");
        sb.append("    pageSize: ").append(toIndentedString(pageSize)).append("\n");
        sb.append("    pages: ").append(toIndentedString(pages)).append("\n");
        sb.append("    prePage: ").append(toIndentedString(prePage)).append("\n");
        sb.append("    size: ").append(toIndentedString(size)).append("\n");
        sb.append("    startRow: ").append(toIndentedString(startRow)).append("\n");
        sb.append("    total: ").append(toIndentedString(total)).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