com.huaweicloud.sdk.iam.v3.model.ListCustomPoliciesRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.iam.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.function.Consumer;
import java.util.Objects;
/**
* Request Object
*/
public class ListCustomPoliciesRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="page")
private Integer page;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="per_page")
private Integer perPage;
public ListCustomPoliciesRequest withPage(Integer page) {
this.page = page;
return this;
}
/**
* 分页查询时数据的页数,查询值最小为1。需要与per_page同时存在。
* @return page
*/
public Integer getPage() {
return page;
}
public void setPage(Integer page) {
this.page = page;
}
public ListCustomPoliciesRequest withPerPage(Integer perPage) {
this.perPage = perPage;
return this;
}
/**
* 分页查询时每页的数据个数,取值范围为[1,300]。需要与page同时存在。
* @return perPage
*/
public Integer getPerPage() {
return perPage;
}
public void setPerPage(Integer perPage) {
this.perPage = perPage;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListCustomPoliciesRequest listCustomPoliciesRequest = (ListCustomPoliciesRequest) o;
return Objects.equals(this.page, listCustomPoliciesRequest.page) &&
Objects.equals(this.perPage, listCustomPoliciesRequest.perPage);
}
@Override
public int hashCode() {
return Objects.hash(page, perPage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListCustomPoliciesRequest {\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" perPage: ").append(toIndentedString(perPage)).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 ");
}
}