com.huaweicloud.sdk.hss.v5.model.ListWtpProtectHostRequest 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 ListWtpProtectHostRequest {
@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 = "host_name")
private String hostName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "host_id")
private String hostId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "public_ip")
private String publicIp;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "private_ip")
private String privateIp;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "group_name")
private String groupName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "os_type")
private String osType;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "protect_status")
private String protectStatus;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "agent_status")
private String agentStatus;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Integer offset;
public ListWtpProtectHostRequest 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 ListWtpProtectHostRequest withEnterpriseProjectId(String enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
return this;
}
/**
* 企业项目ID
* @return enterpriseProjectId
*/
public String getEnterpriseProjectId() {
return enterpriseProjectId;
}
public void setEnterpriseProjectId(String enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
}
public ListWtpProtectHostRequest withHostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* 服务器名称
* @return hostName
*/
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public ListWtpProtectHostRequest withHostId(String hostId) {
this.hostId = hostId;
return this;
}
/**
* 主机ID
* @return hostId
*/
public String getHostId() {
return hostId;
}
public void setHostId(String hostId) {
this.hostId = hostId;
}
public ListWtpProtectHostRequest withPublicIp(String publicIp) {
this.publicIp = publicIp;
return this;
}
/**
* 弹性公网IP
* @return publicIp
*/
public String getPublicIp() {
return publicIp;
}
public void setPublicIp(String publicIp) {
this.publicIp = publicIp;
}
public ListWtpProtectHostRequest withPrivateIp(String privateIp) {
this.privateIp = privateIp;
return this;
}
/**
* 私有IP
* @return privateIp
*/
public String getPrivateIp() {
return privateIp;
}
public void setPrivateIp(String privateIp) {
this.privateIp = privateIp;
}
public ListWtpProtectHostRequest withGroupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* 服务器组名称
* @return groupName
*/
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public ListWtpProtectHostRequest withOsType(String osType) {
this.osType = osType;
return this;
}
/**
* 操作系统类别(linux,windows) - linux : linux操作系统 - windows : windows操作系统
* @return osType
*/
public String getOsType() {
return osType;
}
public void setOsType(String osType) {
this.osType = osType;
}
public ListWtpProtectHostRequest withProtectStatus(String protectStatus) {
this.protectStatus = protectStatus;
return this;
}
/**
* 防护状态 - closed : 未开启 - opened : 防护中
* @return protectStatus
*/
public String getProtectStatus() {
return protectStatus;
}
public void setProtectStatus(String protectStatus) {
this.protectStatus = protectStatus;
}
public ListWtpProtectHostRequest withAgentStatus(String agentStatus) {
this.agentStatus = agentStatus;
return this;
}
/**
* 客户端状态 - not_installed : agent未安装 - online : agent在线 - offline : agent不在线
* @return agentStatus
*/
public String getAgentStatus() {
return agentStatus;
}
public void setAgentStatus(String agentStatus) {
this.agentStatus = agentStatus;
}
public ListWtpProtectHostRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 默认10
* minimum: 10
* maximum: 100
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public ListWtpProtectHostRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 偏移量:指定返回记录的开始位置
* minimum: 0
* maximum: 100
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListWtpProtectHostRequest that = (ListWtpProtectHostRequest) obj;
return Objects.equals(this.region, that.region)
&& Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId)
&& Objects.equals(this.hostName, that.hostName) && Objects.equals(this.hostId, that.hostId)
&& Objects.equals(this.publicIp, that.publicIp) && Objects.equals(this.privateIp, that.privateIp)
&& Objects.equals(this.groupName, that.groupName) && Objects.equals(this.osType, that.osType)
&& Objects.equals(this.protectStatus, that.protectStatus)
&& Objects.equals(this.agentStatus, that.agentStatus) && Objects.equals(this.limit, that.limit)
&& Objects.equals(this.offset, that.offset);
}
@Override
public int hashCode() {
return Objects.hash(region,
enterpriseProjectId,
hostName,
hostId,
publicIp,
privateIp,
groupName,
osType,
protectStatus,
agentStatus,
limit,
offset);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListWtpProtectHostRequest {\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n");
sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n");
sb.append(" hostId: ").append(toIndentedString(hostId)).append("\n");
sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n");
sb.append(" privateIp: ").append(toIndentedString(privateIp)).append("\n");
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
sb.append(" osType: ").append(toIndentedString(osType)).append("\n");
sb.append(" protectStatus: ").append(toIndentedString(protectStatus)).append("\n");
sb.append(" agentStatus: ").append(toIndentedString(agentStatus)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).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 ");
}
}