com.huaweicloud.sdk.cloudtest.v1.model.ListVariablesRequest Maven / Gradle / Ivy
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 ListVariablesRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "group_id")
private String groupId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "page_no")
private String pageNo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "page_size")
private String pageSize;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "project_id")
private String projectId;
public ListVariablesRequest withGroupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* group_id
* @return groupId
*/
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public ListVariablesRequest withPageNo(String pageNo) {
this.pageNo = pageNo;
return this;
}
/**
* 当前页数
* @return pageNo
*/
public String getPageNo() {
return pageNo;
}
public void setPageNo(String pageNo) {
this.pageNo = pageNo;
}
public ListVariablesRequest withPageSize(String pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* 每页多少记录
* @return pageSize
*/
public String getPageSize() {
return pageSize;
}
public void setPageSize(String pageSize) {
this.pageSize = pageSize;
}
public ListVariablesRequest withProjectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* 工程id
* @return projectId
*/
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListVariablesRequest that = (ListVariablesRequest) obj;
return Objects.equals(this.groupId, that.groupId) && Objects.equals(this.pageNo, that.pageNo)
&& Objects.equals(this.pageSize, that.pageSize) && Objects.equals(this.projectId, that.projectId);
}
@Override
public int hashCode() {
return Objects.hash(groupId, pageNo, pageSize, projectId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListVariablesRequest {\n");
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).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 ");
}
}