com.huaweicloud.sdk.eg.v1.model.ListSubscriptionsRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.eg.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class ListSubscriptionsRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "channel_id")
private String channelId;
@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 = "sort")
private String sort;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "fuzzy_name")
private String fuzzyName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "connection_id")
private String connectionId;
public ListSubscriptionsRequest withChannelId(String channelId) {
this.channelId = channelId;
return this;
}
/**
* 指定查询的事件通道ID
* @return channelId
*/
public String getChannelId() {
return channelId;
}
public void setChannelId(String channelId) {
this.channelId = channelId;
}
public ListSubscriptionsRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 偏移量,表示从此偏移量开始查询,偏移量不能小于0
* minimum: 0
* maximum: 100
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ListSubscriptionsRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 每页显示的条目数量,不能小于1或大于1000
* minimum: 1
* maximum: 1000
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public ListSubscriptionsRequest withSort(String sort) {
this.sort = sort;
return this;
}
/**
* 指定查询排序
* @return sort
*/
public String getSort() {
return sort;
}
public void setSort(String sort) {
this.sort = sort;
}
public ListSubscriptionsRequest withName(String name) {
this.name = name;
return this;
}
/**
* 指定查询的事件订阅名称,精准匹配
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ListSubscriptionsRequest withFuzzyName(String fuzzyName) {
this.fuzzyName = fuzzyName;
return this;
}
/**
* 指定查询的事件订阅名称,模糊匹配
* @return fuzzyName
*/
public String getFuzzyName() {
return fuzzyName;
}
public void setFuzzyName(String fuzzyName) {
this.fuzzyName = fuzzyName;
}
public ListSubscriptionsRequest withConnectionId(String connectionId) {
this.connectionId = connectionId;
return this;
}
/**
* 目标连接 id
* @return connectionId
*/
public String getConnectionId() {
return connectionId;
}
public void setConnectionId(String connectionId) {
this.connectionId = connectionId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListSubscriptionsRequest that = (ListSubscriptionsRequest) obj;
return Objects.equals(this.channelId, that.channelId) && Objects.equals(this.offset, that.offset)
&& Objects.equals(this.limit, that.limit) && Objects.equals(this.sort, that.sort)
&& Objects.equals(this.name, that.name) && Objects.equals(this.fuzzyName, that.fuzzyName)
&& Objects.equals(this.connectionId, that.connectionId);
}
@Override
public int hashCode() {
return Objects.hash(channelId, offset, limit, sort, name, fuzzyName, connectionId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListSubscriptionsRequest {\n");
sb.append(" channelId: ").append(toIndentedString(channelId)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" fuzzyName: ").append(toIndentedString(fuzzyName)).append("\n");
sb.append(" connectionId: ").append(toIndentedString(connectionId)).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 ");
}
}