com.huaweicloud.sdk.cse.v1.model.ListNacosNamespacesRequest Maven / Gradle / Ivy
The newest version!
package com.huaweicloud.sdk.cse.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class ListNacosNamespacesRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "x-engine-id")
private String xEngineId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Enterprise-Project-ID")
private String xEnterpriseProjectID;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Integer offset;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
public ListNacosNamespacesRequest withXEngineId(String xEngineId) {
this.xEngineId = xEngineId;
return this;
}
/**
* 微服务引擎的实例ID
* @return xEngineId
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "x-engine-id")
public String getXEngineId() {
return xEngineId;
}
public void setXEngineId(String xEngineId) {
this.xEngineId = xEngineId;
}
public ListNacosNamespacesRequest withXEnterpriseProjectID(String xEnterpriseProjectID) {
this.xEnterpriseProjectID = xEnterpriseProjectID;
return this;
}
/**
* 企业项目ID
* @return xEnterpriseProjectID
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Enterprise-Project-ID")
public String getXEnterpriseProjectID() {
return xEnterpriseProjectID;
}
public void setXEnterpriseProjectID(String xEnterpriseProjectID) {
this.xEnterpriseProjectID = xEnterpriseProjectID;
}
public ListNacosNamespacesRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 分页参数,偏移量,从0开始
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ListNacosNamespacesRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 分页参数,分页大小,0表示不分页
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListNacosNamespacesRequest that = (ListNacosNamespacesRequest) obj;
return Objects.equals(this.xEngineId, that.xEngineId)
&& Objects.equals(this.xEnterpriseProjectID, that.xEnterpriseProjectID)
&& Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit);
}
@Override
public int hashCode() {
return Objects.hash(xEngineId, xEnterpriseProjectID, offset, limit);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListNacosNamespacesRequest {\n");
sb.append(" xEngineId: ").append(toIndentedString(xEngineId)).append("\n");
sb.append(" xEnterpriseProjectID: ").append(toIndentedString(xEnterpriseProjectID)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).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 ");
}
}