com.huaweicloud.sdk.hss.v5.model.ListPolicyGroupRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.hss.v5.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class ListPolicyGroupRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "region")
private String region;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "enterprise_project_id")
private String enterpriseProjectId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "group_name")
private String groupName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Integer offset;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "container_mode")
private Boolean containerMode;
public ListPolicyGroupRequest withRegion(String region) {
this.region = region;
return this;
}
/**
* Region ID
* @return region
*/
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public ListPolicyGroupRequest withEnterpriseProjectId(String enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
return this;
}
/**
* 企业项目ID,查询所有企业项目时填写:all_granted_eps
* @return enterpriseProjectId
*/
public String getEnterpriseProjectId() {
return enterpriseProjectId;
}
public void setEnterpriseProjectId(String enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
}
public ListPolicyGroupRequest withGroupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* 策略组名
* @return groupName
*/
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public ListPolicyGroupRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 偏移量:指定返回记录的开始位置
* minimum: 0
* maximum: 100000
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ListPolicyGroupRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 每页显示个数
* minimum: 10
* maximum: 200
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public ListPolicyGroupRequest withContainerMode(Boolean containerMode) {
this.containerMode = containerMode;
return this;
}
/**
* 是否查询容器版策略
* @return containerMode
*/
public Boolean getContainerMode() {
return containerMode;
}
public void setContainerMode(Boolean containerMode) {
this.containerMode = containerMode;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListPolicyGroupRequest that = (ListPolicyGroupRequest) obj;
return Objects.equals(this.region, that.region)
&& Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId)
&& Objects.equals(this.groupName, that.groupName) && Objects.equals(this.offset, that.offset)
&& Objects.equals(this.limit, that.limit) && Objects.equals(this.containerMode, that.containerMode);
}
@Override
public int hashCode() {
return Objects.hash(region, enterpriseProjectId, groupName, offset, limit, containerMode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListPolicyGroupRequest {\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n");
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" containerMode: ").append(toIndentedString(containerMode)).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 ");
}
}