com.huaweicloud.sdk.aom.v1.model.SearchJobsRequestBody Maven / Gradle / Ivy
package com.huaweicloud.sdk.aom.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 分页查询作业列表请求参数
*/
public class SearchJobsRequestBody {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@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 = "order_by_column")
private String orderByColumn;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "sort_order")
private String sortOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "enterprise_project_id")
private String enterpriseProjectId;
public SearchJobsRequestBody withName(String name) {
this.name = name;
return this;
}
/**
* name为作业名称。
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public SearchJobsRequestBody withPageNum(Integer pageNum) {
this.pageNum = pageNum;
return this;
}
/**
* 当前页,查询的当前页,page_num为正整数,不能是0和负数,当输入参数为负数,0和大于1000,自动修正参数为1,默认值是1(用户不传,值是1)。
* minimum: 1
* maximum: 1000
* @return pageNum
*/
public Integer getPageNum() {
return pageNum;
}
public void setPageNum(Integer pageNum) {
this.pageNum = pageNum;
}
public SearchJobsRequestBody withPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* 每页显示的条数,每页查询的总条数,page_size为正整数,不能是0和负数,当输入参数为负数,0和大于101,自动修正参数为10,默认值是10(用户不传时,值是10)。
* minimum: 1
* maximum: 100
* @return pageSize
*/
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public SearchJobsRequestBody withOrderByColumn(String orderByColumn) {
this.orderByColumn = orderByColumn;
return this;
}
/**
* 需要排序的字段(默认为更新时间),支持字段有name,create_time,update_time。
* @return orderByColumn
*/
public String getOrderByColumn() {
return orderByColumn;
}
public void setOrderByColumn(String orderByColumn) {
this.orderByColumn = orderByColumn;
}
public SearchJobsRequestBody withSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
return this;
}
/**
* 排序规则(默认降序) 传入升序或降序,升序:ASC,降序:DESC。
* @return sortOrder
*/
public String getSortOrder() {
return sortOrder;
}
public void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
public SearchJobsRequestBody withEnterpriseProjectId(String enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
return this;
}
/**
* 企业项目id
* @return enterpriseProjectId
*/
public String getEnterpriseProjectId() {
return enterpriseProjectId;
}
public void setEnterpriseProjectId(String enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
SearchJobsRequestBody that = (SearchJobsRequestBody) obj;
return Objects.equals(this.name, that.name) && Objects.equals(this.pageNum, that.pageNum)
&& Objects.equals(this.pageSize, that.pageSize) && Objects.equals(this.orderByColumn, that.orderByColumn)
&& Objects.equals(this.sortOrder, that.sortOrder)
&& Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId);
}
@Override
public int hashCode() {
return Objects.hash(name, pageNum, pageSize, orderByColumn, sortOrder, enterpriseProjectId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchJobsRequestBody {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" pageNum: ").append(toIndentedString(pageNum)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" orderByColumn: ").append(toIndentedString(orderByColumn)).append("\n");
sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).append("\n");
sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).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 ");
}
}