com.huaweicloud.sdk.hss.v5.model.ListBlockedIpRequest 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 ListBlockedIpRequest {
@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 = "last_days")
private Integer lastDays;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "host_name")
private String hostName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "src_ip")
private String srcIp;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "intercept_status")
private String interceptStatus;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Integer offset;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
public ListBlockedIpRequest 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 ListBlockedIpRequest 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 ListBlockedIpRequest withLastDays(Integer lastDays) {
this.lastDays = lastDays;
return this;
}
/**
* 查询时间范围天数,与自定义查询时间begin_time,end_time互斥
* minimum: 1
* maximum: 30
* @return lastDays
*/
public Integer getLastDays() {
return lastDays;
}
public void setLastDays(Integer lastDays) {
this.lastDays = lastDays;
}
public ListBlockedIpRequest withHostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* 服务器名称
* @return hostName
*/
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public ListBlockedIpRequest withSrcIp(String srcIp) {
this.srcIp = srcIp;
return this;
}
/**
* 攻击源IP
* @return srcIp
*/
public String getSrcIp() {
return srcIp;
}
public void setSrcIp(String srcIp) {
this.srcIp = srcIp;
}
public ListBlockedIpRequest withInterceptStatus(String interceptStatus) {
this.interceptStatus = interceptStatus;
return this;
}
/**
* 拦截状态,包含如下: - intercepted : 已拦截 - canceled : 已解除拦截 - cancelling : 待解除拦截
* @return interceptStatus
*/
public String getInterceptStatus() {
return interceptStatus;
}
public void setInterceptStatus(String interceptStatus) {
this.interceptStatus = interceptStatus;
}
public ListBlockedIpRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 偏移量:指定返回记录的开始位置
* minimum: 0
* maximum: 2000000
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ListBlockedIpRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 每页显示个数
* minimum: 10
* maximum: 1000
* @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;
}
ListBlockedIpRequest that = (ListBlockedIpRequest) obj;
return Objects.equals(this.region, that.region)
&& Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId)
&& Objects.equals(this.lastDays, that.lastDays) && Objects.equals(this.hostName, that.hostName)
&& Objects.equals(this.srcIp, that.srcIp) && Objects.equals(this.interceptStatus, that.interceptStatus)
&& Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit);
}
@Override
public int hashCode() {
return Objects.hash(region, enterpriseProjectId, lastDays, hostName, srcIp, interceptStatus, offset, limit);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListBlockedIpRequest {\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n");
sb.append(" lastDays: ").append(toIndentedString(lastDays)).append("\n");
sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n");
sb.append(" srcIp: ").append(toIndentedString(srcIp)).append("\n");
sb.append(" interceptStatus: ").append(toIndentedString(interceptStatus)).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 ");
}
}