com.huaweicloud.sdk.koomessage.v1.model.ListPubInfosRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.koomessage.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Objects;
/**
* Request Object
*/
public class ListPubInfosRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "pub_name")
private String pubName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "state")
private Integer state;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "start_time")
private OffsetDateTime startTime;
@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 = "end_time")
private OffsetDateTime endTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "industry")
private String industry;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "approve_state")
private Integer approveState;
public ListPubInfosRequest withPubName(String pubName) {
this.pubName = pubName;
return this;
}
/**
* 服务号名称。
* @return pubName
*/
public String getPubName() {
return pubName;
}
public void setPubName(String pubName) {
this.pubName = pubName;
}
public ListPubInfosRequest withState(Integer state) {
this.state = state;
return this;
}
/**
* 服务号状态。 - 1:未生效 - 2:已生效 - 3:已失效 - 4:已冻结
* minimum: 1
* maximum: 4
* @return state
*/
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
}
public ListPubInfosRequest withStartTime(OffsetDateTime startTime) {
this.startTime = startTime;
return this;
}
/**
* 开始上线时间,格式为:yyyy-MM-ddTHH:mm:ssZ。
* @return startTime
*/
public OffsetDateTime getStartTime() {
return startTime;
}
public void setStartTime(OffsetDateTime startTime) {
this.startTime = startTime;
}
public ListPubInfosRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 偏移量,表示从此偏移量开始查询,offset大于等于0。
* minimum: 0
* maximum: 214748364
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ListPubInfosRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 每页显示的条目数量。
* minimum: 1
* maximum: 100
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public ListPubInfosRequest withEndTime(OffsetDateTime endTime) {
this.endTime = endTime;
return this;
}
/**
* 结束上线时间,格式为:yyyy-MM-ddTHH:mm:ssZ。
* @return endTime
*/
public OffsetDateTime getEndTime() {
return endTime;
}
public void setEndTime(OffsetDateTime endTime) {
this.endTime = endTime;
}
public ListPubInfosRequest withIndustry(String industry) {
this.industry = industry;
return this;
}
/**
* 服务号所属行业。 - 1:金融理财 - 2:社交通讯 - 3:影音娱乐 - 4:旅游出行 - 5:购物 - 6:本地生活 - 7:运动健康 - 8:教育培训 - 9:新闻阅读 - 10:运营商 - 11:其他
* @return industry
*/
public String getIndustry() {
return industry;
}
public void setIndustry(String industry) {
this.industry = industry;
}
public ListPubInfosRequest withApproveState(Integer approveState) {
this.approveState = approveState;
return this;
}
/**
* 审核状态。 - 1:审核中 - 2:审核通过 - 3:驳回
* @return approveState
*/
public Integer getApproveState() {
return approveState;
}
public void setApproveState(Integer approveState) {
this.approveState = approveState;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListPubInfosRequest that = (ListPubInfosRequest) obj;
return Objects.equals(this.pubName, that.pubName) && Objects.equals(this.state, that.state)
&& Objects.equals(this.startTime, that.startTime) && Objects.equals(this.offset, that.offset)
&& Objects.equals(this.limit, that.limit) && Objects.equals(this.endTime, that.endTime)
&& Objects.equals(this.industry, that.industry) && Objects.equals(this.approveState, that.approveState);
}
@Override
public int hashCode() {
return Objects.hash(pubName, state, startTime, offset, limit, endTime, industry, approveState);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListPubInfosRequest {\n");
sb.append(" pubName: ").append(toIndentedString(pubName)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" industry: ").append(toIndentedString(industry)).append("\n");
sb.append(" approveState: ").append(toIndentedString(approveState)).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 ");
}
}