index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAegisContainerPluginRuleCriteriaResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAegisContainerPluginRuleCriteriaResponse} extends {@link TeaModel}
*
* <p>GetAegisContainerPluginRuleCriteriaResponse</p>
*/
public class GetAegisContainerPluginRuleCriteriaResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAegisContainerPluginRuleCriteriaResponseBody body;
private GetAegisContainerPluginRuleCriteriaResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAegisContainerPluginRuleCriteriaResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAegisContainerPluginRuleCriteriaResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAegisContainerPluginRuleCriteriaResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAegisContainerPluginRuleCriteriaResponseBody body);
@Override
GetAegisContainerPluginRuleCriteriaResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAegisContainerPluginRuleCriteriaResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAegisContainerPluginRuleCriteriaResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAegisContainerPluginRuleCriteriaResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAegisContainerPluginRuleCriteriaResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAegisContainerPluginRuleCriteriaResponse build() {
return new GetAegisContainerPluginRuleCriteriaResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAegisContainerPluginRuleCriteriaResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAegisContainerPluginRuleCriteriaResponseBody} extends {@link TeaModel}
*
* <p>GetAegisContainerPluginRuleCriteriaResponseBody</p>
*/
public class GetAegisContainerPluginRuleCriteriaResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CriteriaList")
private java.util.List<CriteriaList> criteriaList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAegisContainerPluginRuleCriteriaResponseBody(Builder builder) {
this.criteriaList = builder.criteriaList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAegisContainerPluginRuleCriteriaResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return criteriaList
*/
public java.util.List<CriteriaList> getCriteriaList() {
return this.criteriaList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<CriteriaList> criteriaList;
private String requestId;
private Builder() {
}
private Builder(GetAegisContainerPluginRuleCriteriaResponseBody model) {
this.criteriaList = model.criteriaList;
this.requestId = model.requestId;
}
/**
* <p>The information about the search condition.</p>
*/
public Builder criteriaList(java.util.List<CriteriaList> criteriaList) {
this.criteriaList = criteriaList;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>DA8133CC-CCA0-5CF2-BF64-FE7D52C44***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAegisContainerPluginRuleCriteriaResponseBody build() {
return new GetAegisContainerPluginRuleCriteriaResponseBody(this);
}
}
/**
*
* {@link GetAegisContainerPluginRuleCriteriaResponseBody} extends {@link TeaModel}
*
* <p>GetAegisContainerPluginRuleCriteriaResponseBody</p>
*/
public static class CriteriaList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Values")
private String values;
private CriteriaList(Builder builder) {
this.name = builder.name;
this.type = builder.type;
this.values = builder.values;
}
public static Builder builder() {
return new Builder();
}
public static CriteriaList create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return values
*/
public String getValues() {
return this.values;
}
public static final class Builder {
private String name;
private String type;
private String values;
private Builder() {
}
private Builder(CriteriaList model) {
this.name = model.name;
this.type = model.type;
this.values = model.values;
}
/**
* <p>The name of the search condition. Valid values:</p>
* <ul>
* <li><strong>instanceId</strong>: the ID of the container instance.</li>
* <li><strong>clusterId</strong>: the cluster ID.</li>
* <li><strong>regionId</strong>: the ID of the region in which the container resides.</li>
* <li><strong>clusterName</strong>: the name of the cluster.</li>
* <li><strong>clusterType</strong>: the type of the cluster.</li>
* <li><strong>hostIp</strong>: the public IP address.</li>
* <li><strong>pod</strong>: the pod.</li>
* <li><strong>podIp</strong>: the IP address of the pod.</li>
* <li><strong>containerId</strong>: the container ID.</li>
* <li><strong>containerScope</strong>: the type of the container.</li>
* </ul>
*
* <strong>example:</strong>
* <p>containerScope</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the search condition. Valid values:</p>
* <ul>
* <li><strong>input</strong>: The search condition needs to be specified.</li>
* <li><strong>select</strong>: The search condition is an option that can be selected from the drop-down list.</li>
* </ul>
*
* <strong>example:</strong>
* <p>select</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The values.</p>
*
* <strong>example:</strong>
* <p>NO,YES</p>
*/
public Builder values(String values) {
this.values = values;
return this;
}
public CriteriaList build() {
return new CriteriaList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAegisContainerPluginRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAegisContainerPluginRuleRequest} extends {@link RequestModel}
*
* <p>GetAegisContainerPluginRuleRequest</p>
*/
public class GetAegisContainerPluginRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleType")
private Integer ruleType;
private GetAegisContainerPluginRuleRequest(Builder builder) {
super(builder);
this.id = builder.id;
this.lang = builder.lang;
this.ruleType = builder.ruleType;
}
public static Builder builder() {
return new Builder();
}
public static GetAegisContainerPluginRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return ruleType
*/
public Integer getRuleType() {
return this.ruleType;
}
public static final class Builder extends Request.Builder<GetAegisContainerPluginRuleRequest, Builder> {
private String id;
private String lang;
private Integer ruleType;
private Builder() {
super();
}
private Builder(GetAegisContainerPluginRuleRequest request) {
super(request);
this.id = request.id;
this.lang = request.lang;
this.ruleType = request.ruleType;
}
/**
* <p>The ID of the defense rule against container escapes.</p>
* <blockquote>
* <p> You can call the <a href="~~ListAegisContainerPluginRule~~">ListAegisContainerPluginRule</a> operation to obtain the ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1141****</p>
*/
public Builder id(String id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The type of the rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: custom rule</li>
* <li><strong>1</strong>: system rule</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder ruleType(Integer ruleType) {
this.putQueryParameter("RuleType", ruleType);
this.ruleType = ruleType;
return this;
}
@Override
public GetAegisContainerPluginRuleRequest build() {
return new GetAegisContainerPluginRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAegisContainerPluginRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAegisContainerPluginRuleResponse} extends {@link TeaModel}
*
* <p>GetAegisContainerPluginRuleResponse</p>
*/
public class GetAegisContainerPluginRuleResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAegisContainerPluginRuleResponseBody body;
private GetAegisContainerPluginRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAegisContainerPluginRuleResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAegisContainerPluginRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAegisContainerPluginRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAegisContainerPluginRuleResponseBody body);
@Override
GetAegisContainerPluginRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAegisContainerPluginRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAegisContainerPluginRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAegisContainerPluginRuleResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAegisContainerPluginRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAegisContainerPluginRuleResponse build() {
return new GetAegisContainerPluginRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAegisContainerPluginRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAegisContainerPluginRuleResponseBody} extends {@link TeaModel}
*
* <p>GetAegisContainerPluginRuleResponseBody</p>
*/
public class GetAegisContainerPluginRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAegisContainerPluginRuleResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAegisContainerPluginRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetAegisContainerPluginRuleResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>09969D2C-***0DEF8BF6F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAegisContainerPluginRuleResponseBody build() {
return new GetAegisContainerPluginRuleResponseBody(this);
}
}
/**
*
* {@link GetAegisContainerPluginRuleResponseBody} extends {@link TeaModel}
*
* <p>GetAegisContainerPluginRuleResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private Long gmtModified;
@com.aliyun.core.annotation.NameInMap("Mode")
private Integer mode;
@com.aliyun.core.annotation.NameInMap("RuleDescription")
private String ruleDescription;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("RuleTemplateId")
private String ruleTemplateId;
@com.aliyun.core.annotation.NameInMap("RuleTemplateName")
private String ruleTemplateName;
@com.aliyun.core.annotation.NameInMap("SelectedPolicy")
private java.util.List<String> selectedPolicy;
@com.aliyun.core.annotation.NameInMap("SwitchId")
private String switchId;
@com.aliyun.core.annotation.NameInMap("WhiteImages")
private java.util.List<String> whiteImages;
private Data(Builder builder) {
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.mode = builder.mode;
this.ruleDescription = builder.ruleDescription;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.ruleTemplateId = builder.ruleTemplateId;
this.ruleTemplateName = builder.ruleTemplateName;
this.selectedPolicy = builder.selectedPolicy;
this.switchId = builder.switchId;
this.whiteImages = builder.whiteImages;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public Long getGmtModified() {
return this.gmtModified;
}
/**
* @return mode
*/
public Integer getMode() {
return this.mode;
}
/**
* @return ruleDescription
*/
public String getRuleDescription() {
return this.ruleDescription;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return ruleTemplateId
*/
public String getRuleTemplateId() {
return this.ruleTemplateId;
}
/**
* @return ruleTemplateName
*/
public String getRuleTemplateName() {
return this.ruleTemplateName;
}
/**
* @return selectedPolicy
*/
public java.util.List<String> getSelectedPolicy() {
return this.selectedPolicy;
}
/**
* @return switchId
*/
public String getSwitchId() {
return this.switchId;
}
/**
* @return whiteImages
*/
public java.util.List<String> getWhiteImages() {
return this.whiteImages;
}
public static final class Builder {
private Long gmtCreate;
private Long gmtModified;
private Integer mode;
private String ruleDescription;
private Long ruleId;
private String ruleName;
private String ruleTemplateId;
private String ruleTemplateName;
private java.util.List<String> selectedPolicy;
private String switchId;
private java.util.List<String> whiteImages;
private Builder() {
}
private Builder(Data model) {
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.mode = model.mode;
this.ruleDescription = model.ruleDescription;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.ruleTemplateId = model.ruleTemplateId;
this.ruleTemplateName = model.ruleTemplateName;
this.selectedPolicy = model.selectedPolicy;
this.switchId = model.switchId;
this.whiteImages = model.whiteImages;
}
/**
* <p>The timestamp when the rule was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1671607025000</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The timestamp when the rule was modified. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1671607025000</p>
*/
public Builder gmtModified(Long gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The action mode of the rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: allows escape behavior.</li>
* <li><strong>1</strong>: triggers alerts.</li>
* <li><strong>2</strong>: blocks escape behavior.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder mode(Integer mode) {
this.mode = mode;
return this;
}
/**
* <p>The description of the rule.</p>
*
* <strong>example:</strong>
* <p>autoTest</p>
*/
public Builder ruleDescription(String ruleDescription) {
this.ruleDescription = ruleDescription;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>21**</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>auto_test_rule-EmzIXZ</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The template ID of the rule.</p>
*
* <strong>example:</strong>
* <p>100**</p>
*/
public Builder ruleTemplateId(String ruleTemplateId) {
this.ruleTemplateId = ruleTemplateId;
return this;
}
/**
* <p>The template name of the rule.</p>
*
* <strong>example:</strong>
* <p>template01</p>
*/
public Builder ruleTemplateName(String ruleTemplateName) {
this.ruleTemplateName = ruleTemplateName;
return this;
}
/**
* <p>The rule items.</p>
*/
public Builder selectedPolicy(java.util.List<String> selectedPolicy) {
this.selectedPolicy = selectedPolicy;
return this;
}
/**
* <p>The ID of the switch.</p>
*
* <strong>example:</strong>
* <p>USER-CONTAINER-RULE-SWITCH-TYPE_***</p>
*/
public Builder switchId(String switchId) {
this.switchId = switchId;
return this;
}
/**
* <p>The images that are added to the whitelist.</p>
*/
public Builder whiteImages(java.util.List<String> whiteImages) {
this.whiteImages = whiteImages;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAgentlessTaskCountRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAgentlessTaskCountRequest} extends {@link RequestModel}
*
* <p>GetAgentlessTaskCountRequest</p>
*/
public class GetAgentlessTaskCountRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Target")
private String target;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetType")
private Integer targetType;
private GetAgentlessTaskCountRequest(Builder builder) {
super(builder);
this.target = builder.target;
this.targetType = builder.targetType;
}
public static Builder builder() {
return new Builder();
}
public static GetAgentlessTaskCountRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return target
*/
public String getTarget() {
return this.target;
}
/**
* @return targetType
*/
public Integer getTargetType() {
return this.targetType;
}
public static final class Builder extends Request.Builder<GetAgentlessTaskCountRequest, Builder> {
private String target;
private Integer targetType;
private Builder() {
super();
}
private Builder(GetAgentlessTaskCountRequest request) {
super(request);
this.target = request.target;
this.targetType = request.targetType;
}
/**
* <p>The instance ID of the asset.</p>
*
* <strong>example:</strong>
* <p>s-m5edddcwq7d57d******</p>
*/
public Builder target(String target) {
this.putQueryParameter("Target", target);
this.target = target;
return this;
}
/**
* <p>Specifies the type of the object being inspected. Valid values:</p>
* <ul>
* <li><strong>3</strong>: User Snapshot.</li>
* <li><strong>4</strong>: User Image.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder targetType(Integer targetType) {
this.putQueryParameter("TargetType", targetType);
this.targetType = targetType;
return this;
}
@Override
public GetAgentlessTaskCountRequest build() {
return new GetAgentlessTaskCountRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAgentlessTaskCountResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAgentlessTaskCountResponse} extends {@link TeaModel}
*
* <p>GetAgentlessTaskCountResponse</p>
*/
public class GetAgentlessTaskCountResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAgentlessTaskCountResponseBody body;
private GetAgentlessTaskCountResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAgentlessTaskCountResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAgentlessTaskCountResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAgentlessTaskCountResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAgentlessTaskCountResponseBody body);
@Override
GetAgentlessTaskCountResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAgentlessTaskCountResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAgentlessTaskCountResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAgentlessTaskCountResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAgentlessTaskCountResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAgentlessTaskCountResponse build() {
return new GetAgentlessTaskCountResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAgentlessTaskCountResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAgentlessTaskCountResponseBody} extends {@link TeaModel}
*
* <p>GetAgentlessTaskCountResponseBody</p>
*/
public class GetAgentlessTaskCountResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BaselineCheckCount")
private Integer baselineCheckCount;
@com.aliyun.core.annotation.NameInMap("CveVulCount")
private Integer cveVulCount;
@com.aliyun.core.annotation.NameInMap("LastTaskTime")
private Long lastTaskTime;
@com.aliyun.core.annotation.NameInMap("MaliciousFile")
private Integer maliciousFile;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RiskMachine")
private Integer riskMachine;
@com.aliyun.core.annotation.NameInMap("ScaVulCount")
private Integer scaVulCount;
@com.aliyun.core.annotation.NameInMap("ScanMachine")
private Integer scanMachine;
@com.aliyun.core.annotation.NameInMap("SensitiveFileCount")
private Integer sensitiveFileCount;
@com.aliyun.core.annotation.NameInMap("SysVulCount")
private String sysVulCount;
@com.aliyun.core.annotation.NameInMap("Vulnerability")
private Integer vulnerability;
private GetAgentlessTaskCountResponseBody(Builder builder) {
this.baselineCheckCount = builder.baselineCheckCount;
this.cveVulCount = builder.cveVulCount;
this.lastTaskTime = builder.lastTaskTime;
this.maliciousFile = builder.maliciousFile;
this.requestId = builder.requestId;
this.riskMachine = builder.riskMachine;
this.scaVulCount = builder.scaVulCount;
this.scanMachine = builder.scanMachine;
this.sensitiveFileCount = builder.sensitiveFileCount;
this.sysVulCount = builder.sysVulCount;
this.vulnerability = builder.vulnerability;
}
public static Builder builder() {
return new Builder();
}
public static GetAgentlessTaskCountResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return baselineCheckCount
*/
public Integer getBaselineCheckCount() {
return this.baselineCheckCount;
}
/**
* @return cveVulCount
*/
public Integer getCveVulCount() {
return this.cveVulCount;
}
/**
* @return lastTaskTime
*/
public Long getLastTaskTime() {
return this.lastTaskTime;
}
/**
* @return maliciousFile
*/
public Integer getMaliciousFile() {
return this.maliciousFile;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return riskMachine
*/
public Integer getRiskMachine() {
return this.riskMachine;
}
/**
* @return scaVulCount
*/
public Integer getScaVulCount() {
return this.scaVulCount;
}
/**
* @return scanMachine
*/
public Integer getScanMachine() {
return this.scanMachine;
}
/**
* @return sensitiveFileCount
*/
public Integer getSensitiveFileCount() {
return this.sensitiveFileCount;
}
/**
* @return sysVulCount
*/
public String getSysVulCount() {
return this.sysVulCount;
}
/**
* @return vulnerability
*/
public Integer getVulnerability() {
return this.vulnerability;
}
public static final class Builder {
private Integer baselineCheckCount;
private Integer cveVulCount;
private Long lastTaskTime;
private Integer maliciousFile;
private String requestId;
private Integer riskMachine;
private Integer scaVulCount;
private Integer scanMachine;
private Integer sensitiveFileCount;
private String sysVulCount;
private Integer vulnerability;
private Builder() {
}
private Builder(GetAgentlessTaskCountResponseBody model) {
this.baselineCheckCount = model.baselineCheckCount;
this.cveVulCount = model.cveVulCount;
this.lastTaskTime = model.lastTaskTime;
this.maliciousFile = model.maliciousFile;
this.requestId = model.requestId;
this.riskMachine = model.riskMachine;
this.scaVulCount = model.scaVulCount;
this.scanMachine = model.scanMachine;
this.sensitiveFileCount = model.sensitiveFileCount;
this.sysVulCount = model.sysVulCount;
this.vulnerability = model.vulnerability;
}
/**
* <p>The number of baseline checks.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder baselineCheckCount(Integer baselineCheckCount) {
this.baselineCheckCount = baselineCheckCount;
return this;
}
/**
* <p>The number of system vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder cveVulCount(Integer cveVulCount) {
this.cveVulCount = cveVulCount;
return this;
}
/**
* <p>The timestamp generated when the last detection is performed.</p>
*
* <strong>example:</strong>
* <p>1682577532318</p>
*/
public Builder lastTaskTime(Long lastTaskTime) {
this.lastTaskTime = lastTaskTime;
return this;
}
/**
* <p>The number of malicious files.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder maliciousFile(Integer maliciousFile) {
this.maliciousFile = maliciousFile;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>D03DD0FD-6041-5107-AC00-383E28F1****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of risky hosts.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder riskMachine(Integer riskMachine) {
this.riskMachine = riskMachine;
return this;
}
/**
* <p>The number of application vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder scaVulCount(Integer scaVulCount) {
this.scaVulCount = scaVulCount;
return this;
}
/**
* <p>The number of hosts that are scanned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder scanMachine(Integer scanMachine) {
this.scanMachine = scanMachine;
return this;
}
/**
* <p>The total number of sensitive files.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder sensitiveFileCount(Integer sensitiveFileCount) {
this.sensitiveFileCount = sensitiveFileCount;
return this;
}
/**
* <p>The total number of Windows system vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder sysVulCount(String sysVulCount) {
this.sysVulCount = sysVulCount;
return this;
}
/**
* <p>The number of vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder vulnerability(Integer vulnerability) {
this.vulnerability = vulnerability;
return this;
}
public GetAgentlessTaskCountResponseBody build() {
return new GetAgentlessTaskCountResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAlarmMachineCountRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAlarmMachineCountRequest} extends {@link RequestModel}
*
* <p>GetAlarmMachineCountRequest</p>
*/
public class GetAlarmMachineCountRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("From")
private String from;
private GetAlarmMachineCountRequest(Builder builder) {
super(builder);
this.from = builder.from;
}
public static Builder builder() {
return new Builder();
}
public static GetAlarmMachineCountRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return from
*/
public String getFrom() {
return this.from;
}
public static final class Builder extends Request.Builder<GetAlarmMachineCountRequest, Builder> {
private String from;
private Builder() {
super();
}
private Builder(GetAlarmMachineCountRequest request) {
super(request);
this.from = request.from;
}
/**
* <p>The ID of the request source. Set the value to sas.</p>
*
* <strong>example:</strong>
* <p>sas</p>
*/
public Builder from(String from) {
this.putQueryParameter("From", from);
this.from = from;
return this;
}
@Override
public GetAlarmMachineCountRequest build() {
return new GetAlarmMachineCountRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAlarmMachineCountResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAlarmMachineCountResponse} extends {@link TeaModel}
*
* <p>GetAlarmMachineCountResponse</p>
*/
public class GetAlarmMachineCountResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAlarmMachineCountResponseBody body;
private GetAlarmMachineCountResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAlarmMachineCountResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAlarmMachineCountResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAlarmMachineCountResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAlarmMachineCountResponseBody body);
@Override
GetAlarmMachineCountResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAlarmMachineCountResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAlarmMachineCountResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAlarmMachineCountResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAlarmMachineCountResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAlarmMachineCountResponse build() {
return new GetAlarmMachineCountResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAlarmMachineCountResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAlarmMachineCountResponseBody} extends {@link TeaModel}
*
* <p>GetAlarmMachineCountResponseBody</p>
*/
public class GetAlarmMachineCountResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAlarmMachineCountResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAlarmMachineCountResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetAlarmMachineCountResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>6D3A2E7D-1238-5DD4-B3C3-BF06FCAD****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAlarmMachineCountResponseBody build() {
return new GetAlarmMachineCountResponseBody(this);
}
}
/**
*
* {@link GetAlarmMachineCountResponseBody} extends {@link TeaModel}
*
* <p>GetAlarmMachineCountResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MachineCount")
private Integer machineCount;
private Data(Builder builder) {
this.machineCount = builder.machineCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return machineCount
*/
public Integer getMachineCount() {
return this.machineCount;
}
public static final class Builder {
private Integer machineCount;
private Builder() {
}
private Builder(Data model) {
this.machineCount = model.machineCount;
}
/**
* <p>The number of servers on which alerts are generated.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder machineCount(Integer machineCount) {
this.machineCount = machineCount;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAppNetworkRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAppNetworkRequest} extends {@link RequestModel}
*
* <p>GetAppNetworkRequest</p>
*/
public class GetAppNetworkRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
private GetAppNetworkRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.endTime = builder.endTime;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static GetAppNetworkRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<GetAppNetworkRequest, Builder> {
private String clusterId;
private Long endTime;
private Long startTime;
private Builder() {
super();
}
private Builder(GetAppNetworkRequest request) {
super(request);
this.clusterId = request.clusterId;
this.endTime = request.endTime;
this.startTime = request.startTime;
}
/**
* <p>The ID of the cluster to which the container belongs.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation to query the IDs of container clusters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cf77xxx</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>The end timestamp of the query. Unit: milliseconds.</p>
* <blockquote>
* <p>The days between the start timestamp and the end timestamp cannot exceed <strong>seven</strong> days.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1650470399999</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The start timestamp of the query. Unit: milliseconds.</p>
* <blockquote>
* <p>The days between the start timestamp and the end timestamp cannot exceed <strong>seven</strong> days.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1649260800000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public GetAppNetworkRequest build() {
return new GetAppNetworkRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAppNetworkResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAppNetworkResponse} extends {@link TeaModel}
*
* <p>GetAppNetworkResponse</p>
*/
public class GetAppNetworkResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAppNetworkResponseBody body;
private GetAppNetworkResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAppNetworkResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAppNetworkResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAppNetworkResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAppNetworkResponseBody body);
@Override
GetAppNetworkResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAppNetworkResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAppNetworkResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAppNetworkResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAppNetworkResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAppNetworkResponse build() {
return new GetAppNetworkResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAppNetworkResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAppNetworkResponseBody} extends {@link TeaModel}
*
* <p>GetAppNetworkResponseBody</p>
*/
public class GetAppNetworkResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppNetwork")
private AppNetwork appNetwork;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAppNetworkResponseBody(Builder builder) {
this.appNetwork = builder.appNetwork;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAppNetworkResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appNetwork
*/
public AppNetwork getAppNetwork() {
return this.appNetwork;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AppNetwork appNetwork;
private String requestId;
private Builder() {
}
private Builder(GetAppNetworkResponseBody model) {
this.appNetwork = model.appNetwork;
this.requestId = model.requestId;
}
/**
* <p>The information about the application network topology.</p>
*/
public Builder appNetwork(AppNetwork appNetwork) {
this.appNetwork = appNetwork;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>7D46EDB0-xxx</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAppNetworkResponseBody build() {
return new GetAppNetworkResponseBody(this);
}
}
/**
*
* {@link GetAppNetworkResponseBody} extends {@link TeaModel}
*
* <p>GetAppNetworkResponseBody</p>
*/
public static class Edge extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstNodeId")
private String dstNodeId;
@com.aliyun.core.annotation.NameInMap("DstNodeType")
private String dstNodeType;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("SrcNodeId")
private String srcNodeId;
@com.aliyun.core.annotation.NameInMap("SrcNodeType")
private String srcNodeType;
private Edge(Builder builder) {
this.dstNodeId = builder.dstNodeId;
this.dstNodeType = builder.dstNodeType;
this.id = builder.id;
this.port = builder.port;
this.srcNodeId = builder.srcNodeId;
this.srcNodeType = builder.srcNodeType;
}
public static Builder builder() {
return new Builder();
}
public static Edge create() {
return builder().build();
}
/**
* @return dstNodeId
*/
public String getDstNodeId() {
return this.dstNodeId;
}
/**
* @return dstNodeType
*/
public String getDstNodeType() {
return this.dstNodeType;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return srcNodeId
*/
public String getSrcNodeId() {
return this.srcNodeId;
}
/**
* @return srcNodeType
*/
public String getSrcNodeType() {
return this.srcNodeType;
}
public static final class Builder {
private String dstNodeId;
private String dstNodeType;
private String id;
private String port;
private String srcNodeId;
private String srcNodeType;
private Builder() {
}
private Builder(Edge model) {
this.dstNodeId = model.dstNodeId;
this.dstNodeType = model.dstNodeType;
this.id = model.id;
this.port = model.port;
this.srcNodeId = model.srcNodeId;
this.srcNodeType = model.srcNodeType;
}
/**
* <p>The ID of the destination node.</p>
*
* <strong>example:</strong>
* <p>102</p>
*/
public Builder dstNodeId(String dstNodeId) {
this.dstNodeId = dstNodeId;
return this;
}
/**
* <p>The type of the destination node. Valid values:</p>
* <ul>
* <li><strong>app</strong>: an application</li>
* <li><strong>internet</strong>: a network node in another cluster</li>
* </ul>
*
* <strong>example:</strong>
* <p>app</p>
*/
public Builder dstNodeType(String dstNodeType) {
this.dstNodeType = dstNodeType;
return this;
}
/**
* <p>The ID of the edge.</p>
*
* <strong>example:</strong>
* <p>3534</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>The number of the destination port.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The ID of the source node.</p>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder srcNodeId(String srcNodeId) {
this.srcNodeId = srcNodeId;
return this;
}
/**
* <p>The type of the source node. Valid values:</p>
* <ul>
* <li><strong>app</strong>: an application</li>
* <li><strong>internet</strong>: a network node in another cluster</li>
* </ul>
*
* <strong>example:</strong>
* <p>app</p>
*/
public Builder srcNodeType(String srcNodeType) {
this.srcNodeType = srcNodeType;
return this;
}
public Edge build() {
return new Edge(this);
}
}
}
/**
*
* {@link GetAppNetworkResponseBody} extends {@link TeaModel}
*
* <p>GetAppNetworkResponseBody</p>
*/
public static class Namespace extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private Namespace(Builder builder) {
this.id = builder.id;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static Namespace create() {
return builder().build();
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private String id;
private String name;
private Builder() {
}
private Builder(Namespace model) {
this.id = model.id;
this.name = model.name;
}
/**
* <p>The ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>The name of the custom namespace.</p>
*
* <strong>example:</strong>
* <p>default</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public Namespace build() {
return new Namespace(this);
}
}
}
/**
*
* {@link GetAppNetworkResponseBody} extends {@link TeaModel}
*
* <p>GetAppNetworkResponseBody</p>
*/
public static class Node extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ContainerIds")
private java.util.List<String> containerIds;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private Node(Builder builder) {
this.containerIds = builder.containerIds;
this.id = builder.id;
this.name = builder.name;
this.namespaceId = builder.namespaceId;
this.riskLevel = builder.riskLevel;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Node create() {
return builder().build();
}
/**
* @return containerIds
*/
public java.util.List<String> getContainerIds() {
return this.containerIds;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private java.util.List<String> containerIds;
private String id;
private String name;
private String namespaceId;
private String riskLevel;
private String type;
private Builder() {
}
private Builder(Node model) {
this.containerIds = model.containerIds;
this.id = model.id;
this.name = model.name;
this.namespaceId = model.namespaceId;
this.riskLevel = model.riskLevel;
this.type = model.type;
}
/**
* <p>The list of the container IDs.</p>
*/
public Builder containerIds(java.util.List<String> containerIds) {
this.containerIds = containerIds;
return this;
}
/**
* <p>The ID of the node.</p>
*
* <strong>example:</strong>
* <p>1274</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>The name of the node.</p>
*
* <strong>example:</strong>
* <p>console</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The risk level. Valid values:</p>
* <ul>
* <li><strong>3</strong>: high</li>
* <li><strong>2</strong>: medium</li>
* <li><strong>1</strong>: low</li>
* <li><strong>0</strong>: warning</li>
* <li><strong>-1</strong>: unknown</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The type of the node. Valid values:</p>
* <ul>
* <li><strong>app</strong>: an application</li>
* <li><strong>internet</strong>: a network node in another cluster</li>
* </ul>
*
* <strong>example:</strong>
* <p>app</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Node build() {
return new Node(this);
}
}
}
/**
*
* {@link GetAppNetworkResponseBody} extends {@link TeaModel}
*
* <p>GetAppNetworkResponseBody</p>
*/
public static class AppNetwork extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Edge")
private java.util.List<Edge> edge;
@com.aliyun.core.annotation.NameInMap("Namespace")
private java.util.List<Namespace> namespace;
@com.aliyun.core.annotation.NameInMap("Node")
private java.util.List<Node> node;
private AppNetwork(Builder builder) {
this.edge = builder.edge;
this.namespace = builder.namespace;
this.node = builder.node;
}
public static Builder builder() {
return new Builder();
}
public static AppNetwork create() {
return builder().build();
}
/**
* @return edge
*/
public java.util.List<Edge> getEdge() {
return this.edge;
}
/**
* @return namespace
*/
public java.util.List<Namespace> getNamespace() {
return this.namespace;
}
/**
* @return node
*/
public java.util.List<Node> getNode() {
return this.node;
}
public static final class Builder {
private java.util.List<Edge> edge;
private java.util.List<Namespace> namespace;
private java.util.List<Node> node;
private Builder() {
}
private Builder(AppNetwork model) {
this.edge = model.edge;
this.namespace = model.namespace;
this.node = model.node;
}
/**
* <p>The information about the topology edge.</p>
*/
public Builder edge(java.util.List<Edge> edge) {
this.edge = edge;
return this;
}
/**
* <p>The namespace.</p>
*/
public Builder namespace(java.util.List<Namespace> namespace) {
this.namespace = namespace;
return this;
}
/**
* <p>The information about the application node.</p>
*/
public Builder node(java.util.List<Node> node) {
this.node = node;
return this;
}
public AppNetwork build() {
return new AppNetwork(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetDetailByUuidRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetDetailByUuidRequest} extends {@link RequestModel}
*
* <p>GetAssetDetailByUuidRequest</p>
*/
public class GetAssetDetailByUuidRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
@com.aliyun.core.annotation.Validation(required = true)
private String uuid;
private GetAssetDetailByUuidRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.sourceIp = builder.sourceIp;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static GetAssetDetailByUuidRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<GetAssetDetailByUuidRequest, Builder> {
private String lang;
private String sourceIp;
private String uuid;
private Builder() {
super();
}
private Builder(GetAssetDetailByUuidRequest request) {
super(request);
this.lang = request.lang;
this.sourceIp = request.sourceIp;
this.uuid = request.uuid;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The source IP address of the request. The system specifies this parameter.</p>
*
* <strong>example:</strong>
* <p>120.245.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The UUID of the server to query.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeCloudCenterInstances~~">DescribeCloudCenterInstances</a> operation to query the UUIDs of servers.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>9e6cad93-a379-46fd-a701-9bbf02f4****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public GetAssetDetailByUuidRequest build() {
return new GetAssetDetailByUuidRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetDetailByUuidResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetDetailByUuidResponse} extends {@link TeaModel}
*
* <p>GetAssetDetailByUuidResponse</p>
*/
public class GetAssetDetailByUuidResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAssetDetailByUuidResponseBody body;
private GetAssetDetailByUuidResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAssetDetailByUuidResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAssetDetailByUuidResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAssetDetailByUuidResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAssetDetailByUuidResponseBody body);
@Override
GetAssetDetailByUuidResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAssetDetailByUuidResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAssetDetailByUuidResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAssetDetailByUuidResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAssetDetailByUuidResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAssetDetailByUuidResponse build() {
return new GetAssetDetailByUuidResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetDetailByUuidResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetDetailByUuidResponseBody} extends {@link TeaModel}
*
* <p>GetAssetDetailByUuidResponseBody</p>
*/
public class GetAssetDetailByUuidResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetDetail")
private AssetDetail assetDetail;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAssetDetailByUuidResponseBody(Builder builder) {
this.assetDetail = builder.assetDetail;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAssetDetailByUuidResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetDetail
*/
public AssetDetail getAssetDetail() {
return this.assetDetail;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AssetDetail assetDetail;
private String requestId;
private Builder() {
}
private Builder(GetAssetDetailByUuidResponseBody model) {
this.assetDetail = model.assetDetail;
this.requestId = model.requestId;
}
/**
* <p>The details of the server.</p>
*/
public Builder assetDetail(AssetDetail assetDetail) {
this.assetDetail = assetDetail;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>4892B68B-47BC-5E56-B327-9C2ACC6C1C09</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAssetDetailByUuidResponseBody build() {
return new GetAssetDetailByUuidResponseBody(this);
}
}
/**
*
* {@link GetAssetDetailByUuidResponseBody} extends {@link TeaModel}
*
* <p>GetAssetDetailByUuidResponseBody</p>
*/
public static class DiskInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiskName")
private String diskName;
@com.aliyun.core.annotation.NameInMap("TotalSize")
private Long totalSize;
@com.aliyun.core.annotation.NameInMap("TotalSizeByte")
private Long totalSizeByte;
@com.aliyun.core.annotation.NameInMap("UseSize")
private Long useSize;
@com.aliyun.core.annotation.NameInMap("UseSizeByte")
private Long useSizeByte;
private DiskInfoList(Builder builder) {
this.diskName = builder.diskName;
this.totalSize = builder.totalSize;
this.totalSizeByte = builder.totalSizeByte;
this.useSize = builder.useSize;
this.useSizeByte = builder.useSizeByte;
}
public static Builder builder() {
return new Builder();
}
public static DiskInfoList create() {
return builder().build();
}
/**
* @return diskName
*/
public String getDiskName() {
return this.diskName;
}
/**
* @return totalSize
*/
public Long getTotalSize() {
return this.totalSize;
}
/**
* @return totalSizeByte
*/
public Long getTotalSizeByte() {
return this.totalSizeByte;
}
/**
* @return useSize
*/
public Long getUseSize() {
return this.useSize;
}
/**
* @return useSizeByte
*/
public Long getUseSizeByte() {
return this.useSizeByte;
}
public static final class Builder {
private String diskName;
private Long totalSize;
private Long totalSizeByte;
private Long useSize;
private Long useSizeByte;
private Builder() {
}
private Builder(DiskInfoList model) {
this.diskName = model.diskName;
this.totalSize = model.totalSize;
this.totalSizeByte = model.totalSizeByte;
this.useSize = model.useSize;
this.useSizeByte = model.useSizeByte;
}
/**
* <p>The name of the disk.</p>
*
* <strong>example:</strong>
* <p>/dev/vda1</p>
*/
public Builder diskName(String diskName) {
this.diskName = diskName;
return this;
}
/**
* <p>The total disk space. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>40</p>
*/
public Builder totalSize(Long totalSize) {
this.totalSize = totalSize;
return this;
}
/**
* <p>The total disk space. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>42140479488</p>
*/
public Builder totalSizeByte(Long totalSizeByte) {
this.totalSizeByte = totalSizeByte;
return this;
}
/**
* <p>The amount of the used disk space. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder useSize(Long useSize) {
this.useSize = useSize;
return this;
}
/**
* <p>The amount of the used disk space. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>2998996992</p>
*/
public Builder useSizeByte(Long useSizeByte) {
this.useSizeByte = useSizeByte;
return this;
}
public DiskInfoList build() {
return new DiskInfoList(this);
}
}
}
/**
*
* {@link GetAssetDetailByUuidResponseBody} extends {@link TeaModel}
*
* <p>GetAssetDetailByUuidResponseBody</p>
*/
public static class AssetDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetType")
private String assetType;
@com.aliyun.core.annotation.NameInMap("AuthModifyTime")
private Long authModifyTime;
@com.aliyun.core.annotation.NameInMap("AuthVersion")
private Integer authVersion;
@com.aliyun.core.annotation.NameInMap("Bind")
private Boolean bind;
@com.aliyun.core.annotation.NameInMap("ClientStatus")
private String clientStatus;
@com.aliyun.core.annotation.NameInMap("ClientSubStatus")
private String clientSubStatus;
@com.aliyun.core.annotation.NameInMap("ClientVersion")
private String clientVersion;
@com.aliyun.core.annotation.NameInMap("Cpu")
private Integer cpu;
@com.aliyun.core.annotation.NameInMap("CpuInfo")
private String cpuInfo;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("DiskInfoList")
private java.util.List<DiskInfoList> diskInfoList;
@com.aliyun.core.annotation.NameInMap("Flag")
private Integer flag;
@com.aliyun.core.annotation.NameInMap("GroupTrace")
private String groupTrace;
@com.aliyun.core.annotation.NameInMap("HostName")
private String hostName;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("Ip")
private String ip;
@com.aliyun.core.annotation.NameInMap("IpList")
private java.util.List<String> ipList;
@com.aliyun.core.annotation.NameInMap("Kernel")
private String kernel;
@com.aliyun.core.annotation.NameInMap("MacList")
private java.util.List<String> macList;
@com.aliyun.core.annotation.NameInMap("Mem")
private Integer mem;
@com.aliyun.core.annotation.NameInMap("Memory")
private Long memory;
@com.aliyun.core.annotation.NameInMap("Os")
private String os;
@com.aliyun.core.annotation.NameInMap("OsDetail")
private String osDetail;
@com.aliyun.core.annotation.NameInMap("OsName")
private String osName;
@com.aliyun.core.annotation.NameInMap("Region")
private String region;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RegionName")
private String regionName;
@com.aliyun.core.annotation.NameInMap("SysInfo")
private String sysInfo;
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VendorAuthAlias")
private String vendorAuthAlias;
@com.aliyun.core.annotation.NameInMap("VpcInstanceId")
private String vpcInstanceId;
private AssetDetail(Builder builder) {
this.assetType = builder.assetType;
this.authModifyTime = builder.authModifyTime;
this.authVersion = builder.authVersion;
this.bind = builder.bind;
this.clientStatus = builder.clientStatus;
this.clientSubStatus = builder.clientSubStatus;
this.clientVersion = builder.clientVersion;
this.cpu = builder.cpu;
this.cpuInfo = builder.cpuInfo;
this.createTime = builder.createTime;
this.diskInfoList = builder.diskInfoList;
this.flag = builder.flag;
this.groupTrace = builder.groupTrace;
this.hostName = builder.hostName;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.ip = builder.ip;
this.ipList = builder.ipList;
this.kernel = builder.kernel;
this.macList = builder.macList;
this.mem = builder.mem;
this.memory = builder.memory;
this.os = builder.os;
this.osDetail = builder.osDetail;
this.osName = builder.osName;
this.region = builder.region;
this.regionId = builder.regionId;
this.regionName = builder.regionName;
this.sysInfo = builder.sysInfo;
this.tag = builder.tag;
this.uuid = builder.uuid;
this.vendorAuthAlias = builder.vendorAuthAlias;
this.vpcInstanceId = builder.vpcInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static AssetDetail create() {
return builder().build();
}
/**
* @return assetType
*/
public String getAssetType() {
return this.assetType;
}
/**
* @return authModifyTime
*/
public Long getAuthModifyTime() {
return this.authModifyTime;
}
/**
* @return authVersion
*/
public Integer getAuthVersion() {
return this.authVersion;
}
/**
* @return bind
*/
public Boolean getBind() {
return this.bind;
}
/**
* @return clientStatus
*/
public String getClientStatus() {
return this.clientStatus;
}
/**
* @return clientSubStatus
*/
public String getClientSubStatus() {
return this.clientSubStatus;
}
/**
* @return clientVersion
*/
public String getClientVersion() {
return this.clientVersion;
}
/**
* @return cpu
*/
public Integer getCpu() {
return this.cpu;
}
/**
* @return cpuInfo
*/
public String getCpuInfo() {
return this.cpuInfo;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return diskInfoList
*/
public java.util.List<DiskInfoList> getDiskInfoList() {
return this.diskInfoList;
}
/**
* @return flag
*/
public Integer getFlag() {
return this.flag;
}
/**
* @return groupTrace
*/
public String getGroupTrace() {
return this.groupTrace;
}
/**
* @return hostName
*/
public String getHostName() {
return this.hostName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return ip
*/
public String getIp() {
return this.ip;
}
/**
* @return ipList
*/
public java.util.List<String> getIpList() {
return this.ipList;
}
/**
* @return kernel
*/
public String getKernel() {
return this.kernel;
}
/**
* @return macList
*/
public java.util.List<String> getMacList() {
return this.macList;
}
/**
* @return mem
*/
public Integer getMem() {
return this.mem;
}
/**
* @return memory
*/
public Long getMemory() {
return this.memory;
}
/**
* @return os
*/
public String getOs() {
return this.os;
}
/**
* @return osDetail
*/
public String getOsDetail() {
return this.osDetail;
}
/**
* @return osName
*/
public String getOsName() {
return this.osName;
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return regionName
*/
public String getRegionName() {
return this.regionName;
}
/**
* @return sysInfo
*/
public String getSysInfo() {
return this.sysInfo;
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vendorAuthAlias
*/
public String getVendorAuthAlias() {
return this.vendorAuthAlias;
}
/**
* @return vpcInstanceId
*/
public String getVpcInstanceId() {
return this.vpcInstanceId;
}
public static final class Builder {
private String assetType;
private Long authModifyTime;
private Integer authVersion;
private Boolean bind;
private String clientStatus;
private String clientSubStatus;
private String clientVersion;
private Integer cpu;
private String cpuInfo;
private Long createTime;
private java.util.List<DiskInfoList> diskInfoList;
private Integer flag;
private String groupTrace;
private String hostName;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private String ip;
private java.util.List<String> ipList;
private String kernel;
private java.util.List<String> macList;
private Integer mem;
private Long memory;
private String os;
private String osDetail;
private String osName;
private String region;
private String regionId;
private String regionName;
private String sysInfo;
private String tag;
private String uuid;
private String vendorAuthAlias;
private String vpcInstanceId;
private Builder() {
}
private Builder(AssetDetail model) {
this.assetType = model.assetType;
this.authModifyTime = model.authModifyTime;
this.authVersion = model.authVersion;
this.bind = model.bind;
this.clientStatus = model.clientStatus;
this.clientSubStatus = model.clientSubStatus;
this.clientVersion = model.clientVersion;
this.cpu = model.cpu;
this.cpuInfo = model.cpuInfo;
this.createTime = model.createTime;
this.diskInfoList = model.diskInfoList;
this.flag = model.flag;
this.groupTrace = model.groupTrace;
this.hostName = model.hostName;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.ip = model.ip;
this.ipList = model.ipList;
this.kernel = model.kernel;
this.macList = model.macList;
this.mem = model.mem;
this.memory = model.memory;
this.os = model.os;
this.osDetail = model.osDetail;
this.osName = model.osName;
this.region = model.region;
this.regionId = model.regionId;
this.regionName = model.regionName;
this.sysInfo = model.sysInfo;
this.tag = model.tag;
this.uuid = model.uuid;
this.vendorAuthAlias = model.vendorAuthAlias;
this.vpcInstanceId = model.vpcInstanceId;
}
/**
* <p>The type of the server. Valid values:</p>
* <ul>
* <li><strong>0</strong>: ECS instance</li>
* <li><strong>1</strong>: Server Load Balancer (SLB) instance</li>
* <li><strong>2</strong>: NAT gateway</li>
* <li><strong>3</strong>: ApsaraDB RDS instance</li>
* <li><strong>4</strong>: ApsaraDB for MongoDB instance</li>
* <li><strong>5</strong>: ApsaraDB for Redis instance</li>
* <li><strong>6</strong>: image</li>
* <li><strong>7</strong>: container</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetType(String assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The timestamp when Security Center is authorized to protect the asset. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1627974044000</p>
*/
public Builder authModifyTime(Long authModifyTime) {
this.authModifyTime = authModifyTime;
return this;
}
/**
* <p>The edition of Security Center that is authorized to protect the server. Valid values:</p>
* <ul>
* <li><strong>1</strong>: Basic (Unauthorized).</li>
* <li><strong>6</strong>: Anti-virus.</li>
* <li><strong>5</strong>: Advanced.</li>
* <li><strong>3</strong>: Enterprise.</li>
* <li><strong>7</strong>: Ultimate.</li>
* </ul>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder authVersion(Integer authVersion) {
this.authVersion = authVersion;
return this;
}
/**
* <p>Indicates whether Security Center is authorized to protect the asset. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Security Center is authorized to protect the asset.</li>
* <li><strong>false</strong>: Security Center is not authorized to protect the asset.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder bind(Boolean bind) {
this.bind = bind;
return this;
}
/**
* <p>The status of the Security Center agent. Valid values:</p>
* <ul>
* <li><strong>pause</strong>: The Security Center agent stops protecting your server.</li>
* <li><strong>online</strong>: The Security Center agent is protecting your server.</li>
* <li><strong>offline</strong>: The Security Center agent does not protect your server.</li>
* </ul>
*
* <strong>example:</strong>
* <p>online</p>
*/
public Builder clientStatus(String clientStatus) {
this.clientStatus = clientStatus;
return this;
}
/**
* <p>The sub-status of the Security Center agent on the server. Valid values:</p>
* <ul>
* <li><strong>online</strong>: The Security Center agent on the asset is <strong>enabled</strong>.</li>
* <li><strong>offline</strong>: The Security Center agent on the asset is <strong>disabled</strong>.</li>
* <li><strong>pause</strong>: The Security Center agent is <strong>suspended</strong>.</li>
* <li><strong>uninstalled</strong>: The Security Center agent is <strong>not installed</strong>.</li>
* <li><strong>stopped</strong>: The asset is <strong>shut down</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>online</p>
*/
public Builder clientSubStatus(String clientSubStatus) {
this.clientSubStatus = clientSubStatus;
return this;
}
/**
* <p>The version of the Security Center agent.</p>
*
* <strong>example:</strong>
* <p>2.0.0</p>
*/
public Builder clientVersion(String clientVersion) {
this.clientVersion = clientVersion;
return this;
}
/**
* <p>The number of CPU cores.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder cpu(Integer cpu) {
this.cpu = cpu;
return this;
}
/**
* <p>The details of the CPU.</p>
*
* <strong>example:</strong>
* <p>Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz</p>
*/
public Builder cpuInfo(String cpuInfo) {
this.cpuInfo = cpuInfo;
return this;
}
/**
* <p>The timestamp when Security Center records the details of the server. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1603863599000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The list of information about the disk.</p>
*/
public Builder diskInfoList(java.util.List<DiskInfoList> diskInfoList) {
this.diskInfoList = diskInfoList;
return this;
}
/**
* <p>Indicates whether the asset is provided by Alibaba Cloud. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The server is provided by Alibaba Cloud.</li>
* <li><strong>1</strong>: The server is not provided by Alibaba Cloud.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder flag(Integer flag) {
this.flag = flag;
return this;
}
/**
* <p>The group to which the server belongs. By default, the servers that are not grouped belong to the <strong>Default</strong> group.</p>
*
* <strong>example:</strong>
* <p>default</p>
*/
public Builder groupTrace(String groupTrace) {
this.groupTrace = groupTrace;
return this;
}
/**
* <p>The name of the host.</p>
*
* <strong>example:</strong>
* <p>qewrqwerqs****</p>
*/
public Builder hostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-uf6h7p2fgk6rkk0g****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>i-fasdfasdfadfafa****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>120.47.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The IP address that is assigned to the Elastic Compute Service (ECS) instance.</p>
*
* <strong>example:</strong>
* <p>120.47.XX.XX</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>An array that consists of the IP addresses of the server.</p>
*/
public Builder ipList(java.util.List<String> ipList) {
this.ipList = ipList;
return this;
}
/**
* <p>The kernel version of the operating system.</p>
*
* <strong>example:</strong>
* <p>4.18.0-80.11.2.el8_0.x86_64</p>
*/
public Builder kernel(String kernel) {
this.kernel = kernel;
return this;
}
/**
* <p>An array that consists of the media access control (MAC) addresses of the server.</p>
*/
public Builder macList(java.util.List<String> macList) {
this.macList = macList;
return this;
}
/**
* <p>The memory size of the server. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder mem(Integer mem) {
this.mem = mem;
return this;
}
/**
* <p>The memory size of the server. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>16384</p>
*/
public Builder memory(Long memory) {
this.memory = memory;
return this;
}
/**
* <p>The operating system type of the server.</p>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder os(String os) {
this.os = os;
return this;
}
/**
* <p>The operating system version of the server.</p>
*
* <strong>example:</strong>
* <p>Linux 64bit</p>
*/
public Builder osDetail(String osDetail) {
this.osDetail = osDetail;
return this;
}
/**
* <p>The name of the operating system that the server runs.</p>
*
* <strong>example:</strong>
* <p>CentOS 7.4 64bit</p>
*/
public Builder osName(String osName) {
this.osName = osName;
return this;
}
/**
* <p>The region in which the server resides.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder region(String region) {
this.region = region;
return this;
}
/**
* <p>The ID of the region in which the asset resides.</p>
*
* <strong>example:</strong>
* <p>cn-hanghzou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The name of the region in which the server resides.</p>
*
* <strong>example:</strong>
* <p>China (Hohhot)</p>
*/
public Builder regionName(String regionName) {
this.regionName = regionName;
return this;
}
/**
* <p>The operating system information about the server.</p>
*
* <strong>example:</strong>
* <p>CentOS Linux 8.0.1905</p>
*/
public Builder sysInfo(String sysInfo) {
this.sysInfo = sysInfo;
return this;
}
/**
* <p>The tag that is added to the server.</p>
*
* <strong>example:</strong>
* <p>InternetIp</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>9e6cad93-a379-46fd-a701-9bbf02f4****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The account to which the AccessKey pair belongs.</p>
* <blockquote>
* <p> This parameter is returned only by third-party cloud servers. If the parameter value is empty, it will not be returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder vendorAuthAlias(String vendorAuthAlias) {
this.vendorAuthAlias = vendorAuthAlias;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) in which the server resides.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1fs3bwonlfq503w****</p>
*/
public Builder vpcInstanceId(String vpcInstanceId) {
this.vpcInstanceId = vpcInstanceId;
return this;
}
public AssetDetail build() {
return new AssetDetail(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetSelectionConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetSelectionConfigRequest} extends {@link RequestModel}
*
* <p>GetAssetSelectionConfigRequest</p>
*/
public class GetAssetSelectionConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BusinessType")
@com.aliyun.core.annotation.Validation(required = true)
private String businessType;
private GetAssetSelectionConfigRequest(Builder builder) {
super(builder);
this.businessType = builder.businessType;
}
public static Builder builder() {
return new Builder();
}
public static GetAssetSelectionConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return businessType
*/
public String getBusinessType() {
return this.businessType;
}
public static final class Builder extends Request.Builder<GetAssetSelectionConfigRequest, Builder> {
private String businessType;
private Builder() {
super();
}
private Builder(GetAssetSelectionConfigRequest request) {
super(request);
this.businessType = request.businessType;
}
/**
* <p>The feature that is selected for the asset. Valid values:</p>
* <ul>
* <li><strong>VIRUS_SCAN_CYCLE_CONFIG</strong>: virus detection and removal</li>
* <li><strong>VIRUS_SCAN_ONCE_TASK</strong>: one-time scan for viruses</li>
* <li><strong>AGENTLESS_MALICIOUS_WHITE_LIST_[ID]</strong>: a whitelist rule for alerts that are detected by using the agentless detection feature</li>
* <li><strong>AGENTLESS_VUL_WHITE_LIST_[ID]</strong>: a whitelist rule for vulnerabilities that are detected by using the agentless detection feature</li>
* <li><strong>FILE_PROTECT_RULE_SWITCH_TYPE_[ID]</strong>: core file protectioion</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>VIRUS_SCAN_CYCLE_CONFIG</p>
*/
public Builder businessType(String businessType) {
this.putQueryParameter("BusinessType", businessType);
this.businessType = businessType;
return this;
}
@Override
public GetAssetSelectionConfigRequest build() {
return new GetAssetSelectionConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetSelectionConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetSelectionConfigResponse} extends {@link TeaModel}
*
* <p>GetAssetSelectionConfigResponse</p>
*/
public class GetAssetSelectionConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAssetSelectionConfigResponseBody body;
private GetAssetSelectionConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAssetSelectionConfigResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAssetSelectionConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAssetSelectionConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAssetSelectionConfigResponseBody body);
@Override
GetAssetSelectionConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAssetSelectionConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAssetSelectionConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAssetSelectionConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAssetSelectionConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAssetSelectionConfigResponse build() {
return new GetAssetSelectionConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetSelectionConfigResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetSelectionConfigResponseBody} extends {@link TeaModel}
*
* <p>GetAssetSelectionConfigResponseBody</p>
*/
public class GetAssetSelectionConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAssetSelectionConfigResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAssetSelectionConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetAssetSelectionConfigResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C5936B67-3EDF-53ED-A542-02543972449A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAssetSelectionConfigResponseBody build() {
return new GetAssetSelectionConfigResponseBody(this);
}
}
/**
*
* {@link GetAssetSelectionConfigResponseBody} extends {@link TeaModel}
*
* <p>GetAssetSelectionConfigResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.NameInMap("SelectionKey")
private String selectionKey;
@com.aliyun.core.annotation.NameInMap("TargetType")
private String targetType;
private Data(Builder builder) {
this.platform = builder.platform;
this.selectionKey = builder.selectionKey;
this.targetType = builder.targetType;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return selectionKey
*/
public String getSelectionKey() {
return this.selectionKey;
}
/**
* @return targetType
*/
public String getTargetType() {
return this.targetType;
}
public static final class Builder {
private String platform;
private String selectionKey;
private String targetType;
private Builder() {
}
private Builder(Data model) {
this.platform = model.platform;
this.selectionKey = model.selectionKey;
this.targetType = model.targetType;
}
/**
* <p>The operating system of the asset. Valid values:</p>
* <ul>
* <li><strong>windows</strong></li>
* <li><strong>linux</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.platform = platform;
return this;
}
/**
* <p>The ID of the current asset selection. It can be used to query and modify the asset that is selected.</p>
*
* <strong>example:</strong>
* <p>657c8411-4e89-446c-ab66-d45d1331****</p>
*/
public Builder selectionKey(String selectionKey) {
this.selectionKey = selectionKey;
return this;
}
/**
* <p>The dimension based on which the asset is selected. Valid values:</p>
* <ul>
* <li><strong>instance</strong>: The asset is selected by server.</li>
* <li><strong>group</strong>: The asset is selected by group.</li>
* <li><strong>vpc</strong>: The asset is selected by VPC.</li>
* </ul>
*
* <strong>example:</strong>
* <p>instance</p>
*/
public Builder targetType(String targetType) {
this.targetType = targetType;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetsPropertyDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetsPropertyDetailRequest} extends {@link RequestModel}
*
* <p>GetAssetsPropertyDetailRequest</p>
*/
public class GetAssetsPropertyDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Biz")
@com.aliyun.core.annotation.Validation(required = true)
private String biz;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ItemName")
private String itemName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SearchCriteriaList")
private java.util.List<SearchCriteriaList> searchCriteriaList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private GetAssetsPropertyDetailRequest(Builder builder) {
super(builder);
this.biz = builder.biz;
this.currentPage = builder.currentPage;
this.itemName = builder.itemName;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.remark = builder.remark;
this.searchCriteriaList = builder.searchCriteriaList;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static GetAssetsPropertyDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return biz
*/
public String getBiz() {
return this.biz;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return itemName
*/
public String getItemName() {
return this.itemName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return searchCriteriaList
*/
public java.util.List<SearchCriteriaList> getSearchCriteriaList() {
return this.searchCriteriaList;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<GetAssetsPropertyDetailRequest, Builder> {
private String biz;
private Integer currentPage;
private String itemName;
private String lang;
private Integer pageSize;
private String remark;
private java.util.List<SearchCriteriaList> searchCriteriaList;
private String uuid;
private Builder() {
super();
}
private Builder(GetAssetsPropertyDetailRequest request) {
super(request);
this.biz = request.biz;
this.currentPage = request.currentPage;
this.itemName = request.itemName;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.remark = request.remark;
this.searchCriteriaList = request.searchCriteriaList;
this.uuid = request.uuid;
}
/**
* <p>The type of the asset fingerprint that you want to query. Default value: <strong>sca</strong>. Valid values:</p>
* <ul>
* <li><strong>lkm</strong>: kernel module</li>
* <li><strong>autorun</strong>: startup item</li>
* <li><strong>web_server</strong>: website</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lkm</p>
*/
public Builder biz(String biz) {
this.putQueryParameter("Biz", biz);
this.biz = biz;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The name of the aggregation item for the asset fingerprint that you want to query.</p>
* <blockquote>
* <p>You can call the <a href="~~GetAssetsPropertyItem~~">GetAssetsPropertyItem</a> operation to query the names of aggregation items.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>virtio</p>
*/
public Builder itemName(String itemName) {
this.putQueryParameter("ItemName", itemName);
this.itemName = itemName;
return this;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The name or IP address of the server.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* <p>The conditions that are used to query the details about the asset fingerprint.</p>
*/
public Builder searchCriteriaList(java.util.List<SearchCriteriaList> searchCriteriaList) {
this.putQueryParameter("SearchCriteriaList", searchCriteriaList);
this.searchCriteriaList = searchCriteriaList;
return this;
}
/**
* <p>The UUID of the server.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeCloudCenterInstances~~">DescribeCloudCenterInstances</a> operation to query the UUIDs of servers.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>38f72ea4-4c9f-4df1-bc6c-0f267614****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public GetAssetsPropertyDetailRequest build() {
return new GetAssetsPropertyDetailRequest(this);
}
}
/**
*
* {@link GetAssetsPropertyDetailRequest} extends {@link TeaModel}
*
* <p>GetAssetsPropertyDetailRequest</p>
*/
public static class SearchCriteriaList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private SearchCriteriaList(Builder builder) {
this.name = builder.name;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static SearchCriteriaList create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String name;
private String value;
private Builder() {
}
private Builder(SearchCriteriaList model) {
this.name = model.name;
this.value = model.value;
}
/**
* <p>The name of the condition. Valid values:</p>
* <ul>
* <li><strong>remarkItemName</strong>: the aggregation item of the asset fingerprints. Fuzzy match is supported.</li>
* </ul>
* <blockquote>
* <ul>
* <li>If <strong>Biz</strong> is set to <strong>web_server</strong>, <strong>remarkItemName</strong> specifies a domain name. </li>
* <li>If <strong>Biz</strong> is set to <strong>lkm</strong>, <strong>remarkItemName</strong> specifies a module name.</li>
* <li>If <strong>Biz</strong> is set to <strong>autorun</strong>, <strong>remarkItemName</strong> specifies the path to a startup item.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>remarkItemName</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The value of the condition.</p>
*
* <strong>example:</strong>
* <p>virtio</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public SearchCriteriaList build() {
return new SearchCriteriaList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetsPropertyDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetsPropertyDetailResponse} extends {@link TeaModel}
*
* <p>GetAssetsPropertyDetailResponse</p>
*/
public class GetAssetsPropertyDetailResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAssetsPropertyDetailResponseBody body;
private GetAssetsPropertyDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAssetsPropertyDetailResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAssetsPropertyDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAssetsPropertyDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAssetsPropertyDetailResponseBody body);
@Override
GetAssetsPropertyDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAssetsPropertyDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAssetsPropertyDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAssetsPropertyDetailResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAssetsPropertyDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAssetsPropertyDetailResponse build() {
return new GetAssetsPropertyDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetsPropertyDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetsPropertyDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAssetsPropertyDetailResponseBody</p>
*/
public class GetAssetsPropertyDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("Propertys")
private java.util.List<Propertys> propertys;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAssetsPropertyDetailResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.propertys = builder.propertys;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAssetsPropertyDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return propertys
*/
public java.util.List<Propertys> getPropertys() {
return this.propertys;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<Propertys> propertys;
private String requestId;
private Builder() {
}
private Builder(GetAssetsPropertyDetailResponseBody model) {
this.pageInfo = model.pageInfo;
this.propertys = model.propertys;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>An array that consists of the details about the asset fingerprints.</p>
*/
public Builder propertys(java.util.List<Propertys> propertys) {
this.propertys = propertys;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>4C1AE3F3-18FA-4108-BBB9-AFA1A032****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAssetsPropertyDetailResponseBody build() {
return new GetAssetsPropertyDetailResponseBody(this);
}
}
/**
*
* {@link GetAssetsPropertyDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAssetsPropertyDetailResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link GetAssetsPropertyDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAssetsPropertyDetailResponseBody</p>
*/
public static class Propertys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ContainerName")
private String containerName;
@com.aliyun.core.annotation.NameInMap("CreateTimestamp")
private Long createTimestamp;
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("EndPoint")
private String endPoint;
@com.aliyun.core.annotation.NameInMap("File")
private String file;
@com.aliyun.core.annotation.NameInMap("Filepath")
private String filepath;
@com.aliyun.core.annotation.NameInMap("ImageName")
private String imageName;
@com.aliyun.core.annotation.NameInMap("InstallationPath")
private String installationPath;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("Ip")
private String ip;
@com.aliyun.core.annotation.NameInMap("ListenProtocol")
private String listenProtocol;
@com.aliyun.core.annotation.NameInMap("MiddlewareName")
private String middlewareName;
@com.aliyun.core.annotation.NameInMap("MiddlewareVersion")
private String middlewareVersion;
@com.aliyun.core.annotation.NameInMap("ModelName")
private String modelName;
@com.aliyun.core.annotation.NameInMap("ModuleName")
private String moduleName;
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.NameInMap("PathMode")
private String pathMode;
@com.aliyun.core.annotation.NameInMap("Pid")
private String pid;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("ProcessStarted")
private Long processStarted;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ServerType")
private String serverType;
@com.aliyun.core.annotation.NameInMap("Size")
private Integer size;
@com.aliyun.core.annotation.NameInMap("UsedByCount")
private Integer usedByCount;
@com.aliyun.core.annotation.NameInMap("User")
private String user;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("WebPath")
private String webPath;
private Propertys(Builder builder) {
this.containerName = builder.containerName;
this.createTimestamp = builder.createTimestamp;
this.domain = builder.domain;
this.endPoint = builder.endPoint;
this.file = builder.file;
this.filepath = builder.filepath;
this.imageName = builder.imageName;
this.installationPath = builder.installationPath;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.ip = builder.ip;
this.listenProtocol = builder.listenProtocol;
this.middlewareName = builder.middlewareName;
this.middlewareVersion = builder.middlewareVersion;
this.modelName = builder.modelName;
this.moduleName = builder.moduleName;
this.path = builder.path;
this.pathMode = builder.pathMode;
this.pid = builder.pid;
this.port = builder.port;
this.processStarted = builder.processStarted;
this.regionId = builder.regionId;
this.serverType = builder.serverType;
this.size = builder.size;
this.usedByCount = builder.usedByCount;
this.user = builder.user;
this.uuid = builder.uuid;
this.webPath = builder.webPath;
}
public static Builder builder() {
return new Builder();
}
public static Propertys create() {
return builder().build();
}
/**
* @return containerName
*/
public String getContainerName() {
return this.containerName;
}
/**
* @return createTimestamp
*/
public Long getCreateTimestamp() {
return this.createTimestamp;
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return endPoint
*/
public String getEndPoint() {
return this.endPoint;
}
/**
* @return file
*/
public String getFile() {
return this.file;
}
/**
* @return filepath
*/
public String getFilepath() {
return this.filepath;
}
/**
* @return imageName
*/
public String getImageName() {
return this.imageName;
}
/**
* @return installationPath
*/
public String getInstallationPath() {
return this.installationPath;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return ip
*/
public String getIp() {
return this.ip;
}
/**
* @return listenProtocol
*/
public String getListenProtocol() {
return this.listenProtocol;
}
/**
* @return middlewareName
*/
public String getMiddlewareName() {
return this.middlewareName;
}
/**
* @return middlewareVersion
*/
public String getMiddlewareVersion() {
return this.middlewareVersion;
}
/**
* @return modelName
*/
public String getModelName() {
return this.modelName;
}
/**
* @return moduleName
*/
public String getModuleName() {
return this.moduleName;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return pathMode
*/
public String getPathMode() {
return this.pathMode;
}
/**
* @return pid
*/
public String getPid() {
return this.pid;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return processStarted
*/
public Long getProcessStarted() {
return this.processStarted;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return serverType
*/
public String getServerType() {
return this.serverType;
}
/**
* @return size
*/
public Integer getSize() {
return this.size;
}
/**
* @return usedByCount
*/
public Integer getUsedByCount() {
return this.usedByCount;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return webPath
*/
public String getWebPath() {
return this.webPath;
}
public static final class Builder {
private String containerName;
private Long createTimestamp;
private String domain;
private String endPoint;
private String file;
private String filepath;
private String imageName;
private String installationPath;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private String ip;
private String listenProtocol;
private String middlewareName;
private String middlewareVersion;
private String modelName;
private String moduleName;
private String path;
private String pathMode;
private String pid;
private String port;
private Long processStarted;
private String regionId;
private String serverType;
private Integer size;
private Integer usedByCount;
private String user;
private String uuid;
private String webPath;
private Builder() {
}
private Builder(Propertys model) {
this.containerName = model.containerName;
this.createTimestamp = model.createTimestamp;
this.domain = model.domain;
this.endPoint = model.endPoint;
this.file = model.file;
this.filepath = model.filepath;
this.imageName = model.imageName;
this.installationPath = model.installationPath;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.ip = model.ip;
this.listenProtocol = model.listenProtocol;
this.middlewareName = model.middlewareName;
this.middlewareVersion = model.middlewareVersion;
this.modelName = model.modelName;
this.moduleName = model.moduleName;
this.path = model.path;
this.pathMode = model.pathMode;
this.pid = model.pid;
this.port = model.port;
this.processStarted = model.processStarted;
this.regionId = model.regionId;
this.serverType = model.serverType;
this.size = model.size;
this.usedByCount = model.usedByCount;
this.user = model.user;
this.uuid = model.uuid;
this.webPath = model.webPath;
}
/**
* <p>The name of the container.</p>
*
* <strong>example:</strong>
* <p>5-rce_web_1</p>
*/
public Builder containerName(String containerName) {
this.containerName = containerName;
return this;
}
/**
* <p>The timestamp of the last fingerprint collection. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1649149566000</p>
*/
public Builder createTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
return this;
}
/**
* <p>The domain name of the website.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>localhost</p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* EndPoint.
*/
public Builder endPoint(String endPoint) {
this.endPoint = endPoint;
return this;
}
/**
* File.
*/
public Builder file(String file) {
this.file = file;
return this;
}
/**
* <p>The path to the kernel module file.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>lkm</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>/lib/modules/4****</p>
*/
public Builder filepath(String filepath) {
this.filepath = filepath;
return this;
}
/**
* <p>The name of the image.</p>
*
* <strong>example:</strong>
* <p>registry-vpc.cn-beijing.aliyuncs.com/acs/aliyun-ingress-controller****</p>
*/
public Builder imageName(String imageName) {
this.imageName = imageName;
return this;
}
/**
* InstallationPath.
*/
public Builder installationPath(String installationPath) {
this.installationPath = installationPath;
return this;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-hp35tftuh52wbp1g****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>hc-host-****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>47.42.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the server.</p>
*
* <strong>example:</strong>
* <p>100.104.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The IP address of the server.</p>
*
* <strong>example:</strong>
* <p>47.42.XX.XX</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>The listening protocol that the website uses.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder listenProtocol(String listenProtocol) {
this.listenProtocol = listenProtocol;
return this;
}
/**
* MiddlewareName.
*/
public Builder middlewareName(String middlewareName) {
this.middlewareName = middlewareName;
return this;
}
/**
* MiddlewareVersion.
*/
public Builder middlewareVersion(String middlewareVersion) {
this.middlewareVersion = middlewareVersion;
return this;
}
/**
* ModelName.
*/
public Builder modelName(String modelName) {
this.modelName = modelName;
return this;
}
/**
* <p>The name of the module.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>lkm</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>alihids</p>
*/
public Builder moduleName(String moduleName) {
this.moduleName = moduleName;
return this;
}
/**
* <p>The path. The value of this parameter varies based on the value of <strong>Biz</strong>.</p>
* <ul>
* <li>If <strong>Biz</strong> is set to <strong>web_server</strong>, the value of this parameter indicates the path to the website root directory.</li>
* <li>If <strong>Biz</strong> is set to <strong>autorun</strong>, the value of this parameter indicates the path to the startup item.</li>
* </ul>
*
* <strong>example:</strong>
* <p>/lib/systemd/system****</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
/**
* <p>The permissions on the root directory of the website.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>755</p>
*/
public Builder pathMode(String pathMode) {
this.pathMode = pathMode;
return this;
}
/**
* <p>The process ID (PID) of the process that runs the website service.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>813</p>
*/
public Builder pid(String pid) {
this.pid = pid;
return this;
}
/**
* <p>The port of the website.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The timestamp generated when the process was started. Unit: milliseconds.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1671186801000</p>
*/
public Builder processStarted(Long processStarted) {
this.processStarted = processStarted;
return this;
}
/**
* <p>The ID of the region in which the server resides.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The type of the website.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>nginx</p>
*/
public Builder serverType(String serverType) {
this.serverType = serverType;
return this;
}
/**
* <p>The size of the kernel module.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>lkm</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder size(Integer size) {
this.size = size;
return this;
}
/**
* <p>The number of times that the kernel module is referenced.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>lkm</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder usedByCount(Integer usedByCount) {
this.usedByCount = usedByCount;
return this;
}
/**
* <p>The user who started the process of the website.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder user(String user) {
this.user = user;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>162eb349-c2d9-4f8b-805c-75b43d4c****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The path to the root directory of the website.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>/usr/share/nginx/html</p>
*/
public Builder webPath(String webPath) {
this.webPath = webPath;
return this;
}
public Propertys build() {
return new Propertys(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetsPropertyItemRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetsPropertyItemRequest} extends {@link RequestModel}
*
* <p>GetAssetsPropertyItemRequest</p>
*/
public class GetAssetsPropertyItemRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Biz")
@com.aliyun.core.annotation.Validation(required = true)
private String biz;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ForceFlush")
private Boolean forceFlush;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 1000, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SearchInfo")
private String searchInfo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SearchItem")
private String searchItem;
private GetAssetsPropertyItemRequest(Builder builder) {
super(builder);
this.biz = builder.biz;
this.currentPage = builder.currentPage;
this.forceFlush = builder.forceFlush;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.searchInfo = builder.searchInfo;
this.searchItem = builder.searchItem;
}
public static Builder builder() {
return new Builder();
}
public static GetAssetsPropertyItemRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return biz
*/
public String getBiz() {
return this.biz;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return forceFlush
*/
public Boolean getForceFlush() {
return this.forceFlush;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return searchInfo
*/
public String getSearchInfo() {
return this.searchInfo;
}
/**
* @return searchItem
*/
public String getSearchItem() {
return this.searchItem;
}
public static final class Builder extends Request.Builder<GetAssetsPropertyItemRequest, Builder> {
private String biz;
private Integer currentPage;
private Boolean forceFlush;
private String lang;
private Integer pageSize;
private String searchInfo;
private String searchItem;
private Builder() {
super();
}
private Builder(GetAssetsPropertyItemRequest request) {
super(request);
this.biz = request.biz;
this.currentPage = request.currentPage;
this.forceFlush = request.forceFlush;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.searchInfo = request.searchInfo;
this.searchItem = request.searchItem;
}
/**
* <p>The type of the asset fingerprint that you want to query. Default value: <strong>sca</strong>. Valid values:</p>
* <ul>
* <li><strong>lkm</strong>: kernel module</li>
* <li><strong>autorun</strong>: startup item</li>
* <li><strong>web_server</strong>: website</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lkm</p>
*/
public Builder biz(String biz) {
this.putQueryParameter("Biz", biz);
this.biz = biz;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Specifies whether to forcefully refresh the data that you want to query. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder forceFlush(Boolean forceFlush) {
this.putQueryParameter("ForceFlush", forceFlush);
this.forceFlush = forceFlush;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li>zh: Chinese</li>
* <li>en: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The value of the search condition. You must specify this parameter based on the value of the <strong>SearchItem</strong> parameter.</p>
* <ul>
* <li>If you set <strong>SearchItem</strong> to <strong>domain</strong>, you must enter the domain name.</li>
* <li>If you set <strong>SearchItem</strong> to <strong>module_name</strong>, you must enter the module name.</li>
* <li>If you set <strong>SearchItem</strong> to <strong>path</strong>, you must enter the path to the self-starting item.</li>
* </ul>
* <blockquote>
* <p> You must specify both the <strong>SearchItem</strong> and <strong>SearchInfo</strong> parameters before you can query the information about asset fingerprints by asset fingerprint name.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>/lib/systemd/s****</p>
*/
public Builder searchInfo(String searchInfo) {
this.putQueryParameter("SearchInfo", searchInfo);
this.searchInfo = searchInfo;
return this;
}
/**
* <p>The type of the search condition. You must specify this parameter based on the value of the <strong>Biz</strong> parameter. Valid values:</p>
* <ul>
* <li><p>If you set <strong>Biz</strong> to <strong>web_server</strong>, set <strong>SearchItem</strong> to the following value:</p>
* <ul>
* <li><strong>domain</strong>: the domain name</li>
* </ul>
* </li>
* <li><p>If you set <strong>Biz</strong> to <strong>lkm</strong>, set <strong>SearchItem</strong> to the following value:</p>
* <ul>
* <li><strong>module_name</strong>: the name of the module</li>
* </ul>
* </li>
* <li><p>If you set <strong>Biz</strong> to <strong>autorun</strong>, set <strong>SearchItem</strong> to the following value:</p>
* <ul>
* <li><strong>path</strong>: the path to the self-starting item</li>
* </ul>
* </li>
* </ul>
* <blockquote>
* <p> You must specify both the <strong>SearchItem</strong> and <strong>SearchInfo</strong> parameters before you can query the information about asset fingerprints by asset fingerprint name.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>path</p>
*/
public Builder searchItem(String searchItem) {
this.putQueryParameter("SearchItem", searchItem);
this.searchItem = searchItem;
return this;
}
@Override
public GetAssetsPropertyItemRequest build() {
return new GetAssetsPropertyItemRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetsPropertyItemResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetsPropertyItemResponse} extends {@link TeaModel}
*
* <p>GetAssetsPropertyItemResponse</p>
*/
public class GetAssetsPropertyItemResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAssetsPropertyItemResponseBody body;
private GetAssetsPropertyItemResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAssetsPropertyItemResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAssetsPropertyItemResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAssetsPropertyItemResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAssetsPropertyItemResponseBody body);
@Override
GetAssetsPropertyItemResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAssetsPropertyItemResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAssetsPropertyItemResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAssetsPropertyItemResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAssetsPropertyItemResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAssetsPropertyItemResponse build() {
return new GetAssetsPropertyItemResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAssetsPropertyItemResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAssetsPropertyItemResponseBody} extends {@link TeaModel}
*
* <p>GetAssetsPropertyItemResponseBody</p>
*/
public class GetAssetsPropertyItemResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("PropertyItems")
private java.util.List<PropertyItems> propertyItems;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAssetsPropertyItemResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.propertyItems = builder.propertyItems;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAssetsPropertyItemResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return propertyItems
*/
public java.util.List<PropertyItems> getPropertyItems() {
return this.propertyItems;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<PropertyItems> propertyItems;
private String requestId;
private Builder() {
}
private Builder(GetAssetsPropertyItemResponseBody model) {
this.pageInfo = model.pageInfo;
this.propertyItems = model.propertyItems;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>An array that consists of the aggregation information about asset fingerprints.</p>
*/
public Builder propertyItems(java.util.List<PropertyItems> propertyItems) {
this.propertyItems = propertyItems;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>340D7FC4-D575-1661-8ACD-CFA7BE57****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAssetsPropertyItemResponseBody build() {
return new GetAssetsPropertyItemResponseBody(this);
}
}
/**
*
* {@link GetAssetsPropertyItemResponseBody} extends {@link TeaModel}
*
* <p>GetAssetsPropertyItemResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>45</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link GetAssetsPropertyItemResponseBody} extends {@link TeaModel}
*
* <p>GetAssetsPropertyItemResponseBody</p>
*/
public static class PropertyItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("MiddlewareName")
private String middlewareName;
@com.aliyun.core.annotation.NameInMap("ModelName")
private String modelName;
@com.aliyun.core.annotation.NameInMap("ModuleName")
private String moduleName;
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
private PropertyItems(Builder builder) {
this.count = builder.count;
this.domain = builder.domain;
this.middlewareName = builder.middlewareName;
this.modelName = builder.modelName;
this.moduleName = builder.moduleName;
this.path = builder.path;
}
public static Builder builder() {
return new Builder();
}
public static PropertyItems create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return middlewareName
*/
public String getMiddlewareName() {
return this.middlewareName;
}
/**
* @return modelName
*/
public String getModelName() {
return this.modelName;
}
/**
* @return moduleName
*/
public String getModuleName() {
return this.moduleName;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
public static final class Builder {
private Integer count;
private String domain;
private String middlewareName;
private String modelName;
private String moduleName;
private String path;
private Builder() {
}
private Builder(PropertyItems model) {
this.count = model.count;
this.domain = model.domain;
this.middlewareName = model.middlewareName;
this.modelName = model.modelName;
this.moduleName = model.moduleName;
this.path = model.path;
}
/**
* <p>The number of servers related to the asset fingerprints.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The endpoint.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>web_server</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>localhost</p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* MiddlewareName.
*/
public Builder middlewareName(String middlewareName) {
this.middlewareName = middlewareName;
return this;
}
/**
* ModelName.
*/
public Builder modelName(String modelName) {
this.modelName = modelName;
return this;
}
/**
* <p>The name of the module.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>lkm</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>alihids</p>
*/
public Builder moduleName(String moduleName) {
this.moduleName = moduleName;
return this;
}
/**
* <p>The path to the startup item.</p>
* <blockquote>
* <p>This parameter is returned only when <strong>Biz</strong> is set to <strong>autorun</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>C:/Program Files/****</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
public PropertyItems build() {
return new PropertyItems(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathEventDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathEventDetailRequest} extends {@link RequestModel}
*
* <p>GetAttackPathEventDetailRequest</p>
*/
public class GetAttackPathEventDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EventId")
private Long eventId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private GetAttackPathEventDetailRequest(Builder builder) {
super(builder);
this.eventId = builder.eventId;
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static GetAttackPathEventDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return eventId
*/
public Long getEventId() {
return this.eventId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<GetAttackPathEventDetailRequest, Builder> {
private Long eventId;
private String lang;
private Builder() {
super();
}
private Builder(GetAttackPathEventDetailRequest request) {
super(request);
this.eventId = request.eventId;
this.lang = request.lang;
}
/**
* <p>Event ID.</p>
* <blockquote>
* <p>You can call <a href="~~ListAttackPathEvent~~">ListAttackPathEvent</a> to query the event ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder eventId(Long eventId) {
this.putQueryParameter("EventId", eventId);
this.eventId = eventId;
return this;
}
/**
* <p>The language type for request and response, default is <strong>zh</strong>. Values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public GetAttackPathEventDetailRequest build() {
return new GetAttackPathEventDetailRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathEventDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathEventDetailResponse} extends {@link TeaModel}
*
* <p>GetAttackPathEventDetailResponse</p>
*/
public class GetAttackPathEventDetailResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAttackPathEventDetailResponseBody body;
private GetAttackPathEventDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAttackPathEventDetailResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAttackPathEventDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAttackPathEventDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAttackPathEventDetailResponseBody body);
@Override
GetAttackPathEventDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAttackPathEventDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAttackPathEventDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAttackPathEventDetailResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAttackPathEventDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAttackPathEventDetailResponse build() {
return new GetAttackPathEventDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathEventDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathEventDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathEventDetailResponseBody</p>
*/
public class GetAttackPathEventDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathEvent")
private AttackPathEvent attackPathEvent;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAttackPathEventDetailResponseBody(Builder builder) {
this.attackPathEvent = builder.attackPathEvent;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAttackPathEventDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathEvent
*/
public AttackPathEvent getAttackPathEvent() {
return this.attackPathEvent;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AttackPathEvent attackPathEvent;
private String requestId;
private Builder() {
}
private Builder(GetAttackPathEventDetailResponseBody model) {
this.attackPathEvent = model.attackPathEvent;
this.requestId = model.requestId;
}
/**
* <p>Details of the attack path event.</p>
*/
public Builder attackPathEvent(AttackPathEvent attackPathEvent) {
this.attackPathEvent = attackPathEvent;
return this;
}
/**
* <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request, and can be used for troubleshooting and problem localization.</p>
*
* <strong>example:</strong>
* <p>7BC55C8F-226E-5AF5-9A2C-2EC43864****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAttackPathEventDetailResponseBody build() {
return new GetAttackPathEventDetailResponseBody(this);
}
}
/**
*
* {@link GetAttackPathEventDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathEventDetailResponseBody</p>
*/
public static class DstAsset extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SensitiveAssetFlag")
private Integer sensitiveAssetFlag;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private DstAsset(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.regionId = builder.regionId;
this.sensitiveAssetFlag = builder.sensitiveAssetFlag;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static DstAsset create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return sensitiveAssetFlag
*/
public Integer getSensitiveAssetFlag() {
return this.sensitiveAssetFlag;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private String instanceId;
private String instanceName;
private String regionId;
private Integer sensitiveAssetFlag;
private Integer vendor;
private Builder() {
}
private Builder(DstAsset model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.regionId = model.regionId;
this.sensitiveAssetFlag = model.sensitiveAssetFlag;
this.vendor = model.vendor;
}
/**
* <p>Subtype of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>Type of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>ID of the cloud product asset instance.</p>
*
* <strong>example:</strong>
* <p>i-bp18ifsr1tu1dx39****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>Instance name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>ID of the region where the cloud product asset instance is located.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Sensitive asset flag. Values:</p>
* <ul>
* <li><strong>0</strong>: Non-sensitive asset.</li>
* <li><strong>1</strong>: Sensitive asset.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder sensitiveAssetFlag(Integer sensitiveAssetFlag) {
this.sensitiveAssetFlag = sensitiveAssetFlag;
return this;
}
/**
* <p>Vendor of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public DstAsset build() {
return new DstAsset(this);
}
}
}
/**
*
* {@link GetAttackPathEventDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathEventDetailResponseBody</p>
*/
public static class PathEventEdgeList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EdgeId")
private Long edgeId;
@com.aliyun.core.annotation.NameInMap("EdgeType")
private String edgeType;
@com.aliyun.core.annotation.NameInMap("ElementType")
private String elementType;
@com.aliyun.core.annotation.NameInMap("EndNodeUuid")
private String endNodeUuid;
@com.aliyun.core.annotation.NameInMap("RepairSuggestionDisplay")
private String repairSuggestionDisplay;
@com.aliyun.core.annotation.NameInMap("StartNodeUuid")
private String startNodeUuid;
private PathEventEdgeList(Builder builder) {
this.edgeId = builder.edgeId;
this.edgeType = builder.edgeType;
this.elementType = builder.elementType;
this.endNodeUuid = builder.endNodeUuid;
this.repairSuggestionDisplay = builder.repairSuggestionDisplay;
this.startNodeUuid = builder.startNodeUuid;
}
public static Builder builder() {
return new Builder();
}
public static PathEventEdgeList create() {
return builder().build();
}
/**
* @return edgeId
*/
public Long getEdgeId() {
return this.edgeId;
}
/**
* @return edgeType
*/
public String getEdgeType() {
return this.edgeType;
}
/**
* @return elementType
*/
public String getElementType() {
return this.elementType;
}
/**
* @return endNodeUuid
*/
public String getEndNodeUuid() {
return this.endNodeUuid;
}
/**
* @return repairSuggestionDisplay
*/
public String getRepairSuggestionDisplay() {
return this.repairSuggestionDisplay;
}
/**
* @return startNodeUuid
*/
public String getStartNodeUuid() {
return this.startNodeUuid;
}
public static final class Builder {
private Long edgeId;
private String edgeType;
private String elementType;
private String endNodeUuid;
private String repairSuggestionDisplay;
private String startNodeUuid;
private Builder() {
}
private Builder(PathEventEdgeList model) {
this.edgeId = model.edgeId;
this.edgeType = model.edgeType;
this.elementType = model.elementType;
this.endNodeUuid = model.endNodeUuid;
this.repairSuggestionDisplay = model.repairSuggestionDisplay;
this.startNodeUuid = model.startNodeUuid;
}
/**
* <p>Edge ID.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder edgeId(Long edgeId) {
this.edgeId = edgeId;
return this;
}
/**
* <p>Edge type.</p>
*
* <strong>example:</strong>
* <p>role_trust_user</p>
*/
public Builder edgeType(String edgeType) {
this.edgeType = edgeType;
return this;
}
/**
* <p>Edge element type.</p>
*
* <strong>example:</strong>
* <p>branch</p>
*/
public Builder elementType(String elementType) {
this.elementType = elementType;
return this;
}
/**
* <p>UUID of the end node of the edge.</p>
*
* <strong>example:</strong>
* <p>52d59cca9d1768bab5fe081317637990</p>
*/
public Builder endNodeUuid(String endNodeUuid) {
this.endNodeUuid = endNodeUuid;
return this;
}
/**
* <p>Description of the repair suggestion.</p>
*
* <strong>example:</strong>
* <p>The RAM role is granted the administrator permissions and trusts the user of another Alibaba Cloud account. In this case, the current Alibaba Cloud account may be fully controlled by the trusted Alibaba Cloud account. We recommend that you delete the trust relationship. If you need to trust another Alibaba Cloud account, we recommend that you split your business requirements and follow the principle of least privilege to grant permissions across accounts in a fine-grained manner. You can also use RAM.\n\nIf you confirm that the role does not need to trust an Alibaba Cloud account, perform the following operations: In the RAM console, click the required RAM role. On the page that appears, view the trust policy of the role. Then, edit the Service field to delete the trust relationship. If you confirm that permissions can be reduced, perform the following operations: In the RAM console, click the required RAM role. On the page that appears, view the permissions of the role. Then, find the policy that defines the administrator permissions and revoke the policy. Attach another policy to the role based on your business requirements.</p>
*/
public Builder repairSuggestionDisplay(String repairSuggestionDisplay) {
this.repairSuggestionDisplay = repairSuggestionDisplay;
return this;
}
/**
* <p>UUID of the start node of the edge.</p>
*
* <strong>example:</strong>
* <p>b7e1bd42c4ca47f69020f4a27b47d2b4</p>
*/
public Builder startNodeUuid(String startNodeUuid) {
this.startNodeUuid = startNodeUuid;
return this;
}
public PathEventEdgeList build() {
return new PathEventEdgeList(this);
}
}
}
/**
*
* {@link GetAttackPathEventDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathEventDetailResponseBody</p>
*/
public static class PathEventNodeList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ElementType")
private String elementType;
@com.aliyun.core.annotation.NameInMap("NodeDetail")
private String nodeDetail;
@com.aliyun.core.annotation.NameInMap("NodeName")
private String nodeName;
@com.aliyun.core.annotation.NameInMap("NodeType")
private String nodeType;
@com.aliyun.core.annotation.NameInMap("NodeUuid")
private String nodeUuid;
@com.aliyun.core.annotation.NameInMap("SensitiveAssetFlag")
private Integer sensitiveAssetFlag;
private PathEventNodeList(Builder builder) {
this.elementType = builder.elementType;
this.nodeDetail = builder.nodeDetail;
this.nodeName = builder.nodeName;
this.nodeType = builder.nodeType;
this.nodeUuid = builder.nodeUuid;
this.sensitiveAssetFlag = builder.sensitiveAssetFlag;
}
public static Builder builder() {
return new Builder();
}
public static PathEventNodeList create() {
return builder().build();
}
/**
* @return elementType
*/
public String getElementType() {
return this.elementType;
}
/**
* @return nodeDetail
*/
public String getNodeDetail() {
return this.nodeDetail;
}
/**
* @return nodeName
*/
public String getNodeName() {
return this.nodeName;
}
/**
* @return nodeType
*/
public String getNodeType() {
return this.nodeType;
}
/**
* @return nodeUuid
*/
public String getNodeUuid() {
return this.nodeUuid;
}
/**
* @return sensitiveAssetFlag
*/
public Integer getSensitiveAssetFlag() {
return this.sensitiveAssetFlag;
}
public static final class Builder {
private String elementType;
private String nodeDetail;
private String nodeName;
private String nodeType;
private String nodeUuid;
private Integer sensitiveAssetFlag;
private Builder() {
}
private Builder(PathEventNodeList model) {
this.elementType = model.elementType;
this.nodeDetail = model.nodeDetail;
this.nodeName = model.nodeName;
this.nodeType = model.nodeType;
this.nodeUuid = model.nodeUuid;
this.sensitiveAssetFlag = model.sensitiveAssetFlag;
}
/**
* <p>Node element type.</p>
*
* <strong>example:</strong>
* <p>branch</p>
*/
public Builder elementType(String elementType) {
this.elementType = elementType;
return this;
}
/**
* <p>Details of the node.</p>
*
* <strong>example:</strong>
* <p>{"assetId":0}</p>
*/
public Builder nodeDetail(String nodeDetail) {
this.nodeDetail = nodeDetail;
return this;
}
/**
* <p>Name of the node.</p>
*
* <strong>example:</strong>
* <p>hypermatch_uploader</p>
*/
public Builder nodeName(String nodeName) {
this.nodeName = nodeName;
return this;
}
/**
* <p>Type of the node.</p>
*
* <strong>example:</strong>
* <p>user</p>
*/
public Builder nodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
/**
* <p>UUID of the node.</p>
*
* <strong>example:</strong>
* <p>52d59cca9d1768bab5fe081317637990</p>
*/
public Builder nodeUuid(String nodeUuid) {
this.nodeUuid = nodeUuid;
return this;
}
/**
* <p>Sensitive asset flag. Values:</p>
* <ul>
* <li><strong>0</strong>: Non-sensitive asset.</li>
* <li><strong>1</strong>: Sensitive asset.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder sensitiveAssetFlag(Integer sensitiveAssetFlag) {
this.sensitiveAssetFlag = sensitiveAssetFlag;
return this;
}
public PathEventNodeList build() {
return new PathEventNodeList(this);
}
}
}
/**
*
* {@link GetAttackPathEventDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathEventDetailResponseBody</p>
*/
public static class SrcAsset extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SensitiveAssetFlag")
private Integer sensitiveAssetFlag;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private SrcAsset(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.regionId = builder.regionId;
this.sensitiveAssetFlag = builder.sensitiveAssetFlag;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static SrcAsset create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return sensitiveAssetFlag
*/
public Integer getSensitiveAssetFlag() {
return this.sensitiveAssetFlag;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private String instanceId;
private String instanceName;
private String regionId;
private Integer sensitiveAssetFlag;
private Integer vendor;
private Builder() {
}
private Builder(SrcAsset model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.regionId = model.regionId;
this.sensitiveAssetFlag = model.sensitiveAssetFlag;
this.vendor = model.vendor;
}
/**
* <p>Subtype of the cloud product asset</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The type of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>14</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The ID of the cloud product asset instance.</p>
*
* <strong>example:</strong>
* <p>i-25b24****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The ID of the region where the cloud product asset instance is located.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Sensitive asset flag. Values:</p>
* <ul>
* <li><strong>0</strong>: Non-sensitive asset.</li>
* <li><strong>1</strong>: Sensitive asset.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder sensitiveAssetFlag(Integer sensitiveAssetFlag) {
this.sensitiveAssetFlag = sensitiveAssetFlag;
return this;
}
/**
* <p>The vendor of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public SrcAsset build() {
return new SrcAsset(this);
}
}
}
/**
*
* {@link GetAttackPathEventDetailResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathEventDetailResponseBody</p>
*/
public static class AttackPathEvent extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstAsset")
private DstAsset dstAsset;
@com.aliyun.core.annotation.NameInMap("FirstTime")
private Long firstTime;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("PathDetailDesc")
private String pathDetailDesc;
@com.aliyun.core.annotation.NameInMap("PathEventEdgeList")
private java.util.List<PathEventEdgeList> pathEventEdgeList;
@com.aliyun.core.annotation.NameInMap("PathEventNodeList")
private java.util.List<PathEventNodeList> pathEventNodeList;
@com.aliyun.core.annotation.NameInMap("PathName")
private String pathName;
@com.aliyun.core.annotation.NameInMap("PathNameDesc")
private String pathNameDesc;
@com.aliyun.core.annotation.NameInMap("PathType")
private String pathType;
@com.aliyun.core.annotation.NameInMap("PathTypeDesc")
private String pathTypeDesc;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("SrcAsset")
private SrcAsset srcAsset;
private AttackPathEvent(Builder builder) {
this.dstAsset = builder.dstAsset;
this.firstTime = builder.firstTime;
this.lastTime = builder.lastTime;
this.pathDetailDesc = builder.pathDetailDesc;
this.pathEventEdgeList = builder.pathEventEdgeList;
this.pathEventNodeList = builder.pathEventNodeList;
this.pathName = builder.pathName;
this.pathNameDesc = builder.pathNameDesc;
this.pathType = builder.pathType;
this.pathTypeDesc = builder.pathTypeDesc;
this.riskLevel = builder.riskLevel;
this.srcAsset = builder.srcAsset;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathEvent create() {
return builder().build();
}
/**
* @return dstAsset
*/
public DstAsset getDstAsset() {
return this.dstAsset;
}
/**
* @return firstTime
*/
public Long getFirstTime() {
return this.firstTime;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return pathDetailDesc
*/
public String getPathDetailDesc() {
return this.pathDetailDesc;
}
/**
* @return pathEventEdgeList
*/
public java.util.List<PathEventEdgeList> getPathEventEdgeList() {
return this.pathEventEdgeList;
}
/**
* @return pathEventNodeList
*/
public java.util.List<PathEventNodeList> getPathEventNodeList() {
return this.pathEventNodeList;
}
/**
* @return pathName
*/
public String getPathName() {
return this.pathName;
}
/**
* @return pathNameDesc
*/
public String getPathNameDesc() {
return this.pathNameDesc;
}
/**
* @return pathType
*/
public String getPathType() {
return this.pathType;
}
/**
* @return pathTypeDesc
*/
public String getPathTypeDesc() {
return this.pathTypeDesc;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return srcAsset
*/
public SrcAsset getSrcAsset() {
return this.srcAsset;
}
public static final class Builder {
private DstAsset dstAsset;
private Long firstTime;
private Long lastTime;
private String pathDetailDesc;
private java.util.List<PathEventEdgeList> pathEventEdgeList;
private java.util.List<PathEventNodeList> pathEventNodeList;
private String pathName;
private String pathNameDesc;
private String pathType;
private String pathTypeDesc;
private String riskLevel;
private SrcAsset srcAsset;
private Builder() {
}
private Builder(AttackPathEvent model) {
this.dstAsset = model.dstAsset;
this.firstTime = model.firstTime;
this.lastTime = model.lastTime;
this.pathDetailDesc = model.pathDetailDesc;
this.pathEventEdgeList = model.pathEventEdgeList;
this.pathEventNodeList = model.pathEventNodeList;
this.pathName = model.pathName;
this.pathNameDesc = model.pathNameDesc;
this.pathType = model.pathType;
this.pathTypeDesc = model.pathTypeDesc;
this.riskLevel = model.riskLevel;
this.srcAsset = model.srcAsset;
}
/**
* <p>Destination asset.</p>
*/
public Builder dstAsset(DstAsset dstAsset) {
this.dstAsset = dstAsset;
return this;
}
/**
* <p>Timestamp of the first occurrence, in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1735956726000</p>
*/
public Builder firstTime(Long firstTime) {
this.firstTime = firstTime;
return this;
}
/**
* <p>Timestamp of the latest discovery, in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1741832168000</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>Detailed description of the path.</p>
*
* <strong>example:</strong>
* <p>The system detects that the role that trusts another Alibaba Cloud account has administrator permissions. This can cause the system to be fully controlled. We recommend that you delete the trust relationship and review the permissions of the role.</p>
*/
public Builder pathDetailDesc(String pathDetailDesc) {
this.pathDetailDesc = pathDetailDesc;
return this;
}
/**
* <p>List of path event edges.</p>
*/
public Builder pathEventEdgeList(java.util.List<PathEventEdgeList> pathEventEdgeList) {
this.pathEventEdgeList = pathEventEdgeList;
return this;
}
/**
* <p>List of path nodes.</p>
*/
public Builder pathEventNodeList(java.util.List<PathEventNodeList> pathEventNodeList) {
this.pathEventNodeList = pathEventNodeList;
return this;
}
/**
* <p>Name of the path.</p>
*
* <strong>example:</strong>
* <p>ecs_get_credential_by_create_login_profile</p>
*/
public Builder pathName(String pathName) {
this.pathName = pathName;
return this;
}
/**
* <p>Description of the path name.</p>
*
* <strong>example:</strong>
* <p>ECS Instance Can Obtain Long-term Access Credential by Enabling Console Logon for RAM User</p>
*/
public Builder pathNameDesc(String pathNameDesc) {
this.pathNameDesc = pathNameDesc;
return this;
}
/**
* <p>Type of the path.</p>
*
* <strong>example:</strong>
* <p>role_escalation</p>
*/
public Builder pathType(String pathType) {
this.pathType = pathType;
return this;
}
/**
* <p>Description of the path type.</p>
*
* <strong>example:</strong>
* <p>Privilege Escalation by Role</p>
*/
public Builder pathTypeDesc(String pathTypeDesc) {
this.pathTypeDesc = pathTypeDesc;
return this;
}
/**
* <p>Risk level.</p>
*
* <strong>example:</strong>
* <p>suspicious</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>Source asset.</p>
*/
public Builder srcAsset(SrcAsset srcAsset) {
this.srcAsset = srcAsset;
return this;
}
public AttackPathEvent build() {
return new AttackPathEvent(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathEventStatisticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathEventStatisticsRequest} extends {@link RequestModel}
*
* <p>GetAttackPathEventStatisticsRequest</p>
*/
public class GetAttackPathEventStatisticsRequest extends Request {
private GetAttackPathEventStatisticsRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetAttackPathEventStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetAttackPathEventStatisticsRequest, Builder> {
private Builder() {
super();
}
private Builder(GetAttackPathEventStatisticsRequest request) {
super(request);
}
@Override
public GetAttackPathEventStatisticsRequest build() {
return new GetAttackPathEventStatisticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathEventStatisticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathEventStatisticsResponse} extends {@link TeaModel}
*
* <p>GetAttackPathEventStatisticsResponse</p>
*/
public class GetAttackPathEventStatisticsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAttackPathEventStatisticsResponseBody body;
private GetAttackPathEventStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAttackPathEventStatisticsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAttackPathEventStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAttackPathEventStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAttackPathEventStatisticsResponseBody body);
@Override
GetAttackPathEventStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAttackPathEventStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAttackPathEventStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAttackPathEventStatisticsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAttackPathEventStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAttackPathEventStatisticsResponse build() {
return new GetAttackPathEventStatisticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathEventStatisticsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathEventStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathEventStatisticsResponseBody</p>
*/
public class GetAttackPathEventStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SeriousPathRiskNum")
private Long seriousPathRiskNum;
@com.aliyun.core.annotation.NameInMap("TotalAssetRiskNum")
private Long totalAssetRiskNum;
@com.aliyun.core.annotation.NameInMap("TotalPathRiskNum")
private Long totalPathRiskNum;
private GetAttackPathEventStatisticsResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.seriousPathRiskNum = builder.seriousPathRiskNum;
this.totalAssetRiskNum = builder.totalAssetRiskNum;
this.totalPathRiskNum = builder.totalPathRiskNum;
}
public static Builder builder() {
return new Builder();
}
public static GetAttackPathEventStatisticsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return seriousPathRiskNum
*/
public Long getSeriousPathRiskNum() {
return this.seriousPathRiskNum;
}
/**
* @return totalAssetRiskNum
*/
public Long getTotalAssetRiskNum() {
return this.totalAssetRiskNum;
}
/**
* @return totalPathRiskNum
*/
public Long getTotalPathRiskNum() {
return this.totalPathRiskNum;
}
public static final class Builder {
private String requestId;
private Long seriousPathRiskNum;
private Long totalAssetRiskNum;
private Long totalPathRiskNum;
private Builder() {
}
private Builder(GetAttackPathEventStatisticsResponseBody model) {
this.requestId = model.requestId;
this.seriousPathRiskNum = model.seriousPathRiskNum;
this.totalAssetRiskNum = model.totalAssetRiskNum;
this.totalPathRiskNum = model.totalPathRiskNum;
}
/**
* <p>The ID of this call request, a unique identifier generated by Alibaba Cloud for the request, which can be used to troubleshoot and locate issues.</p>
*
* <strong>example:</strong>
* <p>89AD16CC-97EE-50F3-9B12-9E28E5C8****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Number of attack paths that require urgent handling.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder seriousPathRiskNum(Long seriousPathRiskNum) {
this.seriousPathRiskNum = seriousPathRiskNum;
return this;
}
/**
* <p>Number of risky assets.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalAssetRiskNum(Long totalAssetRiskNum) {
this.totalAssetRiskNum = totalAssetRiskNum;
return this;
}
/**
* <p>Number of risk paths.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalPathRiskNum(Long totalPathRiskNum) {
this.totalPathRiskNum = totalPathRiskNum;
return this;
}
public GetAttackPathEventStatisticsResponseBody build() {
return new GetAttackPathEventStatisticsResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathSensitiveAssetConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathSensitiveAssetConfigRequest} extends {@link RequestModel}
*
* <p>GetAttackPathSensitiveAssetConfigRequest</p>
*/
public class GetAttackPathSensitiveAssetConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AttackPathSensitiveAssetConfigId")
private String attackPathSensitiveAssetConfigId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConfigType")
@com.aliyun.core.annotation.Validation(required = true)
private String configType;
private GetAttackPathSensitiveAssetConfigRequest(Builder builder) {
super(builder);
this.attackPathSensitiveAssetConfigId = builder.attackPathSensitiveAssetConfigId;
this.configType = builder.configType;
}
public static Builder builder() {
return new Builder();
}
public static GetAttackPathSensitiveAssetConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathSensitiveAssetConfigId
*/
public String getAttackPathSensitiveAssetConfigId() {
return this.attackPathSensitiveAssetConfigId;
}
/**
* @return configType
*/
public String getConfigType() {
return this.configType;
}
public static final class Builder extends Request.Builder<GetAttackPathSensitiveAssetConfigRequest, Builder> {
private String attackPathSensitiveAssetConfigId;
private String configType;
private Builder() {
super();
}
private Builder(GetAttackPathSensitiveAssetConfigRequest request) {
super(request);
this.attackPathSensitiveAssetConfigId = request.attackPathSensitiveAssetConfigId;
this.configType = request.configType;
}
/**
* <p>ID of the created attack path sensitive asset setting.</p>
*
* <strong>example:</strong>
* <p>apsac-123</p>
*/
public Builder attackPathSensitiveAssetConfigId(String attackPathSensitiveAssetConfigId) {
this.putQueryParameter("AttackPathSensitiveAssetConfigId", attackPathSensitiveAssetConfigId);
this.attackPathSensitiveAssetConfigId = attackPathSensitiveAssetConfigId;
return this;
}
/**
* <p>Configuration type. Possible values:</p>
* <ul>
* <li>asset_instance: Asset.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>asset_instance</p>
*/
public Builder configType(String configType) {
this.putQueryParameter("ConfigType", configType);
this.configType = configType;
return this;
}
@Override
public GetAttackPathSensitiveAssetConfigRequest build() {
return new GetAttackPathSensitiveAssetConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathSensitiveAssetConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathSensitiveAssetConfigResponse} extends {@link TeaModel}
*
* <p>GetAttackPathSensitiveAssetConfigResponse</p>
*/
public class GetAttackPathSensitiveAssetConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAttackPathSensitiveAssetConfigResponseBody body;
private GetAttackPathSensitiveAssetConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAttackPathSensitiveAssetConfigResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAttackPathSensitiveAssetConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAttackPathSensitiveAssetConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAttackPathSensitiveAssetConfigResponseBody body);
@Override
GetAttackPathSensitiveAssetConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAttackPathSensitiveAssetConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAttackPathSensitiveAssetConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAttackPathSensitiveAssetConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAttackPathSensitiveAssetConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAttackPathSensitiveAssetConfigResponse build() {
return new GetAttackPathSensitiveAssetConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathSensitiveAssetConfigResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathSensitiveAssetConfigResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathSensitiveAssetConfigResponseBody</p>
*/
public class GetAttackPathSensitiveAssetConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathSensitiveAssetConfig")
private AttackPathSensitiveAssetConfig attackPathSensitiveAssetConfig;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAttackPathSensitiveAssetConfigResponseBody(Builder builder) {
this.attackPathSensitiveAssetConfig = builder.attackPathSensitiveAssetConfig;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAttackPathSensitiveAssetConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathSensitiveAssetConfig
*/
public AttackPathSensitiveAssetConfig getAttackPathSensitiveAssetConfig() {
return this.attackPathSensitiveAssetConfig;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AttackPathSensitiveAssetConfig attackPathSensitiveAssetConfig;
private String requestId;
private Builder() {
}
private Builder(GetAttackPathSensitiveAssetConfigResponseBody model) {
this.attackPathSensitiveAssetConfig = model.attackPathSensitiveAssetConfig;
this.requestId = model.requestId;
}
/**
* <p>Data of the attack path sensitive asset configuration.</p>
*/
public Builder attackPathSensitiveAssetConfig(AttackPathSensitiveAssetConfig attackPathSensitiveAssetConfig) {
this.attackPathSensitiveAssetConfig = attackPathSensitiveAssetConfig;
return this;
}
/**
* <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for this request and can be used to troubleshoot and locate issues.</p>
*
* <strong>example:</strong>
* <p>3956048F-9D73-5EDB-834B-4827BB48****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAttackPathSensitiveAssetConfigResponseBody build() {
return new GetAttackPathSensitiveAssetConfigResponseBody(this);
}
}
/**
*
* {@link GetAttackPathSensitiveAssetConfigResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathSensitiveAssetConfigResponseBody</p>
*/
public static class AttackPathAssetList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private AttackPathAssetList(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.regionId = builder.regionId;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathAssetList create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private String instanceId;
private String instanceName;
private String regionId;
private Integer vendor;
private Builder() {
}
private Builder(AttackPathAssetList model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.regionId = model.regionId;
this.vendor = model.vendor;
}
/**
* <p>Subtype of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>Type of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>17</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>Instance ID of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>i-bp174zui735kvf3v****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>Instance name of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>Region ID of the cloud product asset instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Vendor of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public AttackPathAssetList build() {
return new AttackPathAssetList(this);
}
}
}
/**
*
* {@link GetAttackPathSensitiveAssetConfigResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathSensitiveAssetConfigResponseBody</p>
*/
public static class AttackPathSensitiveAssetConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathAssetList")
private java.util.List<AttackPathAssetList> attackPathAssetList;
@com.aliyun.core.annotation.NameInMap("AttackPathSensitiveAssetConfigId")
private String attackPathSensitiveAssetConfigId;
@com.aliyun.core.annotation.NameInMap("ConfigType")
private String configType;
private AttackPathSensitiveAssetConfig(Builder builder) {
this.attackPathAssetList = builder.attackPathAssetList;
this.attackPathSensitiveAssetConfigId = builder.attackPathSensitiveAssetConfigId;
this.configType = builder.configType;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathSensitiveAssetConfig create() {
return builder().build();
}
/**
* @return attackPathAssetList
*/
public java.util.List<AttackPathAssetList> getAttackPathAssetList() {
return this.attackPathAssetList;
}
/**
* @return attackPathSensitiveAssetConfigId
*/
public String getAttackPathSensitiveAssetConfigId() {
return this.attackPathSensitiveAssetConfigId;
}
/**
* @return configType
*/
public String getConfigType() {
return this.configType;
}
public static final class Builder {
private java.util.List<AttackPathAssetList> attackPathAssetList;
private String attackPathSensitiveAssetConfigId;
private String configType;
private Builder() {
}
private Builder(AttackPathSensitiveAssetConfig model) {
this.attackPathAssetList = model.attackPathAssetList;
this.attackPathSensitiveAssetConfigId = model.attackPathSensitiveAssetConfigId;
this.configType = model.configType;
}
/**
* <p>List of cloud product assets in the attack path.</p>
*/
public Builder attackPathAssetList(java.util.List<AttackPathAssetList> attackPathAssetList) {
this.attackPathAssetList = attackPathAssetList;
return this;
}
/**
* <p>ID of the attack path sensitive asset setting.</p>
*
* <strong>example:</strong>
* <p>apsac-123</p>
*/
public Builder attackPathSensitiveAssetConfigId(String attackPathSensitiveAssetConfigId) {
this.attackPathSensitiveAssetConfigId = attackPathSensitiveAssetConfigId;
return this;
}
/**
* <p>Configuration type. Value range: - asset_instance: Asset.</p>
*
* <strong>example:</strong>
* <p>asset_instance</p>
*/
public Builder configType(String configType) {
this.configType = configType;
return this;
}
public AttackPathSensitiveAssetConfig build() {
return new AttackPathSensitiveAssetConfig(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathWhitelistRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathWhitelistRequest} extends {@link RequestModel}
*
* <p>GetAttackPathWhitelistRequest</p>
*/
public class GetAttackPathWhitelistRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AttackPathWhitelistId")
@com.aliyun.core.annotation.Validation(required = true)
private String attackPathWhitelistId;
private GetAttackPathWhitelistRequest(Builder builder) {
super(builder);
this.attackPathWhitelistId = builder.attackPathWhitelistId;
}
public static Builder builder() {
return new Builder();
}
public static GetAttackPathWhitelistRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathWhitelistId
*/
public String getAttackPathWhitelistId() {
return this.attackPathWhitelistId;
}
public static final class Builder extends Request.Builder<GetAttackPathWhitelistRequest, Builder> {
private String attackPathWhitelistId;
private Builder() {
super();
}
private Builder(GetAttackPathWhitelistRequest request) {
super(request);
this.attackPathWhitelistId = request.attackPathWhitelistId;
}
/**
* <p>Attack path whitelist ID.</p>
* <blockquote>
* <p>You can call <a href="~~ListAttackPathWhitelist~~">ListAttackPathWhitelist</a> to query the attack path whitelist ID.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>apwl-b33dec0acf9b42aabde032d656c0****</p>
*/
public Builder attackPathWhitelistId(String attackPathWhitelistId) {
this.putQueryParameter("AttackPathWhitelistId", attackPathWhitelistId);
this.attackPathWhitelistId = attackPathWhitelistId;
return this;
}
@Override
public GetAttackPathWhitelistRequest build() {
return new GetAttackPathWhitelistRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathWhitelistResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathWhitelistResponse} extends {@link TeaModel}
*
* <p>GetAttackPathWhitelistResponse</p>
*/
public class GetAttackPathWhitelistResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAttackPathWhitelistResponseBody body;
private GetAttackPathWhitelistResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAttackPathWhitelistResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAttackPathWhitelistResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAttackPathWhitelistResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAttackPathWhitelistResponseBody body);
@Override
GetAttackPathWhitelistResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAttackPathWhitelistResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAttackPathWhitelistResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAttackPathWhitelistResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAttackPathWhitelistResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAttackPathWhitelistResponse build() {
return new GetAttackPathWhitelistResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackPathWhitelistResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackPathWhitelistResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathWhitelistResponseBody</p>
*/
public class GetAttackPathWhitelistResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathWhitelist")
private AttackPathWhitelist attackPathWhitelist;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAttackPathWhitelistResponseBody(Builder builder) {
this.attackPathWhitelist = builder.attackPathWhitelist;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAttackPathWhitelistResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathWhitelist
*/
public AttackPathWhitelist getAttackPathWhitelist() {
return this.attackPathWhitelist;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AttackPathWhitelist attackPathWhitelist;
private String requestId;
private Builder() {
}
private Builder(GetAttackPathWhitelistResponseBody model) {
this.attackPathWhitelist = model.attackPathWhitelist;
this.requestId = model.requestId;
}
/**
* <p>Attack path whitelist.</p>
*/
public Builder attackPathWhitelist(AttackPathWhitelist attackPathWhitelist) {
this.attackPathWhitelist = attackPathWhitelist;
return this;
}
/**
* <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem localization.</p>
*
* <strong>example:</strong>
* <p>D03DD0FD-6041-5107-AC00-383E28F1****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAttackPathWhitelistResponseBody build() {
return new GetAttackPathWhitelistResponseBody(this);
}
}
/**
*
* {@link GetAttackPathWhitelistResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathWhitelistResponseBody</p>
*/
public static class AttackPathAssetList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("NodeType")
private String nodeType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private AttackPathAssetList(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.nodeType = builder.nodeType;
this.regionId = builder.regionId;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathAssetList create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return nodeType
*/
public String getNodeType() {
return this.nodeType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private String instanceId;
private String instanceName;
private String nodeType;
private String regionId;
private Integer vendor;
private Builder() {
}
private Builder(AttackPathAssetList model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.nodeType = model.nodeType;
this.regionId = model.regionId;
this.vendor = model.vendor;
}
/**
* <p>Subtype of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>Type of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>Instance ID of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>i-8vb0e8qdaj0yyxjo****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>Instance name.</p>
*
* <strong>example:</strong>
* <p>xwl</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>Node type, values:</p>
* <ul>
* <li><strong>start</strong>: Start point.</li>
* <li><strong>end</strong>: End point.</li>
* </ul>
*
* <strong>example:</strong>
* <p>start</p>
*/
public Builder nodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
/**
* <p>Region ID of the cloud product asset instance.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Vendor of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public AttackPathAssetList build() {
return new AttackPathAssetList(this);
}
}
}
/**
*
* {@link GetAttackPathWhitelistResponseBody} extends {@link TeaModel}
*
* <p>GetAttackPathWhitelistResponseBody</p>
*/
public static class AttackPathWhitelist extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathAssetList")
private java.util.List<AttackPathAssetList> attackPathAssetList;
@com.aliyun.core.annotation.NameInMap("AttackPathWhitelistId")
private String attackPathWhitelistId;
@com.aliyun.core.annotation.NameInMap("LastModifiedTimestamp")
private Long lastModifiedTimestamp;
@com.aliyun.core.annotation.NameInMap("PathName")
private String pathName;
@com.aliyun.core.annotation.NameInMap("PathType")
private String pathType;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("WhitelistName")
private String whitelistName;
@com.aliyun.core.annotation.NameInMap("WhitelistType")
private String whitelistType;
private AttackPathWhitelist(Builder builder) {
this.attackPathAssetList = builder.attackPathAssetList;
this.attackPathWhitelistId = builder.attackPathWhitelistId;
this.lastModifiedTimestamp = builder.lastModifiedTimestamp;
this.pathName = builder.pathName;
this.pathType = builder.pathType;
this.remark = builder.remark;
this.whitelistName = builder.whitelistName;
this.whitelistType = builder.whitelistType;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathWhitelist create() {
return builder().build();
}
/**
* @return attackPathAssetList
*/
public java.util.List<AttackPathAssetList> getAttackPathAssetList() {
return this.attackPathAssetList;
}
/**
* @return attackPathWhitelistId
*/
public String getAttackPathWhitelistId() {
return this.attackPathWhitelistId;
}
/**
* @return lastModifiedTimestamp
*/
public Long getLastModifiedTimestamp() {
return this.lastModifiedTimestamp;
}
/**
* @return pathName
*/
public String getPathName() {
return this.pathName;
}
/**
* @return pathType
*/
public String getPathType() {
return this.pathType;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return whitelistName
*/
public String getWhitelistName() {
return this.whitelistName;
}
/**
* @return whitelistType
*/
public String getWhitelistType() {
return this.whitelistType;
}
public static final class Builder {
private java.util.List<AttackPathAssetList> attackPathAssetList;
private String attackPathWhitelistId;
private Long lastModifiedTimestamp;
private String pathName;
private String pathType;
private String remark;
private String whitelistName;
private String whitelistType;
private Builder() {
}
private Builder(AttackPathWhitelist model) {
this.attackPathAssetList = model.attackPathAssetList;
this.attackPathWhitelistId = model.attackPathWhitelistId;
this.lastModifiedTimestamp = model.lastModifiedTimestamp;
this.pathName = model.pathName;
this.pathType = model.pathType;
this.remark = model.remark;
this.whitelistName = model.whitelistName;
this.whitelistType = model.whitelistType;
}
/**
* <p>List of cloud product assets in the attack path.</p>
*/
public Builder attackPathAssetList(java.util.List<AttackPathAssetList> attackPathAssetList) {
this.attackPathAssetList = attackPathAssetList;
return this;
}
/**
* <p>Attack path whitelist ID.</p>
*
* <strong>example:</strong>
* <p>apwl-b33dec0acf9b42aabde032d656c0****</p>
*/
public Builder attackPathWhitelistId(String attackPathWhitelistId) {
this.attackPathWhitelistId = attackPathWhitelistId;
return this;
}
/**
* <p>Last modified timestamp, in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1743004587000</p>
*/
public Builder lastModifiedTimestamp(Long lastModifiedTimestamp) {
this.lastModifiedTimestamp = lastModifiedTimestamp;
return this;
}
/**
* <p>Path name.</p>
*
* <strong>example:</strong>
* <p>ecs_get_credential_by_create_login_profile</p>
*/
public Builder pathName(String pathName) {
this.pathName = pathName;
return this;
}
/**
* <p>Path type.</p>
*
* <strong>example:</strong>
* <p>role_escalation</p>
*/
public Builder pathType(String pathType) {
this.pathType = pathType;
return this;
}
/**
* <p>Remark information.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* <p>Whitelist name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder whitelistName(String whitelistName) {
this.whitelistName = whitelistName;
return this;
}
/**
* <p>Whitelist type. Possible values:</p>
* <ul>
* <li><strong>ALL_ASSET</strong>: All assets</li>
* <li><strong>PART_ASSET</strong>: Partial assets</li>
* </ul>
*
* <strong>example:</strong>
* <p>ALL_ASSET</p>
*/
public Builder whitelistType(String whitelistType) {
this.whitelistType = whitelistType;
return this;
}
public AttackPathWhitelist build() {
return new AttackPathWhitelist(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackTypeListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackTypeListRequest} extends {@link RequestModel}
*
* <p>GetAttackTypeListRequest</p>
*/
public class GetAttackTypeListRequest extends Request {
private GetAttackTypeListRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetAttackTypeListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetAttackTypeListRequest, Builder> {
private Builder() {
super();
}
private Builder(GetAttackTypeListRequest request) {
super(request);
}
@Override
public GetAttackTypeListRequest build() {
return new GetAttackTypeListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackTypeListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackTypeListResponse} extends {@link TeaModel}
*
* <p>GetAttackTypeListResponse</p>
*/
public class GetAttackTypeListResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAttackTypeListResponseBody body;
private GetAttackTypeListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAttackTypeListResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAttackTypeListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAttackTypeListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAttackTypeListResponseBody body);
@Override
GetAttackTypeListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAttackTypeListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAttackTypeListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAttackTypeListResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAttackTypeListResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAttackTypeListResponse build() {
return new GetAttackTypeListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAttackTypeListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAttackTypeListResponseBody} extends {@link TeaModel}
*
* <p>GetAttackTypeListResponseBody</p>
*/
public class GetAttackTypeListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackTypeList")
private java.util.List<AttackTypeList> attackTypeList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAttackTypeListResponseBody(Builder builder) {
this.attackTypeList = builder.attackTypeList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAttackTypeListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackTypeList
*/
public java.util.List<AttackTypeList> getAttackTypeList() {
return this.attackTypeList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AttackTypeList> attackTypeList;
private String requestId;
private Builder() {
}
private Builder(GetAttackTypeListResponseBody model) {
this.attackTypeList = model.attackTypeList;
this.requestId = model.requestId;
}
/**
* <p>The attack types.</p>
*/
public Builder attackTypeList(java.util.List<AttackTypeList> attackTypeList) {
this.attackTypeList = attackTypeList;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>CE500770-42D3-442E-9DDD-156E0F9F****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAttackTypeListResponseBody build() {
return new GetAttackTypeListResponseBody(this);
}
}
/**
*
* {@link GetAttackTypeListResponseBody} extends {@link TeaModel}
*
* <p>GetAttackTypeListResponseBody</p>
*/
public static class AttackTypeList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Status_Type")
private String statusType;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private AttackTypeList(Builder builder) {
this.label = builder.label;
this.statusType = builder.statusType;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static AttackTypeList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return statusType
*/
public String getStatusType() {
return this.statusType;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String label;
private String statusType;
private String value;
private Builder() {
}
private Builder(AttackTypeList model) {
this.label = model.label;
this.statusType = model.statusType;
this.value = model.value;
}
/**
* <p>The description of the attack type.</p>
*
* <strong>example:</strong>
* <p>sas.attack.type.type12</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The attack source. Valid values:</p>
* <ul>
* <li><strong>cfw</strong>: Cloud Firewall</li>
* <li><strong>alinet</strong>: network defense plug-in</li>
* <li><strong>waf</strong>: Web Application Firewall (WAF)</li>
* </ul>
*
* <strong>example:</strong>
* <p>alinet</p>
*/
public Builder statusType(String statusType) {
this.statusType = statusType;
return this;
}
/**
* <p>The value of the attack type.</p>
*
* <strong>example:</strong>
* <p>upload</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public AttackTypeList build() {
return new AttackTypeList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAuthSummaryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAuthSummaryRequest} extends {@link RequestModel}
*
* <p>GetAuthSummaryRequest</p>
*/
public class GetAuthSummaryRequest extends Request {
private GetAuthSummaryRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetAuthSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetAuthSummaryRequest, Builder> {
private Builder() {
super();
}
private Builder(GetAuthSummaryRequest request) {
super(request);
}
@Override
public GetAuthSummaryRequest build() {
return new GetAuthSummaryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAuthSummaryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAuthSummaryResponse} extends {@link TeaModel}
*
* <p>GetAuthSummaryResponse</p>
*/
public class GetAuthSummaryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAuthSummaryResponseBody body;
private GetAuthSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAuthSummaryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAuthSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAuthSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAuthSummaryResponseBody body);
@Override
GetAuthSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAuthSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAuthSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAuthSummaryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAuthSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAuthSummaryResponse build() {
return new GetAuthSummaryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAuthSummaryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAuthSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetAuthSummaryResponseBody</p>
*/
public class GetAuthSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowPartialBuy")
private Integer allowPartialBuy;
@com.aliyun.core.annotation.NameInMap("AllowUpgradePartialBuy")
private Integer allowUpgradePartialBuy;
@com.aliyun.core.annotation.NameInMap("AllowUserUnbind")
private Integer allowUserUnbind;
@com.aliyun.core.annotation.NameInMap("AutoBind")
private Integer autoBind;
@com.aliyun.core.annotation.NameInMap("DefaultAuthToAll")
private Integer defaultAuthToAll;
@com.aliyun.core.annotation.NameInMap("HasPreBindSetting")
private Boolean hasPreBindSetting;
@com.aliyun.core.annotation.NameInMap("HighestVersion")
private Integer highestVersion;
@com.aliyun.core.annotation.NameInMap("InvalidBindStatus")
private String invalidBindStatus;
@com.aliyun.core.annotation.NameInMap("IsMultiVersion")
private Integer isMultiVersion;
@com.aliyun.core.annotation.NameInMap("Machine")
private Machine machine;
@com.aliyun.core.annotation.NameInMap("PostPaidHighestVersion")
private String postPaidHighestVersion;
@com.aliyun.core.annotation.NameInMap("PostPaidHostAutoBind")
private String postPaidHostAutoBind;
@com.aliyun.core.annotation.NameInMap("PostPaidHostAutoBindVersion")
private String postPaidHostAutoBindVersion;
@com.aliyun.core.annotation.NameInMap("PostPaidVersionSummary")
private java.util.List<PostPaidVersionSummary> postPaidVersionSummary;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VersionSummary")
private java.util.List<VersionSummary> versionSummary;
private GetAuthSummaryResponseBody(Builder builder) {
this.allowPartialBuy = builder.allowPartialBuy;
this.allowUpgradePartialBuy = builder.allowUpgradePartialBuy;
this.allowUserUnbind = builder.allowUserUnbind;
this.autoBind = builder.autoBind;
this.defaultAuthToAll = builder.defaultAuthToAll;
this.hasPreBindSetting = builder.hasPreBindSetting;
this.highestVersion = builder.highestVersion;
this.invalidBindStatus = builder.invalidBindStatus;
this.isMultiVersion = builder.isMultiVersion;
this.machine = builder.machine;
this.postPaidHighestVersion = builder.postPaidHighestVersion;
this.postPaidHostAutoBind = builder.postPaidHostAutoBind;
this.postPaidHostAutoBindVersion = builder.postPaidHostAutoBindVersion;
this.postPaidVersionSummary = builder.postPaidVersionSummary;
this.requestId = builder.requestId;
this.versionSummary = builder.versionSummary;
}
public static Builder builder() {
return new Builder();
}
public static GetAuthSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return allowPartialBuy
*/
public Integer getAllowPartialBuy() {
return this.allowPartialBuy;
}
/**
* @return allowUpgradePartialBuy
*/
public Integer getAllowUpgradePartialBuy() {
return this.allowUpgradePartialBuy;
}
/**
* @return allowUserUnbind
*/
public Integer getAllowUserUnbind() {
return this.allowUserUnbind;
}
/**
* @return autoBind
*/
public Integer getAutoBind() {
return this.autoBind;
}
/**
* @return defaultAuthToAll
*/
public Integer getDefaultAuthToAll() {
return this.defaultAuthToAll;
}
/**
* @return hasPreBindSetting
*/
public Boolean getHasPreBindSetting() {
return this.hasPreBindSetting;
}
/**
* @return highestVersion
*/
public Integer getHighestVersion() {
return this.highestVersion;
}
/**
* @return invalidBindStatus
*/
public String getInvalidBindStatus() {
return this.invalidBindStatus;
}
/**
* @return isMultiVersion
*/
public Integer getIsMultiVersion() {
return this.isMultiVersion;
}
/**
* @return machine
*/
public Machine getMachine() {
return this.machine;
}
/**
* @return postPaidHighestVersion
*/
public String getPostPaidHighestVersion() {
return this.postPaidHighestVersion;
}
/**
* @return postPaidHostAutoBind
*/
public String getPostPaidHostAutoBind() {
return this.postPaidHostAutoBind;
}
/**
* @return postPaidHostAutoBindVersion
*/
public String getPostPaidHostAutoBindVersion() {
return this.postPaidHostAutoBindVersion;
}
/**
* @return postPaidVersionSummary
*/
public java.util.List<PostPaidVersionSummary> getPostPaidVersionSummary() {
return this.postPaidVersionSummary;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return versionSummary
*/
public java.util.List<VersionSummary> getVersionSummary() {
return this.versionSummary;
}
public static final class Builder {
private Integer allowPartialBuy;
private Integer allowUpgradePartialBuy;
private Integer allowUserUnbind;
private Integer autoBind;
private Integer defaultAuthToAll;
private Boolean hasPreBindSetting;
private Integer highestVersion;
private String invalidBindStatus;
private Integer isMultiVersion;
private Machine machine;
private String postPaidHighestVersion;
private String postPaidHostAutoBind;
private String postPaidHostAutoBindVersion;
private java.util.List<PostPaidVersionSummary> postPaidVersionSummary;
private String requestId;
private java.util.List<VersionSummary> versionSummary;
private Builder() {
}
private Builder(GetAuthSummaryResponseBody model) {
this.allowPartialBuy = model.allowPartialBuy;
this.allowUpgradePartialBuy = model.allowUpgradePartialBuy;
this.allowUserUnbind = model.allowUserUnbind;
this.autoBind = model.autoBind;
this.defaultAuthToAll = model.defaultAuthToAll;
this.hasPreBindSetting = model.hasPreBindSetting;
this.highestVersion = model.highestVersion;
this.invalidBindStatus = model.invalidBindStatus;
this.isMultiVersion = model.isMultiVersion;
this.machine = model.machine;
this.postPaidHighestVersion = model.postPaidHighestVersion;
this.postPaidHostAutoBind = model.postPaidHostAutoBind;
this.postPaidHostAutoBindVersion = model.postPaidHostAutoBindVersion;
this.postPaidVersionSummary = model.postPaidVersionSummary;
this.requestId = model.requestId;
this.versionSummary = model.versionSummary;
}
/**
* <p>Indicates whether you can purchase protection quota on demand when you purchase Security Center. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder allowPartialBuy(Integer allowPartialBuy) {
this.allowPartialBuy = allowPartialBuy;
return this;
}
/**
* <p>Indicates whether you can purchase protection quota on demand after an upgrade. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder allowUpgradePartialBuy(Integer allowUpgradePartialBuy) {
this.allowUpgradePartialBuy = allowUpgradePartialBuy;
return this;
}
/**
* <p>Indicates whether all bound assets can be immediately unbound. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder allowUserUnbind(Integer allowUserUnbind) {
this.allowUserUnbind = allowUserUnbind;
return this;
}
/**
* <p>Indicates whether automatic binding is enabled. Valid values:</p>
* <ul>
* <li><strong>0</strong>: disabled</li>
* <li><strong>1</strong>: enabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder autoBind(Integer autoBind) {
this.autoBind = autoBind;
return this;
}
/**
* <p>Indicates whether the protection quota is supported for all assets. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder defaultAuthToAll(Integer defaultAuthToAll) {
this.defaultAuthToAll = defaultAuthToAll;
return this;
}
/**
* <p>Indicates whether pre-bound assets exist. If you select assets to bind when you purchase Security Center, pre-bound assets exist. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hasPreBindSetting(Boolean hasPreBindSetting) {
this.hasPreBindSetting = hasPreBindSetting;
return this;
}
/**
* <p>The most advanced edition that is used. Valid values:</p>
* <ul>
* <li><strong>1</strong>: Basic edition</li>
* <li><strong>3</strong>: Enterprise edition</li>
* <li><strong>5</strong>: Advanced edition</li>
* <li><strong>6</strong>: Anti-virus edition</li>
* <li><strong>7</strong>: Ultimate edition</li>
* <li><strong>10</strong>: Value-added Plan edition</li>
* </ul>
* <blockquote>
* <p> 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.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder highestVersion(Integer highestVersion) {
this.highestVersion = highestVersion;
return this;
}
/**
* InvalidBindStatus.
*/
public Builder invalidBindStatus(String invalidBindStatus) {
this.invalidBindStatus = invalidBindStatus;
return this;
}
/**
* <p>Indicates whether Security Center Multi-edition is purchased. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder isMultiVersion(Integer isMultiVersion) {
this.isMultiVersion = isMultiVersion;
return this;
}
/**
* <p>The statistics of the protection quota for assets.</p>
*/
public Builder machine(Machine machine) {
this.machine = machine;
return this;
}
/**
* <p>Activate the pay-as-you-go service protection version for hosts and container security, which is the highest protection version among all bound hosts. Values: - <strong>1</strong>: Free Edition - <strong>3</strong>: Enterprise Edition - <strong>5</strong>: Advanced Edition - <strong>6</strong>: Antivirus Edition - <strong>7</strong>: Flagship Edition</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder postPaidHighestVersion(String postPaidHighestVersion) {
this.postPaidHighestVersion = postPaidHighestVersion;
return this;
}
/**
* <p>The pay-as-you-go service for host and container security adds an automatic binding identifier for new hosts, with values: - <strong>0</strong>: Off - <strong>1</strong>: On</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder postPaidHostAutoBind(String postPaidHostAutoBind) {
this.postPaidHostAutoBind = postPaidHostAutoBind;
return this;
}
/**
* <p>The version for the pay-as-you-go service of host and container security to automatically bind new assets, with values: - <strong>1</strong>: Free Edition - <strong>3</strong>: Enterprise Edition - <strong>5</strong>: Advanced Edition - <strong>6</strong>: Antivirus Edition - <strong>7</strong>: Flagship Edition</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder postPaidHostAutoBindVersion(String postPaidHostAutoBindVersion) {
this.postPaidHostAutoBindVersion = postPaidHostAutoBindVersion;
return this;
}
/**
* <p>Statistics on pay-as-you-go service authorization for host and container security.</p>
*/
public Builder postPaidVersionSummary(java.util.List<PostPaidVersionSummary> postPaidVersionSummary) {
this.postPaidVersionSummary = postPaidVersionSummary;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0B48AB3C-***-B9270EF46038</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The quota consumption statistics.</p>
*/
public Builder versionSummary(java.util.List<VersionSummary> versionSummary) {
this.versionSummary = versionSummary;
return this;
}
public GetAuthSummaryResponseBody build() {
return new GetAuthSummaryResponseBody(this);
}
}
/**
*
* {@link GetAuthSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetAuthSummaryResponseBody</p>
*/
public static class Machine extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BindCoreCount")
private Integer bindCoreCount;
@com.aliyun.core.annotation.NameInMap("BindEcsCount")
private Integer bindEcsCount;
@com.aliyun.core.annotation.NameInMap("PostPaidBindCoreCount")
private Integer postPaidBindCoreCount;
@com.aliyun.core.annotation.NameInMap("PostPaidBindEcsCount")
private Integer postPaidBindEcsCount;
@com.aliyun.core.annotation.NameInMap("RiskCoreCount")
private Integer riskCoreCount;
@com.aliyun.core.annotation.NameInMap("RiskEcsCount")
private Integer riskEcsCount;
@com.aliyun.core.annotation.NameInMap("TotalCoreCount")
private Integer totalCoreCount;
@com.aliyun.core.annotation.NameInMap("TotalEcsCount")
private Integer totalEcsCount;
@com.aliyun.core.annotation.NameInMap("UnBindCoreCount")
private Integer unBindCoreCount;
@com.aliyun.core.annotation.NameInMap("UnBindEcsCount")
private Integer unBindEcsCount;
private Machine(Builder builder) {
this.bindCoreCount = builder.bindCoreCount;
this.bindEcsCount = builder.bindEcsCount;
this.postPaidBindCoreCount = builder.postPaidBindCoreCount;
this.postPaidBindEcsCount = builder.postPaidBindEcsCount;
this.riskCoreCount = builder.riskCoreCount;
this.riskEcsCount = builder.riskEcsCount;
this.totalCoreCount = builder.totalCoreCount;
this.totalEcsCount = builder.totalEcsCount;
this.unBindCoreCount = builder.unBindCoreCount;
this.unBindEcsCount = builder.unBindEcsCount;
}
public static Builder builder() {
return new Builder();
}
public static Machine create() {
return builder().build();
}
/**
* @return bindCoreCount
*/
public Integer getBindCoreCount() {
return this.bindCoreCount;
}
/**
* @return bindEcsCount
*/
public Integer getBindEcsCount() {
return this.bindEcsCount;
}
/**
* @return postPaidBindCoreCount
*/
public Integer getPostPaidBindCoreCount() {
return this.postPaidBindCoreCount;
}
/**
* @return postPaidBindEcsCount
*/
public Integer getPostPaidBindEcsCount() {
return this.postPaidBindEcsCount;
}
/**
* @return riskCoreCount
*/
public Integer getRiskCoreCount() {
return this.riskCoreCount;
}
/**
* @return riskEcsCount
*/
public Integer getRiskEcsCount() {
return this.riskEcsCount;
}
/**
* @return totalCoreCount
*/
public Integer getTotalCoreCount() {
return this.totalCoreCount;
}
/**
* @return totalEcsCount
*/
public Integer getTotalEcsCount() {
return this.totalEcsCount;
}
/**
* @return unBindCoreCount
*/
public Integer getUnBindCoreCount() {
return this.unBindCoreCount;
}
/**
* @return unBindEcsCount
*/
public Integer getUnBindEcsCount() {
return this.unBindEcsCount;
}
public static final class Builder {
private Integer bindCoreCount;
private Integer bindEcsCount;
private Integer postPaidBindCoreCount;
private Integer postPaidBindEcsCount;
private Integer riskCoreCount;
private Integer riskEcsCount;
private Integer totalCoreCount;
private Integer totalEcsCount;
private Integer unBindCoreCount;
private Integer unBindEcsCount;
private Builder() {
}
private Builder(Machine model) {
this.bindCoreCount = model.bindCoreCount;
this.bindEcsCount = model.bindEcsCount;
this.postPaidBindCoreCount = model.postPaidBindCoreCount;
this.postPaidBindEcsCount = model.postPaidBindEcsCount;
this.riskCoreCount = model.riskCoreCount;
this.riskEcsCount = model.riskEcsCount;
this.totalCoreCount = model.totalCoreCount;
this.totalEcsCount = model.totalEcsCount;
this.unBindCoreCount = model.unBindCoreCount;
this.unBindEcsCount = model.unBindEcsCount;
}
/**
* <p>The number of cores of the assets that are bound to Security Center.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder bindCoreCount(Integer bindCoreCount) {
this.bindCoreCount = bindCoreCount;
return this;
}
/**
* <p>The number of the assets that are bound to Security Center.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder bindEcsCount(Integer bindEcsCount) {
this.bindEcsCount = bindEcsCount;
return this;
}
/**
* <p>Bind the number of cores for postpaid authorization assets.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder postPaidBindCoreCount(Integer postPaidBindCoreCount) {
this.postPaidBindCoreCount = postPaidBindCoreCount;
return this;
}
/**
* <p>The number of assets bound to the postpaid authorization.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder postPaidBindEcsCount(Integer postPaidBindEcsCount) {
this.postPaidBindEcsCount = postPaidBindEcsCount;
return this;
}
/**
* <p>The number of cores of the assets that are at risk.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder riskCoreCount(Integer riskCoreCount) {
this.riskCoreCount = riskCoreCount;
return this;
}
/**
* <p>The number of the assets that are at risk.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder riskEcsCount(Integer riskEcsCount) {
this.riskEcsCount = riskEcsCount;
return this;
}
/**
* <p>The total number of asset cores.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCoreCount(Integer totalCoreCount) {
this.totalCoreCount = totalCoreCount;
return this;
}
/**
* <p>The total number of assets.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalEcsCount(Integer totalEcsCount) {
this.totalEcsCount = totalEcsCount;
return this;
}
/**
* <p>The number of cores of unbound assets.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder unBindCoreCount(Integer unBindCoreCount) {
this.unBindCoreCount = unBindCoreCount;
return this;
}
/**
* <p>The number of unbound assets.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder unBindEcsCount(Integer unBindEcsCount) {
this.unBindEcsCount = unBindEcsCount;
return this;
}
public Machine build() {
return new Machine(this);
}
}
}
/**
*
* {@link GetAuthSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetAuthSummaryResponseBody</p>
*/
public static class PostPaidVersionSummary extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AuthBindType")
private String authBindType;
@com.aliyun.core.annotation.NameInMap("Index")
private Integer index;
@com.aliyun.core.annotation.NameInMap("UsedCoreCount")
private Long usedCoreCount;
@com.aliyun.core.annotation.NameInMap("UsedEcsCount")
private Long usedEcsCount;
@com.aliyun.core.annotation.NameInMap("Version")
private Integer version;
private PostPaidVersionSummary(Builder builder) {
this.authBindType = builder.authBindType;
this.index = builder.index;
this.usedCoreCount = builder.usedCoreCount;
this.usedEcsCount = builder.usedEcsCount;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static PostPaidVersionSummary create() {
return builder().build();
}
/**
* @return authBindType
*/
public String getAuthBindType() {
return this.authBindType;
}
/**
* @return index
*/
public Integer getIndex() {
return this.index;
}
/**
* @return usedCoreCount
*/
public Long getUsedCoreCount() {
return this.usedCoreCount;
}
/**
* @return usedEcsCount
*/
public Long getUsedEcsCount() {
return this.usedEcsCount;
}
/**
* @return version
*/
public Integer getVersion() {
return this.version;
}
public static final class Builder {
private String authBindType;
private Integer index;
private Long usedCoreCount;
private Long usedEcsCount;
private Integer version;
private Builder() {
}
private Builder(PostPaidVersionSummary model) {
this.authBindType = model.authBindType;
this.index = model.index;
this.usedCoreCount = model.usedCoreCount;
this.usedEcsCount = model.usedEcsCount;
this.version = model.version;
}
/**
* <p>The type of authorization consumed during binding, with values: - <strong>ASSET</strong>: Consumes the number of authorized devices - <strong>CORE</strong>: Consumes the number of authorized cores - <strong>ASSET_AND_CORE</strong>: Consumes both the number of authorized devices and cores.</p>
*
* <strong>example:</strong>
* <p>ASSET</p>
*/
public Builder authBindType(String authBindType) {
this.authBindType = authBindType;
return this;
}
/**
* <p>Current version index, the higher the number, the newer the version, used for sorting. Values: - <strong>1</strong>: Free Edition - <strong>2</strong>: Anti-virus Edition - <strong>3</strong>: Advanced Edition - <strong>4</strong>: Enterprise Edition - <strong>5</strong>: Flagship Edition</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder index(Integer index) {
this.index = index;
return this;
}
/**
* <p>Number of authorized cores used. > This parameter is valid when AuthBindType is set to CORE or ASSET_AND_CORE.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder usedCoreCount(Long usedCoreCount) {
this.usedCoreCount = usedCoreCount;
return this;
}
/**
* <p>Number of authorized devices used. > This parameter is valid when AuthBindType is ASSET or ASSET_AND_CORE.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder usedEcsCount(Long usedEcsCount) {
this.usedEcsCount = usedEcsCount;
return this;
}
/**
* <p>Bound host assets with postpaid versions, values: - <strong>1</strong>: Free version - <strong>3</strong>: Enterprise version - <strong>5</strong>: Advanced version - <strong>6</strong>: Anti-virus version - <strong>7</strong>: Flagship version</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder version(Integer version) {
this.version = version;
return this;
}
public PostPaidVersionSummary build() {
return new PostPaidVersionSummary(this);
}
}
}
/**
*
* {@link GetAuthSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetAuthSummaryResponseBody</p>
*/
public static class VersionSummary extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AuthBindType")
private String authBindType;
@com.aliyun.core.annotation.NameInMap("Index")
private Integer index;
@com.aliyun.core.annotation.NameInMap("TotalCoreAuthCount")
private Integer totalCoreAuthCount;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("TotalEcsAuthCount")
private Integer totalEcsAuthCount;
@com.aliyun.core.annotation.NameInMap("UnUsedCount")
private Integer unUsedCount;
@com.aliyun.core.annotation.NameInMap("UnusedCoreAuthCount")
private Integer unusedCoreAuthCount;
@com.aliyun.core.annotation.NameInMap("UnusedEcsAuthCount")
private Integer unusedEcsAuthCount;
@com.aliyun.core.annotation.NameInMap("UsedCoreCount")
private Integer usedCoreCount;
@com.aliyun.core.annotation.NameInMap("UsedEcsCount")
private Integer usedEcsCount;
@com.aliyun.core.annotation.NameInMap("Version")
private Integer version;
private VersionSummary(Builder builder) {
this.authBindType = builder.authBindType;
this.index = builder.index;
this.totalCoreAuthCount = builder.totalCoreAuthCount;
this.totalCount = builder.totalCount;
this.totalEcsAuthCount = builder.totalEcsAuthCount;
this.unUsedCount = builder.unUsedCount;
this.unusedCoreAuthCount = builder.unusedCoreAuthCount;
this.unusedEcsAuthCount = builder.unusedEcsAuthCount;
this.usedCoreCount = builder.usedCoreCount;
this.usedEcsCount = builder.usedEcsCount;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static VersionSummary create() {
return builder().build();
}
/**
* @return authBindType
*/
public String getAuthBindType() {
return this.authBindType;
}
/**
* @return index
*/
public Integer getIndex() {
return this.index;
}
/**
* @return totalCoreAuthCount
*/
public Integer getTotalCoreAuthCount() {
return this.totalCoreAuthCount;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return totalEcsAuthCount
*/
public Integer getTotalEcsAuthCount() {
return this.totalEcsAuthCount;
}
/**
* @return unUsedCount
*/
public Integer getUnUsedCount() {
return this.unUsedCount;
}
/**
* @return unusedCoreAuthCount
*/
public Integer getUnusedCoreAuthCount() {
return this.unusedCoreAuthCount;
}
/**
* @return unusedEcsAuthCount
*/
public Integer getUnusedEcsAuthCount() {
return this.unusedEcsAuthCount;
}
/**
* @return usedCoreCount
*/
public Integer getUsedCoreCount() {
return this.usedCoreCount;
}
/**
* @return usedEcsCount
*/
public Integer getUsedEcsCount() {
return this.usedEcsCount;
}
/**
* @return version
*/
public Integer getVersion() {
return this.version;
}
public static final class Builder {
private String authBindType;
private Integer index;
private Integer totalCoreAuthCount;
private Integer totalCount;
private Integer totalEcsAuthCount;
private Integer unUsedCount;
private Integer unusedCoreAuthCount;
private Integer unusedEcsAuthCount;
private Integer usedCoreCount;
private Integer usedEcsCount;
private Integer version;
private Builder() {
}
private Builder(VersionSummary model) {
this.authBindType = model.authBindType;
this.index = model.index;
this.totalCoreAuthCount = model.totalCoreAuthCount;
this.totalCount = model.totalCount;
this.totalEcsAuthCount = model.totalEcsAuthCount;
this.unUsedCount = model.unUsedCount;
this.unusedCoreAuthCount = model.unusedCoreAuthCount;
this.unusedEcsAuthCount = model.unusedEcsAuthCount;
this.usedCoreCount = model.usedCoreCount;
this.usedEcsCount = model.usedEcsCount;
this.version = model.version;
}
/**
* <p>The type of the quota that is consumed. Valid values:</p>
* <ul>
* <li>ASSET: quota of servers.</li>
* <li>CORE: quota of server cores.</li>
* <li>ASSET_AND_CORE: both.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ASSET</p>
*/
public Builder authBindType(String authBindType) {
this.authBindType = authBindType;
return this;
}
/**
* <p>The index of the current edition. The smaller the value, the higher the edition. The index is used for sorting.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder index(Integer index) {
this.index = index;
return this;
}
/**
* <p>The total quota of server cores.</p>
* <blockquote>
* <p> This parameter takes effect only if AuthBindType is set to CORE or ASSET_AND_CORE.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCoreAuthCount(Integer totalCoreAuthCount) {
this.totalCoreAuthCount = totalCoreAuthCount;
return this;
}
/**
* <p>The total quota of servers in the current edition.</p>
* <blockquote>
* <p> This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The total quota of servers.</p>
* <blockquote>
* <p> This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalEcsAuthCount(Integer totalEcsAuthCount) {
this.totalEcsAuthCount = totalEcsAuthCount;
return this;
}
/**
* <p>The remaining quota of servers.</p>
* <blockquote>
* <p> This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder unUsedCount(Integer unUsedCount) {
this.unUsedCount = unUsedCount;
return this;
}
/**
* <p>The remaining quota of server cores.</p>
* <blockquote>
* <p> This parameter takes effect only if AuthBindType is set to CORE or ASSET_AND_CORE.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder unusedCoreAuthCount(Integer unusedCoreAuthCount) {
this.unusedCoreAuthCount = unusedCoreAuthCount;
return this;
}
/**
* <p>The remaining quota of servers.</p>
* <blockquote>
* <p> This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder unusedEcsAuthCount(Integer unusedEcsAuthCount) {
this.unusedEcsAuthCount = unusedEcsAuthCount;
return this;
}
/**
* <p>The consumed quota of server cores.</p>
* <blockquote>
* <p> This parameter takes effect only if AuthBindType is set to CORE or ASSET_AND_CORE.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder usedCoreCount(Integer usedCoreCount) {
this.usedCoreCount = usedCoreCount;
return this;
}
/**
* <p>The used quota of servers.</p>
* <blockquote>
* <p> This parameter takes effect only if AuthBindType is set to ASSET or ASSET_AND_CORE.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder usedEcsCount(Integer usedEcsCount) {
this.usedEcsCount = usedEcsCount;
return this;
}
/**
* <p>The edition of purchased Security Center. Valid values:</p>
* <ul>
* <li><strong>1</strong>: Basic edition</li>
* <li><strong>3</strong>: Enterprise edition</li>
* <li><strong>5</strong>: Advanced edition</li>
* <li><strong>6</strong>: Anti-virus edition</li>
* <li><strong>7</strong>: Ultimate edition</li>
* <li><strong>8</strong>: Multi-edition</li>
* <li><strong>10</strong>: Value-added Plan edition</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder version(Integer version) {
this.version = version;
return this;
}
public VersionSummary build() {
return new VersionSummary(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAuthVersionStatisticRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAuthVersionStatisticRequest} extends {@link RequestModel}
*
* <p>GetAuthVersionStatisticRequest</p>
*/
public class GetAuthVersionStatisticRequest extends Request {
private GetAuthVersionStatisticRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetAuthVersionStatisticRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetAuthVersionStatisticRequest, Builder> {
private Builder() {
super();
}
private Builder(GetAuthVersionStatisticRequest request) {
super(request);
}
@Override
public GetAuthVersionStatisticRequest build() {
return new GetAuthVersionStatisticRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAuthVersionStatisticResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAuthVersionStatisticResponse} extends {@link TeaModel}
*
* <p>GetAuthVersionStatisticResponse</p>
*/
public class GetAuthVersionStatisticResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAuthVersionStatisticResponseBody body;
private GetAuthVersionStatisticResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAuthVersionStatisticResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAuthVersionStatisticResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAuthVersionStatisticResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAuthVersionStatisticResponseBody body);
@Override
GetAuthVersionStatisticResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAuthVersionStatisticResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAuthVersionStatisticResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAuthVersionStatisticResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAuthVersionStatisticResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAuthVersionStatisticResponse build() {
return new GetAuthVersionStatisticResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetAuthVersionStatisticResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAuthVersionStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetAuthVersionStatisticResponseBody</p>
*/
public class GetAuthVersionStatisticResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Statistics")
private java.util.List<Statistics> statistics;
private GetAuthVersionStatisticResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.statistics = builder.statistics;
}
public static Builder builder() {
return new Builder();
}
public static GetAuthVersionStatisticResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return statistics
*/
public java.util.List<Statistics> getStatistics() {
return this.statistics;
}
public static final class Builder {
private String requestId;
private java.util.List<Statistics> statistics;
private Builder() {
}
private Builder(GetAuthVersionStatisticResponseBody model) {
this.requestId = model.requestId;
this.statistics = model.statistics;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2CA2BDF6-F3BD-51A4-BAAC-30B02F7A3FBB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The statistics about the numbers of assets protected by each edition of Security Center.</p>
*/
public Builder statistics(java.util.List<Statistics> statistics) {
this.statistics = statistics;
return this;
}
public GetAuthVersionStatisticResponseBody build() {
return new GetAuthVersionStatisticResponseBody(this);
}
}
/**
*
* {@link GetAuthVersionStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetAuthVersionStatisticResponseBody</p>
*/
public static class Statistics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AuthVersion")
private Integer authVersion;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
private Statistics(Builder builder) {
this.authVersion = builder.authVersion;
this.count = builder.count;
}
public static Builder builder() {
return new Builder();
}
public static Statistics create() {
return builder().build();
}
/**
* @return authVersion
*/
public Integer getAuthVersion() {
return this.authVersion;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
public static final class Builder {
private Integer authVersion;
private Integer count;
private Builder() {
}
private Builder(Statistics model) {
this.authVersion = model.authVersion;
this.count = model.count;
}
/**
* <p>The edition of Security Center. Valid values:</p>
* <ul>
* <li><strong>1</strong>: Basic edition (Unauthorized)</li>
* <li><strong>6</strong>: Anti-virus edition</li>
* <li><strong>5</strong>: Advanced edition</li>
* <li><strong>3</strong>: Enterprise edition</li>
* <li><strong>7</strong>: Ultimate edition</li>
* <li><strong>10</strong>: Value-added Plan edition</li>
* </ul>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder authVersion(Integer authVersion) {
this.authVersion = authVersion;
return this;
}
/**
* <p>The number of authorized servers.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
public Statistics build() {
return new Statistics(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBackupAutoConfigStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBackupAutoConfigStatusRequest} extends {@link RequestModel}
*
* <p>GetBackupAutoConfigStatusRequest</p>
*/
public class GetBackupAutoConfigStatusRequest extends Request {
private GetBackupAutoConfigStatusRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetBackupAutoConfigStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetBackupAutoConfigStatusRequest, Builder> {
private Builder() {
super();
}
private Builder(GetBackupAutoConfigStatusRequest request) {
super(request);
}
@Override
public GetBackupAutoConfigStatusRequest build() {
return new GetBackupAutoConfigStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBackupAutoConfigStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBackupAutoConfigStatusResponse} extends {@link TeaModel}
*
* <p>GetBackupAutoConfigStatusResponse</p>
*/
public class GetBackupAutoConfigStatusResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetBackupAutoConfigStatusResponseBody body;
private GetBackupAutoConfigStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetBackupAutoConfigStatusResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetBackupAutoConfigStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetBackupAutoConfigStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetBackupAutoConfigStatusResponseBody body);
@Override
GetBackupAutoConfigStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetBackupAutoConfigStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetBackupAutoConfigStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetBackupAutoConfigStatusResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetBackupAutoConfigStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public GetBackupAutoConfigStatusResponse build() {
return new GetBackupAutoConfigStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBackupAutoConfigStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBackupAutoConfigStatusResponseBody} extends {@link TeaModel}
*
* <p>GetBackupAutoConfigStatusResponseBody</p>
*/
public class GetBackupAutoConfigStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetBackupAutoConfigStatusResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetBackupAutoConfigStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetBackupAutoConfigStatusResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The response parameters.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>898F7AA7-CECD-5EC7-AF4D-664C601B****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetBackupAutoConfigStatusResponseBody build() {
return new GetBackupAutoConfigStatusResponseBody(this);
}
}
/**
*
* {@link GetBackupAutoConfigStatusResponseBody} extends {@link TeaModel}
*
* <p>GetBackupAutoConfigStatusResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CanConfigAuto")
private Boolean canConfigAuto;
private Data(Builder builder) {
this.canConfigAuto = builder.canConfigAuto;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return canConfigAuto
*/
public Boolean getCanConfigAuto() {
return this.canConfigAuto;
}
public static final class Builder {
private Boolean canConfigAuto;
private Builder() {
}
private Builder(Data model) {
this.canConfigAuto = model.canConfigAuto;
}
/**
* <p>Indicates whether the anti-ransomware policy for servers can be automatically configured by the managed anti-ransomware feature. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder canConfigAuto(Boolean canConfigAuto) {
this.canConfigAuto = canConfigAuto;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBackupStorageCountRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBackupStorageCountRequest} extends {@link RequestModel}
*
* <p>GetBackupStorageCountRequest</p>
*/
public class GetBackupStorageCountRequest extends Request {
private GetBackupStorageCountRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetBackupStorageCountRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetBackupStorageCountRequest, Builder> {
private Builder() {
super();
}
private Builder(GetBackupStorageCountRequest request) {
super(request);
}
@Override
public GetBackupStorageCountRequest build() {
return new GetBackupStorageCountRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBackupStorageCountResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBackupStorageCountResponse} extends {@link TeaModel}
*
* <p>GetBackupStorageCountResponse</p>
*/
public class GetBackupStorageCountResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetBackupStorageCountResponseBody body;
private GetBackupStorageCountResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetBackupStorageCountResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetBackupStorageCountResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetBackupStorageCountResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetBackupStorageCountResponseBody body);
@Override
GetBackupStorageCountResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetBackupStorageCountResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetBackupStorageCountResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetBackupStorageCountResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetBackupStorageCountResponseBody body) {
this.body = body;
return this;
}
@Override
public GetBackupStorageCountResponse build() {
return new GetBackupStorageCountResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBackupStorageCountResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBackupStorageCountResponseBody} extends {@link TeaModel}
*
* <p>GetBackupStorageCountResponseBody</p>
*/
public class GetBackupStorageCountResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupStorageCount")
private BackupStorageCount backupStorageCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetBackupStorageCountResponseBody(Builder builder) {
this.backupStorageCount = builder.backupStorageCount;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetBackupStorageCountResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupStorageCount
*/
public BackupStorageCount getBackupStorageCount() {
return this.backupStorageCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private BackupStorageCount backupStorageCount;
private String requestId;
private Builder() {
}
private Builder(GetBackupStorageCountResponseBody model) {
this.backupStorageCount = model.backupStorageCount;
this.requestId = model.requestId;
}
/**
* <p>The details about the anti-ransomware capacity.</p>
*/
public Builder backupStorageCount(BackupStorageCount backupStorageCount) {
this.backupStorageCount = backupStorageCount;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>33C2CCFF-4BF8-5F88-9B5C-22F932F80E5A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetBackupStorageCountResponseBody build() {
return new GetBackupStorageCountResponseBody(this);
}
}
/**
*
* {@link GetBackupStorageCountResponseBody} extends {@link TeaModel}
*
* <p>GetBackupStorageCountResponseBody</p>
*/
public static class BackupStorageCount extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BuyStorageByte")
private Long buyStorageByte;
@com.aliyun.core.annotation.NameInMap("EcsUsageStorageByte")
private Long ecsUsageStorageByte;
@com.aliyun.core.annotation.NameInMap("Overflow")
private Integer overflow;
@com.aliyun.core.annotation.NameInMap("UniUsageStorageByte")
private Long uniUsageStorageByte;
@com.aliyun.core.annotation.NameInMap("UsageStorageByte")
private Long usageStorageByte;
private BackupStorageCount(Builder builder) {
this.buyStorageByte = builder.buyStorageByte;
this.ecsUsageStorageByte = builder.ecsUsageStorageByte;
this.overflow = builder.overflow;
this.uniUsageStorageByte = builder.uniUsageStorageByte;
this.usageStorageByte = builder.usageStorageByte;
}
public static Builder builder() {
return new Builder();
}
public static BackupStorageCount create() {
return builder().build();
}
/**
* @return buyStorageByte
*/
public Long getBuyStorageByte() {
return this.buyStorageByte;
}
/**
* @return ecsUsageStorageByte
*/
public Long getEcsUsageStorageByte() {
return this.ecsUsageStorageByte;
}
/**
* @return overflow
*/
public Integer getOverflow() {
return this.overflow;
}
/**
* @return uniUsageStorageByte
*/
public Long getUniUsageStorageByte() {
return this.uniUsageStorageByte;
}
/**
* @return usageStorageByte
*/
public Long getUsageStorageByte() {
return this.usageStorageByte;
}
public static final class Builder {
private Long buyStorageByte;
private Long ecsUsageStorageByte;
private Integer overflow;
private Long uniUsageStorageByte;
private Long usageStorageByte;
private Builder() {
}
private Builder(BackupStorageCount model) {
this.buyStorageByte = model.buyStorageByte;
this.ecsUsageStorageByte = model.ecsUsageStorageByte;
this.overflow = model.overflow;
this.uniUsageStorageByte = model.uniUsageStorageByte;
this.usageStorageByte = model.usageStorageByte;
}
/**
* <p>The anti-ransomware capacity that you purchased. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>2276332666880</p>
*/
public Builder buyStorageByte(Long buyStorageByte) {
this.buyStorageByte = buyStorageByte;
return this;
}
/**
* <p>The storage capacity that is occupied by the backup data of your servers. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>817262417803</p>
*/
public Builder ecsUsageStorageByte(Long ecsUsageStorageByte) {
this.ecsUsageStorageByte = ecsUsageStorageByte;
return this;
}
/**
* <p>Indicates whether the anti-ransomware capacity that is used exceeds the anti-ransomware capacity that you purchased. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder overflow(Integer overflow) {
this.overflow = overflow;
return this;
}
/**
* <p>The storage capacity that is occupied by the backup data of your databases. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>7453049350</p>
*/
public Builder uniUsageStorageByte(Long uniUsageStorageByte) {
this.uniUsageStorageByte = uniUsageStorageByte;
return this;
}
/**
* <p>The total anti-ransomware capacity that is used. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>839621565853</p>
*/
public Builder usageStorageByte(Long usageStorageByte) {
this.usageStorageByte = usageStorageByte;
return this;
}
public BackupStorageCount build() {
return new BackupStorageCount(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBuildRiskDefineRuleConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBuildRiskDefineRuleConfigRequest} extends {@link RequestModel}
*
* <p>GetBuildRiskDefineRuleConfigRequest</p>
*/
public class GetBuildRiskDefineRuleConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private GetBuildRiskDefineRuleConfigRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static GetBuildRiskDefineRuleConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<GetBuildRiskDefineRuleConfigRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(GetBuildRiskDefineRuleConfigRequest request) {
super(request);
this.lang = request.lang;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese.</li>
* <li><strong>en</strong>: English.</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public GetBuildRiskDefineRuleConfigRequest build() {
return new GetBuildRiskDefineRuleConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBuildRiskDefineRuleConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBuildRiskDefineRuleConfigResponse} extends {@link TeaModel}
*
* <p>GetBuildRiskDefineRuleConfigResponse</p>
*/
public class GetBuildRiskDefineRuleConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetBuildRiskDefineRuleConfigResponseBody body;
private GetBuildRiskDefineRuleConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetBuildRiskDefineRuleConfigResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetBuildRiskDefineRuleConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetBuildRiskDefineRuleConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetBuildRiskDefineRuleConfigResponseBody body);
@Override
GetBuildRiskDefineRuleConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetBuildRiskDefineRuleConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetBuildRiskDefineRuleConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetBuildRiskDefineRuleConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetBuildRiskDefineRuleConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public GetBuildRiskDefineRuleConfigResponse build() {
return new GetBuildRiskDefineRuleConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetBuildRiskDefineRuleConfigResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetBuildRiskDefineRuleConfigResponseBody} extends {@link TeaModel}
*
* <p>GetBuildRiskDefineRuleConfigResponseBody</p>
*/
public class GetBuildRiskDefineRuleConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetBuildRiskDefineRuleConfigResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetBuildRiskDefineRuleConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetBuildRiskDefineRuleConfigResponseBody model) {
this.code = model.code;
this.data = model.data;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The response code. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>69BFFCDE-37D6-5A49-A8BC-BB03AC83****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetBuildRiskDefineRuleConfigResponseBody build() {
return new GetBuildRiskDefineRuleConfigResponseBody(this);
}
}
/**
*
* {@link GetBuildRiskDefineRuleConfigResponseBody} extends {@link TeaModel}
*
* <p>GetBuildRiskDefineRuleConfigResponseBody</p>
*/
public static class RuleList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RuleKey")
private String ruleKey;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Selected")
private Boolean selected;
private RuleList(Builder builder) {
this.ruleKey = builder.ruleKey;
this.ruleName = builder.ruleName;
this.selected = builder.selected;
}
public static Builder builder() {
return new Builder();
}
public static RuleList create() {
return builder().build();
}
/**
* @return ruleKey
*/
public String getRuleKey() {
return this.ruleKey;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return selected
*/
public Boolean getSelected() {
return this.selected;
}
public static final class Builder {
private String ruleKey;
private String ruleName;
private Boolean selected;
private Builder() {
}
private Builder(RuleList model) {
this.ruleKey = model.ruleKey;
this.ruleName = model.ruleName;
this.selected = model.selected;
}
/**
* <p>The check item.</p>
*
* <strong>example:</strong>
* <p>add</p>
*/
public Builder ruleKey(String ruleKey) {
this.ruleKey = ruleKey;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>used ADD</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>Indicates whether the check item is selected. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder selected(Boolean selected) {
this.selected = selected;
return this;
}
public RuleList build() {
return new RuleList(this);
}
}
}
/**
*
* {@link GetBuildRiskDefineRuleConfigResponseBody} extends {@link TeaModel}
*
* <p>GetBuildRiskDefineRuleConfigResponseBody</p>
*/
public static class RuleTree extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClassKey")
private String classKey;
@com.aliyun.core.annotation.NameInMap("ClassName")
private String className;
@com.aliyun.core.annotation.NameInMap("RuleList")
private java.util.List<RuleList> ruleList;
private RuleTree(Builder builder) {
this.classKey = builder.classKey;
this.className = builder.className;
this.ruleList = builder.ruleList;
}
public static Builder builder() {
return new Builder();
}
public static RuleTree create() {
return builder().build();
}
/**
* @return classKey
*/
public String getClassKey() {
return this.classKey;
}
/**
* @return className
*/
public String getClassName() {
return this.className;
}
/**
* @return ruleList
*/
public java.util.List<RuleList> getRuleList() {
return this.ruleList;
}
public static final class Builder {
private String classKey;
private String className;
private java.util.List<RuleList> ruleList;
private Builder() {
}
private Builder(RuleTree model) {
this.classKey = model.classKey;
this.className = model.className;
this.ruleList = model.ruleList;
}
/**
* <p>The check item type.</p>
*
* <strong>example:</strong>
* <p>other</p>
*/
public Builder classKey(String classKey) {
this.classKey = classKey;
return this;
}
/**
* <p>The name of the check item type.</p>
*
* <strong>example:</strong>
* <p>other</p>
*/
public Builder className(String className) {
this.className = className;
return this;
}
/**
* <p>The check items of the type.</p>
*/
public Builder ruleList(java.util.List<RuleList> ruleList) {
this.ruleList = ruleList;
return this;
}
public RuleTree build() {
return new RuleTree(this);
}
}
}
/**
*
* {@link GetBuildRiskDefineRuleConfigResponseBody} extends {@link TeaModel}
*
* <p>GetBuildRiskDefineRuleConfigResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("RuleCount")
private Integer ruleCount;
@com.aliyun.core.annotation.NameInMap("RuleTree")
private java.util.List<RuleTree> ruleTree;
@com.aliyun.core.annotation.NameInMap("SelectedCount")
private Integer selectedCount;
private Data(Builder builder) {
this.id = builder.id;
this.ruleCount = builder.ruleCount;
this.ruleTree = builder.ruleTree;
this.selectedCount = builder.selectedCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return ruleCount
*/
public Integer getRuleCount() {
return this.ruleCount;
}
/**
* @return ruleTree
*/
public java.util.List<RuleTree> getRuleTree() {
return this.ruleTree;
}
/**
* @return selectedCount
*/
public Integer getSelectedCount() {
return this.selectedCount;
}
public static final class Builder {
private Long id;
private Integer ruleCount;
private java.util.List<RuleTree> ruleTree;
private Integer selectedCount;
private Builder() {
}
private Builder(Data model) {
this.id = model.id;
this.ruleCount = model.ruleCount;
this.ruleTree = model.ruleTree;
this.selectedCount = model.selectedCount;
}
/**
* <p>The configuration ID for scanning image build command risks.</p>
*
* <strong>example:</strong>
* <p>273698***</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The total number of check items.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder ruleCount(Integer ruleCount) {
this.ruleCount = ruleCount;
return this;
}
/**
* <p>The details of all check items.</p>
*/
public Builder ruleTree(java.util.List<RuleTree> ruleTree) {
this.ruleTree = ruleTree;
return this;
}
/**
* <p>The number of selected check items.</p>
*
* <strong>example:</strong>
* <p>99</p>
*/
public Builder selectedCount(Integer selectedCount) {
this.selectedCount = selectedCount;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCanTrySasRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCanTrySasRequest} extends {@link RequestModel}
*
* <p>GetCanTrySasRequest</p>
*/
public class GetCanTrySasRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("FromEcs")
private Boolean fromEcs;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private GetCanTrySasRequest(Builder builder) {
super(builder);
this.fromEcs = builder.fromEcs;
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static GetCanTrySasRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return fromEcs
*/
public Boolean getFromEcs() {
return this.fromEcs;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<GetCanTrySasRequest, Builder> {
private Boolean fromEcs;
private String lang;
private Builder() {
super();
}
private Builder(GetCanTrySasRequest request) {
super(request);
this.fromEcs = request.fromEcs;
this.lang = request.lang;
}
/**
* <p>Specifies whether the request is redirected from the Elastic Compute Service (ECS) console. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder fromEcs(Boolean fromEcs) {
this.putBodyParameter("FromEcs", fromEcs);
this.fromEcs = fromEcs;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putBodyParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public GetCanTrySasRequest build() {
return new GetCanTrySasRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCanTrySasResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCanTrySasResponse} extends {@link TeaModel}
*
* <p>GetCanTrySasResponse</p>
*/
public class GetCanTrySasResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCanTrySasResponseBody body;
private GetCanTrySasResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCanTrySasResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCanTrySasResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCanTrySasResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCanTrySasResponseBody body);
@Override
GetCanTrySasResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCanTrySasResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCanTrySasResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCanTrySasResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCanTrySasResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCanTrySasResponse build() {
return new GetCanTrySasResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCanTrySasResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCanTrySasResponseBody} extends {@link TeaModel}
*
* <p>GetCanTrySasResponseBody</p>
*/
public class GetCanTrySasResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCanTrySasResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCanTrySasResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetCanTrySasResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>8BAA57***B7073A5C1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCanTrySasResponseBody build() {
return new GetCanTrySasResponseBody(this);
}
}
/**
*
* {@link GetCanTrySasResponseBody} extends {@link TeaModel}
*
* <p>GetCanTrySasResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CanTry")
private Integer canTry;
@com.aliyun.core.annotation.NameInMap("CanTryVersions")
private java.util.List<Integer> canTryVersions;
@com.aliyun.core.annotation.NameInMap("TryType")
private Integer tryType;
private Data(Builder builder) {
this.canTry = builder.canTry;
this.canTryVersions = builder.canTryVersions;
this.tryType = builder.tryType;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return canTry
*/
public Integer getCanTry() {
return this.canTry;
}
/**
* @return canTryVersions
*/
public java.util.List<Integer> getCanTryVersions() {
return this.canTryVersions;
}
/**
* @return tryType
*/
public Integer getTryType() {
return this.tryType;
}
public static final class Builder {
private Integer canTry;
private java.util.List<Integer> canTryVersions;
private Integer tryType;
private Builder() {
}
private Builder(Data model) {
this.canTry = model.canTry;
this.canTryVersions = model.canTryVersions;
this.tryType = model.tryType;
}
/**
* <p>Indicates whether the user is qualified for the trial use. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder canTry(Integer canTry) {
this.canTry = canTry;
return this;
}
/**
* <p>The editions that are allowed for the trial use.</p>
*/
public Builder canTryVersions(java.util.List<Integer> canTryVersions) {
this.canTryVersions = canTryVersions;
return this;
}
/**
* <p>The trial type. Valid values:</p>
* <ul>
* <li><strong>0</strong>: trial prohibited</li>
* <li><strong>1</strong>: first trial</li>
* <li><strong>2</strong>: second trial</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder tryType(Integer tryType) {
this.tryType = tryType;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckConfigRequest} extends {@link RequestModel}
*
* <p>GetCheckConfigRequest</p>
*/
public class GetCheckConfigRequest extends Request {
private GetCheckConfigRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetCheckConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetCheckConfigRequest, Builder> {
private Builder() {
super();
}
private Builder(GetCheckConfigRequest request) {
super(request);
}
@Override
public GetCheckConfigRequest build() {
return new GetCheckConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckConfigResponse} extends {@link TeaModel}
*
* <p>GetCheckConfigResponse</p>
*/
public class GetCheckConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckConfigResponseBody body;
private GetCheckConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckConfigResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckConfigResponseBody body);
@Override
GetCheckConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckConfigResponse build() {
return new GetCheckConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckConfigResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckConfigResponseBody} extends {@link TeaModel}
*
* <p>GetCheckConfigResponseBody</p>
*/
public class GetCheckConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CycleDays")
private java.util.List<Integer> cycleDays;
@com.aliyun.core.annotation.NameInMap("EnableAddCheck")
private Boolean enableAddCheck;
@com.aliyun.core.annotation.NameInMap("EnableAutoCheck")
private Boolean enableAutoCheck;
@com.aliyun.core.annotation.NameInMap("EndTime")
private Integer endTime;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SelectedChecks")
private java.util.List<SelectedChecks> selectedChecks;
@com.aliyun.core.annotation.NameInMap("Standards")
private java.util.List<Standards> standards;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Integer startTime;
private GetCheckConfigResponseBody(Builder builder) {
this.cycleDays = builder.cycleDays;
this.enableAddCheck = builder.enableAddCheck;
this.enableAutoCheck = builder.enableAutoCheck;
this.endTime = builder.endTime;
this.requestId = builder.requestId;
this.selectedChecks = builder.selectedChecks;
this.standards = builder.standards;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cycleDays
*/
public java.util.List<Integer> getCycleDays() {
return this.cycleDays;
}
/**
* @return enableAddCheck
*/
public Boolean getEnableAddCheck() {
return this.enableAddCheck;
}
/**
* @return enableAutoCheck
*/
public Boolean getEnableAutoCheck() {
return this.enableAutoCheck;
}
/**
* @return endTime
*/
public Integer getEndTime() {
return this.endTime;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return selectedChecks
*/
public java.util.List<SelectedChecks> getSelectedChecks() {
return this.selectedChecks;
}
/**
* @return standards
*/
public java.util.List<Standards> getStandards() {
return this.standards;
}
/**
* @return startTime
*/
public Integer getStartTime() {
return this.startTime;
}
public static final class Builder {
private java.util.List<Integer> cycleDays;
private Boolean enableAddCheck;
private Boolean enableAutoCheck;
private Integer endTime;
private String requestId;
private java.util.List<SelectedChecks> selectedChecks;
private java.util.List<Standards> standards;
private Integer startTime;
private Builder() {
}
private Builder(GetCheckConfigResponseBody model) {
this.cycleDays = model.cycleDays;
this.enableAddCheck = model.enableAddCheck;
this.enableAutoCheck = model.enableAutoCheck;
this.endTime = model.endTime;
this.requestId = model.requestId;
this.selectedChecks = model.selectedChecks;
this.standards = model.standards;
this.startTime = model.startTime;
}
/**
* <p>The days in a week on which an automatic check is performed.</p>
*/
public Builder cycleDays(java.util.List<Integer> cycleDays) {
this.cycleDays = cycleDays;
return this;
}
/**
* <p>Indicates whether the check for new check items in the selected requirement item is enabled by default. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableAddCheck(Boolean enableAddCheck) {
this.enableAddCheck = enableAddCheck;
return this;
}
/**
* <p>Indicates whether the automatic check is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableAutoCheck(Boolean enableAutoCheck) {
this.enableAutoCheck = enableAutoCheck;
return this;
}
/**
* <p>The end time of the check. The value indicates a point in time. The time period that is specified by the start time and end time must be one of the following time periods:</p>
* <ul>
* <li><strong>00:00 to 06:00</strong>: If StartTime is set to 00:00, EndTime must be set to 06:00.</li>
* <li><strong>06:00 to 12:00</strong>: If StartTime is set to 06:00, EndTime must be set to 12:00.</li>
* <li><strong>12:00 to 18:00</strong>: If StartTime is set to 12:00, EndTime must be set to 18:00.</li>
* <li><strong>18:00 to 24:00</strong>: If StartTime is set to 18:00, EndTime must be set to 24:00.</li>
* </ul>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder endTime(Integer endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>5A3D5C8F-2A42-5477-BDD8-27E64B5F1739</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The check items selected in the policy.</p>
*/
public Builder selectedChecks(java.util.List<SelectedChecks> selectedChecks) {
this.selectedChecks = selectedChecks;
return this;
}
/**
* <p>The information about the check items.</p>
*/
public Builder standards(java.util.List<Standards> standards) {
this.standards = standards;
return this;
}
/**
* <p>The start time of the check. The value indicates a point in time.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder startTime(Integer startTime) {
this.startTime = startTime;
return this;
}
public GetCheckConfigResponseBody build() {
return new GetCheckConfigResponseBody(this);
}
}
/**
*
* {@link GetCheckConfigResponseBody} extends {@link TeaModel}
*
* <p>GetCheckConfigResponseBody</p>
*/
public static class SelectedChecks extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("SectionId")
private Long sectionId;
private SelectedChecks(Builder builder) {
this.checkId = builder.checkId;
this.sectionId = builder.sectionId;
}
public static Builder builder() {
return new Builder();
}
public static SelectedChecks create() {
return builder().build();
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return sectionId
*/
public Long getSectionId() {
return this.sectionId;
}
public static final class Builder {
private Long checkId;
private Long sectionId;
private Builder() {
}
private Builder(SelectedChecks model) {
this.checkId = model.checkId;
this.sectionId = model.sectionId;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The section ID of the check item.</p>
*
* <strong>example:</strong>
* <p>69</p>
*/
public Builder sectionId(Long sectionId) {
this.sectionId = sectionId;
return this;
}
public SelectedChecks build() {
return new SelectedChecks(this);
}
}
}
/**
*
* {@link GetCheckConfigResponseBody} extends {@link TeaModel}
*
* <p>GetCheckConfigResponseBody</p>
*/
public static class Standards extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private Standards(Builder builder) {
this.id = builder.id;
this.showName = builder.showName;
this.status = builder.status;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Standards create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Long id;
private String showName;
private String status;
private String type;
private Builder() {
}
private Builder(Standards model) {
this.id = model.id;
this.showName = model.showName;
this.status = model.status;
this.type = model.type;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>Cloud service configuration management</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The status of the check item. Valid values:</p>
* <ul>
* <li><strong>ON</strong>: The check item is enabled.</li>
* <li><strong>OFF</strong>: The check item is disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ON</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The type of the check item. Valid values:</p>
* <ul>
* <li><strong>RISK</strong>: cloud service configuration management</li>
* <li><strong>IDENTITY_PERMISSION</strong>: identity and permission management</li>
* <li><strong>COMPLIANCE</strong>: compliance</li>
* </ul>
*
* <strong>example:</strong>
* <p>RISK</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Standards build() {
return new Standards(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckCountStatisticRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckCountStatisticRequest} extends {@link RequestModel}
*
* <p>GetCheckCountStatisticRequest</p>
*/
public class GetCheckCountStatisticRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatisticType")
private String statisticType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskSources")
private java.util.List<String> taskSources;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Vendors")
private java.util.List<String> vendors;
private GetCheckCountStatisticRequest(Builder builder) {
super(builder);
this.statisticType = builder.statisticType;
this.taskSources = builder.taskSources;
this.vendors = builder.vendors;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckCountStatisticRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return statisticType
*/
public String getStatisticType() {
return this.statisticType;
}
/**
* @return taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
/**
* @return vendors
*/
public java.util.List<String> getVendors() {
return this.vendors;
}
public static final class Builder extends Request.Builder<GetCheckCountStatisticRequest, Builder> {
private String statisticType;
private java.util.List<String> taskSources;
private java.util.List<String> vendors;
private Builder() {
super();
}
private Builder(GetCheckCountStatisticRequest request) {
super(request);
this.statisticType = request.statisticType;
this.taskSources = request.taskSources;
this.vendors = request.vendors;
}
/**
* <p>The type of the statistics. Valid values:</p>
* <ul>
* <li><strong>user</strong>: the top five users that are granted excessive permissions.</li>
* <li><strong>role</strong>: the top five roles that are granted excessive permissions.</li>
* <li><strong>instance</strong>: the top five cloud services on which risks are detected.</li>
* <li><strong>host</strong>: the top five servers on which baseline risks are detected.</li>
* </ul>
*
* <strong>example:</strong>
* <p>instance</p>
*/
public Builder statisticType(String statisticType) {
this.putQueryParameter("StatisticType", statisticType);
this.statisticType = statisticType;
return this;
}
/**
* TaskSources.
*/
public Builder taskSources(java.util.List<String> taskSources) {
this.putQueryParameter("TaskSources", taskSources);
this.taskSources = taskSources;
return this;
}
/**
* <p>The cloud service providers.</p>
*/
public Builder vendors(java.util.List<String> vendors) {
this.putQueryParameter("Vendors", vendors);
this.vendors = vendors;
return this;
}
@Override
public GetCheckCountStatisticRequest build() {
return new GetCheckCountStatisticRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckCountStatisticResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckCountStatisticResponse} extends {@link TeaModel}
*
* <p>GetCheckCountStatisticResponse</p>
*/
public class GetCheckCountStatisticResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckCountStatisticResponseBody body;
private GetCheckCountStatisticResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckCountStatisticResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckCountStatisticResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckCountStatisticResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckCountStatisticResponseBody body);
@Override
GetCheckCountStatisticResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckCountStatisticResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckCountStatisticResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckCountStatisticResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckCountStatisticResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckCountStatisticResponse build() {
return new GetCheckCountStatisticResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckCountStatisticResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckCountStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetCheckCountStatisticResponseBody</p>
*/
public class GetCheckCountStatisticResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckCountStatisticDTO")
private CheckCountStatisticDTO checkCountStatisticDTO;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCheckCountStatisticResponseBody(Builder builder) {
this.checkCountStatisticDTO = builder.checkCountStatisticDTO;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckCountStatisticResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkCountStatisticDTO
*/
public CheckCountStatisticDTO getCheckCountStatisticDTO() {
return this.checkCountStatisticDTO;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private CheckCountStatisticDTO checkCountStatisticDTO;
private String requestId;
private Builder() {
}
private Builder(GetCheckCountStatisticResponseBody model) {
this.checkCountStatisticDTO = model.checkCountStatisticDTO;
this.requestId = model.requestId;
}
/**
* <p>The risk item statistics.</p>
*/
public Builder checkCountStatisticDTO(CheckCountStatisticDTO checkCountStatisticDTO) {
this.checkCountStatisticDTO = checkCountStatisticDTO;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>20456DD5-5CBF-5015-9173-12CA4246B***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCheckCountStatisticResponseBody build() {
return new GetCheckCountStatisticResponseBody(this);
}
}
/**
*
* {@link GetCheckCountStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetCheckCountStatisticResponseBody</p>
*/
public static class CheckCountStatisticItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cores")
private Integer cores;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InstanceSubType")
private Integer instanceSubType;
@com.aliyun.core.annotation.NameInMap("InstanceSubTypeName")
private String instanceSubTypeName;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private Integer instanceType;
@com.aliyun.core.annotation.NameInMap("InstanceTypeName")
private String instanceTypeName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("Os")
private String os;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RiskCount")
private Integer riskCount;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
@com.aliyun.core.annotation.NameInMap("VpcInstanceId")
private String vpcInstanceId;
private CheckCountStatisticItems(Builder builder) {
this.cores = builder.cores;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.instanceSubType = builder.instanceSubType;
this.instanceSubTypeName = builder.instanceSubTypeName;
this.instanceType = builder.instanceType;
this.instanceTypeName = builder.instanceTypeName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.os = builder.os;
this.regionId = builder.regionId;
this.riskCount = builder.riskCount;
this.uuid = builder.uuid;
this.vendor = builder.vendor;
this.vpcInstanceId = builder.vpcInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static CheckCountStatisticItems create() {
return builder().build();
}
/**
* @return cores
*/
public Integer getCores() {
return this.cores;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return instanceSubType
*/
public Integer getInstanceSubType() {
return this.instanceSubType;
}
/**
* @return instanceSubTypeName
*/
public String getInstanceSubTypeName() {
return this.instanceSubTypeName;
}
/**
* @return instanceType
*/
public Integer getInstanceType() {
return this.instanceType;
}
/**
* @return instanceTypeName
*/
public String getInstanceTypeName() {
return this.instanceTypeName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return os
*/
public String getOs() {
return this.os;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return riskCount
*/
public Integer getRiskCount() {
return this.riskCount;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
/**
* @return vpcInstanceId
*/
public String getVpcInstanceId() {
return this.vpcInstanceId;
}
public static final class Builder {
private Integer cores;
private String instanceId;
private String instanceName;
private Integer instanceSubType;
private String instanceSubTypeName;
private Integer instanceType;
private String instanceTypeName;
private String internetIp;
private String intranetIp;
private String os;
private String regionId;
private Integer riskCount;
private String uuid;
private Integer vendor;
private String vpcInstanceId;
private Builder() {
}
private Builder(CheckCountStatisticItems model) {
this.cores = model.cores;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.instanceSubType = model.instanceSubType;
this.instanceSubTypeName = model.instanceSubTypeName;
this.instanceType = model.instanceType;
this.instanceTypeName = model.instanceTypeName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.os = model.os;
this.regionId = model.regionId;
this.riskCount = model.riskCount;
this.uuid = model.uuid;
this.vendor = model.vendor;
this.vpcInstanceId = model.vpcInstanceId;
}
/**
* <p>The number of the CPU cores used by the host instance.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder cores(Integer cores) {
this.cores = cores;
return this;
}
/**
* <p>The instance ID of the cloud service.</p>
*
* <strong>example:</strong>
* <p>i-wz9bpxyu6t74qn9g****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The instance name of the asset.</p>
*
* <strong>example:</strong>
* <p>launch-advisor-2021****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The subtype of the cloud service.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder instanceSubType(Integer instanceSubType) {
this.instanceSubType = instanceSubType;
return this;
}
/**
* <p>The asset subtype of the cloud service. Valid values:</p>
* <ul>
* <li><p>If <strong>InstanceTypeName</strong> is set to <strong>ECS</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* <li><strong>DISK</strong></li>
* <li><strong>SECURITY_GROUP</strong></li>
* </ul>
* </li>
* <li><p>If <strong>InstanceTypeName</strong> is set to <strong>ACR</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>REPOSITORY_ENTERPRISE</strong></li>
* <li><strong>REPOSITORY_PERSON</strong></li>
* </ul>
* </li>
* <li><p>If <strong>InstanceTypeName</strong> is set to <strong>RAM</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>ALIAS</strong></li>
* <li><strong>USER</strong></li>
* <li><strong>POLICY</strong></li>
* <li><strong>GROUP</strong></li>
* </ul>
* </li>
* <li><p>If <strong>InstanceTypeName</strong> is set to <strong>WAF</strong>, this parameter supports the following valid value:</p>
* <ul>
* <li><strong>DOMAIN</strong></li>
* </ul>
* </li>
* <li><p>If <strong>InstanceTypeName</strong> is set to other values, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>INSTANCE</p>
*/
public Builder instanceSubTypeName(String instanceSubTypeName) {
this.instanceSubTypeName = instanceSubTypeName;
return this;
}
/**
* <p>The asset type. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Elastic Compute Service (ECS) instance.</li>
* <li><strong>1</strong>: Server Load Balancer (SLB) instance.</li>
* <li><strong>2</strong>: NAT gateway.</li>
* <li><strong>3</strong>: ApsaraDB RDS instance.</li>
* <li><strong>4</strong>: ApsaraDB for MongoDB (MongoDB) instance.</li>
* <li><strong>5</strong>: Tair (Redis OSS-compatible) (Tair) instance.</li>
* <li><strong>6</strong>: container image.</li>
* <li><strong>7</strong>: container.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder instanceType(Integer instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>The asset type of the cloud service. Valid values:</p>
* <ul>
* <li><strong>ECS</strong>: ECS.</li>
* <li><strong>SLB</strong>: SLB.</li>
* <li><strong>RDS</strong>: ApsaraDB RDS.</li>
* <li><strong>MONGODB</strong>: ApsaraDB for MongoDB.</li>
* <li><strong>KVSTORE</strong>: Tair.</li>
* <li><strong>ACR</strong>: Container Registry.</li>
* <li><strong>CSK</strong>: Container Service for Kubernetes (ACK).</li>
* <li><strong>VPC</strong>: Virtual Private Cloud (VPC).</li>
* <li><strong>ACTIONTRAIL</strong>: ActionTrail.</li>
* <li><strong>CDN</strong>: Alibaba Cloud CDN (CDN).</li>
* <li><strong>CAS</strong>: Certificate Management Service (formerly SSL Certificates Service).</li>
* <li><strong>RDC</strong>: Alibaba Cloud DevOps.</li>
* <li><strong>RAM</strong>: Resource Access Management (RAM).</li>
* <li><strong>DDOS</strong>: Anti-DDoS.</li>
* <li><strong>WAF</strong>: Web Application Firewall (WAF).</li>
* <li><strong>OSS</strong>: Object Storage Service (OSS).</li>
* <li><strong>POLARDB</strong>: PolarDB.</li>
* <li><strong>POSTGRESQL</strong>: ApsaraDB RDS for PostgreSQL.</li>
* <li><strong>MSE</strong>: Microservices Engine (MSE).</li>
* <li><strong>NAS</strong>: File Storage NAS (NAS).</li>
* <li><strong>SDDP</strong>: Sensitive Data Discovery and Protection (SDDP).</li>
* <li><strong>EIP</strong>: Elastic IP Address (EIP).</li>
* </ul>
*
* <strong>example:</strong>
* <p>ECS</p>
*/
public Builder instanceTypeName(String instanceTypeName) {
this.instanceTypeName = instanceTypeName;
return this;
}
/**
* <p>The public IP address of the host instance.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the host instance.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The version of the operating system that the host instance runs.</p>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder os(String os) {
this.os = os;
return this;
}
/**
* <p>The region.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The number of risk items.</p>
*
* <strong>example:</strong>
* <p>22</p>
*/
public Builder riskCount(Integer riskCount) {
this.riskCount = riskCount;
return this;
}
/**
* <p>The UUID of the host instance.</p>
*
* <strong>example:</strong>
* <p>c9107c04-942f-40c1-981a-f1c1****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The cloud service provider. Valid values:</p>
* <ul>
* <li><strong>ALIYUN</strong>: Alibaba Cloud.</li>
* <li><strong>TENCENT</strong>: Tencent Cloud.</li>
* <li><strong>MICROSOFT</strong>: Microsoft Azure.</li>
* <li><strong>AWS</strong>: AWS.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ALIYUN</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
/**
* <p>The ID of the VPC to which the host instance belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-uf60agqq65bs98zoo****</p>
*/
public Builder vpcInstanceId(String vpcInstanceId) {
this.vpcInstanceId = vpcInstanceId;
return this;
}
public CheckCountStatisticItems build() {
return new CheckCountStatisticItems(this);
}
}
}
/**
*
* {@link GetCheckCountStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetCheckCountStatisticResponseBody</p>
*/
public static class CheckCountStatisticDTO extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckCountStatisticItems")
private java.util.List<CheckCountStatisticItems> checkCountStatisticItems;
@com.aliyun.core.annotation.NameInMap("StatisticType")
private String statisticType;
private CheckCountStatisticDTO(Builder builder) {
this.checkCountStatisticItems = builder.checkCountStatisticItems;
this.statisticType = builder.statisticType;
}
public static Builder builder() {
return new Builder();
}
public static CheckCountStatisticDTO create() {
return builder().build();
}
/**
* @return checkCountStatisticItems
*/
public java.util.List<CheckCountStatisticItems> getCheckCountStatisticItems() {
return this.checkCountStatisticItems;
}
/**
* @return statisticType
*/
public String getStatisticType() {
return this.statisticType;
}
public static final class Builder {
private java.util.List<CheckCountStatisticItems> checkCountStatisticItems;
private String statisticType;
private Builder() {
}
private Builder(CheckCountStatisticDTO model) {
this.checkCountStatisticItems = model.checkCountStatisticItems;
this.statisticType = model.statisticType;
}
/**
* <p>The risk item statistics.</p>
*/
public Builder checkCountStatisticItems(java.util.List<CheckCountStatisticItems> checkCountStatisticItems) {
this.checkCountStatisticItems = checkCountStatisticItems;
return this;
}
/**
* <p>The type of the statistics. Valid values:</p>
* <ul>
* <li><strong>user</strong>: the top five users that are granted excessive permissions.</li>
* <li><strong>role</strong>: the top five roles that are granted excessive permissions.</li>
* <li><strong>instance</strong>: the top five cloud services on which risks are detected.</li>
* </ul>
*
* <strong>example:</strong>
* <p>instance</p>
*/
public Builder statisticType(String statisticType) {
this.statisticType = statisticType;
return this;
}
public CheckCountStatisticDTO build() {
return new CheckCountStatisticDTO(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckDetailRequest} extends {@link RequestModel}
*
* <p>GetCheckDetailRequest</p>
*/
public class GetCheckDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckId")
@com.aliyun.core.annotation.Validation(required = true)
private Long checkId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private GetCheckDetailRequest(Builder builder) {
super(builder);
this.checkId = builder.checkId;
this.lang = builder.lang;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<GetCheckDetailRequest, Builder> {
private Long checkId;
private String lang;
private String regionId;
private Builder() {
super();
}
private Builder(GetCheckDetailRequest request) {
super(request);
this.checkId = request.checkId;
this.lang = request.lang;
this.regionId = request.regionId;
}
/**
* <p>The ID of the check item.</p>
* <blockquote>
* <p> You can call the <a href="~~ListCheckResult~~">ListCheckResult</a> operation to query the IDs of check items.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder checkId(Long checkId) {
this.putQueryParameter("CheckId", checkId);
this.checkId = checkId;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese.</li>
* <li><strong>en</strong>: English.</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The region ID of the instance.</p>
* <blockquote>
* <p> You can call the <a href="~~ListCloudAssetInstances~~">ListCloudAssetInstances</a> operation to query the region ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public GetCheckDetailRequest build() {
return new GetCheckDetailRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckDetailResponse} extends {@link TeaModel}
*
* <p>GetCheckDetailResponse</p>
*/
public class GetCheckDetailResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckDetailResponseBody body;
private GetCheckDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckDetailResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckDetailResponseBody body);
@Override
GetCheckDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckDetailResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckDetailResponse build() {
return new GetCheckDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCheckDetailResponseBody</p>
*/
public class GetCheckDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssistInfo")
private AssistInfo assistInfo;
@com.aliyun.core.annotation.NameInMap("CustomConfigs")
private java.util.List<CustomConfigs> customConfigs;
@com.aliyun.core.annotation.NameInMap("Description")
private Description description;
@com.aliyun.core.annotation.NameInMap("RepairReset")
@Deprecated
private String repairReset;
@com.aliyun.core.annotation.NameInMap("RepairSetting")
private RepairSetting repairSetting;
@com.aliyun.core.annotation.NameInMap("RepairSupportType")
@Deprecated
private Integer repairSupportType;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Solution")
private Solution solution;
private GetCheckDetailResponseBody(Builder builder) {
this.assistInfo = builder.assistInfo;
this.customConfigs = builder.customConfigs;
this.description = builder.description;
this.repairReset = builder.repairReset;
this.repairSetting = builder.repairSetting;
this.repairSupportType = builder.repairSupportType;
this.requestId = builder.requestId;
this.solution = builder.solution;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assistInfo
*/
public AssistInfo getAssistInfo() {
return this.assistInfo;
}
/**
* @return customConfigs
*/
public java.util.List<CustomConfigs> getCustomConfigs() {
return this.customConfigs;
}
/**
* @return description
*/
public Description getDescription() {
return this.description;
}
/**
* @return repairReset
*/
public String getRepairReset() {
return this.repairReset;
}
/**
* @return repairSetting
*/
public RepairSetting getRepairSetting() {
return this.repairSetting;
}
/**
* @return repairSupportType
*/
public Integer getRepairSupportType() {
return this.repairSupportType;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return solution
*/
public Solution getSolution() {
return this.solution;
}
public static final class Builder {
private AssistInfo assistInfo;
private java.util.List<CustomConfigs> customConfigs;
private Description description;
private String repairReset;
private RepairSetting repairSetting;
private Integer repairSupportType;
private String requestId;
private Solution solution;
private Builder() {
}
private Builder(GetCheckDetailResponseBody model) {
this.assistInfo = model.assistInfo;
this.customConfigs = model.customConfigs;
this.description = model.description;
this.repairReset = model.repairReset;
this.repairSetting = model.repairSetting;
this.repairSupportType = model.repairSupportType;
this.requestId = model.requestId;
this.solution = model.solution;
}
/**
* <p>The help information about the check item.</p>
*/
public Builder assistInfo(AssistInfo assistInfo) {
this.assistInfo = assistInfo;
return this;
}
/**
* <p>The custom configuration items of the check item.</p>
*/
public Builder customConfigs(java.util.List<CustomConfigs> customConfigs) {
this.customConfigs = customConfigs;
return this;
}
/**
* <p>The description of the check item.</p>
*/
public Builder description(Description description) {
this.description = description;
return this;
}
/**
* <blockquote>
* <p> This parameter is deprecated.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder repairReset(String repairReset) {
this.repairReset = repairReset;
return this;
}
/**
* <p>The fixing parameter configurations of the check item.</p>
*/
public Builder repairSetting(RepairSetting repairSetting) {
this.repairSetting = repairSetting;
return this;
}
/**
* <blockquote>
* <p> This parameter is deprecated.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder repairSupportType(Integer repairSupportType) {
this.repairSupportType = repairSupportType;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>15A6ED6A-DBFE-5255-A248-289907809BEC</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The solution to handle the risk item.</p>
*/
public Builder solution(Solution solution) {
this.solution = solution;
return this;
}
public GetCheckDetailResponseBody build() {
return new GetCheckDetailResponseBody(this);
}
}
/**
*
* {@link GetCheckDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCheckDetailResponseBody</p>
*/
public static class AssistInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Link")
private String link;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private AssistInfo(Builder builder) {
this.link = builder.link;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static AssistInfo create() {
return builder().build();
}
/**
* @return link
*/
public String getLink() {
return this.link;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String link;
private String type;
private String value;
private Builder() {
}
private Builder(AssistInfo model) {
this.link = model.link;
this.type = model.type;
this.value = model.value;
}
/**
* <p>The link to the help information about the risk item when the Type parameter is set to link.</p>
*
* <strong>example:</strong>
* <p><a href="https://www.alibabacloud.com/help/en/resource-access-management/latest/faq-about-ram-users">https://www.alibabacloud.com/help/en/resource-access-management/latest/faq-about-ram-users</a></p>
*/
public Builder link(String link) {
this.link = link;
return this;
}
/**
* <p>The type of the help information about the risk item. Valid values:</p>
* <ul>
* <li><strong>text</strong></li>
* <li><strong>link</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>text</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The content in the help information about the risk item when the Type parameter is set to text.</p>
*
* <strong>example:</strong>
* <p>Configure an IP address whitelist</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public AssistInfo build() {
return new AssistInfo(this);
}
}
}
/**
*
* {@link GetCheckDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCheckDetailResponseBody</p>
*/
public static class CustomConfigs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DefaultValue")
private String defaultValue;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("TypeDefine")
private String typeDefine;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private CustomConfigs(Builder builder) {
this.defaultValue = builder.defaultValue;
this.name = builder.name;
this.showName = builder.showName;
this.typeDefine = builder.typeDefine;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static CustomConfigs create() {
return builder().build();
}
/**
* @return defaultValue
*/
public String getDefaultValue() {
return this.defaultValue;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return typeDefine
*/
public String getTypeDefine() {
return this.typeDefine;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String defaultValue;
private String name;
private String showName;
private String typeDefine;
private String value;
private Builder() {
}
private Builder(CustomConfigs model) {
this.defaultValue = model.defaultValue;
this.name = model.name;
this.showName = model.showName;
this.typeDefine = model.typeDefine;
this.value = model.value;
}
/**
* <p>The default value of the custom configuration item. The value is a string.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder defaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
/**
* <p>The name of the custom configuration item, which is unique in a check item.</p>
*
* <strong>example:</strong>
* <p>SessionTimeMax</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The display name of the custom configuration item for internationalization.</p>
*
* <strong>example:</strong>
* <p>Maximum session time</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The type of the custom configuration item. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>{"type":"NUMBER","range":[1,24]}</p>
*/
public Builder typeDefine(String typeDefine) {
this.typeDefine = typeDefine;
return this;
}
/**
* <p>The value of the custom configuration item. The value is a string.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public CustomConfigs build() {
return new CustomConfigs(this);
}
}
}
/**
*
* {@link GetCheckDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCheckDetailResponseBody</p>
*/
public static class Description extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Link")
private String link;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Description(Builder builder) {
this.link = builder.link;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Description create() {
return builder().build();
}
/**
* @return link
*/
public String getLink() {
return this.link;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String link;
private String type;
private String value;
private Builder() {
}
private Builder(Description model) {
this.link = model.link;
this.type = model.type;
this.value = model.value;
}
/**
* <p>The link to the description of the check item.</p>
*
* <strong>example:</strong>
* <p><a href="https://www.alibabacloud.com/help/en/object-storage-service/latest/tutorial-implement-data-sharing-across-departments-based-on-bucket-policies">https://www.alibabacloud.com/help/en/object-storage-service/latest/tutorial-implement-data-sharing-across-departments-based-on-bucket-policies</a></p>
*/
public Builder link(String link) {
this.link = link;
return this;
}
/**
* <p>The description type of the check item. The value is fixed as text.</p>
*
* <strong>example:</strong>
* <p>text</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The content in the description of the check item.</p>
*
* <strong>example:</strong>
* <p>The MSE instance does not enable authentication by default. If public network access is enabled at the same time, the data in the configuration center may be dragged and there is a security risk.</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Description build() {
return new Description(this);
}
}
}
/**
*
* {@link GetCheckDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCheckDetailResponseBody</p>
*/
public static class FlowStep extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ShowText")
private String showText;
@com.aliyun.core.annotation.NameInMap("Step")
private String step;
private FlowStep(Builder builder) {
this.showText = builder.showText;
this.step = builder.step;
}
public static Builder builder() {
return new Builder();
}
public static FlowStep create() {
return builder().build();
}
/**
* @return showText
*/
public String getShowText() {
return this.showText;
}
/**
* @return step
*/
public String getStep() {
return this.step;
}
public static final class Builder {
private String showText;
private String step;
private Builder() {
}
private Builder(FlowStep model) {
this.showText = model.showText;
this.step = model.step;
}
/**
* <p>The text description of the fixing step.</p>
*
* <strong>example:</strong>
* <p>The first step is to open the calling interface.</p>
*/
public Builder showText(String showText) {
this.showText = showText;
return this;
}
/**
* <p>The sequence number of the fixing step.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder step(String step) {
this.step = step;
return this;
}
public FlowStep build() {
return new FlowStep(this);
}
}
}
/**
*
* {@link GetCheckDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCheckDetailResponseBody</p>
*/
public static class RepairConfigs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConsoleParamType")
private String consoleParamType;
@com.aliyun.core.annotation.NameInMap("CustomFlag")
private Boolean customFlag;
@com.aliyun.core.annotation.NameInMap("DataTransformType")
private String dataTransformType;
@com.aliyun.core.annotation.NameInMap("DefaultValue")
private String defaultValue;
@com.aliyun.core.annotation.NameInMap("EmptyParamSwitch")
private String emptyParamSwitch;
@com.aliyun.core.annotation.NameInMap("ExclusiveName")
private java.util.List<String> exclusiveName;
@com.aliyun.core.annotation.NameInMap("FlowId")
private String flowId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("TypeDefine")
private String typeDefine;
@com.aliyun.core.annotation.NameInMap("UsageType")
private String usageType;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private RepairConfigs(Builder builder) {
this.consoleParamType = builder.consoleParamType;
this.customFlag = builder.customFlag;
this.dataTransformType = builder.dataTransformType;
this.defaultValue = builder.defaultValue;
this.emptyParamSwitch = builder.emptyParamSwitch;
this.exclusiveName = builder.exclusiveName;
this.flowId = builder.flowId;
this.name = builder.name;
this.showName = builder.showName;
this.typeDefine = builder.typeDefine;
this.usageType = builder.usageType;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static RepairConfigs create() {
return builder().build();
}
/**
* @return consoleParamType
*/
public String getConsoleParamType() {
return this.consoleParamType;
}
/**
* @return customFlag
*/
public Boolean getCustomFlag() {
return this.customFlag;
}
/**
* @return dataTransformType
*/
public String getDataTransformType() {
return this.dataTransformType;
}
/**
* @return defaultValue
*/
public String getDefaultValue() {
return this.defaultValue;
}
/**
* @return emptyParamSwitch
*/
public String getEmptyParamSwitch() {
return this.emptyParamSwitch;
}
/**
* @return exclusiveName
*/
public java.util.List<String> getExclusiveName() {
return this.exclusiveName;
}
/**
* @return flowId
*/
public String getFlowId() {
return this.flowId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return typeDefine
*/
public String getTypeDefine() {
return this.typeDefine;
}
/**
* @return usageType
*/
public String getUsageType() {
return this.usageType;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String consoleParamType;
private Boolean customFlag;
private String dataTransformType;
private String defaultValue;
private String emptyParamSwitch;
private java.util.List<String> exclusiveName;
private String flowId;
private String name;
private String showName;
private String typeDefine;
private String usageType;
private String value;
private Builder() {
}
private Builder(RepairConfigs model) {
this.consoleParamType = model.consoleParamType;
this.customFlag = model.customFlag;
this.dataTransformType = model.dataTransformType;
this.defaultValue = model.defaultValue;
this.emptyParamSwitch = model.emptyParamSwitch;
this.exclusiveName = model.exclusiveName;
this.flowId = model.flowId;
this.name = model.name;
this.showName = model.showName;
this.typeDefine = model.typeDefine;
this.usageType = model.usageType;
this.value = model.value;
}
/**
* <p>Indicates whether the value of the parameter is displayed in the console. Valid values:</p>
* <ul>
* <li>0: The historical value and real-time value of the parameter are displayed.</li>
* <li>1: Only the real-time value of the parameter is displayed.</li>
* <li>2: The value of the parameter is not displayed in the console.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder consoleParamType(String consoleParamType) {
this.consoleParamType = consoleParamType;
return this;
}
/**
* <p>Indicates whether custom configurations of the fixing parameters are supported. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder customFlag(Boolean customFlag) {
this.customFlag = customFlag;
return this;
}
/**
* <p>Indicates whether data needs to be encrypted during transmission. Valid values:</p>
* <ul>
* <li>0: Data does not need to be encrypted during transmission.</li>
* <li>1: Data needs to be encrypted during transmission.</li>
* <li>2: Data needs to be encrypted during transmission, and the user must perform secondary confirmation.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder dataTransformType(String dataTransformType) {
this.dataTransformType = dataTransformType;
return this;
}
/**
* <p>The default value of the parameter. The value is a string.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder defaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
/**
* <p>Indicates whether this parameter is specified by the user. Valid values:</p>
* <ul>
* <li>0: The default value is used.</li>
* <li>1: This parameter is required, and no default value is specified.</li>
* <li>2: This parameter can be left empty.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder emptyParamSwitch(String emptyParamSwitch) {
this.emptyParamSwitch = emptyParamSwitch;
return this;
}
/**
* <p>The fixing parameters that are not compatible with this parameter.</p>
*/
public Builder exclusiveName(java.util.List<String> exclusiveName) {
this.exclusiveName = exclusiveName;
return this;
}
/**
* <p>The ID of the fixing workflow.</p>
*
* <strong>example:</strong>
* <p>64312d3ee19d470a9b54393dab****</p>
*/
public Builder flowId(String flowId) {
this.flowId = flowId;
return this;
}
/**
* <p>The name of the parameter. The name must be unique within the check item.</p>
*
* <strong>example:</strong>
* <p>navicat</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The display name of the parameter.</p>
*
* <strong>example:</strong>
* <p>port</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The type of the parameter. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>{"type":"NUMBER","range":[1,24]}</p>
*/
public Builder typeDefine(String typeDefine) {
this.typeDefine = typeDefine;
return this;
}
/**
* <p>The type of the parameter. Valid values:</p>
* <ul>
* <li>1: asset parameters that are required during fixing.</li>
* <li>2: user-provided parameters that are required during fixing.</li>
* <li>3: parameters that are temporarily provided by the user.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder usageType(String usageType) {
this.usageType = usageType;
return this;
}
/**
* <p>The user-configured value of the parameter. The value is a string.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public RepairConfigs build() {
return new RepairConfigs(this);
}
}
}
/**
*
* {@link GetCheckDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCheckDetailResponseBody</p>
*/
public static class RepairSetting extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FlowStep")
private java.util.List<FlowStep> flowStep;
@com.aliyun.core.annotation.NameInMap("RepairConfigs")
private java.util.List<RepairConfigs> repairConfigs;
@com.aliyun.core.annotation.NameInMap("RepairReset")
private Boolean repairReset;
@com.aliyun.core.annotation.NameInMap("RepairSupport")
private Boolean repairSupport;
@com.aliyun.core.annotation.NameInMap("RepairSupportType")
private Integer repairSupportType;
private RepairSetting(Builder builder) {
this.flowStep = builder.flowStep;
this.repairConfigs = builder.repairConfigs;
this.repairReset = builder.repairReset;
this.repairSupport = builder.repairSupport;
this.repairSupportType = builder.repairSupportType;
}
public static Builder builder() {
return new Builder();
}
public static RepairSetting create() {
return builder().build();
}
/**
* @return flowStep
*/
public java.util.List<FlowStep> getFlowStep() {
return this.flowStep;
}
/**
* @return repairConfigs
*/
public java.util.List<RepairConfigs> getRepairConfigs() {
return this.repairConfigs;
}
/**
* @return repairReset
*/
public Boolean getRepairReset() {
return this.repairReset;
}
/**
* @return repairSupport
*/
public Boolean getRepairSupport() {
return this.repairSupport;
}
/**
* @return repairSupportType
*/
public Integer getRepairSupportType() {
return this.repairSupportType;
}
public static final class Builder {
private java.util.List<FlowStep> flowStep;
private java.util.List<RepairConfigs> repairConfigs;
private Boolean repairReset;
private Boolean repairSupport;
private Integer repairSupportType;
private Builder() {
}
private Builder(RepairSetting model) {
this.flowStep = model.flowStep;
this.repairConfigs = model.repairConfigs;
this.repairReset = model.repairReset;
this.repairSupport = model.repairSupport;
this.repairSupportType = model.repairSupportType;
}
/**
* <p>The description of the fixing workflow.</p>
*/
public Builder flowStep(java.util.List<FlowStep> flowStep) {
this.flowStep = flowStep;
return this;
}
/**
* <p>The configurations of the fixing parameters.</p>
*/
public Builder repairConfigs(java.util.List<RepairConfigs> repairConfigs) {
this.repairConfigs = repairConfigs;
return this;
}
/**
* <p>Indicates whether a restart is required after the fixing. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder repairReset(Boolean repairReset) {
this.repairReset = repairReset;
return this;
}
/**
* <p>Indicates whether the check item supports the quick fix feature. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder repairSupport(Boolean repairSupport) {
this.repairSupport = repairSupport;
return this;
}
/**
* <p>The fixing type that is supported. Valid values:</p>
* <ul>
* <li><strong>1</strong>: The fixing and rollback are supported.</li>
* <li><strong>2</strong>: The fixing is supported, but the rollback is not supported.</li>
* <li><strong>3</strong>: The fixing must be performed on a third-party platform.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder repairSupportType(Integer repairSupportType) {
this.repairSupportType = repairSupportType;
return this;
}
public RepairSetting build() {
return new RepairSetting(this);
}
}
}
/**
*
* {@link GetCheckDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCheckDetailResponseBody</p>
*/
public static class Solution extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Link")
private String link;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Solution(Builder builder) {
this.link = builder.link;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Solution create() {
return builder().build();
}
/**
* @return link
*/
public String getLink() {
return this.link;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String link;
private String type;
private String value;
private Builder() {
}
private Builder(Solution model) {
this.link = model.link;
this.type = model.type;
this.value = model.value;
}
/**
* <p>The link to the solution to handle the risk item when the Type parameter is set to link.</p>
*
* <strong>example:</strong>
* <p><a href="https://www.alibabacloud.com/help/en/object-storage-service/latest/tutorial-implement-data-sharing-across-departments-based-on-bucket-policies">https://www.alibabacloud.com/help/en/object-storage-service/latest/tutorial-implement-data-sharing-across-departments-based-on-bucket-policies</a></p>
*/
public Builder link(String link) {
this.link = link;
return this;
}
/**
* <p>The type of the solution to handle the risk item. Valid values:</p>
* <ul>
* <li><strong>text</strong></li>
* <li><strong>link</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>text</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The content of the solution to handle the risk item when the Type parameter is set to text.</p>
*
* <strong>example:</strong>
* <p>Enter the MSE product console - registration and configuration center - instance list, click the corresponding instance name to enter the instance details, find the public network whitelist setting option in the basic information, and configure the whitelist according to business needs. It is forbidden to configure 0.0.0.0 or the whitelist as null.</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Solution build() {
return new Solution(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckProcessRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckProcessRequest} extends {@link RequestModel}
*
* <p>GetCheckProcessRequest</p>
*/
public class GetCheckProcessRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private GetCheckProcessRequest(Builder builder) {
super(builder);
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckProcessRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder<GetCheckProcessRequest, Builder> {
private String taskId;
private Builder() {
super();
}
private Builder(GetCheckProcessRequest request) {
super(request);
this.taskId = request.taskId;
}
/**
* <p>The ID of the task.</p>
* <blockquote>
* <p>You can call the <a href="~~SubmitCheck~~">SubmitCheck</a> operation to query the ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5347c7b6-c85c-4070-846a-3029e08e****</p>
*/
public Builder taskId(String taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public GetCheckProcessRequest build() {
return new GetCheckProcessRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckProcessResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckProcessResponse} extends {@link TeaModel}
*
* <p>GetCheckProcessResponse</p>
*/
public class GetCheckProcessResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckProcessResponseBody body;
private GetCheckProcessResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckProcessResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckProcessResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckProcessResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckProcessResponseBody body);
@Override
GetCheckProcessResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckProcessResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckProcessResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckProcessResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckProcessResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckProcessResponse build() {
return new GetCheckProcessResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckProcessResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckProcessResponseBody} extends {@link TeaModel}
*
* <p>GetCheckProcessResponseBody</p>
*/
public class GetCheckProcessResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FinishCount")
private Integer finishCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("StatusCode")
private String statusCode;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private GetCheckProcessResponseBody(Builder builder) {
this.finishCount = builder.finishCount;
this.requestId = builder.requestId;
this.statusCode = builder.statusCode;
this.taskId = builder.taskId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckProcessResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return finishCount
*/
public Integer getFinishCount() {
return this.finishCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return statusCode
*/
public String getStatusCode() {
return this.statusCode;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer finishCount;
private String requestId;
private String statusCode;
private String taskId;
private Integer totalCount;
private Builder() {
}
private Builder(GetCheckProcessResponseBody model) {
this.finishCount = model.finishCount;
this.requestId = model.requestId;
this.statusCode = model.statusCode;
this.taskId = model.taskId;
this.totalCount = model.totalCount;
}
/**
* <p>The total number of assets on which the task is complete.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder finishCount(Integer finishCount) {
this.finishCount = finishCount;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>D18B5DAD-BA97-5552-AE48-83F59D5F****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The status code of the Cloud Security Posture Management (CSPM) task. Valid values:</p>
* <ul>
* <li>0: The task is being initialized. The system is calculating the total number of subtasks.</li>
* <li>1: The task is being executed. You can query the total number of tasks and the number of completed tasks.</li>
* <li>2: The task is successful.</li>
* <li>3: The task times out.</li>
* <li>4: The task is invalid. Check whether assets exist.</li>
* <li>5: No task record is found. Check whether the TaskId parameter is valid.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder statusCode(String statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>5347c7b6-c85c-4070-846a-3029e08e****</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The total number of assets on which the task is performed.</p>
*
* <strong>example:</strong>
* <p>113</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public GetCheckProcessResponseBody build() {
return new GetCheckProcessResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckRiskStatisticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckRiskStatisticsRequest} extends {@link RequestModel}
*
* <p>GetCheckRiskStatisticsRequest</p>
*/
public class GetCheckRiskStatisticsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
private GetCheckRiskStatisticsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckRiskStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<GetCheckRiskStatisticsRequest, Builder> {
private Integer currentPage;
private String lang;
private Integer pageSize;
private Builder() {
super();
}
private Builder(GetCheckRiskStatisticsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
}
/**
* <p>The number of the page to return. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public GetCheckRiskStatisticsRequest build() {
return new GetCheckRiskStatisticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckRiskStatisticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckRiskStatisticsResponse} extends {@link TeaModel}
*
* <p>GetCheckRiskStatisticsResponse</p>
*/
public class GetCheckRiskStatisticsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckRiskStatisticsResponseBody body;
private GetCheckRiskStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckRiskStatisticsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckRiskStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckRiskStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckRiskStatisticsResponseBody body);
@Override
GetCheckRiskStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckRiskStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckRiskStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckRiskStatisticsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckRiskStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckRiskStatisticsResponse build() {
return new GetCheckRiskStatisticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckRiskStatisticsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckRiskStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetCheckRiskStatisticsResponseBody</p>
*/
public class GetCheckRiskStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Summary")
private Summary summary;
private GetCheckRiskStatisticsResponseBody(Builder builder) {
this.count = builder.count;
this.data = builder.data;
this.requestId = builder.requestId;
this.summary = builder.summary;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckRiskStatisticsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return summary
*/
public Summary getSummary() {
return this.summary;
}
public static final class Builder {
private Integer count;
private java.util.List<Data> data;
private String requestId;
private Summary summary;
private Builder() {
}
private Builder(GetCheckRiskStatisticsResponseBody model) {
this.count = model.count;
this.data = model.data;
this.requestId = model.requestId;
this.summary = model.summary;
}
/**
* <p>The number of risk scenarios.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>An array consisting of the statistics on check items that are used in risk scenarios.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>2C455672-2490-5211-84EC-420C7818****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Historical check item statistics.</p>
*/
public Builder summary(Summary summary) {
this.summary = summary;
return this;
}
public GetCheckRiskStatisticsResponseBody build() {
return new GetCheckRiskStatisticsResponseBody(this);
}
}
/**
*
* {@link GetCheckRiskStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetCheckRiskStatisticsResponseBody</p>
*/
public static class SubStatistics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Alias")
private String alias;
@com.aliyun.core.annotation.NameInMap("HighWarningCount")
private Integer highWarningCount;
@com.aliyun.core.annotation.NameInMap("LowWarningCount")
private Integer lowWarningCount;
@com.aliyun.core.annotation.NameInMap("MediumWarningCount")
private Integer mediumWarningCount;
@com.aliyun.core.annotation.NameInMap("PassCount")
private Integer passCount;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("TypeName")
private String typeName;
private SubStatistics(Builder builder) {
this.alias = builder.alias;
this.highWarningCount = builder.highWarningCount;
this.lowWarningCount = builder.lowWarningCount;
this.mediumWarningCount = builder.mediumWarningCount;
this.passCount = builder.passCount;
this.totalCount = builder.totalCount;
this.typeName = builder.typeName;
}
public static Builder builder() {
return new Builder();
}
public static SubStatistics create() {
return builder().build();
}
/**
* @return alias
*/
public String getAlias() {
return this.alias;
}
/**
* @return highWarningCount
*/
public Integer getHighWarningCount() {
return this.highWarningCount;
}
/**
* @return lowWarningCount
*/
public Integer getLowWarningCount() {
return this.lowWarningCount;
}
/**
* @return mediumWarningCount
*/
public Integer getMediumWarningCount() {
return this.mediumWarningCount;
}
/**
* @return passCount
*/
public Integer getPassCount() {
return this.passCount;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return typeName
*/
public String getTypeName() {
return this.typeName;
}
public static final class Builder {
private String alias;
private Integer highWarningCount;
private Integer lowWarningCount;
private Integer mediumWarningCount;
private Integer passCount;
private Integer totalCount;
private String typeName;
private Builder() {
}
private Builder(SubStatistics model) {
this.alias = model.alias;
this.highWarningCount = model.highWarningCount;
this.lowWarningCount = model.lowWarningCount;
this.mediumWarningCount = model.mediumWarningCount;
this.passCount = model.passCount;
this.totalCount = model.totalCount;
this.typeName = model.typeName;
}
/**
* <p>The name of the baseline type.</p>
*
* <strong>example:</strong>
* <p>weak_password</p>
*/
public Builder alias(String alias) {
this.alias = alias;
return this;
}
/**
* <p>The number of high-risk items.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder highWarningCount(Integer highWarningCount) {
this.highWarningCount = highWarningCount;
return this;
}
/**
* <p>The number of low-risk items.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder lowWarningCount(Integer lowWarningCount) {
this.lowWarningCount = lowWarningCount;
return this;
}
/**
* <p>The number of medium-risk items.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder mediumWarningCount(Integer mediumWarningCount) {
this.mediumWarningCount = mediumWarningCount;
return this;
}
/**
* <p>The number of passed check items.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder passCount(Integer passCount) {
this.passCount = passCount;
return this;
}
/**
* <p>The total number of check items.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The baseline type.</p>
*
* <strong>example:</strong>
* <p>weak_password</p>
*/
public Builder typeName(String typeName) {
this.typeName = typeName;
return this;
}
public SubStatistics build() {
return new SubStatistics(this);
}
}
}
/**
*
* {@link GetCheckRiskStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetCheckRiskStatisticsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HighWarningCount")
private Integer highWarningCount;
@com.aliyun.core.annotation.NameInMap("LowWarningCount")
private Integer lowWarningCount;
@com.aliyun.core.annotation.NameInMap("MediumWarningCount")
private Integer mediumWarningCount;
@com.aliyun.core.annotation.NameInMap("PassCount")
private Integer passCount;
@com.aliyun.core.annotation.NameInMap("SceneName")
private String sceneName;
@com.aliyun.core.annotation.NameInMap("SubStatistics")
private java.util.List<SubStatistics> subStatistics;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private Data(Builder builder) {
this.highWarningCount = builder.highWarningCount;
this.lowWarningCount = builder.lowWarningCount;
this.mediumWarningCount = builder.mediumWarningCount;
this.passCount = builder.passCount;
this.sceneName = builder.sceneName;
this.subStatistics = builder.subStatistics;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return highWarningCount
*/
public Integer getHighWarningCount() {
return this.highWarningCount;
}
/**
* @return lowWarningCount
*/
public Integer getLowWarningCount() {
return this.lowWarningCount;
}
/**
* @return mediumWarningCount
*/
public Integer getMediumWarningCount() {
return this.mediumWarningCount;
}
/**
* @return passCount
*/
public Integer getPassCount() {
return this.passCount;
}
/**
* @return sceneName
*/
public String getSceneName() {
return this.sceneName;
}
/**
* @return subStatistics
*/
public java.util.List<SubStatistics> getSubStatistics() {
return this.subStatistics;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer highWarningCount;
private Integer lowWarningCount;
private Integer mediumWarningCount;
private Integer passCount;
private String sceneName;
private java.util.List<SubStatistics> subStatistics;
private Integer totalCount;
private Builder() {
}
private Builder(Data model) {
this.highWarningCount = model.highWarningCount;
this.lowWarningCount = model.lowWarningCount;
this.mediumWarningCount = model.mediumWarningCount;
this.passCount = model.passCount;
this.sceneName = model.sceneName;
this.subStatistics = model.subStatistics;
this.totalCount = model.totalCount;
}
/**
* <p>The number of high-risk items.</p>
*
* <strong>example:</strong>
* <p>43</p>
*/
public Builder highWarningCount(Integer highWarningCount) {
this.highWarningCount = highWarningCount;
return this;
}
/**
* <p>The number of low-risk items.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder lowWarningCount(Integer lowWarningCount) {
this.lowWarningCount = lowWarningCount;
return this;
}
/**
* <p>The number of medium-risk items.</p>
*
* <strong>example:</strong>
* <p>29</p>
*/
public Builder mediumWarningCount(Integer mediumWarningCount) {
this.mediumWarningCount = mediumWarningCount;
return this;
}
/**
* <p>The number of passed check items.</p>
*
* <strong>example:</strong>
* <p>143</p>
*/
public Builder passCount(Integer passCount) {
this.passCount = passCount;
return this;
}
/**
* <p>The name of the risk scenario.</p>
*
* <strong>example:</strong>
* <p>SECURITY</p>
*/
public Builder sceneName(String sceneName) {
this.sceneName = sceneName;
return this;
}
/**
* <p>The statistics on check items that are used in the risk scenario by baseline type.</p>
*/
public Builder subStatistics(java.util.List<SubStatistics> subStatistics) {
this.subStatistics = subStatistics;
return this;
}
/**
* <p>The total number of check items.</p>
*
* <strong>example:</strong>
* <p>219</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public Data build() {
return new Data(this);
}
}
}
/**
*
* {@link GetCheckRiskStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetCheckRiskStatisticsResponseBody</p>
*/
public static class Summary extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HandledCheckToday")
private Integer handledCheckToday;
@com.aliyun.core.annotation.NameInMap("HandledCheckTotal")
private Integer handledCheckTotal;
@com.aliyun.core.annotation.NameInMap("HandledDays")
private Integer handledDays;
@com.aliyun.core.annotation.NameInMap("RiskCheckCnt")
private Integer riskCheckCnt;
@com.aliyun.core.annotation.NameInMap("RiskDays")
private Integer riskDays;
@com.aliyun.core.annotation.NameInMap("RiskWarningCnt")
private Integer riskWarningCnt;
private Summary(Builder builder) {
this.handledCheckToday = builder.handledCheckToday;
this.handledCheckTotal = builder.handledCheckTotal;
this.handledDays = builder.handledDays;
this.riskCheckCnt = builder.riskCheckCnt;
this.riskDays = builder.riskDays;
this.riskWarningCnt = builder.riskWarningCnt;
}
public static Builder builder() {
return new Builder();
}
public static Summary create() {
return builder().build();
}
/**
* @return handledCheckToday
*/
public Integer getHandledCheckToday() {
return this.handledCheckToday;
}
/**
* @return handledCheckTotal
*/
public Integer getHandledCheckTotal() {
return this.handledCheckTotal;
}
/**
* @return handledDays
*/
public Integer getHandledDays() {
return this.handledDays;
}
/**
* @return riskCheckCnt
*/
public Integer getRiskCheckCnt() {
return this.riskCheckCnt;
}
/**
* @return riskDays
*/
public Integer getRiskDays() {
return this.riskDays;
}
/**
* @return riskWarningCnt
*/
public Integer getRiskWarningCnt() {
return this.riskWarningCnt;
}
public static final class Builder {
private Integer handledCheckToday;
private Integer handledCheckTotal;
private Integer handledDays;
private Integer riskCheckCnt;
private Integer riskDays;
private Integer riskWarningCnt;
private Builder() {
}
private Builder(Summary model) {
this.handledCheckToday = model.handledCheckToday;
this.handledCheckTotal = model.handledCheckTotal;
this.handledDays = model.handledDays;
this.riskCheckCnt = model.riskCheckCnt;
this.riskDays = model.riskDays;
this.riskWarningCnt = model.riskWarningCnt;
}
/**
* <p>Check items handled today.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder handledCheckToday(Integer handledCheckToday) {
this.handledCheckToday = handledCheckToday;
return this;
}
/**
* <p>A risk item exists.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder handledCheckTotal(Integer handledCheckTotal) {
this.handledCheckTotal = handledCheckTotal;
return this;
}
/**
* <p>Total days since check items were handled.</p>
*
* <strong>example:</strong>
* <p>365</p>
*/
public Builder handledDays(Integer handledDays) {
this.handledDays = handledDays;
return this;
}
/**
* <p>Check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder riskCheckCnt(Integer riskCheckCnt) {
this.riskCheckCnt = riskCheckCnt;
return this;
}
/**
* <p>Days since check items failed.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder riskDays(Integer riskDays) {
this.riskDays = riskDays;
return this;
}
/**
* <p>Risks to be handled.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder riskWarningCnt(Integer riskWarningCnt) {
this.riskWarningCnt = riskWarningCnt;
return this;
}
public Summary build() {
return new Summary(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckSaleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckSaleRequest} extends {@link RequestModel}
*
* <p>GetCheckSaleRequest</p>
*/
public class GetCheckSaleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private GetCheckSaleRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckSaleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<GetCheckSaleRequest, Builder> {
private String regionId;
private Builder() {
super();
}
private Builder(GetCheckSaleRequest request) {
super(request);
this.regionId = request.regionId;
}
/**
* <p>The region in which the Security Center instance is deployed. Valid values:</p>
* <ul>
* <li><strong>cn-hangzhou:</strong> inside China</li>
* <li>Global <strong>ap-southeast-1:</strong> outside China</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public GetCheckSaleRequest build() {
return new GetCheckSaleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckSaleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckSaleResponse} extends {@link TeaModel}
*
* <p>GetCheckSaleResponse</p>
*/
public class GetCheckSaleResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckSaleResponseBody body;
private GetCheckSaleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckSaleResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckSaleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckSaleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckSaleResponseBody body);
@Override
GetCheckSaleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckSaleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckSaleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckSaleResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckSaleResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckSaleResponse build() {
return new GetCheckSaleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckSaleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckSaleResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSaleResponseBody</p>
*/
public class GetCheckSaleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckSale")
private CheckSale checkSale;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCheckSaleResponseBody(Builder builder) {
this.checkSale = builder.checkSale;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckSaleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkSale
*/
public CheckSale getCheckSale() {
return this.checkSale;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private CheckSale checkSale;
private String requestId;
private Builder() {
}
private Builder(GetCheckSaleResponseBody model) {
this.checkSale = model.checkSale;
this.requestId = model.requestId;
}
/**
* <p>The sales information about the configuration assessment quota.</p>
*/
public Builder checkSale(CheckSale checkSale) {
this.checkSale = checkSale;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F5CF78A7-30AA-59DB-847F-13EE3AE7****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCheckSaleResponseBody build() {
return new GetCheckSaleResponseBody(this);
}
}
/**
*
* {@link GetCheckSaleResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSaleResponseBody</p>
*/
public static class CheckSale extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConsumeCount")
private Long consumeCount;
@com.aliyun.core.annotation.NameInMap("LoyalUser")
private Boolean loyalUser;
@com.aliyun.core.annotation.NameInMap("PurchaseCount")
private Long purchaseCount;
@com.aliyun.core.annotation.NameInMap("SaleUserType")
private Integer saleUserType;
private CheckSale(Builder builder) {
this.consumeCount = builder.consumeCount;
this.loyalUser = builder.loyalUser;
this.purchaseCount = builder.purchaseCount;
this.saleUserType = builder.saleUserType;
}
public static Builder builder() {
return new Builder();
}
public static CheckSale create() {
return builder().build();
}
/**
* @return consumeCount
*/
public Long getConsumeCount() {
return this.consumeCount;
}
/**
* @return loyalUser
*/
public Boolean getLoyalUser() {
return this.loyalUser;
}
/**
* @return purchaseCount
*/
public Long getPurchaseCount() {
return this.purchaseCount;
}
/**
* @return saleUserType
*/
public Integer getSaleUserType() {
return this.saleUserType;
}
public static final class Builder {
private Long consumeCount;
private Boolean loyalUser;
private Long purchaseCount;
private Integer saleUserType;
private Builder() {
}
private Builder(CheckSale model) {
this.consumeCount = model.consumeCount;
this.loyalUser = model.loyalUser;
this.purchaseCount = model.purchaseCount;
this.saleUserType = model.saleUserType;
}
/**
* <p>The consumed quota.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder consumeCount(Long consumeCount) {
this.consumeCount = consumeCount;
return this;
}
/**
* <p>Indicates whether the user is an existing user and whether the user uses the configuration assessment feature before the feature is released for sale on July 07, 2023. Valid values:</p>
* <ul>
* <li><strong>true</strong>: existing user</li>
* <li><strong>false</strong>: new user</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder loyalUser(Boolean loyalUser) {
this.loyalUser = loyalUser;
return this;
}
/**
* <p>The purchased quota.</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder purchaseCount(Long purchaseCount) {
this.purchaseCount = purchaseCount;
return this;
}
/**
* <p>The type of the user. Valid values:</p>
* <ul>
* <li><strong>1</strong>: a user who can use all check items.</li>
* <li><strong>2</strong>: an user who can only use the check items before the release of the feature on July 07, 2023. This type of users must upgrade Security Center before the users can use all check items.</li>
* <li><strong>3</strong>: a new user who cannot use the configuration assessment feature. This type of users must make a purchase before the users can use the feature.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder saleUserType(Integer saleUserType) {
this.saleUserType = saleUserType;
return this;
}
public CheckSale build() {
return new CheckSale(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckStructureRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckStructureRequest} extends {@link RequestModel}
*
* <p>GetCheckStructureRequest</p>
*/
public class GetCheckStructureRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskSources")
private java.util.List<String> taskSources;
private GetCheckStructureRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.taskSources = builder.taskSources;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckStructureRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
public static final class Builder extends Request.Builder<GetCheckStructureRequest, Builder> {
private Integer currentPage;
private String lang;
private Integer pageSize;
private String regionId;
private java.util.List<String> taskSources;
private Builder() {
super();
}
private Builder(GetCheckStructureRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.taskSources = request.taskSources;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the asset. Valid values:</p>
* <ul>
* <li>cn-hangzhou: China.</li>
* <li>ap-southeast-1: outside China.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* TaskSources.
*/
public Builder taskSources(java.util.List<String> taskSources) {
this.putQueryParameter("TaskSources", taskSources);
this.taskSources = taskSources;
return this;
}
@Override
public GetCheckStructureRequest build() {
return new GetCheckStructureRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckStructureResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckStructureResponse} extends {@link TeaModel}
*
* <p>GetCheckStructureResponse</p>
*/
public class GetCheckStructureResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckStructureResponseBody body;
private GetCheckStructureResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckStructureResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckStructureResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckStructureResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckStructureResponseBody body);
@Override
GetCheckStructureResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckStructureResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckStructureResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckStructureResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckStructureResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckStructureResponse build() {
return new GetCheckStructureResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckStructureResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckStructureResponseBody} extends {@link TeaModel}
*
* <p>GetCheckStructureResponseBody</p>
*/
public class GetCheckStructureResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckStructureResponse")
private java.util.List<CheckStructureResponse> checkStructureResponse;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCheckStructureResponseBody(Builder builder) {
this.checkStructureResponse = builder.checkStructureResponse;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckStructureResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkStructureResponse
*/
public java.util.List<CheckStructureResponse> getCheckStructureResponse() {
return this.checkStructureResponse;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<CheckStructureResponse> checkStructureResponse;
private String requestId;
private Builder() {
}
private Builder(GetCheckStructureResponseBody model) {
this.checkStructureResponse = model.checkStructureResponse;
this.requestId = model.requestId;
}
/**
* <p>The structure information about check items provided by the configuration assessment feature.</p>
*/
public Builder checkStructureResponse(java.util.List<CheckStructureResponse> checkStructureResponse) {
this.checkStructureResponse = checkStructureResponse;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>379a9b8f-107b-4630-9e95-2299a1ea****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCheckStructureResponseBody build() {
return new GetCheckStructureResponseBody(this);
}
}
/**
*
* {@link GetCheckStructureResponseBody} extends {@link TeaModel}
*
* <p>GetCheckStructureResponseBody</p>
*/
public static class Sections extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
private Sections(Builder builder) {
this.id = builder.id;
this.showName = builder.showName;
}
public static Builder builder() {
return new Builder();
}
public static Sections create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
public static final class Builder {
private Long id;
private String showName;
private Builder() {
}
private Builder(Sections model) {
this.id = model.id;
this.showName = model.showName;
}
/**
* <p>The ID of the section for the check item.</p>
*
* <strong>example:</strong>
* <p>177</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The display name of the section for the check item.</p>
*
* <strong>example:</strong>
* <p>Access Control</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
public Sections build() {
return new Sections(this);
}
}
}
/**
*
* {@link GetCheckStructureResponseBody} extends {@link TeaModel}
*
* <p>GetCheckStructureResponseBody</p>
*/
public static class Requirements extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Sections")
private java.util.List<Sections> sections;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("TotalCheckCount")
private Integer totalCheckCount;
private Requirements(Builder builder) {
this.id = builder.id;
this.sections = builder.sections;
this.showName = builder.showName;
this.totalCheckCount = builder.totalCheckCount;
}
public static Builder builder() {
return new Builder();
}
public static Requirements create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return sections
*/
public java.util.List<Sections> getSections() {
return this.sections;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return totalCheckCount
*/
public Integer getTotalCheckCount() {
return this.totalCheckCount;
}
public static final class Builder {
private Long id;
private java.util.List<Sections> sections;
private String showName;
private Integer totalCheckCount;
private Builder() {
}
private Builder(Requirements model) {
this.id = model.id;
this.sections = model.sections;
this.showName = model.showName;
this.totalCheckCount = model.totalCheckCount;
}
/**
* <p>The ID of the requirement item for the check item.</p>
*
* <strong>example:</strong>
* <p>46</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The information about the sections of check items.</p>
*/
public Builder sections(java.util.List<Sections> sections) {
this.sections = sections;
return this;
}
/**
* <p>The display name of the requirement item for the check item.</p>
*
* <strong>example:</strong>
* <p>Networking</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The total number of check items for the requirement.</p>
*
* <strong>example:</strong>
* <p>36</p>
*/
public Builder totalCheckCount(Integer totalCheckCount) {
this.totalCheckCount = totalCheckCount;
return this;
}
public Requirements build() {
return new Requirements(this);
}
}
}
/**
*
* {@link GetCheckStructureResponseBody} extends {@link TeaModel}
*
* <p>GetCheckStructureResponseBody</p>
*/
public static class Standards extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Requirements")
private java.util.List<Requirements> requirements;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private Standards(Builder builder) {
this.id = builder.id;
this.requirements = builder.requirements;
this.showName = builder.showName;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Standards create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return requirements
*/
public java.util.List<Requirements> getRequirements() {
return this.requirements;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Long id;
private java.util.List<Requirements> requirements;
private String showName;
private String type;
private Builder() {
}
private Builder(Standards model) {
this.id = model.id;
this.requirements = model.requirements;
this.showName = model.showName;
this.type = model.type;
}
/**
* <p>The standard ID of the check item.</p>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The standards of the check items.</p>
*/
public Builder requirements(java.util.List<Requirements> requirements) {
this.requirements = requirements;
return this;
}
/**
* <p>The display name of the standard for the check item.</p>
*
* <strong>example:</strong>
* <p>Alibaba Cloud best security practices</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The standard type of the check item. Valid values:</p>
* <ul>
* <li>RISK: security risk.</li>
* <li>IDENTITY_PERMISSION: CIEM.</li>
* <li>COMPLIANCE: security compliance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>IDENTITY_PERMISSION</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Standards build() {
return new Standards(this);
}
}
}
/**
*
* {@link GetCheckStructureResponseBody} extends {@link TeaModel}
*
* <p>GetCheckStructureResponseBody</p>
*/
public static class CheckStructureResponse extends TeaModel {
@com.aliyun.core.annotation.NameInMap("StandardType")
private String standardType;
@com.aliyun.core.annotation.NameInMap("Standards")
private java.util.List<Standards> standards;
private CheckStructureResponse(Builder builder) {
this.standardType = builder.standardType;
this.standards = builder.standards;
}
public static Builder builder() {
return new Builder();
}
public static CheckStructureResponse create() {
return builder().build();
}
/**
* @return standardType
*/
public String getStandardType() {
return this.standardType;
}
/**
* @return standards
*/
public java.util.List<Standards> getStandards() {
return this.standards;
}
public static final class Builder {
private String standardType;
private java.util.List<Standards> standards;
private Builder() {
}
private Builder(CheckStructureResponse model) {
this.standardType = model.standardType;
this.standards = model.standards;
}
/**
* <p>The type of the check item.</p>
* <ul>
* <li>RISK: security risk.</li>
* <li>IDENTITY_PERMISSION: Cloud Infrastructure Entitlement Management (CIEM).</li>
* <li>COMPLIANCE: security compliance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>RISK</p>
*/
public Builder standardType(String standardType) {
this.standardType = standardType;
return this;
}
/**
* <p>The structure information about the check items of the business type.</p>
*/
public Builder standards(java.util.List<Standards> standards) {
this.standards = standards;
return this;
}
public CheckStructureResponse build() {
return new CheckStructureResponse(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckSummaryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckSummaryRequest} extends {@link RequestModel}
*
* <p>GetCheckSummaryRequest</p>
*/
public class GetCheckSummaryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IsItemStatistic")
private Boolean isItemStatistic;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceDirectoryAccountId")
private String resourceDirectoryAccountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskSources")
private java.util.List<String> taskSources;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Vendors")
private java.util.List<String> vendors;
private GetCheckSummaryRequest(Builder builder) {
super(builder);
this.isItemStatistic = builder.isItemStatistic;
this.lang = builder.lang;
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
this.taskSources = builder.taskSources;
this.vendors = builder.vendors;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return isItemStatistic
*/
public Boolean getIsItemStatistic() {
return this.isItemStatistic;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return resourceDirectoryAccountId
*/
public String getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
/**
* @return taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
/**
* @return vendors
*/
public java.util.List<String> getVendors() {
return this.vendors;
}
public static final class Builder extends Request.Builder<GetCheckSummaryRequest, Builder> {
private Boolean isItemStatistic;
private String lang;
private String resourceDirectoryAccountId;
private java.util.List<String> taskSources;
private java.util.List<String> vendors;
private Builder() {
super();
}
private Builder(GetCheckSummaryRequest request) {
super(request);
this.isItemStatistic = request.isItemStatistic;
this.lang = request.lang;
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
this.taskSources = request.taskSources;
this.vendors = request.vendors;
}
/**
* <p>Specifies whether to return the statistics of the check items, including the number of check items supported by the system and the number of check items available to you. Default value: <strong>false</strong>. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder isItemStatistic(Boolean isItemStatistic) {
this.putQueryParameter("IsItemStatistic", isItemStatistic);
this.isItemStatistic = isItemStatistic;
return this;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the member in the resource directory.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeMonitorAccounts~~">DescribeMonitorAccounts</a> operation to query the IDs of Alibaba Cloud accounts.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>000</p>
*/
public Builder resourceDirectoryAccountId(String resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
/**
* TaskSources.
*/
public Builder taskSources(java.util.List<String> taskSources) {
this.putQueryParameter("TaskSources", taskSources);
this.taskSources = taskSources;
return this;
}
/**
* <p>The cloud service providers.</p>
*/
public Builder vendors(java.util.List<String> vendors) {
this.putQueryParameter("Vendors", vendors);
this.vendors = vendors;
return this;
}
@Override
public GetCheckSummaryRequest build() {
return new GetCheckSummaryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckSummaryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckSummaryResponse} extends {@link TeaModel}
*
* <p>GetCheckSummaryResponse</p>
*/
public class GetCheckSummaryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckSummaryResponseBody body;
private GetCheckSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckSummaryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckSummaryResponseBody body);
@Override
GetCheckSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckSummaryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckSummaryResponse build() {
return new GetCheckSummaryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckSummaryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSummaryResponseBody</p>
*/
public class GetCheckSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("OverallItemStatistic")
private OverallItemStatistic overallItemStatistic;
@com.aliyun.core.annotation.NameInMap("OverallStatistic")
private OverallStatistic overallStatistic;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Summarys")
private java.util.List<Summarys> summarys;
private GetCheckSummaryResponseBody(Builder builder) {
this.overallItemStatistic = builder.overallItemStatistic;
this.overallStatistic = builder.overallStatistic;
this.requestId = builder.requestId;
this.summarys = builder.summarys;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return overallItemStatistic
*/
public OverallItemStatistic getOverallItemStatistic() {
return this.overallItemStatistic;
}
/**
* @return overallStatistic
*/
public OverallStatistic getOverallStatistic() {
return this.overallStatistic;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return summarys
*/
public java.util.List<Summarys> getSummarys() {
return this.summarys;
}
public static final class Builder {
private OverallItemStatistic overallItemStatistic;
private OverallStatistic overallStatistic;
private String requestId;
private java.util.List<Summarys> summarys;
private Builder() {
}
private Builder(GetCheckSummaryResponseBody model) {
this.overallItemStatistic = model.overallItemStatistic;
this.overallStatistic = model.overallStatistic;
this.requestId = model.requestId;
this.summarys = model.summarys;
}
/**
* <p>The statistics about the number of check items.</p>
*/
public Builder overallItemStatistic(OverallItemStatistic overallItemStatistic) {
this.overallItemStatistic = overallItemStatistic;
return this;
}
/**
* <p>The overall risk statistics.</p>
*/
public Builder overallStatistic(OverallStatistic overallStatistic) {
this.overallStatistic = overallStatistic;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>843E4805-****-7EE12FA8DBFD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The summary information about the configuration checks on cloud services.</p>
*/
public Builder summarys(java.util.List<Summarys> summarys) {
this.summarys = summarys;
return this;
}
public GetCheckSummaryResponseBody build() {
return new GetCheckSummaryResponseBody(this);
}
}
/**
*
* {@link GetCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSummaryResponseBody</p>
*/
public static class OverallItemStatistic extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ReleaseCount")
private Integer releaseCount;
@com.aliyun.core.annotation.NameInMap("ResultCount")
private Integer resultCount;
private OverallItemStatistic(Builder builder) {
this.releaseCount = builder.releaseCount;
this.resultCount = builder.resultCount;
}
public static Builder builder() {
return new Builder();
}
public static OverallItemStatistic create() {
return builder().build();
}
/**
* @return releaseCount
*/
public Integer getReleaseCount() {
return this.releaseCount;
}
/**
* @return resultCount
*/
public Integer getResultCount() {
return this.resultCount;
}
public static final class Builder {
private Integer releaseCount;
private Integer resultCount;
private Builder() {
}
private Builder(OverallItemStatistic model) {
this.releaseCount = model.releaseCount;
this.resultCount = model.resultCount;
}
/**
* <p>The number of check items supported by the system.</p>
*
* <strong>example:</strong>
* <p>620</p>
*/
public Builder releaseCount(Integer releaseCount) {
this.releaseCount = releaseCount;
return this;
}
/**
* <p>The number of check items available to you.</p>
*
* <strong>example:</strong>
* <p>25</p>
*/
public Builder resultCount(Integer resultCount) {
this.resultCount = resultCount;
return this;
}
public OverallItemStatistic build() {
return new OverallItemStatistic(this);
}
}
}
/**
*
* {@link GetCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSummaryResponseBody</p>
*/
public static class OverallStatistic extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NotCheckCount")
private Integer notCheckCount;
@com.aliyun.core.annotation.NameInMap("NotCheckHighCount")
private Integer notCheckHighCount;
@com.aliyun.core.annotation.NameInMap("NotCheckLowCount")
private Integer notCheckLowCount;
@com.aliyun.core.annotation.NameInMap("NotCheckMediumCount")
private Integer notCheckMediumCount;
@com.aliyun.core.annotation.NameInMap("NotPassCount")
private Integer notPassCount;
@com.aliyun.core.annotation.NameInMap("NotPassHighCount")
private Integer notPassHighCount;
@com.aliyun.core.annotation.NameInMap("NotPassLowCount")
private Integer notPassLowCount;
@com.aliyun.core.annotation.NameInMap("NotPassMediumCount")
private Integer notPassMediumCount;
@com.aliyun.core.annotation.NameInMap("PassCount")
private Integer passCount;
@com.aliyun.core.annotation.NameInMap("PassHighCount")
private Integer passHighCount;
@com.aliyun.core.annotation.NameInMap("PassLowCount")
private Integer passLowCount;
@com.aliyun.core.annotation.NameInMap("PassMediumCount")
private Integer passMediumCount;
private OverallStatistic(Builder builder) {
this.notCheckCount = builder.notCheckCount;
this.notCheckHighCount = builder.notCheckHighCount;
this.notCheckLowCount = builder.notCheckLowCount;
this.notCheckMediumCount = builder.notCheckMediumCount;
this.notPassCount = builder.notPassCount;
this.notPassHighCount = builder.notPassHighCount;
this.notPassLowCount = builder.notPassLowCount;
this.notPassMediumCount = builder.notPassMediumCount;
this.passCount = builder.passCount;
this.passHighCount = builder.passHighCount;
this.passLowCount = builder.passLowCount;
this.passMediumCount = builder.passMediumCount;
}
public static Builder builder() {
return new Builder();
}
public static OverallStatistic create() {
return builder().build();
}
/**
* @return notCheckCount
*/
public Integer getNotCheckCount() {
return this.notCheckCount;
}
/**
* @return notCheckHighCount
*/
public Integer getNotCheckHighCount() {
return this.notCheckHighCount;
}
/**
* @return notCheckLowCount
*/
public Integer getNotCheckLowCount() {
return this.notCheckLowCount;
}
/**
* @return notCheckMediumCount
*/
public Integer getNotCheckMediumCount() {
return this.notCheckMediumCount;
}
/**
* @return notPassCount
*/
public Integer getNotPassCount() {
return this.notPassCount;
}
/**
* @return notPassHighCount
*/
public Integer getNotPassHighCount() {
return this.notPassHighCount;
}
/**
* @return notPassLowCount
*/
public Integer getNotPassLowCount() {
return this.notPassLowCount;
}
/**
* @return notPassMediumCount
*/
public Integer getNotPassMediumCount() {
return this.notPassMediumCount;
}
/**
* @return passCount
*/
public Integer getPassCount() {
return this.passCount;
}
/**
* @return passHighCount
*/
public Integer getPassHighCount() {
return this.passHighCount;
}
/**
* @return passLowCount
*/
public Integer getPassLowCount() {
return this.passLowCount;
}
/**
* @return passMediumCount
*/
public Integer getPassMediumCount() {
return this.passMediumCount;
}
public static final class Builder {
private Integer notCheckCount;
private Integer notCheckHighCount;
private Integer notCheckLowCount;
private Integer notCheckMediumCount;
private Integer notPassCount;
private Integer notPassHighCount;
private Integer notPassLowCount;
private Integer notPassMediumCount;
private Integer passCount;
private Integer passHighCount;
private Integer passLowCount;
private Integer passMediumCount;
private Builder() {
}
private Builder(OverallStatistic model) {
this.notCheckCount = model.notCheckCount;
this.notCheckHighCount = model.notCheckHighCount;
this.notCheckLowCount = model.notCheckLowCount;
this.notCheckMediumCount = model.notCheckMediumCount;
this.notPassCount = model.notPassCount;
this.notPassHighCount = model.notPassHighCount;
this.notPassLowCount = model.notPassLowCount;
this.notPassMediumCount = model.notPassMediumCount;
this.passCount = model.passCount;
this.passHighCount = model.passHighCount;
this.passLowCount = model.passLowCount;
this.passMediumCount = model.passMediumCount;
}
/**
* <p>The number of unchecked check items.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder notCheckCount(Integer notCheckCount) {
this.notCheckCount = notCheckCount;
return this;
}
/**
* <p>The number of unchecked high-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckHighCount(Integer notCheckHighCount) {
this.notCheckHighCount = notCheckHighCount;
return this;
}
/**
* <p>The number of unchecked low-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckLowCount(Integer notCheckLowCount) {
this.notCheckLowCount = notCheckLowCount;
return this;
}
/**
* <p>The number of unchecked medium-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckMediumCount(Integer notCheckMediumCount) {
this.notCheckMediumCount = notCheckMediumCount;
return this;
}
/**
* <p>The number of check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder notPassCount(Integer notPassCount) {
this.notPassCount = notPassCount;
return this;
}
/**
* <p>The number of high-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassHighCount(Integer notPassHighCount) {
this.notPassHighCount = notPassHighCount;
return this;
}
/**
* <p>The number of low-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassLowCount(Integer notPassLowCount) {
this.notPassLowCount = notPassLowCount;
return this;
}
/**
* <p>The number of medium-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassMediumCount(Integer notPassMediumCount) {
this.notPassMediumCount = notPassMediumCount;
return this;
}
/**
* <p>The number of check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder passCount(Integer passCount) {
this.passCount = passCount;
return this;
}
/**
* <p>The number of high-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passHighCount(Integer passHighCount) {
this.passHighCount = passHighCount;
return this;
}
/**
* <p>The number of low-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passLowCount(Integer passLowCount) {
this.passLowCount = passLowCount;
return this;
}
/**
* <p>The number of medium-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passMediumCount(Integer passMediumCount) {
this.passMediumCount = passMediumCount;
return this;
}
public OverallStatistic build() {
return new OverallStatistic(this);
}
}
}
/**
*
* {@link GetCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSummaryResponseBody</p>
*/
public static class StandardStatistic extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NotCheckCount")
private Integer notCheckCount;
@com.aliyun.core.annotation.NameInMap("NotCheckHighCount")
private Integer notCheckHighCount;
@com.aliyun.core.annotation.NameInMap("NotCheckLowCount")
private Integer notCheckLowCount;
@com.aliyun.core.annotation.NameInMap("NotCheckMediumCount")
private Integer notCheckMediumCount;
@com.aliyun.core.annotation.NameInMap("NotPassCount")
private Integer notPassCount;
@com.aliyun.core.annotation.NameInMap("NotPassHighCount")
private Integer notPassHighCount;
@com.aliyun.core.annotation.NameInMap("NotPassLowCount")
private Integer notPassLowCount;
@com.aliyun.core.annotation.NameInMap("NotPassMediumCount")
private Integer notPassMediumCount;
@com.aliyun.core.annotation.NameInMap("PassCount")
private Integer passCount;
@com.aliyun.core.annotation.NameInMap("PassHighCount")
private Integer passHighCount;
@com.aliyun.core.annotation.NameInMap("PassLowCount")
private Integer passLowCount;
@com.aliyun.core.annotation.NameInMap("PassMediumCount")
private Integer passMediumCount;
private StandardStatistic(Builder builder) {
this.notCheckCount = builder.notCheckCount;
this.notCheckHighCount = builder.notCheckHighCount;
this.notCheckLowCount = builder.notCheckLowCount;
this.notCheckMediumCount = builder.notCheckMediumCount;
this.notPassCount = builder.notPassCount;
this.notPassHighCount = builder.notPassHighCount;
this.notPassLowCount = builder.notPassLowCount;
this.notPassMediumCount = builder.notPassMediumCount;
this.passCount = builder.passCount;
this.passHighCount = builder.passHighCount;
this.passLowCount = builder.passLowCount;
this.passMediumCount = builder.passMediumCount;
}
public static Builder builder() {
return new Builder();
}
public static StandardStatistic create() {
return builder().build();
}
/**
* @return notCheckCount
*/
public Integer getNotCheckCount() {
return this.notCheckCount;
}
/**
* @return notCheckHighCount
*/
public Integer getNotCheckHighCount() {
return this.notCheckHighCount;
}
/**
* @return notCheckLowCount
*/
public Integer getNotCheckLowCount() {
return this.notCheckLowCount;
}
/**
* @return notCheckMediumCount
*/
public Integer getNotCheckMediumCount() {
return this.notCheckMediumCount;
}
/**
* @return notPassCount
*/
public Integer getNotPassCount() {
return this.notPassCount;
}
/**
* @return notPassHighCount
*/
public Integer getNotPassHighCount() {
return this.notPassHighCount;
}
/**
* @return notPassLowCount
*/
public Integer getNotPassLowCount() {
return this.notPassLowCount;
}
/**
* @return notPassMediumCount
*/
public Integer getNotPassMediumCount() {
return this.notPassMediumCount;
}
/**
* @return passCount
*/
public Integer getPassCount() {
return this.passCount;
}
/**
* @return passHighCount
*/
public Integer getPassHighCount() {
return this.passHighCount;
}
/**
* @return passLowCount
*/
public Integer getPassLowCount() {
return this.passLowCount;
}
/**
* @return passMediumCount
*/
public Integer getPassMediumCount() {
return this.passMediumCount;
}
public static final class Builder {
private Integer notCheckCount;
private Integer notCheckHighCount;
private Integer notCheckLowCount;
private Integer notCheckMediumCount;
private Integer notPassCount;
private Integer notPassHighCount;
private Integer notPassLowCount;
private Integer notPassMediumCount;
private Integer passCount;
private Integer passHighCount;
private Integer passLowCount;
private Integer passMediumCount;
private Builder() {
}
private Builder(StandardStatistic model) {
this.notCheckCount = model.notCheckCount;
this.notCheckHighCount = model.notCheckHighCount;
this.notCheckLowCount = model.notCheckLowCount;
this.notCheckMediumCount = model.notCheckMediumCount;
this.notPassCount = model.notPassCount;
this.notPassHighCount = model.notPassHighCount;
this.notPassLowCount = model.notPassLowCount;
this.notPassMediumCount = model.notPassMediumCount;
this.passCount = model.passCount;
this.passHighCount = model.passHighCount;
this.passLowCount = model.passLowCount;
this.passMediumCount = model.passMediumCount;
}
/**
* <p>The number of unchecked check items.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder notCheckCount(Integer notCheckCount) {
this.notCheckCount = notCheckCount;
return this;
}
/**
* <p>The number of unchecked high-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckHighCount(Integer notCheckHighCount) {
this.notCheckHighCount = notCheckHighCount;
return this;
}
/**
* <p>The number of unchecked low-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckLowCount(Integer notCheckLowCount) {
this.notCheckLowCount = notCheckLowCount;
return this;
}
/**
* <p>The number of unchecked medium-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckMediumCount(Integer notCheckMediumCount) {
this.notCheckMediumCount = notCheckMediumCount;
return this;
}
/**
* <p>The number of check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder notPassCount(Integer notPassCount) {
this.notPassCount = notPassCount;
return this;
}
/**
* <p>The number of high-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassHighCount(Integer notPassHighCount) {
this.notPassHighCount = notPassHighCount;
return this;
}
/**
* <p>The number of low-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassLowCount(Integer notPassLowCount) {
this.notPassLowCount = notPassLowCount;
return this;
}
/**
* <p>The number of medium-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassMediumCount(Integer notPassMediumCount) {
this.notPassMediumCount = notPassMediumCount;
return this;
}
/**
* <p>The number of check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder passCount(Integer passCount) {
this.passCount = passCount;
return this;
}
/**
* <p>The number of high-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passHighCount(Integer passHighCount) {
this.passHighCount = passHighCount;
return this;
}
/**
* <p>The number of low-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passLowCount(Integer passLowCount) {
this.passLowCount = passLowCount;
return this;
}
/**
* <p>The number of medium-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passMediumCount(Integer passMediumCount) {
this.passMediumCount = passMediumCount;
return this;
}
public StandardStatistic build() {
return new StandardStatistic(this);
}
}
}
/**
*
* {@link GetCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSummaryResponseBody</p>
*/
public static class Standards extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FailCount")
private Integer failCount;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("PassCount")
private Integer passCount;
@com.aliyun.core.annotation.NameInMap("RiskLevelHighCount")
private Integer riskLevelHighCount;
@com.aliyun.core.annotation.NameInMap("RiskLevelLowCount")
private Integer riskLevelLowCount;
@com.aliyun.core.annotation.NameInMap("RiskLevelMediumCount")
private Integer riskLevelMediumCount;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("StandardStatistic")
private StandardStatistic standardStatistic;
private Standards(Builder builder) {
this.failCount = builder.failCount;
this.id = builder.id;
this.passCount = builder.passCount;
this.riskLevelHighCount = builder.riskLevelHighCount;
this.riskLevelLowCount = builder.riskLevelLowCount;
this.riskLevelMediumCount = builder.riskLevelMediumCount;
this.showName = builder.showName;
this.standardStatistic = builder.standardStatistic;
}
public static Builder builder() {
return new Builder();
}
public static Standards create() {
return builder().build();
}
/**
* @return failCount
*/
public Integer getFailCount() {
return this.failCount;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return passCount
*/
public Integer getPassCount() {
return this.passCount;
}
/**
* @return riskLevelHighCount
*/
public Integer getRiskLevelHighCount() {
return this.riskLevelHighCount;
}
/**
* @return riskLevelLowCount
*/
public Integer getRiskLevelLowCount() {
return this.riskLevelLowCount;
}
/**
* @return riskLevelMediumCount
*/
public Integer getRiskLevelMediumCount() {
return this.riskLevelMediumCount;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return standardStatistic
*/
public StandardStatistic getStandardStatistic() {
return this.standardStatistic;
}
public static final class Builder {
private Integer failCount;
private Long id;
private Integer passCount;
private Integer riskLevelHighCount;
private Integer riskLevelLowCount;
private Integer riskLevelMediumCount;
private String showName;
private StandardStatistic standardStatistic;
private Builder() {
}
private Builder(Standards model) {
this.failCount = model.failCount;
this.id = model.id;
this.passCount = model.passCount;
this.riskLevelHighCount = model.riskLevelHighCount;
this.riskLevelLowCount = model.riskLevelLowCount;
this.riskLevelMediumCount = model.riskLevelMediumCount;
this.showName = model.showName;
this.standardStatistic = model.standardStatistic;
}
/**
* <p>The number of check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder failCount(Integer failCount) {
this.failCount = failCount;
return this;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The number of check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passCount(Integer passCount) {
this.passCount = passCount;
return this;
}
/**
* <p>The number of <strong>high-risk</strong> items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder riskLevelHighCount(Integer riskLevelHighCount) {
this.riskLevelHighCount = riskLevelHighCount;
return this;
}
/**
* <p>The number of <strong>low-risk</strong> items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder riskLevelLowCount(Integer riskLevelLowCount) {
this.riskLevelLowCount = riskLevelLowCount;
return this;
}
/**
* <p>The number of <strong>medium-risk</strong> items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder riskLevelMediumCount(Integer riskLevelMediumCount) {
this.riskLevelMediumCount = riskLevelMediumCount;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>Identity and permission management</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The standard statistics of the check items.</p>
*/
public Builder standardStatistic(StandardStatistic standardStatistic) {
this.standardStatistic = standardStatistic;
return this;
}
public Standards build() {
return new Standards(this);
}
}
}
/**
*
* {@link GetCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSummaryResponseBody</p>
*/
public static class TypeStatistic extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NotCheckCount")
private Integer notCheckCount;
@com.aliyun.core.annotation.NameInMap("NotCheckHighCount")
private Integer notCheckHighCount;
@com.aliyun.core.annotation.NameInMap("NotCheckLowCount")
private Integer notCheckLowCount;
@com.aliyun.core.annotation.NameInMap("NotCheckMediumCount")
private Integer notCheckMediumCount;
@com.aliyun.core.annotation.NameInMap("NotPassCount")
private Integer notPassCount;
@com.aliyun.core.annotation.NameInMap("NotPassHighCount")
private Integer notPassHighCount;
@com.aliyun.core.annotation.NameInMap("NotPassLowCount")
private Integer notPassLowCount;
@com.aliyun.core.annotation.NameInMap("NotPassMediumCount")
private Integer notPassMediumCount;
@com.aliyun.core.annotation.NameInMap("PassCount")
private Integer passCount;
@com.aliyun.core.annotation.NameInMap("PassHighCount")
private Integer passHighCount;
@com.aliyun.core.annotation.NameInMap("PassLowCount")
private Integer passLowCount;
@com.aliyun.core.annotation.NameInMap("PassMediumCount")
private Integer passMediumCount;
private TypeStatistic(Builder builder) {
this.notCheckCount = builder.notCheckCount;
this.notCheckHighCount = builder.notCheckHighCount;
this.notCheckLowCount = builder.notCheckLowCount;
this.notCheckMediumCount = builder.notCheckMediumCount;
this.notPassCount = builder.notPassCount;
this.notPassHighCount = builder.notPassHighCount;
this.notPassLowCount = builder.notPassLowCount;
this.notPassMediumCount = builder.notPassMediumCount;
this.passCount = builder.passCount;
this.passHighCount = builder.passHighCount;
this.passLowCount = builder.passLowCount;
this.passMediumCount = builder.passMediumCount;
}
public static Builder builder() {
return new Builder();
}
public static TypeStatistic create() {
return builder().build();
}
/**
* @return notCheckCount
*/
public Integer getNotCheckCount() {
return this.notCheckCount;
}
/**
* @return notCheckHighCount
*/
public Integer getNotCheckHighCount() {
return this.notCheckHighCount;
}
/**
* @return notCheckLowCount
*/
public Integer getNotCheckLowCount() {
return this.notCheckLowCount;
}
/**
* @return notCheckMediumCount
*/
public Integer getNotCheckMediumCount() {
return this.notCheckMediumCount;
}
/**
* @return notPassCount
*/
public Integer getNotPassCount() {
return this.notPassCount;
}
/**
* @return notPassHighCount
*/
public Integer getNotPassHighCount() {
return this.notPassHighCount;
}
/**
* @return notPassLowCount
*/
public Integer getNotPassLowCount() {
return this.notPassLowCount;
}
/**
* @return notPassMediumCount
*/
public Integer getNotPassMediumCount() {
return this.notPassMediumCount;
}
/**
* @return passCount
*/
public Integer getPassCount() {
return this.passCount;
}
/**
* @return passHighCount
*/
public Integer getPassHighCount() {
return this.passHighCount;
}
/**
* @return passLowCount
*/
public Integer getPassLowCount() {
return this.passLowCount;
}
/**
* @return passMediumCount
*/
public Integer getPassMediumCount() {
return this.passMediumCount;
}
public static final class Builder {
private Integer notCheckCount;
private Integer notCheckHighCount;
private Integer notCheckLowCount;
private Integer notCheckMediumCount;
private Integer notPassCount;
private Integer notPassHighCount;
private Integer notPassLowCount;
private Integer notPassMediumCount;
private Integer passCount;
private Integer passHighCount;
private Integer passLowCount;
private Integer passMediumCount;
private Builder() {
}
private Builder(TypeStatistic model) {
this.notCheckCount = model.notCheckCount;
this.notCheckHighCount = model.notCheckHighCount;
this.notCheckLowCount = model.notCheckLowCount;
this.notCheckMediumCount = model.notCheckMediumCount;
this.notPassCount = model.notPassCount;
this.notPassHighCount = model.notPassHighCount;
this.notPassLowCount = model.notPassLowCount;
this.notPassMediumCount = model.notPassMediumCount;
this.passCount = model.passCount;
this.passHighCount = model.passHighCount;
this.passLowCount = model.passLowCount;
this.passMediumCount = model.passMediumCount;
}
/**
* <p>The number of unchecked check items.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder notCheckCount(Integer notCheckCount) {
this.notCheckCount = notCheckCount;
return this;
}
/**
* <p>The number of unchecked high-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckHighCount(Integer notCheckHighCount) {
this.notCheckHighCount = notCheckHighCount;
return this;
}
/**
* <p>The number of unchecked low-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckLowCount(Integer notCheckLowCount) {
this.notCheckLowCount = notCheckLowCount;
return this;
}
/**
* <p>The number of unchecked medium-risk check items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notCheckMediumCount(Integer notCheckMediumCount) {
this.notCheckMediumCount = notCheckMediumCount;
return this;
}
/**
* <p>The number of check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder notPassCount(Integer notPassCount) {
this.notPassCount = notPassCount;
return this;
}
/**
* <p>The number of high-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassHighCount(Integer notPassHighCount) {
this.notPassHighCount = notPassHighCount;
return this;
}
/**
* <p>The number of low-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassLowCount(Integer notPassLowCount) {
this.notPassLowCount = notPassLowCount;
return this;
}
/**
* <p>The number of medium-risk check items that failed to pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder notPassMediumCount(Integer notPassMediumCount) {
this.notPassMediumCount = notPassMediumCount;
return this;
}
/**
* <p>The number of check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder passCount(Integer passCount) {
this.passCount = passCount;
return this;
}
/**
* <p>The number of high-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passHighCount(Integer passHighCount) {
this.passHighCount = passHighCount;
return this;
}
/**
* <p>The number of low-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passLowCount(Integer passLowCount) {
this.passLowCount = passLowCount;
return this;
}
/**
* <p>The number of medium-risk check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder passMediumCount(Integer passMediumCount) {
this.passMediumCount = passMediumCount;
return this;
}
public TypeStatistic build() {
return new TypeStatistic(this);
}
}
}
/**
*
* {@link GetCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCheckSummaryResponseBody</p>
*/
public static class Summarys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FailCount")
private Integer failCount;
@com.aliyun.core.annotation.NameInMap("PassCount")
private Long passCount;
@com.aliyun.core.annotation.NameInMap("Standards")
private java.util.List<Standards> standards;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("TypeStatistic")
private TypeStatistic typeStatistic;
private Summarys(Builder builder) {
this.failCount = builder.failCount;
this.passCount = builder.passCount;
this.standards = builder.standards;
this.type = builder.type;
this.typeStatistic = builder.typeStatistic;
}
public static Builder builder() {
return new Builder();
}
public static Summarys create() {
return builder().build();
}
/**
* @return failCount
*/
public Integer getFailCount() {
return this.failCount;
}
/**
* @return passCount
*/
public Long getPassCount() {
return this.passCount;
}
/**
* @return standards
*/
public java.util.List<Standards> getStandards() {
return this.standards;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return typeStatistic
*/
public TypeStatistic getTypeStatistic() {
return this.typeStatistic;
}
public static final class Builder {
private Integer failCount;
private Long passCount;
private java.util.List<Standards> standards;
private String type;
private TypeStatistic typeStatistic;
private Builder() {
}
private Builder(Summarys model) {
this.failCount = model.failCount;
this.passCount = model.passCount;
this.standards = model.standards;
this.type = model.type;
this.typeStatistic = model.typeStatistic;
}
/**
* <p>The number of detected risk items.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder failCount(Integer failCount) {
this.failCount = failCount;
return this;
}
/**
* <p>The number of check items that pass the check.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder passCount(Long passCount) {
this.passCount = passCount;
return this;
}
/**
* <p>The information about the check items.</p>
*/
public Builder standards(java.util.List<Standards> standards) {
this.standards = standards;
return this;
}
/**
* <p>The type of the check item. Valid values:</p>
* <ul>
* <li><strong>COMPLIANCE</strong></li>
* <li><strong>RISK</strong></li>
* <li><strong>IDENTITY_PERMISSION</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IDENTITY_PERMISSION</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The risk statistics by type.</p>
*/
public Builder typeStatistic(TypeStatistic typeStatistic) {
this.typeStatistic = typeStatistic;
return this;
}
public Summarys build() {
return new Summarys(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckTimeDimensionStatisticRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckTimeDimensionStatisticRequest} extends {@link RequestModel}
*
* <p>GetCheckTimeDimensionStatisticRequest</p>
*/
public class GetCheckTimeDimensionStatisticRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTimeStamp")
private Long endTimeStamp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTimeStamp")
private Long startTimeStamp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatisticType")
private String statisticType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Vendors")
private java.util.List<String> vendors;
private GetCheckTimeDimensionStatisticRequest(Builder builder) {
super(builder);
this.endTimeStamp = builder.endTimeStamp;
this.startTimeStamp = builder.startTimeStamp;
this.statisticType = builder.statisticType;
this.vendors = builder.vendors;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckTimeDimensionStatisticRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return endTimeStamp
*/
public Long getEndTimeStamp() {
return this.endTimeStamp;
}
/**
* @return startTimeStamp
*/
public Long getStartTimeStamp() {
return this.startTimeStamp;
}
/**
* @return statisticType
*/
public String getStatisticType() {
return this.statisticType;
}
/**
* @return vendors
*/
public java.util.List<String> getVendors() {
return this.vendors;
}
public static final class Builder extends Request.Builder<GetCheckTimeDimensionStatisticRequest, Builder> {
private Long endTimeStamp;
private Long startTimeStamp;
private String statisticType;
private java.util.List<String> vendors;
private Builder() {
super();
}
private Builder(GetCheckTimeDimensionStatisticRequest request) {
super(request);
this.endTimeStamp = request.endTimeStamp;
this.startTimeStamp = request.startTimeStamp;
this.statisticType = request.statisticType;
this.vendors = request.vendors;
}
/**
* <p>End time, in timestamp format.</p>
*
* <strong>example:</strong>
* <p>1672285044000</p>
*/
public Builder endTimeStamp(Long endTimeStamp) {
this.putQueryParameter("EndTimeStamp", endTimeStamp);
this.endTimeStamp = endTimeStamp;
return this;
}
/**
* <p>Start time, in timestamp format.</p>
*
* <strong>example:</strong>
* <p>1672385044000</p>
*/
public Builder startTimeStamp(Long startTimeStamp) {
this.putQueryParameter("StartTimeStamp", startTimeStamp);
this.startTimeStamp = startTimeStamp;
return this;
}
/**
* <p>Type of statistical data. Values:</p>
* <ul>
* <li><strong>CheckPassRate</strong>: Check item pass rate.</li>
* <li><strong>AssetPassRate</strong>: Asset pass rate.</li>
* </ul>
*
* <strong>example:</strong>
* <p>AssetPassRate</p>
*/
public Builder statisticType(String statisticType) {
this.putQueryParameter("StatisticType", statisticType);
this.statisticType = statisticType;
return this;
}
/**
* <p>List of cloud vendors.</p>
*/
public Builder vendors(java.util.List<String> vendors) {
this.putQueryParameter("Vendors", vendors);
this.vendors = vendors;
return this;
}
@Override
public GetCheckTimeDimensionStatisticRequest build() {
return new GetCheckTimeDimensionStatisticRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckTimeDimensionStatisticResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckTimeDimensionStatisticResponse} extends {@link TeaModel}
*
* <p>GetCheckTimeDimensionStatisticResponse</p>
*/
public class GetCheckTimeDimensionStatisticResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCheckTimeDimensionStatisticResponseBody body;
private GetCheckTimeDimensionStatisticResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCheckTimeDimensionStatisticResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCheckTimeDimensionStatisticResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCheckTimeDimensionStatisticResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCheckTimeDimensionStatisticResponseBody body);
@Override
GetCheckTimeDimensionStatisticResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCheckTimeDimensionStatisticResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCheckTimeDimensionStatisticResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCheckTimeDimensionStatisticResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCheckTimeDimensionStatisticResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCheckTimeDimensionStatisticResponse build() {
return new GetCheckTimeDimensionStatisticResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCheckTimeDimensionStatisticResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCheckTimeDimensionStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetCheckTimeDimensionStatisticResponseBody</p>
*/
public class GetCheckTimeDimensionStatisticResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TimeDimensionStatisticDTO")
private TimeDimensionStatisticDTO timeDimensionStatisticDTO;
private GetCheckTimeDimensionStatisticResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.timeDimensionStatisticDTO = builder.timeDimensionStatisticDTO;
}
public static Builder builder() {
return new Builder();
}
public static GetCheckTimeDimensionStatisticResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return timeDimensionStatisticDTO
*/
public TimeDimensionStatisticDTO getTimeDimensionStatisticDTO() {
return this.timeDimensionStatisticDTO;
}
public static final class Builder {
private String requestId;
private TimeDimensionStatisticDTO timeDimensionStatisticDTO;
private Builder() {
}
private Builder(GetCheckTimeDimensionStatisticResponseBody model) {
this.requestId = model.requestId;
this.timeDimensionStatisticDTO = model.timeDimensionStatisticDTO;
}
/**
* <p>The ID of the current request, a unique identifier generated by Alibaba Cloud for this request, which can be used to troubleshoot and locate issues.</p>
*
* <strong>example:</strong>
* <p>028CF634-5268-5660-9575-48C9ED6B****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>List of time trend statistical data results.</p>
*/
public Builder timeDimensionStatisticDTO(TimeDimensionStatisticDTO timeDimensionStatisticDTO) {
this.timeDimensionStatisticDTO = timeDimensionStatisticDTO;
return this;
}
public GetCheckTimeDimensionStatisticResponseBody build() {
return new GetCheckTimeDimensionStatisticResponseBody(this);
}
}
/**
*
* {@link GetCheckTimeDimensionStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetCheckTimeDimensionStatisticResponseBody</p>
*/
public static class StatisticDatas extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Value")
private Integer value;
private StatisticDatas(Builder builder) {
this.name = builder.name;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static StatisticDatas create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return value
*/
public Integer getValue() {
return this.value;
}
public static final class Builder {
private String name;
private Integer value;
private Builder() {
}
private Builder(StatisticDatas model) {
this.name = model.name;
this.value = model.value;
}
/**
* <p>Data type.</p>
*
* <strong>example:</strong>
* <p>COMPLIANCE_Pass</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>Quantity.</p>
*
* <strong>example:</strong>
* <p>194</p>
*/
public Builder value(Integer value) {
this.value = value;
return this;
}
public StatisticDatas build() {
return new StatisticDatas(this);
}
}
}
/**
*
* {@link GetCheckTimeDimensionStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetCheckTimeDimensionStatisticResponseBody</p>
*/
public static class TimeDimensionStatisticItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DataTime")
private Long dataTime;
@com.aliyun.core.annotation.NameInMap("StatisticDatas")
private java.util.List<StatisticDatas> statisticDatas;
private TimeDimensionStatisticItems(Builder builder) {
this.dataTime = builder.dataTime;
this.statisticDatas = builder.statisticDatas;
}
public static Builder builder() {
return new Builder();
}
public static TimeDimensionStatisticItems create() {
return builder().build();
}
/**
* @return dataTime
*/
public Long getDataTime() {
return this.dataTime;
}
/**
* @return statisticDatas
*/
public java.util.List<StatisticDatas> getStatisticDatas() {
return this.statisticDatas;
}
public static final class Builder {
private Long dataTime;
private java.util.List<StatisticDatas> statisticDatas;
private Builder() {
}
private Builder(TimeDimensionStatisticItems model) {
this.dataTime = model.dataTime;
this.statisticDatas = model.statisticDatas;
}
/**
* <p>Data time, in timestamp format.</p>
*
* <strong>example:</strong>
* <p>1712592000000</p>
*/
public Builder dataTime(Long dataTime) {
this.dataTime = dataTime;
return this;
}
/**
* <p>List of statistical data.</p>
*/
public Builder statisticDatas(java.util.List<StatisticDatas> statisticDatas) {
this.statisticDatas = statisticDatas;
return this;
}
public TimeDimensionStatisticItems build() {
return new TimeDimensionStatisticItems(this);
}
}
}
/**
*
* {@link GetCheckTimeDimensionStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetCheckTimeDimensionStatisticResponseBody</p>
*/
public static class TimeDimensionStatisticDTO extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Dates")
private java.util.List<Long> dates;
@com.aliyun.core.annotation.NameInMap("StatisticType")
private String statisticType;
@com.aliyun.core.annotation.NameInMap("TimeDimensionStatisticItems")
private java.util.List<TimeDimensionStatisticItems> timeDimensionStatisticItems;
private TimeDimensionStatisticDTO(Builder builder) {
this.dates = builder.dates;
this.statisticType = builder.statisticType;
this.timeDimensionStatisticItems = builder.timeDimensionStatisticItems;
}
public static Builder builder() {
return new Builder();
}
public static TimeDimensionStatisticDTO create() {
return builder().build();
}
/**
* @return dates
*/
public java.util.List<Long> getDates() {
return this.dates;
}
/**
* @return statisticType
*/
public String getStatisticType() {
return this.statisticType;
}
/**
* @return timeDimensionStatisticItems
*/
public java.util.List<TimeDimensionStatisticItems> getTimeDimensionStatisticItems() {
return this.timeDimensionStatisticItems;
}
public static final class Builder {
private java.util.List<Long> dates;
private String statisticType;
private java.util.List<TimeDimensionStatisticItems> timeDimensionStatisticItems;
private Builder() {
}
private Builder(TimeDimensionStatisticDTO model) {
this.dates = model.dates;
this.statisticType = model.statisticType;
this.timeDimensionStatisticItems = model.timeDimensionStatisticItems;
}
/**
* <p>List of data time points.</p>
*/
public Builder dates(java.util.List<Long> dates) {
this.dates = dates;
return this;
}
/**
* <p>Type of statistical data. Values:</p>
* <ul>
* <li><strong>CheckPassRate</strong>: Check item pass rate.</li>
* <li><strong>AssetPassRate</strong>: Asset pass rate.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CheckPassRate</p>
*/
public Builder statisticType(String statisticType) {
this.statisticType = statisticType;
return this;
}
/**
* <p>Time trend statistical data results.</p>
*/
public Builder timeDimensionStatisticItems(java.util.List<TimeDimensionStatisticItems> timeDimensionStatisticItems) {
this.timeDimensionStatisticItems = timeDimensionStatisticItems;
return this;
}
public TimeDimensionStatisticDTO build() {
return new TimeDimensionStatisticDTO(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClientRatioStatisticRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClientRatioStatisticRequest} extends {@link RequestModel}
*
* <p>GetClientRatioStatisticRequest</p>
*/
public class GetClientRatioStatisticRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceDirectoryAccountId")
private Long resourceDirectoryAccountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatisticTypes")
private java.util.List<String> statisticTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TimeEnd")
@com.aliyun.core.annotation.Validation(required = true)
private Long timeEnd;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TimeStart")
@com.aliyun.core.annotation.Validation(required = true)
private Long timeStart;
private GetClientRatioStatisticRequest(Builder builder) {
super(builder);
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
this.statisticTypes = builder.statisticTypes;
this.timeEnd = builder.timeEnd;
this.timeStart = builder.timeStart;
}
public static Builder builder() {
return new Builder();
}
public static GetClientRatioStatisticRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return resourceDirectoryAccountId
*/
public Long getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
/**
* @return statisticTypes
*/
public java.util.List<String> getStatisticTypes() {
return this.statisticTypes;
}
/**
* @return timeEnd
*/
public Long getTimeEnd() {
return this.timeEnd;
}
/**
* @return timeStart
*/
public Long getTimeStart() {
return this.timeStart;
}
public static final class Builder extends Request.Builder<GetClientRatioStatisticRequest, Builder> {
private Long resourceDirectoryAccountId;
private java.util.List<String> statisticTypes;
private Long timeEnd;
private Long timeStart;
private Builder() {
super();
}
private Builder(GetClientRatioStatisticRequest request) {
super(request);
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
this.statisticTypes = request.statisticTypes;
this.timeEnd = request.timeEnd;
this.timeStart = request.timeStart;
}
/**
* <p>The ID of the primary account of the Resource Directory member account.</p>
* <blockquote>
* <p>call the <a href="~~DescribeMonitorAccounts~~">DescribeMonitorAccounts</a> interface to obtain this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>127608589417****</p>
*/
public Builder resourceDirectoryAccountId(Long resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
/**
* <p>An array that consists of the details of a statistical type.</p>
*/
public Builder statisticTypes(java.util.List<String> statisticTypes) {
this.putQueryParameter("StatisticTypes", statisticTypes);
this.statisticTypes = statisticTypes;
return this;
}
/**
* <p>The timestamp that specifies the end of the time range to collect statistics. Unit: milliseconds.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1686412799999</p>
*/
public Builder timeEnd(Long timeEnd) {
this.putQueryParameter("TimeEnd", timeEnd);
this.timeEnd = timeEnd;
return this;
}
/**
* <p>The timestamp that specifies the beginning of the time range to collect statistics. Unit: milliseconds.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1671382800000</p>
*/
public Builder timeStart(Long timeStart) {
this.putQueryParameter("TimeStart", timeStart);
this.timeStart = timeStart;
return this;
}
@Override
public GetClientRatioStatisticRequest build() {
return new GetClientRatioStatisticRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClientRatioStatisticResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClientRatioStatisticResponse} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponse</p>
*/
public class GetClientRatioStatisticResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetClientRatioStatisticResponseBody body;
private GetClientRatioStatisticResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetClientRatioStatisticResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetClientRatioStatisticResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetClientRatioStatisticResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetClientRatioStatisticResponseBody body);
@Override
GetClientRatioStatisticResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetClientRatioStatisticResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetClientRatioStatisticResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetClientRatioStatisticResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetClientRatioStatisticResponseBody body) {
this.body = body;
return this;
}
@Override
public GetClientRatioStatisticResponse build() {
return new GetClientRatioStatisticResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClientRatioStatisticResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public class GetClientRatioStatisticResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClientInstallRatio")
private ClientInstallRatio clientInstallRatio;
@com.aliyun.core.annotation.NameInMap("ClientOnlineRatio")
private ClientOnlineRatio clientOnlineRatio;
@com.aliyun.core.annotation.NameInMap("Dates")
private java.util.List<Long> dates;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetClientRatioStatisticResponseBody(Builder builder) {
this.clientInstallRatio = builder.clientInstallRatio;
this.clientOnlineRatio = builder.clientOnlineRatio;
this.dates = builder.dates;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetClientRatioStatisticResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientInstallRatio
*/
public ClientInstallRatio getClientInstallRatio() {
return this.clientInstallRatio;
}
/**
* @return clientOnlineRatio
*/
public ClientOnlineRatio getClientOnlineRatio() {
return this.clientOnlineRatio;
}
/**
* @return dates
*/
public java.util.List<Long> getDates() {
return this.dates;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private ClientInstallRatio clientInstallRatio;
private ClientOnlineRatio clientOnlineRatio;
private java.util.List<Long> dates;
private String requestId;
private Builder() {
}
private Builder(GetClientRatioStatisticResponseBody model) {
this.clientInstallRatio = model.clientInstallRatio;
this.clientOnlineRatio = model.clientOnlineRatio;
this.dates = model.dates;
this.requestId = model.requestId;
}
/**
* <p>The statistics on the client installation rate.</p>
*/
public Builder clientInstallRatio(ClientInstallRatio clientInstallRatio) {
this.clientInstallRatio = clientInstallRatio;
return this;
}
/**
* <p>The statistics on the client online rate.</p>
*/
public Builder clientOnlineRatio(ClientOnlineRatio clientOnlineRatio) {
this.clientOnlineRatio = clientOnlineRatio;
return this;
}
/**
* <p>The list of time when statistics were collected.</p>
*/
public Builder dates(java.util.List<Long> dates) {
this.dates = dates;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetClientRatioStatisticResponseBody build() {
return new GetClientRatioStatisticResponseBody(this);
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetTotalCount")
private Integer assetTotalCount;
@com.aliyun.core.annotation.NameInMap("CalculateTime")
private Long calculateTime;
@com.aliyun.core.annotation.NameInMap("InstallRatio")
private Double installRatio;
@com.aliyun.core.annotation.NameInMap("InstalledAssetCount")
private Integer installedAssetCount;
private Items(Builder builder) {
this.assetTotalCount = builder.assetTotalCount;
this.calculateTime = builder.calculateTime;
this.installRatio = builder.installRatio;
this.installedAssetCount = builder.installedAssetCount;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return assetTotalCount
*/
public Integer getAssetTotalCount() {
return this.assetTotalCount;
}
/**
* @return calculateTime
*/
public Long getCalculateTime() {
return this.calculateTime;
}
/**
* @return installRatio
*/
public Double getInstallRatio() {
return this.installRatio;
}
/**
* @return installedAssetCount
*/
public Integer getInstalledAssetCount() {
return this.installedAssetCount;
}
public static final class Builder {
private Integer assetTotalCount;
private Long calculateTime;
private Double installRatio;
private Integer installedAssetCount;
private Builder() {
}
private Builder(Items model) {
this.assetTotalCount = model.assetTotalCount;
this.calculateTime = model.calculateTime;
this.installRatio = model.installRatio;
this.installedAssetCount = model.installedAssetCount;
}
/**
* <p>The total number of assets.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder assetTotalCount(Integer assetTotalCount) {
this.assetTotalCount = assetTotalCount;
return this;
}
/**
* <p>The timestamp of the calculation. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1687759630045</p>
*/
public Builder calculateTime(Long calculateTime) {
this.calculateTime = calculateTime;
return this;
}
/**
* <p>The installation rate. Unit: %.</p>
*
* <strong>example:</strong>
* <p>70.00</p>
*/
public Builder installRatio(Double installRatio) {
this.installRatio = installRatio;
return this;
}
/**
* <p>The number of assets on which the client is installed.</p>
*
* <strong>example:</strong>
* <p>70</p>
*/
public Builder installedAssetCount(Integer installedAssetCount) {
this.installedAssetCount = installedAssetCount;
return this;
}
public Items build() {
return new Items(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class CurrentItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Long vendor;
private CurrentItems(Builder builder) {
this.items = builder.items;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static CurrentItems create() {
return builder().build();
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return vendor
*/
public Long getVendor() {
return this.vendor;
}
public static final class Builder {
private java.util.List<Items> items;
private Long vendor;
private Builder() {
}
private Builder(CurrentItems model) {
this.items = model.items;
this.vendor = model.vendor;
}
/**
* <p>The list of the statistics on the installation rate of the client by vendor.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The type of the server. Valid values:</p>
* <ul>
* <li><strong>0</strong>: an asset provided by Alibaba Cloud</li>
* <li><strong>1</strong>: a third-party cloud asset</li>
* <li><strong>2</strong>: an asset in a data center</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: other cloud asset</li>
* <li><strong>8</strong>: a lightweight asset</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Long vendor) {
this.vendor = vendor;
return this;
}
public CurrentItems build() {
return new CurrentItems(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class HistoryItemsItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetTotalCount")
private Integer assetTotalCount;
@com.aliyun.core.annotation.NameInMap("CalculateTime")
private Long calculateTime;
@com.aliyun.core.annotation.NameInMap("InstallRatio")
private Double installRatio;
@com.aliyun.core.annotation.NameInMap("InstalledAssetCount")
private Integer installedAssetCount;
private HistoryItemsItems(Builder builder) {
this.assetTotalCount = builder.assetTotalCount;
this.calculateTime = builder.calculateTime;
this.installRatio = builder.installRatio;
this.installedAssetCount = builder.installedAssetCount;
}
public static Builder builder() {
return new Builder();
}
public static HistoryItemsItems create() {
return builder().build();
}
/**
* @return assetTotalCount
*/
public Integer getAssetTotalCount() {
return this.assetTotalCount;
}
/**
* @return calculateTime
*/
public Long getCalculateTime() {
return this.calculateTime;
}
/**
* @return installRatio
*/
public Double getInstallRatio() {
return this.installRatio;
}
/**
* @return installedAssetCount
*/
public Integer getInstalledAssetCount() {
return this.installedAssetCount;
}
public static final class Builder {
private Integer assetTotalCount;
private Long calculateTime;
private Double installRatio;
private Integer installedAssetCount;
private Builder() {
}
private Builder(HistoryItemsItems model) {
this.assetTotalCount = model.assetTotalCount;
this.calculateTime = model.calculateTime;
this.installRatio = model.installRatio;
this.installedAssetCount = model.installedAssetCount;
}
/**
* <p>The total number of assets.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder assetTotalCount(Integer assetTotalCount) {
this.assetTotalCount = assetTotalCount;
return this;
}
/**
* <p>The timestamp of the calculation. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1687759630045</p>
*/
public Builder calculateTime(Long calculateTime) {
this.calculateTime = calculateTime;
return this;
}
/**
* <p>The installation rate. Unit: %.</p>
*
* <strong>example:</strong>
* <p>80.00</p>
*/
public Builder installRatio(Double installRatio) {
this.installRatio = installRatio;
return this;
}
/**
* <p>The number of assets on which the client is installed.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder installedAssetCount(Integer installedAssetCount) {
this.installedAssetCount = installedAssetCount;
return this;
}
public HistoryItemsItems build() {
return new HistoryItemsItems(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class HistoryItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<HistoryItemsItems> items;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Long vendor;
private HistoryItems(Builder builder) {
this.items = builder.items;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static HistoryItems create() {
return builder().build();
}
/**
* @return items
*/
public java.util.List<HistoryItemsItems> getItems() {
return this.items;
}
/**
* @return vendor
*/
public Long getVendor() {
return this.vendor;
}
public static final class Builder {
private java.util.List<HistoryItemsItems> items;
private Long vendor;
private Builder() {
}
private Builder(HistoryItems model) {
this.items = model.items;
this.vendor = model.vendor;
}
/**
* <p>The list of statistics on the client installation rate.</p>
*/
public Builder items(java.util.List<HistoryItemsItems> items) {
this.items = items;
return this;
}
/**
* <p>The type of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: an asset provided by Alibaba Cloud</li>
* <li><strong>1</strong>: a third-party cloud asset</li>
* <li><strong>2</strong>: an asset in a data center</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: other cloud asset</li>
* <li><strong>8</strong>: a simple application server</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder vendor(Long vendor) {
this.vendor = vendor;
return this;
}
public HistoryItems build() {
return new HistoryItems(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class ClientInstallRatio extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentItems")
private java.util.List<CurrentItems> currentItems;
@com.aliyun.core.annotation.NameInMap("HistoryItems")
private java.util.List<HistoryItems> historyItems;
private ClientInstallRatio(Builder builder) {
this.currentItems = builder.currentItems;
this.historyItems = builder.historyItems;
}
public static Builder builder() {
return new Builder();
}
public static ClientInstallRatio create() {
return builder().build();
}
/**
* @return currentItems
*/
public java.util.List<CurrentItems> getCurrentItems() {
return this.currentItems;
}
/**
* @return historyItems
*/
public java.util.List<HistoryItems> getHistoryItems() {
return this.historyItems;
}
public static final class Builder {
private java.util.List<CurrentItems> currentItems;
private java.util.List<HistoryItems> historyItems;
private Builder() {
}
private Builder(ClientInstallRatio model) {
this.currentItems = model.currentItems;
this.historyItems = model.historyItems;
}
/**
* <p>The list of current statistics on the installation rate of the client.</p>
*/
public Builder currentItems(java.util.List<CurrentItems> currentItems) {
this.currentItems = currentItems;
return this;
}
/**
* <p>The list of historical statistics on the installation rate of the client.</p>
*/
public Builder historyItems(java.util.List<HistoryItems> historyItems) {
this.historyItems = historyItems;
return this;
}
public ClientInstallRatio build() {
return new ClientInstallRatio(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class CurrentItemsItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetInstallCount")
private Integer assetInstallCount;
@com.aliyun.core.annotation.NameInMap("CalculateTime")
private Long calculateTime;
@com.aliyun.core.annotation.NameInMap("OnlineAssetCount")
private Integer onlineAssetCount;
@com.aliyun.core.annotation.NameInMap("OnlineRatio")
private Double onlineRatio;
private CurrentItemsItems(Builder builder) {
this.assetInstallCount = builder.assetInstallCount;
this.calculateTime = builder.calculateTime;
this.onlineAssetCount = builder.onlineAssetCount;
this.onlineRatio = builder.onlineRatio;
}
public static Builder builder() {
return new Builder();
}
public static CurrentItemsItems create() {
return builder().build();
}
/**
* @return assetInstallCount
*/
public Integer getAssetInstallCount() {
return this.assetInstallCount;
}
/**
* @return calculateTime
*/
public Long getCalculateTime() {
return this.calculateTime;
}
/**
* @return onlineAssetCount
*/
public Integer getOnlineAssetCount() {
return this.onlineAssetCount;
}
/**
* @return onlineRatio
*/
public Double getOnlineRatio() {
return this.onlineRatio;
}
public static final class Builder {
private Integer assetInstallCount;
private Long calculateTime;
private Integer onlineAssetCount;
private Double onlineRatio;
private Builder() {
}
private Builder(CurrentItemsItems model) {
this.assetInstallCount = model.assetInstallCount;
this.calculateTime = model.calculateTime;
this.onlineAssetCount = model.onlineAssetCount;
this.onlineRatio = model.onlineRatio;
}
/**
* <p>The number of assets on which the client is installed.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder assetInstallCount(Integer assetInstallCount) {
this.assetInstallCount = assetInstallCount;
return this;
}
/**
* <p>The timestamp of the calculation. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1687759630045</p>
*/
public Builder calculateTime(Long calculateTime) {
this.calculateTime = calculateTime;
return this;
}
/**
* <p>The number of online assets.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder onlineAssetCount(Integer onlineAssetCount) {
this.onlineAssetCount = onlineAssetCount;
return this;
}
/**
* <p>The online rate. Unit: %.</p>
*
* <strong>example:</strong>
* <p>20.00</p>
*/
public Builder onlineRatio(Double onlineRatio) {
this.onlineRatio = onlineRatio;
return this;
}
public CurrentItemsItems build() {
return new CurrentItemsItems(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class ClientOnlineRatioCurrentItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<CurrentItemsItems> items;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Long vendor;
private ClientOnlineRatioCurrentItems(Builder builder) {
this.items = builder.items;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static ClientOnlineRatioCurrentItems create() {
return builder().build();
}
/**
* @return items
*/
public java.util.List<CurrentItemsItems> getItems() {
return this.items;
}
/**
* @return vendor
*/
public Long getVendor() {
return this.vendor;
}
public static final class Builder {
private java.util.List<CurrentItemsItems> items;
private Long vendor;
private Builder() {
}
private Builder(ClientOnlineRatioCurrentItems model) {
this.items = model.items;
this.vendor = model.vendor;
}
/**
* <p>The list of current statistics on the online rate of the client by vendor.</p>
*/
public Builder items(java.util.List<CurrentItemsItems> items) {
this.items = items;
return this;
}
/**
* <p>The type of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: an asset provided by Alibaba Cloud</li>
* <li><strong>1</strong>: a third-party cloud asset</li>
* <li><strong>2</strong>: an asset in a data center</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: other cloud asset</li>
* <li><strong>8</strong>: a simple application server</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder vendor(Long vendor) {
this.vendor = vendor;
return this;
}
public ClientOnlineRatioCurrentItems build() {
return new ClientOnlineRatioCurrentItems(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class ClientOnlineRatioHistoryItemsItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetInstallCount")
private Integer assetInstallCount;
@com.aliyun.core.annotation.NameInMap("CalculateTime")
private Long calculateTime;
@com.aliyun.core.annotation.NameInMap("OnlineAssetCount")
private Integer onlineAssetCount;
@com.aliyun.core.annotation.NameInMap("OnlineRatio")
private Double onlineRatio;
private ClientOnlineRatioHistoryItemsItems(Builder builder) {
this.assetInstallCount = builder.assetInstallCount;
this.calculateTime = builder.calculateTime;
this.onlineAssetCount = builder.onlineAssetCount;
this.onlineRatio = builder.onlineRatio;
}
public static Builder builder() {
return new Builder();
}
public static ClientOnlineRatioHistoryItemsItems create() {
return builder().build();
}
/**
* @return assetInstallCount
*/
public Integer getAssetInstallCount() {
return this.assetInstallCount;
}
/**
* @return calculateTime
*/
public Long getCalculateTime() {
return this.calculateTime;
}
/**
* @return onlineAssetCount
*/
public Integer getOnlineAssetCount() {
return this.onlineAssetCount;
}
/**
* @return onlineRatio
*/
public Double getOnlineRatio() {
return this.onlineRatio;
}
public static final class Builder {
private Integer assetInstallCount;
private Long calculateTime;
private Integer onlineAssetCount;
private Double onlineRatio;
private Builder() {
}
private Builder(ClientOnlineRatioHistoryItemsItems model) {
this.assetInstallCount = model.assetInstallCount;
this.calculateTime = model.calculateTime;
this.onlineAssetCount = model.onlineAssetCount;
this.onlineRatio = model.onlineRatio;
}
/**
* <p>The number of assets on which the client is installed.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder assetInstallCount(Integer assetInstallCount) {
this.assetInstallCount = assetInstallCount;
return this;
}
/**
* <p>The timestamp of the calculation. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1687759630045</p>
*/
public Builder calculateTime(Long calculateTime) {
this.calculateTime = calculateTime;
return this;
}
/**
* <p>The number of online assets.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder onlineAssetCount(Integer onlineAssetCount) {
this.onlineAssetCount = onlineAssetCount;
return this;
}
/**
* <p>The online rate. Unit: %.</p>
*
* <strong>example:</strong>
* <p>40.00</p>
*/
public Builder onlineRatio(Double onlineRatio) {
this.onlineRatio = onlineRatio;
return this;
}
public ClientOnlineRatioHistoryItemsItems build() {
return new ClientOnlineRatioHistoryItemsItems(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class ClientOnlineRatioHistoryItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<ClientOnlineRatioHistoryItemsItems> items;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Long vendor;
private ClientOnlineRatioHistoryItems(Builder builder) {
this.items = builder.items;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static ClientOnlineRatioHistoryItems create() {
return builder().build();
}
/**
* @return items
*/
public java.util.List<ClientOnlineRatioHistoryItemsItems> getItems() {
return this.items;
}
/**
* @return vendor
*/
public Long getVendor() {
return this.vendor;
}
public static final class Builder {
private java.util.List<ClientOnlineRatioHistoryItemsItems> items;
private Long vendor;
private Builder() {
}
private Builder(ClientOnlineRatioHistoryItems model) {
this.items = model.items;
this.vendor = model.vendor;
}
/**
* <p>The list of historical statistics on the online rate of the client by vendor.</p>
*/
public Builder items(java.util.List<ClientOnlineRatioHistoryItemsItems> items) {
this.items = items;
return this;
}
/**
* <p>The type of the server. Valid values:</p>
* <ul>
* <li><strong>0</strong>: an asset provided by Alibaba Cloud</li>
* <li><strong>1</strong>: a third-party cloud asset</li>
* <li><strong>2</strong>: an asset in a data center</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: other cloud asset</li>
* <li><strong>8</strong>: a lightweight asset</li>
* </ul>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder vendor(Long vendor) {
this.vendor = vendor;
return this;
}
public ClientOnlineRatioHistoryItems build() {
return new ClientOnlineRatioHistoryItems(this);
}
}
}
/**
*
* {@link GetClientRatioStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetClientRatioStatisticResponseBody</p>
*/
public static class ClientOnlineRatio extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentItems")
private java.util.List<ClientOnlineRatioCurrentItems> currentItems;
@com.aliyun.core.annotation.NameInMap("HistoryItems")
private java.util.List<ClientOnlineRatioHistoryItems> historyItems;
private ClientOnlineRatio(Builder builder) {
this.currentItems = builder.currentItems;
this.historyItems = builder.historyItems;
}
public static Builder builder() {
return new Builder();
}
public static ClientOnlineRatio create() {
return builder().build();
}
/**
* @return currentItems
*/
public java.util.List<ClientOnlineRatioCurrentItems> getCurrentItems() {
return this.currentItems;
}
/**
* @return historyItems
*/
public java.util.List<ClientOnlineRatioHistoryItems> getHistoryItems() {
return this.historyItems;
}
public static final class Builder {
private java.util.List<ClientOnlineRatioCurrentItems> currentItems;
private java.util.List<ClientOnlineRatioHistoryItems> historyItems;
private Builder() {
}
private Builder(ClientOnlineRatio model) {
this.currentItems = model.currentItems;
this.historyItems = model.historyItems;
}
/**
* <p>The list of current statistics on the online rate of the client.</p>
*/
public Builder currentItems(java.util.List<ClientOnlineRatioCurrentItems> currentItems) {
this.currentItems = currentItems;
return this;
}
/**
* <p>The list of historical statistics on the online rate of the client.</p>
*/
public Builder historyItems(java.util.List<ClientOnlineRatioHistoryItems> historyItems) {
this.historyItems = historyItems;
return this;
}
public ClientOnlineRatio build() {
return new ClientOnlineRatio(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClientUserDefineRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClientUserDefineRuleRequest} extends {@link RequestModel}
*
* <p>GetClientUserDefineRuleRequest</p>
*/
public class GetClientUserDefineRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private Long id;
private GetClientUserDefineRuleRequest(Builder builder) {
super(builder);
this.id = builder.id;
}
public static Builder builder() {
return new Builder();
}
public static GetClientUserDefineRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
public static final class Builder extends Request.Builder<GetClientUserDefineRuleRequest, Builder> {
private Long id;
private Builder() {
super();
}
private Builder(GetClientUserDefineRuleRequest request) {
super(request);
this.id = request.id;
}
/**
* <p>The ID of the custom defense rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>200****</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
@Override
public GetClientUserDefineRuleRequest build() {
return new GetClientUserDefineRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClientUserDefineRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClientUserDefineRuleResponse} extends {@link TeaModel}
*
* <p>GetClientUserDefineRuleResponse</p>
*/
public class GetClientUserDefineRuleResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetClientUserDefineRuleResponseBody body;
private GetClientUserDefineRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetClientUserDefineRuleResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetClientUserDefineRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetClientUserDefineRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetClientUserDefineRuleResponseBody body);
@Override
GetClientUserDefineRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetClientUserDefineRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetClientUserDefineRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetClientUserDefineRuleResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetClientUserDefineRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public GetClientUserDefineRuleResponse build() {
return new GetClientUserDefineRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClientUserDefineRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClientUserDefineRuleResponseBody} extends {@link TeaModel}
*
* <p>GetClientUserDefineRuleResponseBody</p>
*/
public class GetClientUserDefineRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UserDefineRuleDetail")
private UserDefineRuleDetail userDefineRuleDetail;
private GetClientUserDefineRuleResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.userDefineRuleDetail = builder.userDefineRuleDetail;
}
public static Builder builder() {
return new Builder();
}
public static GetClientUserDefineRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return userDefineRuleDetail
*/
public UserDefineRuleDetail getUserDefineRuleDetail() {
return this.userDefineRuleDetail;
}
public static final class Builder {
private String requestId;
private UserDefineRuleDetail userDefineRuleDetail;
private Builder() {
}
private Builder(GetClientUserDefineRuleResponseBody model) {
this.requestId = model.requestId;
this.userDefineRuleDetail = model.userDefineRuleDetail;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>0B48AB3C-84FC-424D-A01D-B9270EF4****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the custom defense rule.</p>
*/
public Builder userDefineRuleDetail(UserDefineRuleDetail userDefineRuleDetail) {
this.userDefineRuleDetail = userDefineRuleDetail;
return this;
}
public GetClientUserDefineRuleResponseBody build() {
return new GetClientUserDefineRuleResponseBody(this);
}
}
/**
*
* {@link GetClientUserDefineRuleResponseBody} extends {@link TeaModel}
*
* <p>GetClientUserDefineRuleResponseBody</p>
*/
public static class UserDefineRuleDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActionType")
private String actionType;
@com.aliyun.core.annotation.NameInMap("Cmdline")
private String cmdline;
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("FilePath")
private String filePath;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private Long gmtModified;
@com.aliyun.core.annotation.NameInMap("IP")
private String ip;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Md5List")
private String md5List;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NewFilePath")
private String newFilePath;
@com.aliyun.core.annotation.NameInMap("ParentCmdline")
private String parentCmdline;
@com.aliyun.core.annotation.NameInMap("ParentProcPath")
private String parentProcPath;
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("PortStr")
private String portStr;
@com.aliyun.core.annotation.NameInMap("ProcPath")
private String procPath;
@com.aliyun.core.annotation.NameInMap("RegistryContent")
private String registryContent;
@com.aliyun.core.annotation.NameInMap("RegistryKey")
private String registryKey;
@com.aliyun.core.annotation.NameInMap("Type")
private Integer type;
private UserDefineRuleDetail(Builder builder) {
this.actionType = builder.actionType;
this.cmdline = builder.cmdline;
this.domain = builder.domain;
this.filePath = builder.filePath;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.ip = builder.ip;
this.id = builder.id;
this.md5List = builder.md5List;
this.name = builder.name;
this.newFilePath = builder.newFilePath;
this.parentCmdline = builder.parentCmdline;
this.parentProcPath = builder.parentProcPath;
this.platform = builder.platform;
this.port = builder.port;
this.portStr = builder.portStr;
this.procPath = builder.procPath;
this.registryContent = builder.registryContent;
this.registryKey = builder.registryKey;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static UserDefineRuleDetail create() {
return builder().build();
}
/**
* @return actionType
*/
public String getActionType() {
return this.actionType;
}
/**
* @return cmdline
*/
public String getCmdline() {
return this.cmdline;
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return filePath
*/
public String getFilePath() {
return this.filePath;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public Long getGmtModified() {
return this.gmtModified;
}
/**
* @return ip
*/
public String getIp() {
return this.ip;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return md5List
*/
public String getMd5List() {
return this.md5List;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return newFilePath
*/
public String getNewFilePath() {
return this.newFilePath;
}
/**
* @return parentCmdline
*/
public String getParentCmdline() {
return this.parentCmdline;
}
/**
* @return parentProcPath
*/
public String getParentProcPath() {
return this.parentProcPath;
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return portStr
*/
public String getPortStr() {
return this.portStr;
}
/**
* @return procPath
*/
public String getProcPath() {
return this.procPath;
}
/**
* @return registryContent
*/
public String getRegistryContent() {
return this.registryContent;
}
/**
* @return registryKey
*/
public String getRegistryKey() {
return this.registryKey;
}
/**
* @return type
*/
public Integer getType() {
return this.type;
}
public static final class Builder {
private String actionType;
private String cmdline;
private String domain;
private String filePath;
private Long gmtCreate;
private Long gmtModified;
private String ip;
private Long id;
private String md5List;
private String name;
private String newFilePath;
private String parentCmdline;
private String parentProcPath;
private String platform;
private Integer port;
private String portStr;
private String procPath;
private String registryContent;
private String registryKey;
private Integer type;
private Builder() {
}
private Builder(UserDefineRuleDetail model) {
this.actionType = model.actionType;
this.cmdline = model.cmdline;
this.domain = model.domain;
this.filePath = model.filePath;
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.ip = model.ip;
this.id = model.id;
this.md5List = model.md5List;
this.name = model.name;
this.newFilePath = model.newFilePath;
this.parentCmdline = model.parentCmdline;
this.parentProcPath = model.parentProcPath;
this.platform = model.platform;
this.port = model.port;
this.portStr = model.portStr;
this.procPath = model.procPath;
this.registryContent = model.registryContent;
this.registryKey = model.registryKey;
this.type = model.type;
}
/**
* <p>The action of the custom defense rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: allow</li>
* <li><strong>1</strong>: block</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder actionType(String actionType) {
this.actionType = actionType;
return this;
}
/**
* <p>The command line.</p>
*
* <strong>example:</strong>
* <p>/usr/sbin/s****</p>
*/
public Builder cmdline(String cmdline) {
this.cmdline = cmdline;
return this;
}
/**
* <p>The domain name.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>The file path.</p>
*
* <strong>example:</strong>
* <p>/etc/pam****</p>
*/
public Builder filePath(String filePath) {
this.filePath = filePath;
return this;
}
/**
* <p>The time when the custom defense rule was created.</p>
*
* <strong>example:</strong>
* <p>167118088****</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The time when the custom defense rule was last modified.</p>
*
* <strong>example:</strong>
* <p>167118088****</p>
*/
public Builder gmtModified(Long gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The IP address.</p>
*
* <strong>example:</strong>
* <p>10.240.XX.XX</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>The ID of the custom defense rule.</p>
*
* <strong>example:</strong>
* <p>200****</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The hash values of processes.</p>
*
* <strong>example:</strong>
* <p>0c9045b5bec90f9825f1f3f64dd4****</p>
*/
public Builder md5List(String md5List) {
this.md5List = md5List;
return this;
}
/**
* <p>The name of the custom defense rule.</p>
*
* <strong>example:</strong>
* <p>Rule****</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The new file path after the file is renamed.</p>
*
* <strong>example:</strong>
* <p>/etc/pam****</p>
*/
public Builder newFilePath(String newFilePath) {
this.newFilePath = newFilePath;
return this;
}
/**
* <p>The parent command line.</p>
*
* <strong>example:</strong>
* <p>/usr/sbin/s****</p>
*/
public Builder parentCmdline(String parentCmdline) {
this.parentCmdline = parentCmdline;
return this;
}
/**
* <p>The path to the parent process.</p>
*
* <strong>example:</strong>
* <p>c:/windows/system32/i****</p>
*/
public Builder parentProcPath(String parentProcPath) {
this.parentProcPath = parentProcPath;
return this;
}
/**
* <p>The type of the operating system. Valid values:</p>
* <ul>
* <li><strong>linux</strong></li>
* <li><strong>windows</strong></li>
* <li><strong>all</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.platform = platform;
return this;
}
/**
* <p>The port number.</p>
*
* <strong>example:</strong>
* <p>22</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The port number. Valid values: 1 to 65535.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder portStr(String portStr) {
this.portStr = portStr;
return this;
}
/**
* <p>The path to the process.</p>
*
* <strong>example:</strong>
* <p>c:/windows/system32/i****</p>
*/
public Builder procPath(String procPath) {
this.procPath = procPath;
return this;
}
/**
* <p>The registry value.</p>
*
* <strong>example:</strong>
* <p><em>SECOH-QAD.exe</em></p>
*/
public Builder registryContent(String registryContent) {
this.registryContent = registryContent;
return this;
}
/**
* <p>The registry key.</p>
*
* <strong>example:</strong>
* <p>HKEY_DYN_****</p>
*/
public Builder registryKey(String registryKey) {
this.registryKey = registryKey;
return this;
}
/**
* <p>The type of the custom defense rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: Process hash</li>
* <li><strong>2</strong>: Command line</li>
* <li><strong>3</strong>: Process Network</li>
* <li><strong>4</strong>: File Read and Write</li>
* <li><strong>5</strong>: Operation on Registry</li>
* <li><strong>6</strong>: Dynamic-link Library Loading</li>
* <li><strong>7</strong>: File Renaming</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder type(Integer type) {
this.type = type;
return this;
}
public UserDefineRuleDetail build() {
return new UserDefineRuleDetail(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCloudAssetCriteriaRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetCriteriaRequest} extends {@link RequestModel}
*
* <p>GetCloudAssetCriteriaRequest</p>
*/
public class GetCloudAssetCriteriaRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CloudAssetTypes")
private java.util.List<CloudAssetTypes> cloudAssetTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private GetCloudAssetCriteriaRequest(Builder builder) {
super(builder);
this.cloudAssetTypes = builder.cloudAssetTypes;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static GetCloudAssetCriteriaRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cloudAssetTypes
*/
public java.util.List<CloudAssetTypes> getCloudAssetTypes() {
return this.cloudAssetTypes;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder extends Request.Builder<GetCloudAssetCriteriaRequest, Builder> {
private java.util.List<CloudAssetTypes> cloudAssetTypes;
private String value;
private Builder() {
super();
}
private Builder(GetCloudAssetCriteriaRequest request) {
super(request);
this.cloudAssetTypes = request.cloudAssetTypes;
this.value = request.value;
}
/**
* <p>The types of cloud assets.</p>
*/
public Builder cloudAssetTypes(java.util.List<CloudAssetTypes> cloudAssetTypes) {
this.putQueryParameter("CloudAssetTypes", cloudAssetTypes);
this.cloudAssetTypes = cloudAssetTypes;
return this;
}
/**
* <p>The keyword for fuzzy search when you query the asset.</p>
*
* <strong>example:</strong>
* <p>testwww</p>
*/
public Builder value(String value) {
this.putQueryParameter("Value", value);
this.value = value;
return this;
}
@Override
public GetCloudAssetCriteriaRequest build() {
return new GetCloudAssetCriteriaRequest(this);
}
}
/**
*
* {@link GetCloudAssetCriteriaRequest} extends {@link TeaModel}
*
* <p>GetCloudAssetCriteriaRequest</p>
*/
public static class CloudAssetTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
private CloudAssetTypes(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
}
public static Builder builder() {
return new Builder();
}
public static CloudAssetTypes create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private Builder() {
}
private Builder(CloudAssetTypes model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
}
/**
* <p>The subtype of the cloud service or asset. Valid values:</p>
* <ul>
* <li><p><strong>0</strong>: ECS</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* <li><strong>1</strong>: disk (storage)</li>
* <li><strong>2</strong>: security group</li>
* </ul>
* </li>
* <li><p><strong>1</strong>: SLB</p>
* <ul>
* <li><strong>0</strong>: SLB</li>
* <li><strong>1</strong>: Application Load Balancer (ALB)</li>
* </ul>
* </li>
* <li><p><strong>3</strong>: ApsaraDB RDS</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>4</strong>: MongoDB</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>5</strong>: Redis</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>6</strong>: Container Registry</p>
* <ul>
* <li><strong>1</strong>: Enterprise Edition</li>
* <li><strong>2</strong>: Personal Edition</li>
* </ul>
* </li>
* <li><p><strong>8</strong>: ACK</p>
* <ul>
* <li><strong>0</strong>: cluster</li>
* </ul>
* </li>
* <li><p><strong>9</strong>: VPC</p>
* <ul>
* <li><strong>0</strong>: NAT gateway</li>
* <li><strong>1</strong>: Elastic IP address (EIP)</li>
* <li><strong>2</strong>: VPN</li>
* <li><strong>3</strong>: VPC Flow Logs</li>
* </ul>
* </li>
* <li><p><strong>11</strong>: ActionTrail</p>
* <ul>
* <li><strong>0</strong>: trail</li>
* </ul>
* </li>
* <li><p><strong>12</strong>: CDN</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>13</strong>: Certificate Management Service (formerly SSL Certificates Service)</p>
* <ul>
* <li><strong>0</strong>: certificate</li>
* </ul>
* </li>
* <li><p><strong>14</strong>: Apsara Devops</p>
* <ul>
* <li><strong>0</strong>: organization</li>
* </ul>
* </li>
* <li><p><strong>16</strong>: Anti-DDoS</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>17</strong>: WAF</p>
* <ul>
* <li><strong>0</strong>: domain name</li>
* </ul>
* </li>
* <li><p><strong>18</strong>: OSS</p>
* <ul>
* <li><strong>0</strong>: bucket</li>
* </ul>
* </li>
* <li><p><strong>19</strong>: PolarDB</p>
* <ul>
* <li><strong>0</strong>: cluster</li>
* </ul>
* </li>
* <li><p><strong>20</strong>: ApsaraDB RDS for PostgreSQL</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>21</strong>: MSE</p>
* <ul>
* <li><strong>0</strong>: cluster</li>
* </ul>
* </li>
* <li><p><strong>22</strong>: NAS</p>
* <ul>
* <li><strong>0</strong>: file system</li>
* </ul>
* </li>
* <li><p><strong>23</strong>: DSC</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>24</strong>: EIP</p>
* <ul>
* <li><strong>0</strong>: Anycast EIP</li>
* </ul>
* </li>
* <li><p><strong>25</strong>: IDaaS EIAM</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>26</strong>: PolarDB-X</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>27</strong>: Elasticsearch</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The type of the asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Elastic Compute Service (ECS)</li>
* <li><strong>1</strong>: Server Load Balancer (SLB)</li>
* <li><strong>3</strong>: ApsaraDB RDS</li>
* <li><strong>4</strong>: ApsaraDB for MongoDB (MongoDB)</li>
* <li><strong>5</strong>: ApsaraDB for Redis (Redis)</li>
* <li><strong>6</strong>: Container Registry</li>
* <li><strong>8</strong>: Container Service for Kubernetes (ACK)</li>
* <li><strong>9</strong>: Virtual Private Cloud (VPC)</li>
* <li><strong>11</strong>: ActionTrail</li>
* <li><strong>12</strong>: Alibaba Cloud CDN (CDN)</li>
* <li><strong>13</strong>: Certificate Management Service (formerly SSL Certificates Service)</li>
* <li><strong>14</strong>: Apsara Devops</li>
* <li><strong>16</strong>: Anti-DDoS</li>
* <li><strong>17</strong>: Web Application Firewall (WAF)</li>
* <li><strong>18</strong>: Object Storage Service (OSS)</li>
* <li><strong>19</strong>: PolarDB</li>
* <li><strong>20</strong>: ApsaraDB RDS for PostgreSQL</li>
* <li><strong>21</strong>: Microservices Engine (MSE)</li>
* <li><strong>22</strong>: File Storage NAS (NAS)</li>
* <li><strong>23</strong>: Data Security Center (DSC)</li>
* <li><strong>24</strong>: Elastic IP Address (EIP)</li>
* <li><strong>25</strong>: IDaaS EIAM</li>
* <li><strong>26</strong>: PolarDB-X</li>
* <li><strong>27</strong>: Elasticsearch</li>
* </ul>
*
* <strong>example:</strong>
* <p>9</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
public CloudAssetTypes build() {
return new CloudAssetTypes(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCloudAssetCriteriaResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetCriteriaResponse} extends {@link TeaModel}
*
* <p>GetCloudAssetCriteriaResponse</p>
*/
public class GetCloudAssetCriteriaResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCloudAssetCriteriaResponseBody body;
private GetCloudAssetCriteriaResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCloudAssetCriteriaResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCloudAssetCriteriaResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCloudAssetCriteriaResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCloudAssetCriteriaResponseBody body);
@Override
GetCloudAssetCriteriaResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCloudAssetCriteriaResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCloudAssetCriteriaResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCloudAssetCriteriaResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCloudAssetCriteriaResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCloudAssetCriteriaResponse build() {
return new GetCloudAssetCriteriaResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCloudAssetCriteriaResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetCriteriaResponseBody} extends {@link TeaModel}
*
* <p>GetCloudAssetCriteriaResponseBody</p>
*/
public class GetCloudAssetCriteriaResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CriteriaList")
private java.util.List<CriteriaList> criteriaList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCloudAssetCriteriaResponseBody(Builder builder) {
this.criteriaList = builder.criteriaList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCloudAssetCriteriaResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return criteriaList
*/
public java.util.List<CriteriaList> getCriteriaList() {
return this.criteriaList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<CriteriaList> criteriaList;
private String requestId;
private Builder() {
}
private Builder(GetCloudAssetCriteriaResponseBody model) {
this.criteriaList = model.criteriaList;
this.requestId = model.requestId;
}
/**
* <p>An array consisting of the information about the filter conditions that are used to search for cloud assets.</p>
*/
public Builder criteriaList(java.util.List<CriteriaList> criteriaList) {
this.criteriaList = criteriaList;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>24A20733-10A0-4AF6-BE6B-E3322413BB68</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCloudAssetCriteriaResponseBody build() {
return new GetCloudAssetCriteriaResponseBody(this);
}
}
/**
*
* {@link GetCloudAssetCriteriaResponseBody} extends {@link TeaModel}
*
* <p>GetCloudAssetCriteriaResponseBody</p>
*/
public static class CriteriaList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MultiValues")
private String multiValues;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Values")
private String values;
private CriteriaList(Builder builder) {
this.multiValues = builder.multiValues;
this.name = builder.name;
this.type = builder.type;
this.values = builder.values;
}
public static Builder builder() {
return new Builder();
}
public static CriteriaList create() {
return builder().build();
}
/**
* @return multiValues
*/
public String getMultiValues() {
return this.multiValues;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return values
*/
public String getValues() {
return this.values;
}
public static final class Builder {
private String multiValues;
private String name;
private String type;
private String values;
private Builder() {
}
private Builder(CriteriaList model) {
this.multiValues = model.multiValues;
this.name = model.name;
this.type = model.type;
this.values = model.values;
}
/**
* <p>The structured attribute values of the assets that match the keyword. The value of this parameter is in the JSON format and contains the following fields:</p>
* <ul>
* <li><strong>vendor</strong>: providers</li>
* <li><strong>regionIds</strong>: IDs of supported regions</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"vendor":0,"regionIds":{"default":["ap-southeast-1","ap-northeast-2","ap-southeast-3","ap-southeast-5","ap-southeast-7","me-central-1"]}},{"vendor":1,"regionIds":{"default":["outside-of-aliyun"]}}]</p>
*/
public Builder multiValues(String multiValues) {
this.multiValues = multiValues;
return this;
}
/**
* <p>The name of the filter condition. Valid values:</p>
* <ul>
* <li><strong>instanceId</strong>: the ID of the instance</li>
* <li><strong>instanceName</strong>: the name of an instance</li>
* <li><strong>internetIp</strong>: the public IP address</li>
* <li><strong>riskStatus</strong>: the risk status</li>
* <li><strong>vendorRegionId</strong>: the region ID by service provider</li>
* </ul>
*
* <strong>example:</strong>
* <p>instanceId</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the filter condition. Valid values:</p>
* <ul>
* <li><strong>input</strong>: The filter condition needs to be specified.</li>
* <li><strong>select</strong>: The filter condition is an option that can be selected from the drop-down list.</li>
* </ul>
*
* <strong>example:</strong>
* <p>select</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The values of the search condition. This parameter is returned only if the value of <strong>Type</strong> is <strong>select</strong>.</p>
* <blockquote>
* <p> If the value of <strong>Type</strong> is <strong>input</strong>, the value of this parameter is an empty string.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>fvt*</p>
*/
public Builder values(String values) {
this.values = values;
return this;
}
public CriteriaList build() {
return new CriteriaList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCloudAssetDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetDetailRequest} extends {@link RequestModel}
*
* <p>GetCloudAssetDetailRequest</p>
*/
public class GetCloudAssetDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CloudAssetInstances")
private java.util.List<CloudAssetInstances> cloudAssetInstances;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private GetCloudAssetDetailRequest(Builder builder) {
super(builder);
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.cloudAssetInstances = builder.cloudAssetInstances;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static GetCloudAssetDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return cloudAssetInstances
*/
public java.util.List<CloudAssetInstances> getCloudAssetInstances() {
return this.cloudAssetInstances;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder extends Request.Builder<GetCloudAssetDetailRequest, Builder> {
private Integer assetSubType;
private Integer assetType;
private java.util.List<CloudAssetInstances> cloudAssetInstances;
private Integer vendor;
private Builder() {
super();
}
private Builder(GetCloudAssetDetailRequest request) {
super(request);
this.assetSubType = request.assetSubType;
this.assetType = request.assetType;
this.cloudAssetInstances = request.cloudAssetInstances;
this.vendor = request.vendor;
}
/**
* <p>The subtype of the cloud service.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.putQueryParameter("AssetSubType", assetSubType);
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The type of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Elastic Compute Service (ECS).</li>
* <li><strong>1</strong>: Server Load Balancer (SLB).</li>
* <li><strong>3</strong>: ApsaraDB RDS.</li>
* <li><strong>4</strong>: ApsaraDB for MongoDB.</li>
* <li><strong>5</strong>: ApsaraDB for Redis.</li>
* <li><strong>6</strong>: Container Registry.</li>
* <li><strong>8</strong>: Container Service for Kubernetes.</li>
* <li><strong>9</strong>: Virtual Private Cloud (VPC).</li>
* <li><strong>11</strong>: ActionTrail.</li>
* <li><strong>12</strong>: Alibaba Cloud CDN (CDN).</li>
* <li><strong>13</strong>: Certificate Management Service.</li>
* <li><strong>14</strong>: Apsara Devops.</li>
* <li><strong>15</strong>: Resource Access Management (RAM).</li>
* <li><strong>16</strong>: Anti-DDoS.</li>
* <li><strong>17</strong>: Web Application Firewall (WAF).</li>
* <li><strong>18</strong>: Object Storage Service (OSS).</li>
* <li><strong>19</strong>: PolarDB.</li>
* <li><strong>20</strong>: ApsaraDB RDS for PostgreSQL.</li>
* <li><strong>21</strong>: Microservices Engine (MSE).</li>
* <li><strong>22</strong>: File Storage NAS (NAS).</li>
* <li><strong>23</strong>: Data Security Center (DSC).</li>
* <li><strong>24</strong>: Elastic IP Address (EIP).</li>
* <li><strong>25</strong>: Identity as a Service (IDaaS)-Employee Identity and Access Management (EIAM).</li>
* <li><strong>26</strong>: PolarDB-X.</li>
* <li><strong>27</strong>: Elasticsearch.</li>
* </ul>
*
* <strong>example:</strong>
* <p>14</p>
*/
public Builder assetType(Integer assetType) {
this.putQueryParameter("AssetType", assetType);
this.assetType = assetType;
return this;
}
/**
* <p>The details of the assets.</p>
*/
public Builder cloudAssetInstances(java.util.List<CloudAssetInstances> cloudAssetInstances) {
this.putQueryParameter("CloudAssetInstances", cloudAssetInstances);
this.cloudAssetInstances = cloudAssetInstances;
return this;
}
/**
* <p>The service provider of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Alibaba Cloud.</li>
* <li><strong>1</strong>: service provider that is unrecognized.</li>
* <li><strong>2</strong>: data center.</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: third-party service provider.</li>
* <li><strong>8</strong>: simple application server.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.putQueryParameter("Vendor", vendor);
this.vendor = vendor;
return this;
}
@Override
public GetCloudAssetDetailRequest build() {
return new GetCloudAssetDetailRequest(this);
}
}
/**
*
* {@link GetCloudAssetDetailRequest} extends {@link TeaModel}
*
* <p>GetCloudAssetDetailRequest</p>
*/
public static class CloudAssetInstances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private CloudAssetInstances(Builder builder) {
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static CloudAssetInstances create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String instanceId;
private String regionId;
private Builder() {
}
private Builder(CloudAssetInstances model) {
this.instanceId = model.instanceId;
this.regionId = model.regionId;
}
/**
* <p>The instance ID of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>sg-wz9hf86vbzbrrde7****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The region in which the cloud asset resides.</p>
* <blockquote>
* <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public CloudAssetInstances build() {
return new CloudAssetInstances(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCloudAssetDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetDetailResponse} extends {@link TeaModel}
*
* <p>GetCloudAssetDetailResponse</p>
*/
public class GetCloudAssetDetailResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCloudAssetDetailResponseBody body;
private GetCloudAssetDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCloudAssetDetailResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCloudAssetDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCloudAssetDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCloudAssetDetailResponseBody body);
@Override
GetCloudAssetDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCloudAssetDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCloudAssetDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCloudAssetDetailResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCloudAssetDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCloudAssetDetailResponse build() {
return new GetCloudAssetDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCloudAssetDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCloudAssetDetailResponseBody</p>
*/
public class GetCloudAssetDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Instances")
private java.util.List<Instances> instances;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCloudAssetDetailResponseBody(Builder builder) {
this.count = builder.count;
this.instances = builder.instances;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCloudAssetDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return instances
*/
public java.util.List<Instances> getInstances() {
return this.instances;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer count;
private java.util.List<Instances> instances;
private String requestId;
private Builder() {
}
private Builder(GetCloudAssetDetailResponseBody model) {
this.count = model.count;
this.instances = model.instances;
this.requestId = model.requestId;
}
/**
* <p>The number of instances in the list of cloud assets returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>An array that consists of the details of the cloud assets.</p>
*/
public Builder instances(java.util.List<Instances> instances) {
this.instances = instances;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>CB45CAED-31C3-517A-8619-10F632D3****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCloudAssetDetailResponseBody build() {
return new GetCloudAssetDetailResponseBody(this);
}
}
/**
*
* {@link GetCloudAssetDetailResponseBody} extends {@link TeaModel}
*
* <p>GetCloudAssetDetailResponseBody</p>
*/
public static class Instances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AlarmStatus")
private String alarmStatus;
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetSubTypeName")
private String assetSubTypeName;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("AssetTypeName")
private String assetTypeName;
@com.aliyun.core.annotation.NameInMap("CreatedTime")
private Long createdTime;
@com.aliyun.core.annotation.NameInMap("DetailLink")
private String detailLink;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("OriginalAssetInfo")
private String originalAssetInfo;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RiskStatus")
private String riskStatus;
@com.aliyun.core.annotation.NameInMap("SecurityInfo")
private String securityInfo;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
@com.aliyun.core.annotation.NameInMap("VendorUid")
private String vendorUid;
@com.aliyun.core.annotation.NameInMap("VendorUserName")
private String vendorUserName;
private Instances(Builder builder) {
this.alarmStatus = builder.alarmStatus;
this.assetSubType = builder.assetSubType;
this.assetSubTypeName = builder.assetSubTypeName;
this.assetType = builder.assetType;
this.assetTypeName = builder.assetTypeName;
this.createdTime = builder.createdTime;
this.detailLink = builder.detailLink;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.originalAssetInfo = builder.originalAssetInfo;
this.regionId = builder.regionId;
this.riskStatus = builder.riskStatus;
this.securityInfo = builder.securityInfo;
this.vendor = builder.vendor;
this.vendorUid = builder.vendorUid;
this.vendorUserName = builder.vendorUserName;
}
public static Builder builder() {
return new Builder();
}
public static Instances create() {
return builder().build();
}
/**
* @return alarmStatus
*/
public String getAlarmStatus() {
return this.alarmStatus;
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetSubTypeName
*/
public String getAssetSubTypeName() {
return this.assetSubTypeName;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return assetTypeName
*/
public String getAssetTypeName() {
return this.assetTypeName;
}
/**
* @return createdTime
*/
public Long getCreatedTime() {
return this.createdTime;
}
/**
* @return detailLink
*/
public String getDetailLink() {
return this.detailLink;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return originalAssetInfo
*/
public String getOriginalAssetInfo() {
return this.originalAssetInfo;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return riskStatus
*/
public String getRiskStatus() {
return this.riskStatus;
}
/**
* @return securityInfo
*/
public String getSecurityInfo() {
return this.securityInfo;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
/**
* @return vendorUid
*/
public String getVendorUid() {
return this.vendorUid;
}
/**
* @return vendorUserName
*/
public String getVendorUserName() {
return this.vendorUserName;
}
public static final class Builder {
private String alarmStatus;
private Integer assetSubType;
private String assetSubTypeName;
private Integer assetType;
private String assetTypeName;
private Long createdTime;
private String detailLink;
private String instanceId;
private String instanceName;
private String internetIp;
private String originalAssetInfo;
private String regionId;
private String riskStatus;
private String securityInfo;
private Integer vendor;
private String vendorUid;
private String vendorUserName;
private Builder() {
}
private Builder(Instances model) {
this.alarmStatus = model.alarmStatus;
this.assetSubType = model.assetSubType;
this.assetSubTypeName = model.assetSubTypeName;
this.assetType = model.assetType;
this.assetTypeName = model.assetTypeName;
this.createdTime = model.createdTime;
this.detailLink = model.detailLink;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.originalAssetInfo = model.originalAssetInfo;
this.regionId = model.regionId;
this.riskStatus = model.riskStatus;
this.securityInfo = model.securityInfo;
this.vendor = model.vendor;
this.vendorUid = model.vendorUid;
this.vendorUserName = model.vendorUserName;
}
/**
* <p>Indicates whether alerts are generated for the current cloud asset. Valid values:</p>
* <ul>
* <li><strong>YES</strong></li>
* <li><strong>NO</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>NO</p>
*/
public Builder alarmStatus(String alarmStatus) {
this.alarmStatus = alarmStatus;
return this;
}
/**
* <p>The subtype of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The name of the cloud asset subtype.</p>
*
* <strong>example:</strong>
* <p>INSTANCE</p>
*/
public Builder assetSubTypeName(String assetSubTypeName) {
this.assetSubTypeName = assetSubTypeName;
return this;
}
/**
* <p>The type of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: ECS.</li>
* <li><strong>1</strong>: SLB.</li>
* <li><strong>3</strong>: ApsaraDB RDS.</li>
* <li><strong>4</strong>: ApsaraDB for MongoDB.</li>
* <li><strong>5</strong>: ApsaraDB for Redis.</li>
* <li><strong>6</strong>: Container Registry.</li>
* <li><strong>8</strong>: Container Service for Kubernetes.</li>
* <li><strong>9</strong>: VPC.</li>
* <li><strong>11</strong>: ActionTrail.</li>
* <li><strong>12</strong>: CDN.</li>
* <li><strong>13</strong>: Certificate Management Service.</li>
* <li><strong>14</strong>: Apsara Devops.</li>
* <li><strong>15</strong>: RAM.</li>
* <li><strong>16</strong>: Anti-DDoS.</li>
* <li><strong>17</strong>: WAF.</li>
* <li><strong>18</strong>: OSS.</li>
* <li><strong>19</strong>: PolarDB.</li>
* <li><strong>20</strong>: ApsaraDB RDS for PostgreSQL.</li>
* <li><strong>21</strong>: MSE.</li>
* <li><strong>22</strong>: NAS.</li>
* <li><strong>23</strong>: DSC.</li>
* <li><strong>24</strong>: EIP.</li>
* <li><strong>25</strong>: IDaaS-EIAM.</li>
* <li><strong>26</strong>: PolarDB-X.</li>
* <li><strong>27</strong>: Elasticsearch.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The name of the cloud asset type.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder assetTypeName(String assetTypeName) {
this.assetTypeName = assetTypeName;
return this;
}
/**
* <p>The time when the instance was created. The value is a timestamp.</p>
*
* <strong>example:</strong>
* <p>1607365213000</p>
*/
public Builder createdTime(Long createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* <p>The detailed address of the cloud asset.</p>
*/
public Builder detailLink(String detailLink) {
this.detailLink = detailLink;
return this;
}
/**
* <p>The instance ID of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>rm-uf6t6u05n6g48****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The instance name of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>yztest-l***</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the instance.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* OriginalAssetInfo.
*/
public Builder originalAssetInfo(String originalAssetInfo) {
this.originalAssetInfo = originalAssetInfo;
return this;
}
/**
* <p>The region in which the cloud asset resides.</p>
* <blockquote>
* <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hanghzou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Indicates whether risks are detected on the current cloud asset. Valid values:</p>
* <ul>
* <li><strong>YES</strong></li>
* <li><strong>NO</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>NO</p>
*/
public Builder riskStatus(String riskStatus) {
this.riskStatus = riskStatus;
return this;
}
/**
* <p>The security information about the cloud asset.</p>
*
* <strong>example:</strong>
* <p>{"seriousNum":0,"appNum":0,"baselineMedium":0,"remindNum":0,"imageVulNntf":0,"cveNum":0,"vul":0,"uuid":"rm-uf6t6u05n6g485o70","emgNum":0,"weakPWNum":0,"imageMaliciousFileRemind":0,"imageBaselineMedium":0,"laterVulCount":0,"cmsNum":0,"imageMaliciousFileSerious":0,"agentlessMalicious":0,"suspNum":0,"imageBaselineHigh":0,"asapVulCount":0,"imageVulLater":0,"agentlessAll":0,"sysNum":0,"containerLater":0,"containerSuspicious":0,"imageBaselineNum":0,"newSuspicious":0,"nntfVulCount":0,"scaNum":0,"containerNntf":0,"health":0,"trojan":0,"suspicious":0,"imageMaliciousFileSuspicious":0,"containerRemind":0,"baselineLow":0,"imageVulAsap":0,"imageBaselineLow":0,"containerAsap":0,"agentlessBaseline":0,"agentlessVulSca":0,"agentlessVulCve":0,"containerSerious":0,"baselineHigh":0,"account":0,"baselineNum":6}</p>
*/
public Builder securityInfo(String securityInfo) {
this.securityInfo = securityInfo;
return this;
}
/**
* <p>The service provider of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Alibaba Cloud.</li>
* <li><strong>1</strong>: service provider that is unrecognized.</li>
* <li><strong>2</strong>: data center.</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: third-party service provider.</li>
* <li><strong>8</strong>: simple application server.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
/**
* VendorUid.
*/
public Builder vendorUid(String vendorUid) {
this.vendorUid = vendorUid;
return this;
}
/**
* VendorUserName.
*/
public Builder vendorUserName(String vendorUserName) {
this.vendorUserName = vendorUserName;
return this;
}
public Instances build() {
return new Instances(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCloudAssetSummaryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetSummaryRequest} extends {@link RequestModel}
*
* <p>GetCloudAssetSummaryRequest</p>
*/
public class GetCloudAssetSummaryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CloudAssetTypes")
private java.util.List<CloudAssetTypes> cloudAssetTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Vendors")
private java.util.List<Integer> vendors;
private GetCloudAssetSummaryRequest(Builder builder) {
super(builder);
this.cloudAssetTypes = builder.cloudAssetTypes;
this.vendors = builder.vendors;
}
public static Builder builder() {
return new Builder();
}
public static GetCloudAssetSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cloudAssetTypes
*/
public java.util.List<CloudAssetTypes> getCloudAssetTypes() {
return this.cloudAssetTypes;
}
/**
* @return vendors
*/
public java.util.List<Integer> getVendors() {
return this.vendors;
}
public static final class Builder extends Request.Builder<GetCloudAssetSummaryRequest, Builder> {
private java.util.List<CloudAssetTypes> cloudAssetTypes;
private java.util.List<Integer> vendors;
private Builder() {
super();
}
private Builder(GetCloudAssetSummaryRequest request) {
super(request);
this.cloudAssetTypes = request.cloudAssetTypes;
this.vendors = request.vendors;
}
/**
* CloudAssetTypes.
*/
public Builder cloudAssetTypes(java.util.List<CloudAssetTypes> cloudAssetTypes) {
this.putQueryParameter("CloudAssetTypes", cloudAssetTypes);
this.cloudAssetTypes = cloudAssetTypes;
return this;
}
/**
* <p>The asset type by service provider.</p>
*/
public Builder vendors(java.util.List<Integer> vendors) {
this.putQueryParameter("Vendors", vendors);
this.vendors = vendors;
return this;
}
@Override
public GetCloudAssetSummaryRequest build() {
return new GetCloudAssetSummaryRequest(this);
}
}
/**
*
* {@link GetCloudAssetSummaryRequest} extends {@link TeaModel}
*
* <p>GetCloudAssetSummaryRequest</p>
*/
public static class CloudAssetTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private CloudAssetTypes(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static CloudAssetTypes create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private Integer vendor;
private Builder() {
}
private Builder(CloudAssetTypes model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.vendor = model.vendor;
}
/**
* AssetSubType.
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* AssetType.
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* Vendor.
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public CloudAssetTypes build() {
return new CloudAssetTypes(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCloudAssetSummaryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetSummaryResponse} extends {@link TeaModel}
*
* <p>GetCloudAssetSummaryResponse</p>
*/
public class GetCloudAssetSummaryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetCloudAssetSummaryResponseBody body;
private GetCloudAssetSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCloudAssetSummaryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetCloudAssetSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCloudAssetSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCloudAssetSummaryResponseBody body);
@Override
GetCloudAssetSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCloudAssetSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCloudAssetSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCloudAssetSummaryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetCloudAssetSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCloudAssetSummaryResponse build() {
return new GetCloudAssetSummaryResponse(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.