com.huaweicloud.sdk.hss.v5.model.PolicyGroupResponseInfo 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;
/**
* 策略组详情
*/
public class PolicyGroupResponseInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "group_name")
private String groupName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "group_id")
private String groupId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "description")
private String description;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "deletable")
private Boolean deletable;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "host_num")
private Integer hostNum;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "default_group")
private Boolean defaultGroup;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "support_os")
private String supportOs;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "support_version")
private String supportVersion;
public PolicyGroupResponseInfo withGroupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* 策略组名
* @return groupName
*/
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public PolicyGroupResponseInfo withGroupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* 策略组ID
* @return groupId
*/
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public PolicyGroupResponseInfo withDescription(String description) {
this.description = description;
return this;
}
/**
* 策略组的描述信息
* @return description
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public PolicyGroupResponseInfo withDeletable(Boolean deletable) {
this.deletable = deletable;
return this;
}
/**
* 是否允许删除该策略组
* @return deletable
*/
public Boolean getDeletable() {
return deletable;
}
public void setDeletable(Boolean deletable) {
this.deletable = deletable;
}
public PolicyGroupResponseInfo withHostNum(Integer hostNum) {
this.hostNum = hostNum;
return this;
}
/**
* 关联服务器数
* minimum: 0
* maximum: 2147483647
* @return hostNum
*/
public Integer getHostNum() {
return hostNum;
}
public void setHostNum(Integer hostNum) {
this.hostNum = hostNum;
}
public PolicyGroupResponseInfo withDefaultGroup(Boolean defaultGroup) {
this.defaultGroup = defaultGroup;
return this;
}
/**
* 是否是默认策略组
* @return defaultGroup
*/
public Boolean getDefaultGroup() {
return defaultGroup;
}
public void setDefaultGroup(Boolean defaultGroup) {
this.defaultGroup = defaultGroup;
}
public PolicyGroupResponseInfo withSupportOs(String supportOs) {
this.supportOs = supportOs;
return this;
}
/**
* 支持的操作系统,包含如下: - Linux :支持Linux系统 - Windows : 支持Windows系统
* @return supportOs
*/
public String getSupportOs() {
return supportOs;
}
public void setSupportOs(String supportOs) {
this.supportOs = supportOs;
}
public PolicyGroupResponseInfo withSupportVersion(String supportVersion) {
this.supportVersion = supportVersion;
return this;
}
/**
* 支持的版本,包含如下: - hss.version.basic :基础版策略组 - hss.version.advanced : 专业版策略组 - hss.version.enterprise : 企业版策略组 - hss.version.premium : 旗舰版策略组 - hss.version.wtp : 网页防篡改版策略组 - hss.version.container.enterprise : 容器版策略组
* @return supportVersion
*/
public String getSupportVersion() {
return supportVersion;
}
public void setSupportVersion(String supportVersion) {
this.supportVersion = supportVersion;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
PolicyGroupResponseInfo that = (PolicyGroupResponseInfo) obj;
return Objects.equals(this.groupName, that.groupName) && Objects.equals(this.groupId, that.groupId)
&& Objects.equals(this.description, that.description) && Objects.equals(this.deletable, that.deletable)
&& Objects.equals(this.hostNum, that.hostNum) && Objects.equals(this.defaultGroup, that.defaultGroup)
&& Objects.equals(this.supportOs, that.supportOs)
&& Objects.equals(this.supportVersion, that.supportVersion);
}
@Override
public int hashCode() {
return Objects
.hash(groupName, groupId, description, deletable, hostNum, defaultGroup, supportOs, supportVersion);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PolicyGroupResponseInfo {\n");
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n");
sb.append(" hostNum: ").append(toIndentedString(hostNum)).append("\n");
sb.append(" defaultGroup: ").append(toIndentedString(defaultGroup)).append("\n");
sb.append(" supportOs: ").append(toIndentedString(supportOs)).append("\n");
sb.append(" supportVersion: ").append(toIndentedString(supportVersion)).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 ");
}
}