com.aliyun.sas20181203.models.GetAuthSummaryResponseBody Maven / Gradle / Ivy
Show all versions of sas20181203 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sas20181203.models;
import com.aliyun.tea.*;
public class GetAuthSummaryResponseBody extends TeaModel {
/**
* Indicates whether you can purchase protection quota on demand when you purchase Security Center. Valid values:
*
* - 0: no
* - 1: yes
*
*
* example:
* 1
*/
@NameInMap("AllowPartialBuy")
public Integer allowPartialBuy;
/**
* Indicates whether you can purchase protection quota on demand after an upgrade. Valid values:
*
* - 0: no
* - 1: yes
*
*
* example:
* 1
*/
@NameInMap("AllowUpgradePartialBuy")
public Integer allowUpgradePartialBuy;
/**
* Indicates whether all bound assets can be immediately unbound. Valid values:
*
* - 0: no
* - 1: yes
*
*
* example:
* 1
*/
@NameInMap("AllowUserUnbind")
public Integer allowUserUnbind;
/**
* Indicates whether automatic binding is enabled. Valid values:
*
* - 0: disabled
* - 1: enabled
*
*
* example:
* 1
*/
@NameInMap("AutoBind")
public Integer autoBind;
/**
* Indicates whether the protection quota is supported for all assets. Valid values:
*
* - 0: no
* - 1: yes
*
*
* example:
* 1
*/
@NameInMap("DefaultAuthToAll")
public Integer defaultAuthToAll;
/**
* Indicates whether pre-bound assets exist. If you select assets to bind when you purchase Security Center, pre-bound assets exist. Valid values:
*
* - 0: no
* - 1: yes
*
*
* example:
* 1
*/
@NameInMap("HasPreBindSetting")
public Boolean hasPreBindSetting;
/**
* The most advanced edition that is used. Valid values:
*
* - 1: Basic edition
* - 3: Enterprise edition
* - 5: Advanced edition
* - 6: Anti-virus edition
* - 7: Ultimate edition
* - 10: Value-added Plan edition
*
*
* If you purchase Security Center Multi-edition, the value indicates the most advanced edition that is used. Otherwise, the value indicates the specific edition that is purchased.
*
*
* example:
* 1
*/
@NameInMap("HighestVersion")
public Integer highestVersion;
/**
* Indicates whether Security Center Multi-edition is purchased. Valid values:
*
* - 0: no
* - 1: yes
*
*
* example:
* 1
*/
@NameInMap("IsMultiVersion")
public Integer isMultiVersion;
/**
* The statistics of the protection quota for assets.
*/
@NameInMap("Machine")
public GetAuthSummaryResponseBodyMachine machine;
/**
* The request ID.
*
* example:
* 0B48AB3C-***-B9270EF46038
*/
@NameInMap("RequestId")
public String requestId;
/**
* The quota consumption statistics.
*/
@NameInMap("VersionSummary")
public java.util.List versionSummary;
public static GetAuthSummaryResponseBody build(java.util.Map map) throws Exception {
GetAuthSummaryResponseBody self = new GetAuthSummaryResponseBody();
return TeaModel.build(map, self);
}
public GetAuthSummaryResponseBody setAllowPartialBuy(Integer allowPartialBuy) {
this.allowPartialBuy = allowPartialBuy;
return this;
}
public Integer getAllowPartialBuy() {
return this.allowPartialBuy;
}
public GetAuthSummaryResponseBody setAllowUpgradePartialBuy(Integer allowUpgradePartialBuy) {
this.allowUpgradePartialBuy = allowUpgradePartialBuy;
return this;
}
public Integer getAllowUpgradePartialBuy() {
return this.allowUpgradePartialBuy;
}
public GetAuthSummaryResponseBody setAllowUserUnbind(Integer allowUserUnbind) {
this.allowUserUnbind = allowUserUnbind;
return this;
}
public Integer getAllowUserUnbind() {
return this.allowUserUnbind;
}
public GetAuthSummaryResponseBody setAutoBind(Integer autoBind) {
this.autoBind = autoBind;
return this;
}
public Integer getAutoBind() {
return this.autoBind;
}
public GetAuthSummaryResponseBody setDefaultAuthToAll(Integer defaultAuthToAll) {
this.defaultAuthToAll = defaultAuthToAll;
return this;
}
public Integer getDefaultAuthToAll() {
return this.defaultAuthToAll;
}
public GetAuthSummaryResponseBody setHasPreBindSetting(Boolean hasPreBindSetting) {
this.hasPreBindSetting = hasPreBindSetting;
return this;
}
public Boolean getHasPreBindSetting() {
return this.hasPreBindSetting;
}
public GetAuthSummaryResponseBody setHighestVersion(Integer highestVersion) {
this.highestVersion = highestVersion;
return this;
}
public Integer getHighestVersion() {
return this.highestVersion;
}
public GetAuthSummaryResponseBody setIsMultiVersion(Integer isMultiVersion) {
this.isMultiVersion = isMultiVersion;
return this;
}
public Integer getIsMultiVersion() {
return this.isMultiVersion;
}
public GetAuthSummaryResponseBody setMachine(GetAuthSummaryResponseBodyMachine machine) {
this.machine = machine;
return this;
}
public GetAuthSummaryResponseBodyMachine getMachine() {
return this.machine;
}
public GetAuthSummaryResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public GetAuthSummaryResponseBody setVersionSummary(java.util.List versionSummary) {
this.versionSummary = versionSummary;
return this;
}
public java.util.List getVersionSummary() {
return this.versionSummary;
}
public static class GetAuthSummaryResponseBodyMachine extends TeaModel {
/**
* The number of cores of the assets that are bound to Security Center.
*
* example:
* 10
*/
@NameInMap("BindCoreCount")
public Integer bindCoreCount;
/**
* The number of the assets that are bound to Security Center.
*
* example:
* 10
*/
@NameInMap("BindEcsCount")
public Integer bindEcsCount;
/**
* The number of cores of the assets that are at risk.
*
* example:
* 10
*/
@NameInMap("RiskCoreCount")
public Integer riskCoreCount;
/**
* The number of the assets that are at risk.
*
* example:
* 10
*/
@NameInMap("RiskEcsCount")
public Integer riskEcsCount;
/**
* The total number of asset cores.
*
* example:
* 10
*/
@NameInMap("TotalCoreCount")
public Integer totalCoreCount;
/**
* The total number of assets.
*
* example:
* 10
*/
@NameInMap("TotalEcsCount")
public Integer totalEcsCount;
/**
* The number of cores of unbound assets.
*
* example:
* 10
*/
@NameInMap("UnBindCoreCount")
public Integer unBindCoreCount;
/**
* The number of unbound assets.
*
* example:
* 10
*/
@NameInMap("UnBindEcsCount")
public Integer unBindEcsCount;
public static GetAuthSummaryResponseBodyMachine build(java.util.Map map) throws Exception {
GetAuthSummaryResponseBodyMachine self = new GetAuthSummaryResponseBodyMachine();
return TeaModel.build(map, self);
}
public GetAuthSummaryResponseBodyMachine setBindCoreCount(Integer bindCoreCount) {
this.bindCoreCount = bindCoreCount;
return this;
}
public Integer getBindCoreCount() {
return this.bindCoreCount;
}
public GetAuthSummaryResponseBodyMachine setBindEcsCount(Integer bindEcsCount) {
this.bindEcsCount = bindEcsCount;
return this;
}
public Integer getBindEcsCount() {
return this.bindEcsCount;
}
public GetAuthSummaryResponseBodyMachine setRiskCoreCount(Integer riskCoreCount) {
this.riskCoreCount = riskCoreCount;
return this;
}
public Integer getRiskCoreCount() {
return this.riskCoreCount;
}
public GetAuthSummaryResponseBodyMachine setRiskEcsCount(Integer riskEcsCount) {
this.riskEcsCount = riskEcsCount;
return this;
}
public Integer getRiskEcsCount() {
return this.riskEcsCount;
}
public GetAuthSummaryResponseBodyMachine setTotalCoreCount(Integer totalCoreCount) {
this.totalCoreCount = totalCoreCount;
return this;
}
public Integer getTotalCoreCount() {
return this.totalCoreCount;
}
public GetAuthSummaryResponseBodyMachine setTotalEcsCount(Integer totalEcsCount) {
this.totalEcsCount = totalEcsCount;
return this;
}
public Integer getTotalEcsCount() {
return this.totalEcsCount;
}
public GetAuthSummaryResponseBodyMachine setUnBindCoreCount(Integer unBindCoreCount) {
this.unBindCoreCount = unBindCoreCount;
return this;
}
public Integer getUnBindCoreCount() {
return this.unBindCoreCount;
}
public GetAuthSummaryResponseBodyMachine setUnBindEcsCount(Integer unBindEcsCount) {
this.unBindEcsCount = unBindEcsCount;
return this;
}
public Integer getUnBindEcsCount() {
return this.unBindEcsCount;
}
}
public static class GetAuthSummaryResponseBodyVersionSummary extends TeaModel {
/**
* The type of the quota that is consumed. Valid values:
*
* - ASSET: quota of servers.
* - CORE: quota of server cores.
* - ASSET_AND_CORE: both.
*
*
* example:
* ASSET
*/
@NameInMap("AuthBindType")
public String authBindType;
/**
* The index of the current edition. The smaller the value, the higher the edition. The index is used for sorting.
*
* example:
* 1
*/
@NameInMap("Index")
public Integer index;
/**
* The total quota of server cores.
*
* This parameter takes effect only if AuthBindType is set to CORE or ASSET_AND_CORE.
*
*
* example:
* 10
*/
@NameInMap("TotalCoreAuthCount")
public Integer totalCoreAuthCount;
/**
* The total quota of servers in the current edition.
*
* This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.
*
*
* example:
* 10
*/
@NameInMap("TotalCount")
public Integer totalCount;
/**
* The total quota of servers.
*
* This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.
*
*
* example:
* 10
*/
@NameInMap("TotalEcsAuthCount")
public Integer totalEcsAuthCount;
/**
* The remaining quota of servers.
*
* This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.
*
*
* example:
* 10
*/
@NameInMap("UnUsedCount")
public Integer unUsedCount;
/**
* The remaining quota of server cores.
*
* This parameter takes effect only if AuthBindType is set to CORE or ASSET_AND_CORE.
*
*
* example:
* 10
*/
@NameInMap("UnusedCoreAuthCount")
public Integer unusedCoreAuthCount;
/**
* The remaining quota of servers.
*
* This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.
*
*
* example:
* 10
*/
@NameInMap("UnusedEcsAuthCount")
public Integer unusedEcsAuthCount;
/**
* The consumed quota of server cores.
*
* This parameter takes effect only if AuthBindType is set to CORE or ASSET_AND_CORE.
*
*
* example:
* 10
*/
@NameInMap("UsedCoreCount")
public Integer usedCoreCount;
/**
* The used quota of servers.
*
* This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.
*
*
* example:
* 10
*/
@NameInMap("UsedEcsCount")
public Integer usedEcsCount;
/**
* The edition of purchased Security Center. Valid values:
*
* - 1: Basic edition
* - 3: Enterprise edition
* - 5: Advanced edition
* - 6: Anti-virus edition
* - 7: Ultimate edition
* - 8: Multi-edition
* - 10: Value-added Plan edition
*
*
* example:
* 3
*/
@NameInMap("Version")
public Integer version;
public static GetAuthSummaryResponseBodyVersionSummary build(java.util.Map map) throws Exception {
GetAuthSummaryResponseBodyVersionSummary self = new GetAuthSummaryResponseBodyVersionSummary();
return TeaModel.build(map, self);
}
public GetAuthSummaryResponseBodyVersionSummary setAuthBindType(String authBindType) {
this.authBindType = authBindType;
return this;
}
public String getAuthBindType() {
return this.authBindType;
}
public GetAuthSummaryResponseBodyVersionSummary setIndex(Integer index) {
this.index = index;
return this;
}
public Integer getIndex() {
return this.index;
}
public GetAuthSummaryResponseBodyVersionSummary setTotalCoreAuthCount(Integer totalCoreAuthCount) {
this.totalCoreAuthCount = totalCoreAuthCount;
return this;
}
public Integer getTotalCoreAuthCount() {
return this.totalCoreAuthCount;
}
public GetAuthSummaryResponseBodyVersionSummary setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public Integer getTotalCount() {
return this.totalCount;
}
public GetAuthSummaryResponseBodyVersionSummary setTotalEcsAuthCount(Integer totalEcsAuthCount) {
this.totalEcsAuthCount = totalEcsAuthCount;
return this;
}
public Integer getTotalEcsAuthCount() {
return this.totalEcsAuthCount;
}
public GetAuthSummaryResponseBodyVersionSummary setUnUsedCount(Integer unUsedCount) {
this.unUsedCount = unUsedCount;
return this;
}
public Integer getUnUsedCount() {
return this.unUsedCount;
}
public GetAuthSummaryResponseBodyVersionSummary setUnusedCoreAuthCount(Integer unusedCoreAuthCount) {
this.unusedCoreAuthCount = unusedCoreAuthCount;
return this;
}
public Integer getUnusedCoreAuthCount() {
return this.unusedCoreAuthCount;
}
public GetAuthSummaryResponseBodyVersionSummary setUnusedEcsAuthCount(Integer unusedEcsAuthCount) {
this.unusedEcsAuthCount = unusedEcsAuthCount;
return this;
}
public Integer getUnusedEcsAuthCount() {
return this.unusedEcsAuthCount;
}
public GetAuthSummaryResponseBodyVersionSummary setUsedCoreCount(Integer usedCoreCount) {
this.usedCoreCount = usedCoreCount;
return this;
}
public Integer getUsedCoreCount() {
return this.usedCoreCount;
}
public GetAuthSummaryResponseBodyVersionSummary setUsedEcsCount(Integer usedEcsCount) {
this.usedEcsCount = usedEcsCount;
return this;
}
public Integer getUsedEcsCount() {
return this.usedEcsCount;
}
public GetAuthSummaryResponseBodyVersionSummary setVersion(Integer version) {
this.version = version;
return this;
}
public Integer getVersion() {
return this.version;
}
}
}