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/DescribeSoarPlaybookTaskDetailResponse.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 DescribeSoarPlaybookTaskDetailResponse} extends {@link TeaModel} * * <p>DescribeSoarPlaybookTaskDetailResponse</p> */ public class DescribeSoarPlaybookTaskDetailResponse 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 DescribeSoarPlaybookTaskDetailResponseBody body; private DescribeSoarPlaybookTaskDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSoarPlaybookTaskDetailResponse 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 DescribeSoarPlaybookTaskDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSoarPlaybookTaskDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSoarPlaybookTaskDetailResponseBody body); @Override DescribeSoarPlaybookTaskDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSoarPlaybookTaskDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSoarPlaybookTaskDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSoarPlaybookTaskDetailResponse 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(DescribeSoarPlaybookTaskDetailResponseBody body) { this.body = body; return this; } @Override public DescribeSoarPlaybookTaskDetailResponse build() { return new DescribeSoarPlaybookTaskDetailResponse(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/DescribeSoarPlaybookTaskDetailResponseBody.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 DescribeSoarPlaybookTaskDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSoarPlaybookTaskDetailResponseBody</p> */ public class DescribeSoarPlaybookTaskDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TaskDetail") private TaskDetail taskDetail; private DescribeSoarPlaybookTaskDetailResponseBody(Builder builder) { this.requestId = builder.requestId; this.taskDetail = builder.taskDetail; } public static Builder builder() { return new Builder(); } public static DescribeSoarPlaybookTaskDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return taskDetail */ public TaskDetail getTaskDetail() { return this.taskDetail; } public static final class Builder { private String requestId; private TaskDetail taskDetail; private Builder() { } private Builder(DescribeSoarPlaybookTaskDetailResponseBody model) { this.requestId = model.requestId; this.taskDetail = model.taskDetail; } /** * <p>The ID of the current call request, which is a unique identifier generated by Alibaba Cloud for this request, and can be used to troubleshoot and locate issues.</p> * * <strong>example:</strong> * <p>0B48AB3C-84FC-424D-A01D-B9270EF4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Task details.</p> */ public Builder taskDetail(TaskDetail taskDetail) { this.taskDetail = taskDetail; return this; } public DescribeSoarPlaybookTaskDetailResponseBody build() { return new DescribeSoarPlaybookTaskDetailResponseBody(this); } } /** * * {@link DescribeSoarPlaybookTaskDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSoarPlaybookTaskDetailResponseBody</p> */ public static class TaskDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogInfo") private String logInfo; @com.aliyun.core.annotation.NameInMap("Params") private String params; @com.aliyun.core.annotation.NameInMap("ProcessInfo") private String processInfo; @com.aliyun.core.annotation.NameInMap("TaskName") private String taskName; private TaskDetail(Builder builder) { this.logInfo = builder.logInfo; this.params = builder.params; this.processInfo = builder.processInfo; this.taskName = builder.taskName; } public static Builder builder() { return new Builder(); } public static TaskDetail create() { return builder().build(); } /** * @return logInfo */ public String getLogInfo() { return this.logInfo; } /** * @return params */ public String getParams() { return this.params; } /** * @return processInfo */ public String getProcessInfo() { return this.processInfo; } /** * @return taskName */ public String getTaskName() { return this.taskName; } public static final class Builder { private String logInfo; private String params; private String processInfo; private String taskName; private Builder() { } private Builder(TaskDetail model) { this.logInfo = model.logInfo; this.params = model.params; this.processInfo = model.processInfo; this.taskName = model.taskName; } /** * <p>Log information of the task.</p> * * <strong>example:</strong> * <p>{&quot;status&quot;:1, &quot;errMsg&quot;:&quot;paramError&quot;}</p> */ public Builder logInfo(String logInfo) { this.logInfo = logInfo; return this; } /** * <p>Parameters for invoking the playbook.</p> * * <strong>example:</strong> * <p>params1</p> */ public Builder params(String params) { this.params = params; return this; } /** * <p>Process information corresponding to the strategy.</p> * * <strong>example:</strong> * <p>{&quot;edges&quot;:[{&quot;level&quot;:0,&quot;removeFlag&quot;:0,&quot;source&quot;:1,&quot;target&quot;:8}]}</p> */ public Builder processInfo(String processInfo) { this.processInfo = processInfo; return this; } /** * <p>Task name.</p> * * <strong>example:</strong> * <p>task1</p> */ public Builder taskName(String taskName) { this.taskName = taskName; return this; } public TaskDetail build() { return new TaskDetail(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/DescribeSoarStrategiesRequest.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 DescribeSoarStrategiesRequest} extends {@link RequestModel} * * <p>DescribeSoarStrategiesRequest</p> */ public class DescribeSoarStrategiesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") @com.aliyun.core.annotation.Validation(required = true) private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(required = true) private Integer pageSize; private DescribeSoarStrategiesRequest(Builder builder) { super(builder); this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategiesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } public static final class Builder extends Request.Builder<DescribeSoarStrategiesRequest, Builder> { private Integer pageNumber; private Integer pageSize; private Builder() { super(); } private Builder(DescribeSoarStrategiesRequest request) { super(request); this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; } /** * <p>The page number. Pages start from page 1.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <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; } @Override public DescribeSoarStrategiesRequest build() { return new DescribeSoarStrategiesRequest(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/DescribeSoarStrategiesResponse.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 DescribeSoarStrategiesResponse} extends {@link TeaModel} * * <p>DescribeSoarStrategiesResponse</p> */ public class DescribeSoarStrategiesResponse 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 DescribeSoarStrategiesResponseBody body; private DescribeSoarStrategiesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSoarStrategiesResponse 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 DescribeSoarStrategiesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSoarStrategiesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSoarStrategiesResponseBody body); @Override DescribeSoarStrategiesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSoarStrategiesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSoarStrategiesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSoarStrategiesResponse 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(DescribeSoarStrategiesResponseBody body) { this.body = body; return this; } @Override public DescribeSoarStrategiesResponse build() { return new DescribeSoarStrategiesResponse(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/DescribeSoarStrategiesResponseBody.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 DescribeSoarStrategiesResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategiesResponseBody</p> */ public class DescribeSoarStrategiesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SoarStrategies") private java.util.List<SoarStrategies> soarStrategies; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSoarStrategiesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.soarStrategies = builder.soarStrategies; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategiesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return soarStrategies */ public java.util.List<SoarStrategies> getSoarStrategies() { return this.soarStrategies; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private java.util.List<SoarStrategies> soarStrategies; private Integer totalCount; private Builder() { } private Builder(DescribeSoarStrategiesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.soarStrategies = model.soarStrategies; this.totalCount = model.totalCount; } /** * <p>The page number. Pages start from page 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; 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 request ID.</p> * * <strong>example:</strong> * <p>4BB99533-4FDC-5B9C-A5E4-5AE3E9BE5C78</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The policies.</p> */ public Builder soarStrategies(java.util.List<SoarStrategies> soarStrategies) { this.soarStrategies = soarStrategies; 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 DescribeSoarStrategiesResponseBody build() { return new DescribeSoarStrategiesResponseBody(this); } } /** * * {@link DescribeSoarStrategiesResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategiesResponseBody</p> */ public static class SoarStrategies extends TeaModel { @com.aliyun.core.annotation.NameInMap("Creator") private String creator; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("GmtCreate") private Long gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtModified") private Long gmtModified; @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RunMode") private String runMode; @com.aliyun.core.annotation.NameInMap("Type") private String type; private SoarStrategies(Builder builder) { this.creator = builder.creator; this.description = builder.description; this.gmtCreate = builder.gmtCreate; this.gmtModified = builder.gmtModified; this.id = builder.id; this.name = builder.name; this.runMode = builder.runMode; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static SoarStrategies create() { return builder().build(); } /** * @return creator */ public String getCreator() { return this.creator; } /** * @return description */ public String getDescription() { return this.description; } /** * @return gmtCreate */ public Long getGmtCreate() { return this.gmtCreate; } /** * @return gmtModified */ public Long getGmtModified() { return this.gmtModified; } /** * @return id */ public Long getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return runMode */ public String getRunMode() { return this.runMode; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String creator; private String description; private Long gmtCreate; private Long gmtModified; private Long id; private String name; private String runMode; private String type; private Builder() { } private Builder(SoarStrategies model) { this.creator = model.creator; this.description = model.description; this.gmtCreate = model.gmtCreate; this.gmtModified = model.gmtModified; this.id = model.id; this.name = model.name; this.runMode = model.runMode; this.type = model.type; } /** * <p>The Alibaba Cloud account ID of the creator. Default value: 0. The value indicates a system user.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder creator(String creator) { this.creator = creator; return this; } /** * <p>The description of the policy.</p> * * <strong>example:</strong> * <p>strategy_description_01</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The timestamp when the policy was created. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1703556715000</p> */ public Builder gmtCreate(Long gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The timestamp when the policy was modified. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1698114242000</p> */ public Builder gmtModified(Long gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>The ID of the policy.</p> * * <strong>example:</strong> * <p>16064025</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The name of the policy.</p> * * <strong>example:</strong> * <p>strategy_name01</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The execution mode. Valid values:</p> * <ul> * <li>runmode_TRIGGER_BY_USER: manually executed</li> * </ul> * * <strong>example:</strong> * <p>runmode_TRIGGER_BY_USER</p> */ public Builder runMode(String runMode) { this.runMode = runMode; return this; } /** * <p>The type of the policy. Valid values:</p> * <ul> * <li>type_vulfix: vulnerability operations</li> * </ul> * * <strong>example:</strong> * <p>type_vulfix</p> */ public Builder type(String type) { this.type = type; return this; } public SoarStrategies build() { return new SoarStrategies(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/DescribeSoarStrategyParamRequest.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 DescribeSoarStrategyParamRequest} extends {@link RequestModel} * * <p>DescribeSoarStrategyParamRequest</p> */ public class DescribeSoarStrategyParamRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StrategyId") @com.aliyun.core.annotation.Validation(required = true) private Long strategyId; private DescribeSoarStrategyParamRequest(Builder builder) { super(builder); this.strategyId = builder.strategyId; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyParamRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return strategyId */ public Long getStrategyId() { return this.strategyId; } public static final class Builder extends Request.Builder<DescribeSoarStrategyParamRequest, Builder> { private Long strategyId; private Builder() { super(); } private Builder(DescribeSoarStrategyParamRequest request) { super(request); this.strategyId = request.strategyId; } /** * <p>The ID of the policy.</p> * <blockquote> * <p> You can call the <a href="~~DescribeSoarStrategies~~">DescribeSoarStrategies</a> operation to obtain the ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>15553</p> */ public Builder strategyId(Long strategyId) { this.putQueryParameter("StrategyId", strategyId); this.strategyId = strategyId; return this; } @Override public DescribeSoarStrategyParamRequest build() { return new DescribeSoarStrategyParamRequest(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/DescribeSoarStrategyParamResponse.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 DescribeSoarStrategyParamResponse} extends {@link TeaModel} * * <p>DescribeSoarStrategyParamResponse</p> */ public class DescribeSoarStrategyParamResponse 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 DescribeSoarStrategyParamResponseBody body; private DescribeSoarStrategyParamResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSoarStrategyParamResponse 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 DescribeSoarStrategyParamResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSoarStrategyParamResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSoarStrategyParamResponseBody body); @Override DescribeSoarStrategyParamResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSoarStrategyParamResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSoarStrategyParamResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSoarStrategyParamResponse 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(DescribeSoarStrategyParamResponseBody body) { this.body = body; return this; } @Override public DescribeSoarStrategyParamResponse build() { return new DescribeSoarStrategyParamResponse(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/DescribeSoarStrategyParamResponseBody.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 DescribeSoarStrategyParamResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyParamResponseBody</p> */ public class DescribeSoarStrategyParamResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Params") private String params; @com.aliyun.core.annotation.NameInMap("ProcessInfo") private String processInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeSoarStrategyParamResponseBody(Builder builder) { this.params = builder.params; this.processInfo = builder.processInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyParamResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return params */ public String getParams() { return this.params; } /** * @return processInfo */ public String getProcessInfo() { return this.processInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String params; private String processInfo; private String requestId; private Builder() { } private Builder(DescribeSoarStrategyParamResponseBody model) { this.params = model.params; this.processInfo = model.processInfo; this.requestId = model.requestId; } /** * <p>The parameters of the policy.</p> * * <strong>example:</strong> * <p>{&quot;summary&quot;:[{&quot;name&quot;:&quot;email&quot;,&quot;type&quot;:&quot;String&quot;,&quot;isRequired&quot;:false,&quot;fromProperty&quot;:&quot;notifyConfig.email&quot;}]}</p> */ public Builder params(String params) { this.params = params; return this; } /** * <p>The process information of the policy.</p> * * <strong>example:</strong> * <p>{&quot;edges&quot;:[{&quot;level&quot;:0,&quot;removeFlag&quot;:0,&quot;source&quot;:1,&quot;target&quot;:8}]}</p> */ public Builder processInfo(String processInfo) { this.processInfo = processInfo; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>6673D49C-A9AB-40DD-B4A2-B92306701AE7</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeSoarStrategyParamResponseBody build() { return new DescribeSoarStrategyParamResponseBody(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/DescribeSoarStrategyTaskDetailRequest.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 DescribeSoarStrategyTaskDetailRequest} extends {@link RequestModel} * * <p>DescribeSoarStrategyTaskDetailRequest</p> */ public class DescribeSoarStrategyTaskDetailRequest 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("StrategyTaskId") @com.aliyun.core.annotation.Validation(required = true) private Long strategyTaskId; private DescribeSoarStrategyTaskDetailRequest(Builder builder) { super(builder); this.lang = builder.lang; this.strategyTaskId = builder.strategyTaskId; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyTaskDetailRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return strategyTaskId */ public Long getStrategyTaskId() { return this.strategyTaskId; } public static final class Builder extends Request.Builder<DescribeSoarStrategyTaskDetailRequest, Builder> { private String lang; private Long strategyTaskId; private Builder() { super(); } private Builder(DescribeSoarStrategyTaskDetailRequest request) { super(request); this.lang = request.lang; this.strategyTaskId = request.strategyTaskId; } /** * <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 ID of the policy task.</p> * <blockquote> * <p> You can call the <a href="~~DescribeSoarStrategyTasks~~">DescribeSoarStrategyTasks</a> operation to obtain the ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10585</p> */ public Builder strategyTaskId(Long strategyTaskId) { this.putQueryParameter("StrategyTaskId", strategyTaskId); this.strategyTaskId = strategyTaskId; return this; } @Override public DescribeSoarStrategyTaskDetailRequest build() { return new DescribeSoarStrategyTaskDetailRequest(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/DescribeSoarStrategyTaskDetailResponse.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 DescribeSoarStrategyTaskDetailResponse} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskDetailResponse</p> */ public class DescribeSoarStrategyTaskDetailResponse 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 DescribeSoarStrategyTaskDetailResponseBody body; private DescribeSoarStrategyTaskDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSoarStrategyTaskDetailResponse 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 DescribeSoarStrategyTaskDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSoarStrategyTaskDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSoarStrategyTaskDetailResponseBody body); @Override DescribeSoarStrategyTaskDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSoarStrategyTaskDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSoarStrategyTaskDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSoarStrategyTaskDetailResponse 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(DescribeSoarStrategyTaskDetailResponseBody body) { this.body = body; return this; } @Override public DescribeSoarStrategyTaskDetailResponse build() { return new DescribeSoarStrategyTaskDetailResponse(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/DescribeSoarStrategyTaskDetailResponseBody.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 DescribeSoarStrategyTaskDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskDetailResponseBody</p> */ public class DescribeSoarStrategyTaskDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TaskDetail") private TaskDetail taskDetail; private DescribeSoarStrategyTaskDetailResponseBody(Builder builder) { this.requestId = builder.requestId; this.taskDetail = builder.taskDetail; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyTaskDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return taskDetail */ public TaskDetail getTaskDetail() { return this.taskDetail; } public static final class Builder { private String requestId; private TaskDetail taskDetail; private Builder() { } private Builder(DescribeSoarStrategyTaskDetailResponseBody model) { this.requestId = model.requestId; this.taskDetail = model.taskDetail; } /** * <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 details of the task.</p> */ public Builder taskDetail(TaskDetail taskDetail) { this.taskDetail = taskDetail; return this; } public DescribeSoarStrategyTaskDetailResponseBody build() { return new DescribeSoarStrategyTaskDetailResponseBody(this); } } /** * * {@link DescribeSoarStrategyTaskDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskDetailResponseBody</p> */ public static class TaskDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogInfo") private String logInfo; @com.aliyun.core.annotation.NameInMap("Params") private String params; @com.aliyun.core.annotation.NameInMap("ProcessInfo") private String processInfo; @com.aliyun.core.annotation.NameInMap("TaskName") private String taskName; private TaskDetail(Builder builder) { this.logInfo = builder.logInfo; this.params = builder.params; this.processInfo = builder.processInfo; this.taskName = builder.taskName; } public static Builder builder() { return new Builder(); } public static TaskDetail create() { return builder().build(); } /** * @return logInfo */ public String getLogInfo() { return this.logInfo; } /** * @return params */ public String getParams() { return this.params; } /** * @return processInfo */ public String getProcessInfo() { return this.processInfo; } /** * @return taskName */ public String getTaskName() { return this.taskName; } public static final class Builder { private String logInfo; private String params; private String processInfo; private String taskName; private Builder() { } private Builder(TaskDetail model) { this.logInfo = model.logInfo; this.params = model.params; this.processInfo = model.processInfo; this.taskName = model.taskName; } /** * <p>The operational log information of the task.</p> * * <strong>example:</strong> * <p>{ * &quot;resultContent&quot;: &quot;{&quot;failedNum&quot;:0,&quot;totalNum&quot;:1,&quot;successNum&quot;:1}&quot;, * &quot;resultStatus&quot;: 0, * &quot;status&quot;: 2 * }</p> */ public Builder logInfo(String logInfo) { this.logInfo = logInfo; return this; } /** * <p>The parameters of the task.</p> * * <strong>example:</strong> * <p>[ * { * &quot;name&quot;: &quot;vulList&quot;, * &quot;associationProperty&quot;: &quot;sasAllVul&quot;, * &quot;value&quot;: [ * { * &quot;regionId&quot;: &quot;cn-hangzhou&quot;, * &quot;instanceId&quot;: &quot;i-bp10i3dtyq7x4<strong><strong>5e&quot;, * &quot;instanceName&quot;: &quot;xxx&quot;, * &quot;vulId&quot;: 1222, * &quot;vulName&quot;: &quot;centos:7:cesa-2024:1249&quot;, * &quot;vulAliasName&quot;: &quot;CESA-2024:1249&quot;, * &quot;vulTag&quot;: &quot;oval&quot;, * &quot;vulUuid&quot;: &quot;3c5eb76a-df89-</strong></strong>-85ef-67562cdc2344&quot;, * &quot;vulType&quot;: &quot;cve&quot;, * &quot;vulModifyTs&quot;: 1721324258000 * } * ] * }, * { * &quot;name&quot;: &quot;snapshotConfig&quot;, * &quot;associationProperty&quot;: &quot;snapshotConfig&quot;, * &quot;value&quot;: { * &quot;ttl&quot;: 1 * } * }, * { * &quot;name&quot;: &quot;notifyConfig&quot;, * &quot;associationProperty&quot;: &quot;notifyConfig&quot;, * &quot;value&quot;: { * &quot;ding&quot;: [ * { * &quot;value&quot;: 2195, * &quot;label&quot;: &quot;test&quot; * } * ] * } * } * ]</p> */ public Builder params(String params) { this.params = params; return this; } /** * <p>The process information of the task.</p> * * <strong>example:</strong> * <p>{ * &quot;edges&quot;: [ * { * &quot;level&quot;: 0, * &quot;removeFlag&quot;: 0, * &quot;source&quot;: 1, * &quot;target&quot;: 8 * } * ], * &quot;nodes&quot;: [ * { * &quot;actionId&quot;: &quot;Action_014s73k&quot;, * &quot;iconUrl&quot;: &quot;<a href="https://img.alicdn.com/tfs/TB1T*****jSZLeXXb9kVXa-12-14.svg">https://img.alicdn.com/tfs/TB1T*****jSZLeXXb9kVXa-12-14.svg</a>&quot;, * &quot;id&quot;: 1, * &quot;label&quot;: &quot;describeDisks&quot;, * &quot;nodeName&quot;: &quot;DescribeDisks&quot;, * &quot;status&quot;: 0, * &quot;type&quot;: &quot;openAPI&quot; * } * ] * }</p> */ public Builder processInfo(String processInfo) { this.processInfo = processInfo; return this; } /** * <p>The name of the task.</p> * * <strong>example:</strong> * <p>task-1</p> */ public Builder taskName(String taskName) { this.taskName = taskName; return this; } public TaskDetail build() { return new TaskDetail(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/DescribeSoarStrategyTaskParamsRequest.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 DescribeSoarStrategyTaskParamsRequest} extends {@link RequestModel} * * <p>DescribeSoarStrategyTaskParamsRequest</p> */ public class DescribeSoarStrategyTaskParamsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StrategyTaskId") private Long strategyTaskId; private DescribeSoarStrategyTaskParamsRequest(Builder builder) { super(builder); this.strategyTaskId = builder.strategyTaskId; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyTaskParamsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return strategyTaskId */ public Long getStrategyTaskId() { return this.strategyTaskId; } public static final class Builder extends Request.Builder<DescribeSoarStrategyTaskParamsRequest, Builder> { private Long strategyTaskId; private Builder() { super(); } private Builder(DescribeSoarStrategyTaskParamsRequest request) { super(request); this.strategyTaskId = request.strategyTaskId; } /** * <p>Strategy task ID.</p> * <blockquote> * <p>You can obtain this parameter by calling the <a href="~~DescribeSoarStrategyTasks~~">DescribeSoarStrategyTasks</a> interface.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder strategyTaskId(Long strategyTaskId) { this.putQueryParameter("StrategyTaskId", strategyTaskId); this.strategyTaskId = strategyTaskId; return this; } @Override public DescribeSoarStrategyTaskParamsRequest build() { return new DescribeSoarStrategyTaskParamsRequest(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/DescribeSoarStrategyTaskParamsResponse.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 DescribeSoarStrategyTaskParamsResponse} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskParamsResponse</p> */ public class DescribeSoarStrategyTaskParamsResponse 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 DescribeSoarStrategyTaskParamsResponseBody body; private DescribeSoarStrategyTaskParamsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSoarStrategyTaskParamsResponse 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 DescribeSoarStrategyTaskParamsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSoarStrategyTaskParamsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSoarStrategyTaskParamsResponseBody body); @Override DescribeSoarStrategyTaskParamsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSoarStrategyTaskParamsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSoarStrategyTaskParamsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSoarStrategyTaskParamsResponse 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(DescribeSoarStrategyTaskParamsResponseBody body) { this.body = body; return this; } @Override public DescribeSoarStrategyTaskParamsResponse build() { return new DescribeSoarStrategyTaskParamsResponse(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/DescribeSoarStrategyTaskParamsResponseBody.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 DescribeSoarStrategyTaskParamsResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskParamsResponseBody</p> */ public class DescribeSoarStrategyTaskParamsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TaskDetail") private TaskDetail taskDetail; private DescribeSoarStrategyTaskParamsResponseBody(Builder builder) { this.requestId = builder.requestId; this.taskDetail = builder.taskDetail; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyTaskParamsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return taskDetail */ public TaskDetail getTaskDetail() { return this.taskDetail; } public static final class Builder { private String requestId; private TaskDetail taskDetail; private Builder() { } private Builder(DescribeSoarStrategyTaskParamsResponseBody model) { this.requestId = model.requestId; this.taskDetail = model.taskDetail; } /** * <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for this request, and can be used to troubleshoot and locate issues.</p> * * <strong>example:</strong> * <p>ACF97412-FD09-4D1F-994F-34DF12BR****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Task details.</p> */ public Builder taskDetail(TaskDetail taskDetail) { this.taskDetail = taskDetail; return this; } public DescribeSoarStrategyTaskParamsResponseBody build() { return new DescribeSoarStrategyTaskParamsResponseBody(this); } } /** * * {@link DescribeSoarStrategyTaskParamsResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskParamsResponseBody</p> */ public static class TaskDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("Params") private String params; @com.aliyun.core.annotation.NameInMap("TaskName") private String taskName; private TaskDetail(Builder builder) { this.params = builder.params; this.taskName = builder.taskName; } public static Builder builder() { return new Builder(); } public static TaskDetail create() { return builder().build(); } /** * @return params */ public String getParams() { return this.params; } /** * @return taskName */ public String getTaskName() { return this.taskName; } public static final class Builder { private String params; private String taskName; private Builder() { } private Builder(TaskDetail model) { this.params = model.params; this.taskName = model.taskName; } /** * <p>Task parameters.</p> * * <strong>example:</strong> * <p>{&quot;summary&quot;:[{&quot;name&quot;:&quot;email&quot;,&quot;type&quot;:&quot;String&quot;,&quot;isRequired&quot;:false,&quot;fromProperty&quot;:&quot;notifyConfig.email&quot;}]}</p> */ public Builder params(String params) { this.params = params; return this; } /** * <p>任务名称。</p> * * <strong>example:</strong> * <p>task1</p> */ public Builder taskName(String taskName) { this.taskName = taskName; return this; } public TaskDetail build() { return new TaskDetail(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/DescribeSoarStrategyTaskResultRequest.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 DescribeSoarStrategyTaskResultRequest} extends {@link RequestModel} * * <p>DescribeSoarStrategyTaskResultRequest</p> */ public class DescribeSoarStrategyTaskResultRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Condition") private String condition; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StrategyTaskId") private Long strategyTaskId; private DescribeSoarStrategyTaskResultRequest(Builder builder) { super(builder); this.condition = builder.condition; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.strategyTaskId = builder.strategyTaskId; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyTaskResultRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return condition */ public String getCondition() { return this.condition; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return strategyTaskId */ public Long getStrategyTaskId() { return this.strategyTaskId; } public static final class Builder extends Request.Builder<DescribeSoarStrategyTaskResultRequest, Builder> { private String condition; private Integer currentPage; private Integer pageSize; private Long strategyTaskId; private Builder() { super(); } private Builder(DescribeSoarStrategyTaskResultRequest request) { super(request); this.condition = request.condition; this.currentPage = request.currentPage; this.pageSize = request.pageSize; this.strategyTaskId = request.strategyTaskId; } /** * <p>Condition parameters for task scheduling.</p> * * <strong>example:</strong> * <p>{&quot;status&quot;:1}</p> */ public Builder condition(String condition) { this.putQueryParameter("Condition", condition); this.condition = condition; return this; } /** * <p>The current page number during paginated queries.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The maximum number of entries to display per page during paginated queries.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>Strategy task ID.</p> * <blockquote> * <p>You can obtain this parameter by calling the <a href="~~DescribeSoarStrategyTasks~~">DescribeSoarStrategyTasks</a> interface.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder strategyTaskId(Long strategyTaskId) { this.putQueryParameter("StrategyTaskId", strategyTaskId); this.strategyTaskId = strategyTaskId; return this; } @Override public DescribeSoarStrategyTaskResultRequest build() { return new DescribeSoarStrategyTaskResultRequest(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/DescribeSoarStrategyTaskResultResponse.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 DescribeSoarStrategyTaskResultResponse} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskResultResponse</p> */ public class DescribeSoarStrategyTaskResultResponse 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 DescribeSoarStrategyTaskResultResponseBody body; private DescribeSoarStrategyTaskResultResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSoarStrategyTaskResultResponse 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 DescribeSoarStrategyTaskResultResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSoarStrategyTaskResultResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSoarStrategyTaskResultResponseBody body); @Override DescribeSoarStrategyTaskResultResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSoarStrategyTaskResultResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSoarStrategyTaskResultResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSoarStrategyTaskResultResponse 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(DescribeSoarStrategyTaskResultResponseBody body) { this.body = body; return this; } @Override public DescribeSoarStrategyTaskResultResponse build() { return new DescribeSoarStrategyTaskResultResponse(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/DescribeSoarStrategyTaskResultResponseBody.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 DescribeSoarStrategyTaskResultResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskResultResponseBody</p> */ public class DescribeSoarStrategyTaskResultResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("Records") private java.util.List<String> records; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeSoarStrategyTaskResultResponseBody(Builder builder) { this.pageInfo = builder.pageInfo; this.records = builder.records; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyTaskResultResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return records */ public java.util.List<String> getRecords() { return this.records; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private PageInfo pageInfo; private java.util.List<String> records; private String requestId; private Builder() { } private Builder(DescribeSoarStrategyTaskResultResponseBody model) { this.pageInfo = model.pageInfo; this.records = model.records; this.requestId = model.requestId; } /** * <p>Pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>Collection of execution records.</p> */ public Builder records(java.util.List<String> records) { this.records = records; return this; } /** * <p>The ID of the current request, a unique identifier generated by Alibaba Cloud for this request, which can be used for troubleshooting and issue localization.</p> * * <strong>example:</strong> * <p>1683940A-E4AE-4473-8C40-F4075434****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeSoarStrategyTaskResultResponseBody build() { return new DescribeSoarStrategyTaskResultResponseBody(this); } } /** * * {@link DescribeSoarStrategyTaskResultResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyTaskResultResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The current page number during paginated queries.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The maximum number of entries to display per page during paginated queries.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>总条数。</p> * * <strong>example:</strong> * <p>1</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/DescribeSoarStrategyTasksRequest.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 DescribeSoarStrategyTasksRequest} extends {@link RequestModel} * * <p>DescribeSoarStrategyTasksRequest</p> */ public class DescribeSoarStrategyTasksRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") @com.aliyun.core.annotation.Validation(required = true) private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(required = true) private Integer pageSize; private DescribeSoarStrategyTasksRequest(Builder builder) { super(builder); this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyTasksRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } public static final class Builder extends Request.Builder<DescribeSoarStrategyTasksRequest, Builder> { private Integer pageNumber; private Integer pageSize; private Builder() { super(); } private Builder(DescribeSoarStrategyTasksRequest request) { super(request); this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; } /** * <p>The page number. Pages start from page 1.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <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; } @Override public DescribeSoarStrategyTasksRequest build() { return new DescribeSoarStrategyTasksRequest(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/DescribeSoarStrategyTasksResponse.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 DescribeSoarStrategyTasksResponse} extends {@link TeaModel} * * <p>DescribeSoarStrategyTasksResponse</p> */ public class DescribeSoarStrategyTasksResponse 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 DescribeSoarStrategyTasksResponseBody body; private DescribeSoarStrategyTasksResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSoarStrategyTasksResponse 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 DescribeSoarStrategyTasksResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSoarStrategyTasksResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSoarStrategyTasksResponseBody body); @Override DescribeSoarStrategyTasksResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSoarStrategyTasksResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSoarStrategyTasksResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSoarStrategyTasksResponse 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(DescribeSoarStrategyTasksResponseBody body) { this.body = body; return this; } @Override public DescribeSoarStrategyTasksResponse build() { return new DescribeSoarStrategyTasksResponse(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/DescribeSoarStrategyTasksResponseBody.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 DescribeSoarStrategyTasksResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyTasksResponseBody</p> */ public class DescribeSoarStrategyTasksResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SoarStrategyTasks") private java.util.List<SoarStrategyTasks> soarStrategyTasks; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSoarStrategyTasksResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.soarStrategyTasks = builder.soarStrategyTasks; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSoarStrategyTasksResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return soarStrategyTasks */ public java.util.List<SoarStrategyTasks> getSoarStrategyTasks() { return this.soarStrategyTasks; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private java.util.List<SoarStrategyTasks> soarStrategyTasks; private Integer totalCount; private Builder() { } private Builder(DescribeSoarStrategyTasksResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.soarStrategyTasks = model.soarStrategyTasks; this.totalCount = model.totalCount; } /** * <p>The page number. Pages start from page 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; 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 request ID.</p> * * <strong>example:</strong> * <p>24A20733-10A0-4AF6-BE6B-E3322413BB68</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The policy tasks.</p> */ public Builder soarStrategyTasks(java.util.List<SoarStrategyTasks> soarStrategyTasks) { this.soarStrategyTasks = soarStrategyTasks; 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 DescribeSoarStrategyTasksResponseBody build() { return new DescribeSoarStrategyTasksResponseBody(this); } } /** * * {@link DescribeSoarStrategyTasksResponseBody} extends {@link TeaModel} * * <p>DescribeSoarStrategyTasksResponseBody</p> */ public static class SoarStrategyTasks extends TeaModel { @com.aliyun.core.annotation.NameInMap("FailedNum") private Integer failedNum; @com.aliyun.core.annotation.NameInMap("GmtCreate") private Long gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtFinish") private Long gmtFinish; @com.aliyun.core.annotation.NameInMap("GmtModified") private Long gmtModified; @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RunMode") private String runMode; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StrategyId") private Long strategyId; @com.aliyun.core.annotation.NameInMap("SuccessNum") private Integer successNum; @com.aliyun.core.annotation.NameInMap("TotalNum") private Integer totalNum; private SoarStrategyTasks(Builder builder) { this.failedNum = builder.failedNum; this.gmtCreate = builder.gmtCreate; this.gmtFinish = builder.gmtFinish; this.gmtModified = builder.gmtModified; this.id = builder.id; this.name = builder.name; this.runMode = builder.runMode; this.status = builder.status; this.strategyId = builder.strategyId; this.successNum = builder.successNum; this.totalNum = builder.totalNum; } public static Builder builder() { return new Builder(); } public static SoarStrategyTasks create() { return builder().build(); } /** * @return failedNum */ public Integer getFailedNum() { return this.failedNum; } /** * @return gmtCreate */ public Long getGmtCreate() { return this.gmtCreate; } /** * @return gmtFinish */ public Long getGmtFinish() { return this.gmtFinish; } /** * @return gmtModified */ public Long getGmtModified() { return this.gmtModified; } /** * @return id */ public Long getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return runMode */ public String getRunMode() { return this.runMode; } /** * @return status */ public String getStatus() { return this.status; } /** * @return strategyId */ public Long getStrategyId() { return this.strategyId; } /** * @return successNum */ public Integer getSuccessNum() { return this.successNum; } /** * @return totalNum */ public Integer getTotalNum() { return this.totalNum; } public static final class Builder { private Integer failedNum; private Long gmtCreate; private Long gmtFinish; private Long gmtModified; private Long id; private String name; private String runMode; private String status; private Long strategyId; private Integer successNum; private Integer totalNum; private Builder() { } private Builder(SoarStrategyTasks model) { this.failedNum = model.failedNum; this.gmtCreate = model.gmtCreate; this.gmtFinish = model.gmtFinish; this.gmtModified = model.gmtModified; this.id = model.id; this.name = model.name; this.runMode = model.runMode; this.status = model.status; this.strategyId = model.strategyId; this.successNum = model.successNum; this.totalNum = model.totalNum; } /** * <p>The number of execution failures.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder failedNum(Integer failedNum) { this.failedNum = failedNum; return this; } /** * <p>The timestamp when the policy task was created. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1708481235000</p> */ public Builder gmtCreate(Long gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The timestamp when the policy task was complete. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1586739841000</p> */ public Builder gmtFinish(Long gmtFinish) { this.gmtFinish = gmtFinish; return this; } /** * <p>The timestamp when the policy task was modified. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1669869436000</p> */ public Builder gmtModified(Long gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>The ID of the policy task.</p> * * <strong>example:</strong> * <p>5374</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The name of the policy task.</p> * * <strong>example:</strong> * <p>strategy_name01</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The execution mode. Valid values:</p> * <ul> * <li>runmode_TRIGGER_BY_USER: manually executed</li> * </ul> * * <strong>example:</strong> * <p>runmode_TRIGGER_BY_USER</p> */ public Builder runMode(String runMode) { this.runMode = runMode; return this; } /** * <p>The status of the policy task. Valid values:</p> * <ul> * <li>-1: waiting</li> * <li>0: starting</li> * <li>1: running</li> * <li>2: finished</li> * <li>3: schedule</li> * <li>4: pause</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The ID of the policy.</p> * * <strong>example:</strong> * <p>8000</p> */ public Builder strategyId(Long strategyId) { this.strategyId = strategyId; return this; } /** * <p>The number of successful executions.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder successNum(Integer successNum) { this.successNum = successNum; return this; } /** * <p>The total number of executions.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder totalNum(Integer totalNum) { this.totalNum = totalNum; return this; } public SoarStrategyTasks build() { return new SoarStrategyTasks(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/DescribeSoarSubscribedStrategyRequest.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 DescribeSoarSubscribedStrategyRequest} extends {@link RequestModel} * * <p>DescribeSoarSubscribedStrategyRequest</p> */ public class DescribeSoarSubscribedStrategyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") @com.aliyun.core.annotation.Validation(required = true) private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(required = true) private Integer pageSize; private DescribeSoarSubscribedStrategyRequest(Builder builder) { super(builder); this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; } public static Builder builder() { return new Builder(); } public static DescribeSoarSubscribedStrategyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } public static final class Builder extends Request.Builder<DescribeSoarSubscribedStrategyRequest, Builder> { private Integer pageNumber; private Integer pageSize; private Builder() { super(); } private Builder(DescribeSoarSubscribedStrategyRequest request) { super(request); this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; } /** * <p>The page number. Pages start from page 1.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <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; } @Override public DescribeSoarSubscribedStrategyRequest build() { return new DescribeSoarSubscribedStrategyRequest(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/DescribeSoarSubscribedStrategyResponse.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 DescribeSoarSubscribedStrategyResponse} extends {@link TeaModel} * * <p>DescribeSoarSubscribedStrategyResponse</p> */ public class DescribeSoarSubscribedStrategyResponse 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 DescribeSoarSubscribedStrategyResponseBody body; private DescribeSoarSubscribedStrategyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSoarSubscribedStrategyResponse 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 DescribeSoarSubscribedStrategyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSoarSubscribedStrategyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSoarSubscribedStrategyResponseBody body); @Override DescribeSoarSubscribedStrategyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSoarSubscribedStrategyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSoarSubscribedStrategyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSoarSubscribedStrategyResponse 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(DescribeSoarSubscribedStrategyResponseBody body) { this.body = body; return this; } @Override public DescribeSoarSubscribedStrategyResponse build() { return new DescribeSoarSubscribedStrategyResponse(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/DescribeSoarSubscribedStrategyResponseBody.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 DescribeSoarSubscribedStrategyResponseBody} extends {@link TeaModel} * * <p>DescribeSoarSubscribedStrategyResponseBody</p> */ public class DescribeSoarSubscribedStrategyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SoarStrategies") private java.util.List<SoarStrategies> soarStrategies; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSoarSubscribedStrategyResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.soarStrategies = builder.soarStrategies; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSoarSubscribedStrategyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return soarStrategies */ public java.util.List<SoarStrategies> getSoarStrategies() { return this.soarStrategies; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private java.util.List<SoarStrategies> soarStrategies; private Integer totalCount; private Builder() { } private Builder(DescribeSoarSubscribedStrategyResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.soarStrategies = model.soarStrategies; this.totalCount = model.totalCount; } /** * <p>The page number. Pages start from page 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; 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 request ID.</p> * * <strong>example:</strong> * <p>0B48AB3C-84FC-424D-A01D-B9270EF46038</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The policies.</p> */ public Builder soarStrategies(java.util.List<SoarStrategies> soarStrategies) { this.soarStrategies = soarStrategies; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>101</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeSoarSubscribedStrategyResponseBody build() { return new DescribeSoarSubscribedStrategyResponseBody(this); } } /** * * {@link DescribeSoarSubscribedStrategyResponseBody} extends {@link TeaModel} * * <p>DescribeSoarSubscribedStrategyResponseBody</p> */ public static class SoarStrategies extends TeaModel { @com.aliyun.core.annotation.NameInMap("Creator") private String creator; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("ExecuteNum") private String executeNum; @com.aliyun.core.annotation.NameInMap("GmtCreate") private Long gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtModified") private Long gmtModified; @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RunMode") private String runMode; @com.aliyun.core.annotation.NameInMap("Type") private String type; private SoarStrategies(Builder builder) { this.creator = builder.creator; this.description = builder.description; this.executeNum = builder.executeNum; this.gmtCreate = builder.gmtCreate; this.gmtModified = builder.gmtModified; this.id = builder.id; this.name = builder.name; this.runMode = builder.runMode; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static SoarStrategies create() { return builder().build(); } /** * @return creator */ public String getCreator() { return this.creator; } /** * @return description */ public String getDescription() { return this.description; } /** * @return executeNum */ public String getExecuteNum() { return this.executeNum; } /** * @return gmtCreate */ public Long getGmtCreate() { return this.gmtCreate; } /** * @return gmtModified */ public Long getGmtModified() { return this.gmtModified; } /** * @return id */ public Long getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return runMode */ public String getRunMode() { return this.runMode; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String creator; private String description; private String executeNum; private Long gmtCreate; private Long gmtModified; private Long id; private String name; private String runMode; private String type; private Builder() { } private Builder(SoarStrategies model) { this.creator = model.creator; this.description = model.description; this.executeNum = model.executeNum; this.gmtCreate = model.gmtCreate; this.gmtModified = model.gmtModified; this.id = model.id; this.name = model.name; this.runMode = model.runMode; this.type = model.type; } /** * <p>The Alibaba Cloud account ID of the creator.</p> * * <strong>example:</strong> * <p>1276085*****4392</p> */ public Builder creator(String creator) { this.creator = creator; return this; } /** * <p>The description of the policy.</p> * * <strong>example:</strong> * <p>strategy_description_01</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The total number of times that the policy is executed.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder executeNum(String executeNum) { this.executeNum = executeNum; return this; } /** * <p>The timestamp when the policy was created. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1716344106000</p> */ public Builder gmtCreate(Long gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The timestamp when the policy was modified. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1652672104000</p> */ public Builder gmtModified(Long gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>The ID of the policy.</p> * * <strong>example:</strong> * <p>300063</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The name of the policy.</p> * * <strong>example:</strong> * <p>strategy_name01</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The execution mode. Valid values:</p> * <ul> * <li>runmode_TRIGGER_BY_USER: manually executed</li> * </ul> * * <strong>example:</strong> * <p>runmode_TRIGGER_BY_USER</p> */ public Builder runMode(String runMode) { this.runMode = runMode; return this; } /** * <p>The type of the policy. Valid values:</p> * <ul> * <li>type_vulfix: vulnerability operations</li> * </ul> * * <strong>example:</strong> * <p>type_vulfix</p> */ public Builder type(String type) { this.type = type; return this; } public SoarStrategies build() { return new SoarStrategies(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/DescribeStrategyDetailRequest.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 DescribeStrategyDetailRequest} extends {@link RequestModel} * * <p>DescribeStrategyDetailRequest</p> */ public class DescribeStrategyDetailRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Id") @com.aliyun.core.annotation.Validation(required = true) private String id; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIp") private String sourceIp; private DescribeStrategyDetailRequest(Builder builder) { super(builder); this.id = builder.id; this.lang = builder.lang; this.sourceIp = builder.sourceIp; } public static Builder builder() { return new Builder(); } public static DescribeStrategyDetailRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return id */ public String getId() { return this.id; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } public static final class Builder extends Request.Builder<DescribeStrategyDetailRequest, Builder> { private String id; private String lang; private String sourceIp; private Builder() { super(); } private Builder(DescribeStrategyDetailRequest request) { super(request); this.id = request.id; this.lang = request.lang; this.sourceIp = request.sourceIp; } /** * <p>The ID of the baseline check policy.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>123456</p> */ public Builder id(String id) { this.putQueryParameter("Id", id); this.id = id; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The 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 DescribeStrategyDetailRequest build() { return new DescribeStrategyDetailRequest(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/DescribeStrategyDetailResponse.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 DescribeStrategyDetailResponse} extends {@link TeaModel} * * <p>DescribeStrategyDetailResponse</p> */ public class DescribeStrategyDetailResponse 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 DescribeStrategyDetailResponseBody body; private DescribeStrategyDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeStrategyDetailResponse 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 DescribeStrategyDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeStrategyDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeStrategyDetailResponseBody body); @Override DescribeStrategyDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeStrategyDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeStrategyDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeStrategyDetailResponse 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(DescribeStrategyDetailResponseBody body) { this.body = body; return this; } @Override public DescribeStrategyDetailResponse build() { return new DescribeStrategyDetailResponse(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/DescribeStrategyDetailResponseBody.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 DescribeStrategyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyDetailResponseBody</p> */ public class DescribeStrategyDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Strategy") private Strategy strategy; private DescribeStrategyDetailResponseBody(Builder builder) { this.requestId = builder.requestId; this.strategy = builder.strategy; } public static Builder builder() { return new Builder(); } public static DescribeStrategyDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return strategy */ public Strategy getStrategy() { return this.strategy; } public static final class Builder { private String requestId; private Strategy strategy; private Builder() { } private Builder(DescribeStrategyDetailResponseBody model) { this.requestId = model.requestId; this.strategy = model.strategy; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>C5B28F65-9245-5DC1-B3CF-5F2756A756A8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the baseline check policy.</p> */ public Builder strategy(Strategy strategy) { this.strategy = strategy; return this; } public DescribeStrategyDetailResponseBody build() { return new DescribeStrategyDetailResponseBody(this); } } /** * * {@link DescribeStrategyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyDetailResponseBody</p> */ public static class ParamList extends TeaModel { @com.aliyun.core.annotation.NameInMap("EnumValue") private String enumValue; @com.aliyun.core.annotation.NameInMap("MaxValue") private Integer maxValue; @com.aliyun.core.annotation.NameInMap("MinValue") private Integer minValue; @com.aliyun.core.annotation.NameInMap("ParamDefaultValue") private String paramDefaultValue; @com.aliyun.core.annotation.NameInMap("ParamDesc") private String paramDesc; @com.aliyun.core.annotation.NameInMap("ParamName") private String paramName; @com.aliyun.core.annotation.NameInMap("ParamType") private Integer paramType; @com.aliyun.core.annotation.NameInMap("Value") private String value; private ParamList(Builder builder) { this.enumValue = builder.enumValue; this.maxValue = builder.maxValue; this.minValue = builder.minValue; this.paramDefaultValue = builder.paramDefaultValue; this.paramDesc = builder.paramDesc; this.paramName = builder.paramName; this.paramType = builder.paramType; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static ParamList create() { return builder().build(); } /** * @return enumValue */ public String getEnumValue() { return this.enumValue; } /** * @return maxValue */ public Integer getMaxValue() { return this.maxValue; } /** * @return minValue */ public Integer getMinValue() { return this.minValue; } /** * @return paramDefaultValue */ public String getParamDefaultValue() { return this.paramDefaultValue; } /** * @return paramDesc */ public String getParamDesc() { return this.paramDesc; } /** * @return paramName */ public String getParamName() { return this.paramName; } /** * @return paramType */ public Integer getParamType() { return this.paramType; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String enumValue; private Integer maxValue; private Integer minValue; private String paramDefaultValue; private String paramDesc; private String paramName; private Integer paramType; private String value; private Builder() { } private Builder(ParamList model) { this.enumValue = model.enumValue; this.maxValue = model.maxValue; this.minValue = model.minValue; this.paramDefaultValue = model.paramDefaultValue; this.paramDesc = model.paramDesc; this.paramName = model.paramName; this.paramType = model.paramType; this.value = model.value; } /** * <p>The options that can be selected for the rule parameter if the value of ParamType is set to 2.</p> * * <strong>example:</strong> * <p>0,1,2,3</p> */ public Builder enumValue(String enumValue) { this.enumValue = enumValue; return this; } /** * <p>The maximum value of the rule parameter.</p> * * <strong>example:</strong> * <p>999</p> */ public Builder maxValue(Integer maxValue) { this.maxValue = maxValue; return this; } /** * <p>The minimum value of the rule parameter.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder minValue(Integer minValue) { this.minValue = minValue; return this; } /** * <p>The default value of the rule parameter.</p> * * <strong>example:</strong> * <p>7</p> */ public Builder paramDefaultValue(String paramDefaultValue) { this.paramDefaultValue = paramDefaultValue; return this; } /** * <p>The description of the rule parameter.</p> * * <strong>example:</strong> * <p>The setting value is 0 means no definition, 1 means success, 2 means failure, 3 means success and failure</p> */ public Builder paramDesc(String paramDesc) { this.paramDesc = paramDesc; return this; } /** * <p>The name of the rule parameter.</p> * * <strong>example:</strong> * <p>range_val</p> */ public Builder paramName(String paramName) { this.paramName = paramName; return this; } /** * <p>The type of the rule parameter. Valid values:</p> * <ul> * <li><strong>1</strong>: input</li> * <li><strong>2</strong>: selection</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder paramType(Integer paramType) { this.paramType = paramType; return this; } /** * <p>The configured value of the rule parameter.</p> * * <strong>example:</strong> * <p>7</p> */ public Builder value(String value) { this.value = value; return this; } public ParamList build() { return new ParamList(this); } } } /** * * {@link DescribeStrategyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyDetailResponseBody</p> */ public static class Rules extends TeaModel { @com.aliyun.core.annotation.NameInMap("DefaultValue") private Integer defaultValue; @com.aliyun.core.annotation.NameInMap("Optional") private Integer optional; @com.aliyun.core.annotation.NameInMap("ParamList") private java.util.List<ParamList> paramList; @com.aliyun.core.annotation.NameInMap("RuleDesc") private String ruleDesc; @com.aliyun.core.annotation.NameInMap("RuleId") private String ruleId; private Rules(Builder builder) { this.defaultValue = builder.defaultValue; this.optional = builder.optional; this.paramList = builder.paramList; this.ruleDesc = builder.ruleDesc; this.ruleId = builder.ruleId; } public static Builder builder() { return new Builder(); } public static Rules create() { return builder().build(); } /** * @return defaultValue */ public Integer getDefaultValue() { return this.defaultValue; } /** * @return optional */ public Integer getOptional() { return this.optional; } /** * @return paramList */ public java.util.List<ParamList> getParamList() { return this.paramList; } /** * @return ruleDesc */ public String getRuleDesc() { return this.ruleDesc; } /** * @return ruleId */ public String getRuleId() { return this.ruleId; } public static final class Builder { private Integer defaultValue; private Integer optional; private java.util.List<ParamList> paramList; private String ruleDesc; private String ruleId; private Builder() { } private Builder(Rules model) { this.defaultValue = model.defaultValue; this.optional = model.optional; this.paramList = model.paramList; this.ruleDesc = model.ruleDesc; this.ruleId = model.ruleId; } /** * <p>The default value of the rule.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder defaultValue(Integer defaultValue) { this.defaultValue = defaultValue; return this; } /** * <p>Indicates whether the rule can be selected. Valid values:</p> * <ul> * <li><strong>1</strong>: yes</li> * <li><strong>0</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder optional(Integer optional) { this.optional = optional; return this; } /** * <p>The rule parameters.</p> */ public Builder paramList(java.util.List<ParamList> paramList) { this.paramList = paramList; return this; } /** * <p>The description of the rule.</p> * * <strong>example:</strong> * <p>Please customize the password expiration time detection standard as</p> */ public Builder ruleDesc(String ruleDesc) { this.ruleDesc = ruleDesc; return this; } /** * <p>The rule ID.</p> * * <strong>example:</strong> * <p>login_unlock_deny_pam_faillock.must.cus</p> */ public Builder ruleId(String ruleId) { this.ruleId = ruleId; return this; } public Rules build() { return new Rules(this); } } } /** * * {@link DescribeStrategyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyDetailResponseBody</p> */ public static class CheckDetails extends TeaModel { @com.aliyun.core.annotation.NameInMap("CheckDesc") private String checkDesc; @com.aliyun.core.annotation.NameInMap("CheckId") private Long checkId; @com.aliyun.core.annotation.NameInMap("CheckItem") private String checkItem; @com.aliyun.core.annotation.NameInMap("Rules") private java.util.List<Rules> rules; private CheckDetails(Builder builder) { this.checkDesc = builder.checkDesc; this.checkId = builder.checkId; this.checkItem = builder.checkItem; this.rules = builder.rules; } public static Builder builder() { return new Builder(); } public static CheckDetails create() { return builder().build(); } /** * @return checkDesc */ public String getCheckDesc() { return this.checkDesc; } /** * @return checkId */ public Long getCheckId() { return this.checkId; } /** * @return checkItem */ public String getCheckItem() { return this.checkItem; } /** * @return rules */ public java.util.List<Rules> getRules() { return this.rules; } public static final class Builder { private String checkDesc; private Long checkId; private String checkItem; private java.util.List<Rules> rules; private Builder() { } private Builder(CheckDetails model) { this.checkDesc = model.checkDesc; this.checkId = model.checkId; this.checkItem = model.checkItem; this.rules = model.rules; } /** * <p>The description of the check item.</p> * * <strong>example:</strong> * <p>Set password expiration time, force regular modification of password, reduce password leakage and guess risk.Use non-password login (e.g. key pair) please ignore this item.</p> */ public Builder checkDesc(String checkDesc) { this.checkDesc = checkDesc; return this; } /** * <p>The ID of the check item.</p> * * <strong>example:</strong> * <p>206</p> */ public Builder checkId(Long checkId) { this.checkId = checkId; return this; } /** * <p>The check item.</p> * * <strong>example:</strong> * <p>Ensure password expiration period is set.</p> */ public Builder checkItem(String checkItem) { this.checkItem = checkItem; return this; } /** * <p>The details of rules.</p> */ public Builder rules(java.util.List<Rules> rules) { this.rules = rules; return this; } public CheckDetails build() { return new CheckDetails(this); } } } /** * * {@link DescribeStrategyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyDetailResponseBody</p> */ public static class SubTypes extends TeaModel { @com.aliyun.core.annotation.NameInMap("Alias") private String alias; @com.aliyun.core.annotation.NameInMap("CheckDetails") private java.util.List<CheckDetails> checkDetails; @com.aliyun.core.annotation.NameInMap("On") private Boolean on; @com.aliyun.core.annotation.NameInMap("SupportedOs") private String supportedOs; @com.aliyun.core.annotation.NameInMap("TypeName") private String typeName; private SubTypes(Builder builder) { this.alias = builder.alias; this.checkDetails = builder.checkDetails; this.on = builder.on; this.supportedOs = builder.supportedOs; this.typeName = builder.typeName; } public static Builder builder() { return new Builder(); } public static SubTypes create() { return builder().build(); } /** * @return alias */ public String getAlias() { return this.alias; } /** * @return checkDetails */ public java.util.List<CheckDetails> getCheckDetails() { return this.checkDetails; } /** * @return on */ public Boolean getOn() { return this.on; } /** * @return supportedOs */ public String getSupportedOs() { return this.supportedOs; } /** * @return typeName */ public String getTypeName() { return this.typeName; } public static final class Builder { private String alias; private java.util.List<CheckDetails> checkDetails; private Boolean on; private String supportedOs; private String typeName; private Builder() { } private Builder(SubTypes model) { this.alias = model.alias; this.checkDetails = model.checkDetails; this.on = model.on; this.supportedOs = model.supportedOs; this.typeName = model.typeName; } /** * <p>The alias of the check item.</p> * * <strong>example:</strong> * <p>Redis unauthorized access high exploit vulnerability risk</p> */ public Builder alias(String alias) { this.alias = alias; return this; } /** * <p>The details of custom check items.</p> */ public Builder checkDetails(java.util.List<CheckDetails> checkDetails) { this.checkDetails = checkDetails; return this; } /** * <p>Indicates whether the sub-check item is selected. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder on(Boolean on) { this.on = on; return this; } /** * <p>The operating system type of the server. Valid values:</p> * <ul> * <li><strong>windows</strong></li> * <li><strong>linux</strong></li> * </ul> * * <strong>example:</strong> * <p>windows</p> */ public Builder supportedOs(String supportedOs) { this.supportedOs = supportedOs; return this; } /** * <p>The type of the sub-check item.</p> * * <strong>example:</strong> * <p>hc_exploit_redis</p> */ public Builder typeName(String typeName) { this.typeName = typeName; return this; } public SubTypes build() { return new SubTypes(this); } } } /** * * {@link DescribeStrategyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyDetailResponseBody</p> */ public static class RiskTypeWhiteListQueryResultList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Alias") private String alias; @com.aliyun.core.annotation.NameInMap("On") private Boolean on; @com.aliyun.core.annotation.NameInMap("SubTypes") private java.util.List<SubTypes> subTypes; @com.aliyun.core.annotation.NameInMap("TypeName") private String typeName; private RiskTypeWhiteListQueryResultList(Builder builder) { this.alias = builder.alias; this.on = builder.on; this.subTypes = builder.subTypes; this.typeName = builder.typeName; } public static Builder builder() { return new Builder(); } public static RiskTypeWhiteListQueryResultList create() { return builder().build(); } /** * @return alias */ public String getAlias() { return this.alias; } /** * @return on */ public Boolean getOn() { return this.on; } /** * @return subTypes */ public java.util.List<SubTypes> getSubTypes() { return this.subTypes; } /** * @return typeName */ public String getTypeName() { return this.typeName; } public static final class Builder { private String alias; private Boolean on; private java.util.List<SubTypes> subTypes; private String typeName; private Builder() { } private Builder(RiskTypeWhiteListQueryResultList model) { this.alias = model.alias; this.on = model.on; this.subTypes = model.subTypes; this.typeName = model.typeName; } /** * <p>The alias of the check item.</p> * * <strong>example:</strong> * <p>Unauthorized Access</p> */ public Builder alias(String alias) { this.alias = alias; return this; } /** * <p>Indicates whether the check item is selected. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder on(Boolean on) { this.on = on; return this; } /** * <p>The information about sub-check items.</p> */ public Builder subTypes(java.util.List<SubTypes> subTypes) { this.subTypes = subTypes; return this; } /** * <p>The name of the check item.</p> * * <strong>example:</strong> * <p>hc_exploit</p> */ public Builder typeName(String typeName) { this.typeName = typeName; return this; } public RiskTypeWhiteListQueryResultList build() { return new RiskTypeWhiteListQueryResultList(this); } } } /** * * {@link DescribeStrategyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyDetailResponseBody</p> */ public static class Strategy extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomType") private String customType; @com.aliyun.core.annotation.NameInMap("CycleDays") private Integer cycleDays; @com.aliyun.core.annotation.NameInMap("CycleStartTime") private Integer cycleStartTime; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("Id") private Integer id; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RiskSubTypeName") private String riskSubTypeName; @com.aliyun.core.annotation.NameInMap("RiskTypeWhiteListQueryResultList") private java.util.List<RiskTypeWhiteListQueryResultList> riskTypeWhiteListQueryResultList; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; @com.aliyun.core.annotation.NameInMap("Type") private Integer type; private Strategy(Builder builder) { this.customType = builder.customType; this.cycleDays = builder.cycleDays; this.cycleStartTime = builder.cycleStartTime; this.endTime = builder.endTime; this.id = builder.id; this.name = builder.name; this.riskSubTypeName = builder.riskSubTypeName; this.riskTypeWhiteListQueryResultList = builder.riskTypeWhiteListQueryResultList; this.startTime = builder.startTime; this.targetType = builder.targetType; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static Strategy create() { return builder().build(); } /** * @return customType */ public String getCustomType() { return this.customType; } /** * @return cycleDays */ public Integer getCycleDays() { return this.cycleDays; } /** * @return cycleStartTime */ public Integer getCycleStartTime() { return this.cycleStartTime; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return id */ public Integer getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return riskSubTypeName */ public String getRiskSubTypeName() { return this.riskSubTypeName; } /** * @return riskTypeWhiteListQueryResultList */ public java.util.List<RiskTypeWhiteListQueryResultList> getRiskTypeWhiteListQueryResultList() { return this.riskTypeWhiteListQueryResultList; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return targetType */ public String getTargetType() { return this.targetType; } /** * @return type */ public Integer getType() { return this.type; } public static final class Builder { private String customType; private Integer cycleDays; private Integer cycleStartTime; private String endTime; private Integer id; private String name; private String riskSubTypeName; private java.util.List<RiskTypeWhiteListQueryResultList> riskTypeWhiteListQueryResultList; private String startTime; private String targetType; private Integer type; private Builder() { } private Builder(Strategy model) { this.customType = model.customType; this.cycleDays = model.cycleDays; this.cycleStartTime = model.cycleStartTime; this.endTime = model.endTime; this.id = model.id; this.name = model.name; this.riskSubTypeName = model.riskSubTypeName; this.riskTypeWhiteListQueryResultList = model.riskTypeWhiteListQueryResultList; this.startTime = model.startTime; this.targetType = model.targetType; this.type = model.type; } /** * <p>The type of the baseline check policy that you want to query. Valid values:</p> * <ul> * <li><strong>common</strong>: standard baseline check policy</li> * <li><strong>custom</strong>: custom baseline check policy</li> * </ul> * * <strong>example:</strong> * <p>common</p> */ public Builder customType(String customType) { this.customType = customType; return this; } /** * <p>The check interval of the policy.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder cycleDays(Integer cycleDays) { this.cycleDays = cycleDays; return this; } /** * <p>The time period during which the check starts. Valid values:</p> * <ul> * <li><strong>0</strong>: 00:00 to 06:00</li> * <li><strong>6</strong>: 06:00 to 12:00</li> * <li><strong>12</strong>: 12:00 to 18:00</li> * <li><strong>18</strong>: 18:00 to 24:00</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder cycleStartTime(Integer cycleStartTime) { this.cycleStartTime = cycleStartTime; return this; } /** * <p>The end time of the check. Specify the time in the HH:mm:ss format.</p> * * <strong>example:</strong> * <p>03:00:00</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>The ID of the baseline check policy.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder id(Integer id) { this.id = id; return this; } /** * <p>The name of the baseline check policy.</p> * * <strong>example:</strong> * <p>TestStrategy</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The subtype of the baselines. </p> * <blockquote> * <p>You can call the <a href="~~DescribeRiskType~~">DescribeRiskType</a> operation to query the subtypes of baselines.</p> * </blockquote> * * <strong>example:</strong> * <p>hc_nginx_linux,tomcat7,hc_mysql_ali,hc_docker</p> */ public Builder riskSubTypeName(String riskSubTypeName) { this.riskSubTypeName = riskSubTypeName; return this; } /** * <p>The information about the whitelist of risk items.</p> */ public Builder riskTypeWhiteListQueryResultList(java.util.List<RiskTypeWhiteListQueryResultList> riskTypeWhiteListQueryResultList) { this.riskTypeWhiteListQueryResultList = riskTypeWhiteListQueryResultList; return this; } /** * <p>The start time of the check. Specify the time in the HH:mm:ss format.</p> * * <strong>example:</strong> * <p>02:00:00</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } /** * <p>The method that is used to apply the baseline check policy. Valid values:</p> * <ul> * <li><strong>groupId</strong>: asset groups</li> * <li><strong>uuid</strong>: assets</li> * </ul> * * <strong>example:</strong> * <p>groupId</p> */ public Builder targetType(String targetType) { this.targetType = targetType; return this; } /** * <p>The type of the baseline check policy. Valid values:</p> * <ul> * <li><strong>1</strong>: standard policies</li> * <li><strong>2</strong>: custom policies</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder type(Integer type) { this.type = type; return this; } public Strategy build() { return new Strategy(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/DescribeStrategyExecDetailRequest.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 DescribeStrategyExecDetailRequest} extends {@link RequestModel} * * <p>DescribeStrategyExecDetailRequest</p> */ public class DescribeStrategyExecDetailRequest 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("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIp") private String sourceIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StrategyId") @com.aliyun.core.annotation.Validation(required = true) private Integer strategyId; private DescribeStrategyExecDetailRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.sourceIp = builder.sourceIp; this.strategyId = builder.strategyId; } public static Builder builder() { return new Builder(); } public static DescribeStrategyExecDetailRequest 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 sourceIp */ public String getSourceIp() { return this.sourceIp; } /** * @return strategyId */ public Integer getStrategyId() { return this.strategyId; } public static final class Builder extends Request.Builder<DescribeStrategyExecDetailRequest, Builder> { private Integer currentPage; private Integer pageSize; private String sourceIp; private Integer strategyId; private Builder() { super(); } private Builder(DescribeStrategyExecDetailRequest request) { super(request); this.currentPage = request.currentPage; this.pageSize = request.pageSize; this.sourceIp = request.sourceIp; this.strategyId = request.strategyId; } /** * <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 number of entries to return on each page. Default value: 10. If you leave this parameter empty, 10 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(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The source IP address of the request.</p> * * <strong>example:</strong> * <p>1.2.XX.XX</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } /** * <p>The ID of the baseline check policy.</p> * <blockquote> * <p> You can call the <a href="~~DescribeStrategy~~">DescribeStrategy</a> operation to query the IDs of baseline check policies.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>8437592</p> */ public Builder strategyId(Integer strategyId) { this.putQueryParameter("StrategyId", strategyId); this.strategyId = strategyId; return this; } @Override public DescribeStrategyExecDetailRequest build() { return new DescribeStrategyExecDetailRequest(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/DescribeStrategyExecDetailResponse.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 DescribeStrategyExecDetailResponse} extends {@link TeaModel} * * <p>DescribeStrategyExecDetailResponse</p> */ public class DescribeStrategyExecDetailResponse 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 DescribeStrategyExecDetailResponseBody body; private DescribeStrategyExecDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeStrategyExecDetailResponse 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 DescribeStrategyExecDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeStrategyExecDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeStrategyExecDetailResponseBody body); @Override DescribeStrategyExecDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeStrategyExecDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeStrategyExecDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeStrategyExecDetailResponse 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(DescribeStrategyExecDetailResponseBody body) { this.body = body; return this; } @Override public DescribeStrategyExecDetailResponse build() { return new DescribeStrategyExecDetailResponse(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/DescribeStrategyExecDetailResponseBody.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 DescribeStrategyExecDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyExecDetailResponseBody</p> */ public class DescribeStrategyExecDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("FailCount") private Integer failCount; @com.aliyun.core.annotation.NameInMap("FailedEcsList") private java.util.List<FailedEcsList> failedEcsList; @com.aliyun.core.annotation.NameInMap("InProcessCount") private Integer inProcessCount; @com.aliyun.core.annotation.NameInMap("Percent") private String percent; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Source") private String source; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.NameInMap("SuccessCount") private Integer successCount; private DescribeStrategyExecDetailResponseBody(Builder builder) { this.endTime = builder.endTime; this.failCount = builder.failCount; this.failedEcsList = builder.failedEcsList; this.inProcessCount = builder.inProcessCount; this.percent = builder.percent; this.requestId = builder.requestId; this.source = builder.source; this.startTime = builder.startTime; this.successCount = builder.successCount; } public static Builder builder() { return new Builder(); } public static DescribeStrategyExecDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return failCount */ public Integer getFailCount() { return this.failCount; } /** * @return failedEcsList */ public java.util.List<FailedEcsList> getFailedEcsList() { return this.failedEcsList; } /** * @return inProcessCount */ public Integer getInProcessCount() { return this.inProcessCount; } /** * @return percent */ public String getPercent() { return this.percent; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return source */ public String getSource() { return this.source; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return successCount */ public Integer getSuccessCount() { return this.successCount; } public static final class Builder { private String endTime; private Integer failCount; private java.util.List<FailedEcsList> failedEcsList; private Integer inProcessCount; private String percent; private String requestId; private String source; private String startTime; private Integer successCount; private Builder() { } private Builder(DescribeStrategyExecDetailResponseBody model) { this.endTime = model.endTime; this.failCount = model.failCount; this.failedEcsList = model.failedEcsList; this.inProcessCount = model.inProcessCount; this.percent = model.percent; this.requestId = model.requestId; this.source = model.source; this.startTime = model.startTime; this.successCount = model.successCount; } /** * <p>The time when the baseline check ends.</p> * * <strong>example:</strong> * <p>2021-12-05 00:12:46</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>The number of check items that failed to pass the baseline check. This type of check item is considered risk items.</p> * * <strong>example:</strong> * <p>94</p> */ public Builder failCount(Integer failCount) { this.failCount = failCount; return this; } /** * <p>The servers on which risk items were detected.</p> */ public Builder failedEcsList(java.util.List<FailedEcsList> failedEcsList) { this.failedEcsList = failedEcsList; return this; } /** * <p>The number of tasks that are **running **based on the baseline check policy.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder inProcessCount(Integer inProcessCount) { this.inProcessCount = inProcessCount; return this; } /** * <p>The execution progress of the baseline check policy.</p> * * <strong>example:</strong> * <p>100%</p> */ public Builder percent(String percent) { this.percent = percent; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>01611D72-1E33-53F5-A9A5-C81B5561970F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The type of the baseline check. Valid values:</p> * <ul> * <li><strong>Schedule</strong>: automatic check that periodically runs</li> * <li><strong>Manual</strong>: intermediate check that is manually performed</li> * </ul> * * <strong>example:</strong> * <p>Manual</p> */ public Builder source(String source) { this.source = source; return this; } /** * <p>The time when the baseline check starts.</p> * * <strong>example:</strong> * <p>2021-12-05 00:12:16</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } /** * <p>The number of check items that <strong>passed</strong> the baseline check.</p> * * <strong>example:</strong> * <p>81</p> */ public Builder successCount(Integer successCount) { this.successCount = successCount; return this; } public DescribeStrategyExecDetailResponseBody build() { return new DescribeStrategyExecDetailResponseBody(this); } } /** * * {@link DescribeStrategyExecDetailResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyExecDetailResponseBody</p> */ public static class FailedEcsList extends TeaModel { @com.aliyun.core.annotation.NameInMap("IP") private String ip; @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("Reason") private String reason; private FailedEcsList(Builder builder) { this.ip = builder.ip; this.instanceName = builder.instanceName; this.internetIp = builder.internetIp; this.intranetIp = builder.intranetIp; this.reason = builder.reason; } public static Builder builder() { return new Builder(); } public static FailedEcsList create() { return builder().build(); } /** * @return ip */ public String getIp() { return this.ip; } /** * @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 reason */ public String getReason() { return this.reason; } public static final class Builder { private String ip; private String instanceName; private String internetIp; private String intranetIp; private String reason; private Builder() { } private Builder(FailedEcsList model) { this.ip = model.ip; this.instanceName = model.instanceName; this.internetIp = model.internetIp; this.intranetIp = model.intranetIp; this.reason = model.reason; } /** * <p>The IP address of the server on which the baseline check was performed.</p> * * <strong>example:</strong> * <p>115.28.XX.XX</p> */ public Builder ip(String ip) { this.ip = ip; return this; } /** * <p>The name of the instance.</p> * * <strong>example:</strong> * <p>worker-k8s-for-cs-cf5741fb95c3a45d0864f0e4544dc****</p> */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * <p>The public IP address.</p> * * <strong>example:</strong> * <p>115.28.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The private IP address.</p> * * <strong>example:</strong> * <p>172.31.XX.XX</p> */ public Builder intranetIp(String intranetIp) { this.intranetIp = intranetIp; return this; } /** * <p>The failure cause for the check item.</p> * * <strong>example:</strong> * <p>Detect timeout</p> */ public Builder reason(String reason) { this.reason = reason; return this; } public FailedEcsList build() { return new FailedEcsList(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/DescribeStrategyRequest.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 DescribeStrategyRequest} extends {@link RequestModel} * * <p>DescribeStrategyRequest</p> */ public class DescribeStrategyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CustomType") private String customType; @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("StrategyIds") private String strategyIds; private DescribeStrategyRequest(Builder builder) { super(builder); this.customType = builder.customType; this.lang = builder.lang; this.sourceIp = builder.sourceIp; this.strategyIds = builder.strategyIds; } public static Builder builder() { return new Builder(); } public static DescribeStrategyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return customType */ public String getCustomType() { return this.customType; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } /** * @return strategyIds */ public String getStrategyIds() { return this.strategyIds; } public static final class Builder extends Request.Builder<DescribeStrategyRequest, Builder> { private String customType; private String lang; private String sourceIp; private String strategyIds; private Builder() { super(); } private Builder(DescribeStrategyRequest request) { super(request); this.customType = request.customType; this.lang = request.lang; this.sourceIp = request.sourceIp; this.strategyIds = request.strategyIds; } /** * <p>The type of the baseline check policy that you want to query. Valid values:</p> * <ul> * <li><strong>common</strong>: standard baseline check policy</li> * <li><strong>custom</strong>: custom baseline check policy</li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder customType(String customType) { this.putQueryParameter("CustomType", customType); this.customType = customType; 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>1.2.X.X</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } /** * <p>The ID of the baseline check policy that you want to query. Separate multiple IDs with commas (,).</p> * * <strong>example:</strong> * <p>8164248</p> */ public Builder strategyIds(String strategyIds) { this.putQueryParameter("StrategyIds", strategyIds); this.strategyIds = strategyIds; return this; } @Override public DescribeStrategyRequest build() { return new DescribeStrategyRequest(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/DescribeStrategyResponse.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 DescribeStrategyResponse} extends {@link TeaModel} * * <p>DescribeStrategyResponse</p> */ public class DescribeStrategyResponse 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 DescribeStrategyResponseBody body; private DescribeStrategyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeStrategyResponse 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 DescribeStrategyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeStrategyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeStrategyResponseBody body); @Override DescribeStrategyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeStrategyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeStrategyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeStrategyResponse 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(DescribeStrategyResponseBody body) { this.body = body; return this; } @Override public DescribeStrategyResponse build() { return new DescribeStrategyResponse(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/DescribeStrategyResponseBody.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 DescribeStrategyResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyResponseBody</p> */ public class DescribeStrategyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Strategies") private java.util.List<Strategies> strategies; private DescribeStrategyResponseBody(Builder builder) { this.requestId = builder.requestId; this.strategies = builder.strategies; } public static Builder builder() { return new Builder(); } public static DescribeStrategyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return strategies */ public java.util.List<Strategies> getStrategies() { return this.strategies; } public static final class Builder { private String requestId; private java.util.List<Strategies> strategies; private Builder() { } private Builder(DescribeStrategyResponseBody model) { this.requestId = model.requestId; this.strategies = model.strategies; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>75C127E6-76CD-59A7-B6E4-1CBBDC98F2EB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The details of the baseline check policies.</p> */ public Builder strategies(java.util.List<Strategies> strategies) { this.strategies = strategies; return this; } public DescribeStrategyResponseBody build() { return new DescribeStrategyResponseBody(this); } } /** * * {@link DescribeStrategyResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyResponseBody</p> */ public static class ConfigTargets extends TeaModel { @com.aliyun.core.annotation.NameInMap("Flag") private String flag; @com.aliyun.core.annotation.NameInMap("Target") private String target; @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; private ConfigTargets(Builder builder) { this.flag = builder.flag; this.target = builder.target; this.targetType = builder.targetType; } public static Builder builder() { return new Builder(); } public static ConfigTargets create() { return builder().build(); } /** * @return flag */ public String getFlag() { return this.flag; } /** * @return target */ public String getTarget() { return this.target; } /** * @return targetType */ public String getTargetType() { return this.targetType; } public static final class Builder { private String flag; private String target; private String targetType; private Builder() { } private Builder(ConfigTargets model) { this.flag = model.flag; this.target = model.target; this.targetType = model.targetType; } /** * <p>Indicates whether the baseline check policy is applied to the asset group. Valid values:</p> * <ul> * <li><strong>add</strong>: The baseline check policy is applied to the asset group.</li> * <li><strong>del</strong>: the baseline check policy is not applied to the asset group.</li> * </ul> * * <strong>example:</strong> * <p>add</p> */ public Builder flag(String flag) { this.flag = flag; return this; } /** * <p>The asset group ID or UUID of the asset to which the baseline check policy is applied.</p> * * <strong>example:</strong> * <p>10099713</p> */ public Builder target(String target) { this.target = target; return this; } /** * <p>The condition by which the baseline check policy is applied to the asset. Valid values:</p> * <ul> * <li><strong>groupId</strong>: the ID of the asset group</li> * <li><strong>uuid</strong>: the UUID of the asset</li> * </ul> * * <strong>example:</strong> * <p>groupId</p> */ public Builder targetType(String targetType) { this.targetType = targetType; return this; } public ConfigTargets build() { return new ConfigTargets(this); } } } /** * * {@link DescribeStrategyResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyResponseBody</p> */ public static class Strategies extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConfigTargets") private java.util.List<ConfigTargets> configTargets; @com.aliyun.core.annotation.NameInMap("CustomType") private String customType; @com.aliyun.core.annotation.NameInMap("CycleDays") private Integer cycleDays; @com.aliyun.core.annotation.NameInMap("CycleStartTime") private Integer cycleStartTime; @com.aliyun.core.annotation.NameInMap("EcsCount") private Integer ecsCount; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("ExecStatus") private Integer execStatus; @com.aliyun.core.annotation.NameInMap("ExecutionType") private String executionType; @com.aliyun.core.annotation.NameInMap("Id") private Integer id; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("PassRate") private Integer passRate; @com.aliyun.core.annotation.NameInMap("Percent") private String percent; @com.aliyun.core.annotation.NameInMap("ProcessRate") private Integer processRate; @com.aliyun.core.annotation.NameInMap("RiskCount") private Integer riskCount; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.NameInMap("Type") private Integer type; @com.aliyun.core.annotation.NameInMap("UserModifyTime") private Long userModifyTime; private Strategies(Builder builder) { this.configTargets = builder.configTargets; this.customType = builder.customType; this.cycleDays = builder.cycleDays; this.cycleStartTime = builder.cycleStartTime; this.ecsCount = builder.ecsCount; this.endTime = builder.endTime; this.execStatus = builder.execStatus; this.executionType = builder.executionType; this.id = builder.id; this.name = builder.name; this.passRate = builder.passRate; this.percent = builder.percent; this.processRate = builder.processRate; this.riskCount = builder.riskCount; this.startTime = builder.startTime; this.type = builder.type; this.userModifyTime = builder.userModifyTime; } public static Builder builder() { return new Builder(); } public static Strategies create() { return builder().build(); } /** * @return configTargets */ public java.util.List<ConfigTargets> getConfigTargets() { return this.configTargets; } /** * @return customType */ public String getCustomType() { return this.customType; } /** * @return cycleDays */ public Integer getCycleDays() { return this.cycleDays; } /** * @return cycleStartTime */ public Integer getCycleStartTime() { return this.cycleStartTime; } /** * @return ecsCount */ public Integer getEcsCount() { return this.ecsCount; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return execStatus */ public Integer getExecStatus() { return this.execStatus; } /** * @return executionType */ public String getExecutionType() { return this.executionType; } /** * @return id */ public Integer getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return passRate */ public Integer getPassRate() { return this.passRate; } /** * @return percent */ public String getPercent() { return this.percent; } /** * @return processRate */ public Integer getProcessRate() { return this.processRate; } /** * @return riskCount */ public Integer getRiskCount() { return this.riskCount; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return type */ public Integer getType() { return this.type; } /** * @return userModifyTime */ public Long getUserModifyTime() { return this.userModifyTime; } public static final class Builder { private java.util.List<ConfigTargets> configTargets; private String customType; private Integer cycleDays; private Integer cycleStartTime; private Integer ecsCount; private String endTime; private Integer execStatus; private String executionType; private Integer id; private String name; private Integer passRate; private String percent; private Integer processRate; private Integer riskCount; private String startTime; private Integer type; private Long userModifyTime; private Builder() { } private Builder(Strategies model) { this.configTargets = model.configTargets; this.customType = model.customType; this.cycleDays = model.cycleDays; this.cycleStartTime = model.cycleStartTime; this.ecsCount = model.ecsCount; this.endTime = model.endTime; this.execStatus = model.execStatus; this.executionType = model.executionType; this.id = model.id; this.name = model.name; this.passRate = model.passRate; this.percent = model.percent; this.processRate = model.processRate; this.riskCount = model.riskCount; this.startTime = model.startTime; this.type = model.type; this.userModifyTime = model.userModifyTime; } /** * <p>The details of the assets to which the baseline check policy is applied.</p> */ public Builder configTargets(java.util.List<ConfigTargets> configTargets) { this.configTargets = configTargets; return this; } /** * <p>The type of the baseline check policy. Valid values:</p> * <ul> * <li><strong>common</strong></li> * <li><strong>custom</strong></li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder customType(String customType) { this.customType = customType; return this; } /** * <p>The cycle of the baseline check. Valid values:</p> * <ul> * <li><strong>1</strong>: every 2 days</li> * <li><strong>3</strong>: every 4 days</li> * <li><strong>7</strong>: every 8 days</li> * <li>30: every 31 days</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder cycleDays(Integer cycleDays) { this.cycleDays = cycleDays; return this; } /** * <p>The time when the baseline check starts. Valid values:</p> * <ul> * <li><strong>0</strong>: The baseline check starts within the time range from 00:00 to 06:00.</li> * <li><strong>6</strong>: The baseline check starts within the time range from 06:00 to 12:00.</li> * <li><strong>12</strong>: The baseline check starts within the time range from 12:00 to 18:00.</li> * <li><strong>18</strong>: The baseline check starts within the time range from 18:00 to 24:00.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder cycleStartTime(Integer cycleStartTime) { this.cycleStartTime = cycleStartTime; return this; } /** * <p>The number of the assets to which the baseline check policy is applied.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder ecsCount(Integer ecsCount) { this.ecsCount = ecsCount; return this; } /** * <p>The end time of the baseline check policy.</p> * * <strong>example:</strong> * <p>03:00:00</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>The status of the baseline check policy. Valid values:</p> * <ul> * <li><strong>1</strong>: not executed</li> * <li><strong>2</strong>: executing</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder execStatus(Integer execStatus) { this.execStatus = execStatus; return this; } /** * ExecutionType. */ public Builder executionType(String executionType) { this.executionType = executionType; return this; } /** * <p>The ID of the baseline check policy.</p> * * <strong>example:</strong> * <p>8164248</p> */ public Builder id(Integer id) { this.id = id; return this; } /** * <p>The name of the baseline check policy.</p> * * <strong>example:</strong> * <p>text2</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The proportion of risky baselines in the baseline check result.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder passRate(Integer passRate) { this.passRate = passRate; return this; } /** * <p>The progress of the baseline check by using the baseline. This parameter is returned only if the value of the ExecStatus parameter is 2.</p> * * <strong>example:</strong> * <p>50%</p> */ public Builder percent(String percent) { this.percent = percent; return this; } /** * <p>The number of the assets on which the baseline check is complete.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder processRate(Integer processRate) { this.processRate = processRate; return this; } /** * <p>The number of baseline check items in the baseline check policy.</p> * * <strong>example:</strong> * <p>23</p> */ public Builder riskCount(Integer riskCount) { this.riskCount = riskCount; return this; } /** * <p>The start time of the baseline check policy.</p> * * <strong>example:</strong> * <p>00:00:00</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } /** * <p>The source type of the baseline check policy. Valid values:</p> * <ul> * <li><strong>1</strong>: indicates a built-in policy provided and performed by Security Center by default.</li> * <li><strong>2</strong>: indicates a user-defined policy. It can be a standard or custom baseline check policy.</li> * </ul> * * <strong>example:</strong> * <p>2</p> */ public Builder type(Integer type) { this.type = type; return this; } /** * <p>The time when the baseline check policy was last modified.</p> * * <strong>example:</strong> * <p>2025-01-07 10:46:43</p> */ public Builder userModifyTime(Long userModifyTime) { this.userModifyTime = userModifyTime; return this; } public Strategies build() { return new Strategies(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/DescribeStrategyTargetRequest.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 DescribeStrategyTargetRequest} extends {@link RequestModel} * * <p>DescribeStrategyTargetRequest</p> */ public class DescribeStrategyTargetRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Config") @com.aliyun.core.annotation.Validation(required = true) private String config; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIp") private String sourceIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; private DescribeStrategyTargetRequest(Builder builder) { super(builder); this.config = builder.config; this.sourceIp = builder.sourceIp; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeStrategyTargetRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return config */ public String getConfig() { return this.config; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeStrategyTargetRequest, Builder> { private String config; private String sourceIp; private String type; private Builder() { super(); } private Builder(DescribeStrategyTargetRequest request) { super(request); this.config = request.config; this.sourceIp = request.sourceIp; this.type = request.type; } /** * <p>The ID of the baseline check policy.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>{&quot;strategyId&quot;:8167126}</p> */ public Builder config(String config) { this.putQueryParameter("Config", config); this.config = config; return this; } /** * <p>The source IP address of the request.</p> * * <strong>example:</strong> * <p>1.2.X.X</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } /** * <p>The type of the policy. Set the value to hc_strategy, which indicates baseline check policies.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>hc_strategy</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeStrategyTargetRequest build() { return new DescribeStrategyTargetRequest(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/DescribeStrategyTargetResponse.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 DescribeStrategyTargetResponse} extends {@link TeaModel} * * <p>DescribeStrategyTargetResponse</p> */ public class DescribeStrategyTargetResponse 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 DescribeStrategyTargetResponseBody body; private DescribeStrategyTargetResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeStrategyTargetResponse 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 DescribeStrategyTargetResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeStrategyTargetResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeStrategyTargetResponseBody body); @Override DescribeStrategyTargetResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeStrategyTargetResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeStrategyTargetResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeStrategyTargetResponse 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(DescribeStrategyTargetResponseBody body) { this.body = body; return this; } @Override public DescribeStrategyTargetResponse build() { return new DescribeStrategyTargetResponse(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/DescribeStrategyTargetResponseBody.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 DescribeStrategyTargetResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyTargetResponseBody</p> */ public class DescribeStrategyTargetResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("StrategyTargets") private java.util.List<StrategyTargets> strategyTargets; private DescribeStrategyTargetResponseBody(Builder builder) { this.requestId = builder.requestId; this.strategyTargets = builder.strategyTargets; } public static Builder builder() { return new Builder(); } public static DescribeStrategyTargetResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return strategyTargets */ public java.util.List<StrategyTargets> getStrategyTargets() { return this.strategyTargets; } public static final class Builder { private String requestId; private java.util.List<StrategyTargets> strategyTargets; private Builder() { } private Builder(DescribeStrategyTargetResponseBody model) { this.requestId = model.requestId; this.strategyTargets = model.strategyTargets; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>001BAB34-D70A-54B0-B1D7-91B76DCDD8E8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the assets to which the baseline check policy is applied.</p> */ public Builder strategyTargets(java.util.List<StrategyTargets> strategyTargets) { this.strategyTargets = strategyTargets; return this; } public DescribeStrategyTargetResponseBody build() { return new DescribeStrategyTargetResponseBody(this); } } /** * * {@link DescribeStrategyTargetResponseBody} extends {@link TeaModel} * * <p>DescribeStrategyTargetResponseBody</p> */ public static class StrategyTargets extends TeaModel { @com.aliyun.core.annotation.NameInMap("BindUuidCount") private Integer bindUuidCount; @com.aliyun.core.annotation.NameInMap("Flag") private String flag; @com.aliyun.core.annotation.NameInMap("Target") private String target; @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; private StrategyTargets(Builder builder) { this.bindUuidCount = builder.bindUuidCount; this.flag = builder.flag; this.target = builder.target; this.targetType = builder.targetType; } public static Builder builder() { return new Builder(); } public static StrategyTargets create() { return builder().build(); } /** * @return bindUuidCount */ public Integer getBindUuidCount() { return this.bindUuidCount; } /** * @return flag */ public String getFlag() { return this.flag; } /** * @return target */ public String getTarget() { return this.target; } /** * @return targetType */ public String getTargetType() { return this.targetType; } public static final class Builder { private Integer bindUuidCount; private String flag; private String target; private String targetType; private Builder() { } private Builder(StrategyTargets model) { this.bindUuidCount = model.bindUuidCount; this.flag = model.flag; this.target = model.target; this.targetType = model.targetType; } /** * <p>The number of the assets that belong to the asset group.</p> * * <strong>example:</strong> * <p>85</p> */ public Builder bindUuidCount(Integer bindUuidCount) { this.bindUuidCount = bindUuidCount; return this; } /** * <p>Indicates whether the baseline check policy is applied to the asset group. Valid values:</p> * <ul> * <li><strong>add</strong>: The baseline check policy is applied to the asset group.</li> * <li><strong>del</strong>: the baseline check policy is not applied to the asset group.</li> * </ul> * * <strong>example:</strong> * <p>add</p> */ public Builder flag(String flag) { this.flag = flag; return this; } /** * <p>The ID of the asset group to which the assets belong or the UUID of the asset.</p> * * <strong>example:</strong> * <p>9165712</p> */ public Builder target(String target) { this.target = target; return this; } /** * <p>The method that is used to add the assets to the baseline check policy. Valid values:</p> * <ul> * <li><strong>groupId</strong>: the ID of the asset group</li> * <li><strong>uuid</strong>: the UUID of the asset</li> * </ul> * * <strong>example:</strong> * <p>groupId</p> */ public Builder targetType(String targetType) { this.targetType = targetType; return this; } public StrategyTargets build() { return new StrategyTargets(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/DescribeStrictEventNameRequest.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 DescribeStrictEventNameRequest} extends {@link RequestModel} * * <p>DescribeStrictEventNameRequest</p> */ public class DescribeStrictEventNameRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; private DescribeStrictEventNameRequest(Builder builder) { super(builder); this.lang = builder.lang; } public static Builder builder() { return new Builder(); } public static DescribeStrictEventNameRequest 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<DescribeStrictEventNameRequest, Builder> { private String lang; private Builder() { super(); } private Builder(DescribeStrictEventNameRequest request) { super(request); this.lang = request.lang; } /** * <p>Sets the language type for requests and received messages, default is <strong>zh</strong>. Values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } @Override public DescribeStrictEventNameRequest build() { return new DescribeStrictEventNameRequest(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/DescribeStrictEventNameResponse.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 DescribeStrictEventNameResponse} extends {@link TeaModel} * * <p>DescribeStrictEventNameResponse</p> */ public class DescribeStrictEventNameResponse 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 DescribeStrictEventNameResponseBody body; private DescribeStrictEventNameResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeStrictEventNameResponse 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 DescribeStrictEventNameResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeStrictEventNameResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeStrictEventNameResponseBody body); @Override DescribeStrictEventNameResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeStrictEventNameResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeStrictEventNameResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeStrictEventNameResponse 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(DescribeStrictEventNameResponseBody body) { this.body = body; return this; } @Override public DescribeStrictEventNameResponse build() { return new DescribeStrictEventNameResponse(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/DescribeStrictEventNameResponseBody.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 DescribeStrictEventNameResponseBody} extends {@link TeaModel} * * <p>DescribeStrictEventNameResponseBody</p> */ public class DescribeStrictEventNameResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeStrictEventNameResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeStrictEventNameResponseBody 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(DescribeStrictEventNameResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>Returned data.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The ID of this call request, a unique identifier generated by Alibaba Cloud for this request, which can be used to troubleshoot and locate issues.</p> * * <strong>example:</strong> * <p>D65AADFC-1D20-5A6A-8F6A-9FA53C0D****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeStrictEventNameResponseBody build() { return new DescribeStrictEventNameResponseBody(this); } } /** * * {@link DescribeStrictEventNameResponseBody} extends {@link TeaModel} * * <p>DescribeStrictEventNameResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("EventName") private String eventName; @com.aliyun.core.annotation.NameInMap("EventType") private String eventType; @com.aliyun.core.annotation.NameInMap("ShowEventName") private String showEventName; @com.aliyun.core.annotation.NameInMap("ShowEventType") private String showEventType; @com.aliyun.core.annotation.NameInMap("SwitchConfig") private Boolean switchConfig; private Data(Builder builder) { this.eventName = builder.eventName; this.eventType = builder.eventType; this.showEventName = builder.showEventName; this.showEventType = builder.showEventType; this.switchConfig = builder.switchConfig; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return eventName */ public String getEventName() { return this.eventName; } /** * @return eventType */ public String getEventType() { return this.eventType; } /** * @return showEventName */ public String getShowEventName() { return this.showEventName; } /** * @return showEventType */ public String getShowEventType() { return this.showEventType; } /** * @return switchConfig */ public Boolean getSwitchConfig() { return this.switchConfig; } public static final class Builder { private String eventName; private String eventType; private String showEventName; private String showEventType; private Boolean switchConfig; private Builder() { } private Builder(Data model) { this.eventName = model.eventName; this.eventType = model.eventType; this.showEventName = model.showEventName; this.showEventType = model.showEventType; this.switchConfig = model.switchConfig; } /** * <p>Alarm name.</p> * * <strong>example:</strong> * <p>System log abnormal deletion</p> */ public Builder eventName(String eventName) { this.eventName = eventName; return this; } /** * <p>Alarm type.</p> * * <strong>example:</strong> * <p>Suspicious Process</p> */ public Builder eventType(String eventType) { this.eventType = eventType; return this; } /** * <p>Displayed alarm name.</p> * * <strong>example:</strong> * <p>Suspicious Process</p> */ public Builder showEventName(String showEventName) { this.showEventName = showEventName; return this; } /** * <p>Displayed alarm type.</p> * * <strong>example:</strong> * <p>System log abnormal deletion</p> */ public Builder showEventType(String showEventType) { this.showEventType = showEventType; return this; } /** * <p>Indicates whether the user has enabled the strict mode for this alarm type.</p> * <ul> * <li>true: Enabled</li> * <li>false: Not enabled</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder switchConfig(Boolean switchConfig) { this.switchConfig = switchConfig; 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/DescribeSummaryInfoRequest.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 DescribeSummaryInfoRequest} extends {@link RequestModel} * * <p>DescribeSummaryInfoRequest</p> */ public class DescribeSummaryInfoRequest 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; private DescribeSummaryInfoRequest(Builder builder) { super(builder); this.lang = builder.lang; this.sourceIp = builder.sourceIp; } public static Builder builder() { return new Builder(); } public static DescribeSummaryInfoRequest 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; } public static final class Builder extends Request.Builder<DescribeSummaryInfoRequest, Builder> { private String lang; private String sourceIp; private Builder() { super(); } private Builder(DescribeSummaryInfoRequest request) { super(request); this.lang = request.lang; this.sourceIp = request.sourceIp; } /** * <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 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 DescribeSummaryInfoRequest build() { return new DescribeSummaryInfoRequest(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/DescribeSummaryInfoResponse.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 DescribeSummaryInfoResponse} extends {@link TeaModel} * * <p>DescribeSummaryInfoResponse</p> */ public class DescribeSummaryInfoResponse 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 DescribeSummaryInfoResponseBody body; private DescribeSummaryInfoResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSummaryInfoResponse 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 DescribeSummaryInfoResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSummaryInfoResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSummaryInfoResponseBody body); @Override DescribeSummaryInfoResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSummaryInfoResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSummaryInfoResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSummaryInfoResponse 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(DescribeSummaryInfoResponseBody body) { this.body = body; return this; } @Override public DescribeSummaryInfoResponse build() { return new DescribeSummaryInfoResponse(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/DescribeSummaryInfoResponseBody.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 DescribeSummaryInfoResponseBody} extends {@link TeaModel} * * <p>DescribeSummaryInfoResponseBody</p> */ public class DescribeSummaryInfoResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AegisClientOfflineCount") private Integer aegisClientOfflineCount; @com.aliyun.core.annotation.NameInMap("AegisClientOnlineCount") private Integer aegisClientOnlineCount; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SecurityScore") private Integer securityScore; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeSummaryInfoResponseBody(Builder builder) { this.aegisClientOfflineCount = builder.aegisClientOfflineCount; this.aegisClientOnlineCount = builder.aegisClientOnlineCount; this.requestId = builder.requestId; this.securityScore = builder.securityScore; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeSummaryInfoResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return aegisClientOfflineCount */ public Integer getAegisClientOfflineCount() { return this.aegisClientOfflineCount; } /** * @return aegisClientOnlineCount */ public Integer getAegisClientOnlineCount() { return this.aegisClientOnlineCount; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return securityScore */ public Integer getSecurityScore() { return this.securityScore; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private Integer aegisClientOfflineCount; private Integer aegisClientOnlineCount; private String requestId; private Integer securityScore; private Boolean success; private Builder() { } private Builder(DescribeSummaryInfoResponseBody model) { this.aegisClientOfflineCount = model.aegisClientOfflineCount; this.aegisClientOnlineCount = model.aegisClientOnlineCount; this.requestId = model.requestId; this.securityScore = model.securityScore; this.success = model.success; } /** * <p>The number of unprotected assets.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder aegisClientOfflineCount(Integer aegisClientOfflineCount) { this.aegisClientOfflineCount = aegisClientOfflineCount; return this; } /** * <p>The number of protected assets.</p> * * <strong>example:</strong> * <p>127</p> */ public Builder aegisClientOnlineCount(Integer aegisClientOnlineCount) { this.aegisClientOnlineCount = aegisClientOnlineCount; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>D40198E1-6EA8-482E-B3C7-D9573D75C0CA</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The security score of the assets. Valid values:</p> * <ul> * <li>95 to 100: The assets are secure.</li> * <li>85 to 94: The assets are exposed to a few security risks. We recommend that you reinforce your security system in a timely manner.</li> * <li>70 to 84: The assets are exposed to multiple security risks. We recommend that you reinforce your security system in a timely manner.</li> * <li>69 or lower: The current security system is unable to protect the assets against intrusions. We recommend that you reinforce your security system at the earliest opportunity.</li> * </ul> * * <strong>example:</strong> * <p>44</p> */ public Builder securityScore(Integer securityScore) { this.securityScore = securityScore; return this; } /** * <p>Indicates whether the request is successful. 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 success(Boolean success) { this.success = success; return this; } public DescribeSummaryInfoResponseBody build() { return new DescribeSummaryInfoResponseBody(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/DescribeSupervisonInfoRequest.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 DescribeSupervisonInfoRequest} extends {@link RequestModel} * * <p>DescribeSupervisonInfoRequest</p> */ public class DescribeSupervisonInfoRequest extends Request { private DescribeSupervisonInfoRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static DescribeSupervisonInfoRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<DescribeSupervisonInfoRequest, Builder> { private Builder() { super(); } private Builder(DescribeSupervisonInfoRequest request) { super(request); } @Override public DescribeSupervisonInfoRequest build() { return new DescribeSupervisonInfoRequest(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/DescribeSupervisonInfoResponse.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 DescribeSupervisonInfoResponse} extends {@link TeaModel} * * <p>DescribeSupervisonInfoResponse</p> */ public class DescribeSupervisonInfoResponse 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 DescribeSupervisonInfoResponseBody body; private DescribeSupervisonInfoResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSupervisonInfoResponse 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 DescribeSupervisonInfoResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSupervisonInfoResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSupervisonInfoResponseBody body); @Override DescribeSupervisonInfoResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSupervisonInfoResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSupervisonInfoResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSupervisonInfoResponse 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(DescribeSupervisonInfoResponseBody body) { this.body = body; return this; } @Override public DescribeSupervisonInfoResponse build() { return new DescribeSupervisonInfoResponse(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/DescribeSupervisonInfoResponseBody.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 DescribeSupervisonInfoResponseBody} extends {@link TeaModel} * * <p>DescribeSupervisonInfoResponseBody</p> */ public class DescribeSupervisonInfoResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("LatestScanTime") private Long latestScanTime; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeSupervisonInfoResponseBody(Builder builder) { this.latestScanTime = builder.latestScanTime; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeSupervisonInfoResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return latestScanTime */ public Long getLatestScanTime() { return this.latestScanTime; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Long latestScanTime; private String requestId; private Builder() { } private Builder(DescribeSupervisonInfoResponseBody model) { this.latestScanTime = model.latestScanTime; this.requestId = model.requestId; } /** * <p>The time of the last system vulnerability scan. The value is a UNIX timestamp. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1721134553000</p> */ public Builder latestScanTime(Long latestScanTime) { this.latestScanTime = latestScanTime; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>E10BAF1C-A6C5-51E2-866C-76D5922E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeSupervisonInfoResponseBody build() { return new DescribeSupervisonInfoResponseBody(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/DescribeSupportRegionRequest.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 DescribeSupportRegionRequest} extends {@link RequestModel} * * <p>DescribeSupportRegionRequest</p> */ public class DescribeSupportRegionRequest extends Request { private DescribeSupportRegionRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static DescribeSupportRegionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<DescribeSupportRegionRequest, Builder> { private Builder() { super(); } private Builder(DescribeSupportRegionRequest request) { super(request); } @Override public DescribeSupportRegionRequest build() { return new DescribeSupportRegionRequest(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/DescribeSupportRegionResponse.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 DescribeSupportRegionResponse} extends {@link TeaModel} * * <p>DescribeSupportRegionResponse</p> */ public class DescribeSupportRegionResponse 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 DescribeSupportRegionResponseBody body; private DescribeSupportRegionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSupportRegionResponse 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 DescribeSupportRegionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSupportRegionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSupportRegionResponseBody body); @Override DescribeSupportRegionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSupportRegionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSupportRegionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSupportRegionResponse 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(DescribeSupportRegionResponseBody body) { this.body = body; return this; } @Override public DescribeSupportRegionResponse build() { return new DescribeSupportRegionResponse(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/DescribeSupportRegionResponseBody.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 DescribeSupportRegionResponseBody} extends {@link TeaModel} * * <p>DescribeSupportRegionResponseBody</p> */ public class DescribeSupportRegionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SupportRegion") private java.util.List<String> supportRegion; private DescribeSupportRegionResponseBody(Builder builder) { this.requestId = builder.requestId; this.supportRegion = builder.supportRegion; } public static Builder builder() { return new Builder(); } public static DescribeSupportRegionResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return supportRegion */ public java.util.List<String> getSupportRegion() { return this.supportRegion; } public static final class Builder { private String requestId; private java.util.List<String> supportRegion; private Builder() { } private Builder(DescribeSupportRegionResponseBody model) { this.requestId = model.requestId; this.supportRegion = model.supportRegion; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>2C0699D3-4107-5A46-A4C4-E129A5967788</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * SupportRegion. */ public Builder supportRegion(java.util.List<String> supportRegion) { this.supportRegion = supportRegion; return this; } public DescribeSupportRegionResponseBody build() { return new DescribeSupportRegionResponseBody(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/DescribeSuspEventDetailRequest.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 DescribeSuspEventDetailRequest} extends {@link RequestModel} * * <p>DescribeSuspEventDetailRequest</p> */ public class DescribeSuspEventDetailRequest extends Request { @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("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("SuspiciousEventId") @com.aliyun.core.annotation.Validation(required = true) private Integer suspiciousEventId; private DescribeSuspEventDetailRequest(Builder builder) { super(builder); this.from = builder.from; this.lang = builder.lang; this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId; this.sourceIp = builder.sourceIp; this.suspiciousEventId = builder.suspiciousEventId; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventDetailRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return from */ public String getFrom() { return this.from; } /** * @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 suspiciousEventId */ public Integer getSuspiciousEventId() { return this.suspiciousEventId; } public static final class Builder extends Request.Builder<DescribeSuspEventDetailRequest, Builder> { private String from; private String lang; private Long resourceDirectoryAccountId; private String sourceIp; private Integer suspiciousEventId; private Builder() { super(); } private Builder(DescribeSuspEventDetailRequest request) { super(request); this.from = request.from; this.lang = request.lang; this.resourceDirectoryAccountId = request.resourceDirectoryAccountId; this.sourceIp = request.sourceIp; this.suspiciousEventId = request.suspiciousEventId; } /** * <p>The data source of the exception. Set the value to sas.</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 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>16670360956*****</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>121.33.XX.XX</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } /** * <p>The ID of the exception.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>32750999</p> */ public Builder suspiciousEventId(Integer suspiciousEventId) { this.putQueryParameter("SuspiciousEventId", suspiciousEventId); this.suspiciousEventId = suspiciousEventId; return this; } @Override public DescribeSuspEventDetailRequest build() { return new DescribeSuspEventDetailRequest(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/DescribeSuspEventDetailResponse.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 DescribeSuspEventDetailResponse} extends {@link TeaModel} * * <p>DescribeSuspEventDetailResponse</p> */ public class DescribeSuspEventDetailResponse 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 DescribeSuspEventDetailResponseBody body; private DescribeSuspEventDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSuspEventDetailResponse 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 DescribeSuspEventDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSuspEventDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSuspEventDetailResponseBody body); @Override DescribeSuspEventDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSuspEventDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSuspEventDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSuspEventDetailResponse 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(DescribeSuspEventDetailResponseBody body) { this.body = body; return this; } @Override public DescribeSuspEventDetailResponse build() { return new DescribeSuspEventDetailResponse(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/DescribeSuspEventDetailResponseBody.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 DescribeSuspEventDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventDetailResponseBody</p> */ public class DescribeSuspEventDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CanBeDealOnLine") private Boolean canBeDealOnLine; @com.aliyun.core.annotation.NameInMap("DataSource") private String dataSource; @com.aliyun.core.annotation.NameInMap("Details") private java.util.List<Details> details; @com.aliyun.core.annotation.NameInMap("EventDesc") private String eventDesc; @com.aliyun.core.annotation.NameInMap("EventName") private String eventName; @com.aliyun.core.annotation.NameInMap("EventStatus") private String eventStatus; @com.aliyun.core.annotation.NameInMap("EventTypeDesc") private String eventTypeDesc; @com.aliyun.core.annotation.NameInMap("Id") private Integer 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("LastTime") private String lastTime; @com.aliyun.core.annotation.NameInMap("Level") private String level; @com.aliyun.core.annotation.NameInMap("OperateErrorCode") private String operateErrorCode; @com.aliyun.core.annotation.NameInMap("OperateMsg") private String operateMsg; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SaleVersion") private String saleVersion; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; private DescribeSuspEventDetailResponseBody(Builder builder) { this.canBeDealOnLine = builder.canBeDealOnLine; this.dataSource = builder.dataSource; this.details = builder.details; this.eventDesc = builder.eventDesc; this.eventName = builder.eventName; this.eventStatus = builder.eventStatus; this.eventTypeDesc = builder.eventTypeDesc; this.id = builder.id; this.instanceName = builder.instanceName; this.internetIp = builder.internetIp; this.intranetIp = builder.intranetIp; this.lastTime = builder.lastTime; this.level = builder.level; this.operateErrorCode = builder.operateErrorCode; this.operateMsg = builder.operateMsg; this.requestId = builder.requestId; this.saleVersion = builder.saleVersion; this.uuid = builder.uuid; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return canBeDealOnLine */ public Boolean getCanBeDealOnLine() { return this.canBeDealOnLine; } /** * @return dataSource */ public String getDataSource() { return this.dataSource; } /** * @return details */ public java.util.List<Details> getDetails() { return this.details; } /** * @return eventDesc */ public String getEventDesc() { return this.eventDesc; } /** * @return eventName */ public String getEventName() { return this.eventName; } /** * @return eventStatus */ public String getEventStatus() { return this.eventStatus; } /** * @return eventTypeDesc */ public String getEventTypeDesc() { return this.eventTypeDesc; } /** * @return id */ public Integer 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 lastTime */ public String getLastTime() { return this.lastTime; } /** * @return level */ public String getLevel() { return this.level; } /** * @return operateErrorCode */ public String getOperateErrorCode() { return this.operateErrorCode; } /** * @return operateMsg */ public String getOperateMsg() { return this.operateMsg; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return saleVersion */ public String getSaleVersion() { return this.saleVersion; } /** * @return uuid */ public String getUuid() { return this.uuid; } public static final class Builder { private Boolean canBeDealOnLine; private String dataSource; private java.util.List<Details> details; private String eventDesc; private String eventName; private String eventStatus; private String eventTypeDesc; private Integer id; private String instanceName; private String internetIp; private String intranetIp; private String lastTime; private String level; private String operateErrorCode; private String operateMsg; private String requestId; private String saleVersion; private String uuid; private Builder() { } private Builder(DescribeSuspEventDetailResponseBody model) { this.canBeDealOnLine = model.canBeDealOnLine; this.dataSource = model.dataSource; this.details = model.details; this.eventDesc = model.eventDesc; this.eventName = model.eventName; this.eventStatus = model.eventStatus; this.eventTypeDesc = model.eventTypeDesc; this.id = model.id; this.instanceName = model.instanceName; this.internetIp = model.internetIp; this.intranetIp = model.intranetIp; this.lastTime = model.lastTime; this.level = model.level; this.operateErrorCode = model.operateErrorCode; this.operateMsg = model.operateMsg; this.requestId = model.requestId; this.saleVersion = model.saleVersion; this.uuid = model.uuid; } /** * <p>Indicates whether the online processing of exceptions is supported, such as blocking an exception, adding an exception to the whitelist, and ignoring an exception. Valid values:</p> * <ul> * <li><strong>true</strong>: The online processing of exceptions is supported.</li> * <li><strong>false</strong>: The online processing of exceptions is not supported.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder canBeDealOnLine(Boolean canBeDealOnLine) { this.canBeDealOnLine = canBeDealOnLine; return this; } /** * <p>The data source of the exception.</p> * * <strong>example:</strong> * <p>aegis_suspicious_****</p> */ public Builder dataSource(String dataSource) { this.dataSource = dataSource; return this; } /** * <p>An array that consists of the details of the exception.</p> */ public Builder details(java.util.List<Details> details) { this.details = details; return this; } /** * <p>The description of the exception.</p> * * <strong>example:</strong> * <p>The detection model found a suspicious Webshell file on your server, which may be a backdoor file implanted to maintain permissions after the attacker successfully invaded the website.</p> */ public Builder eventDesc(String eventDesc) { this.eventDesc = eventDesc; return this; } /** * <p>The name of the exception.</p> * * <strong>example:</strong> * <p>WEBSHELL</p> */ public Builder eventName(String eventName) { this.eventName = eventName; return this; } /** * <p>The status of the exception. Valid values:</p> * <ul> * <li><strong>1</strong>: pending handling</li> * <li><strong>2</strong>: ignored</li> * <li><strong>4</strong>: confirmed</li> * <li><strong>8</strong>: marked as a false positive</li> * <li><strong>16</strong>: handling</li> * <li><strong>32</strong>: handled</li> * <li><strong>64</strong>: expired</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder eventStatus(String eventStatus) { this.eventStatus = eventStatus; return this; } /** * <p>The type of the exception.</p> * * <strong>example:</strong> * <p>Malicious Software-Variable Trojan</p> */ public Builder eventTypeDesc(String eventTypeDesc) { this.eventTypeDesc = eventTypeDesc; return this; } /** * <p>The ID of the exception.</p> * * <strong>example:</strong> * <p>11416624</p> */ public Builder id(Integer id) { this.id = id; return this; } /** * <p>The name of the server on which the exception was detected.</p> * * <strong>example:</strong> * <p>ca_cpm_****</p> */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * <p>The public IP address of the server on which the exception was detected.</p> * * <strong>example:</strong> * <p>101.132.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The private IP address of the server on which the exception was detected.</p> * * <strong>example:</strong> * <p>172.26.XX.XX</p> */ public Builder intranetIp(String intranetIp) { this.intranetIp = intranetIp; return this; } /** * <p>The time when the exception was last detected.</p> * * <strong>example:</strong> * <p>2018-10-30 11:43:46</p> */ public Builder lastTime(String lastTime) { this.lastTime = lastTime; return this; } /** * <p>The risk level of the exception. 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 code that indicates the handling result of the exception.</p> * * <strong>example:</strong> * <p>quara.Succes</p> */ public Builder operateErrorCode(String operateErrorCode) { this.operateErrorCode = operateErrorCode; return this; } /** * <p>The message that indicates the handling result of the exception.</p> * * <strong>example:</strong> * <p>success</p> */ public Builder operateMsg(String operateMsg) { this.operateMsg = operateMsg; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>0B48AB3C-84FC-424D-A01D-B9270EF46038</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The edition of Security Center in which the exception can be detected. Valid values:</p> * <ul> * <li><strong>0</strong>: Basic edition</li> * <li><strong>1</strong>: Advanced edition</li> * <li><strong>2</strong>: Enterprise edition</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder saleVersion(String saleVersion) { this.saleVersion = saleVersion; return this; } /** * <p>The UUID of the server on which the exception was detected.</p> * * <strong>example:</strong> * <p>bffb12c3-590a-4db2-b538-****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } public DescribeSuspEventDetailResponseBody build() { return new DescribeSuspEventDetailResponseBody(this); } } /** * * {@link DescribeSuspEventDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventDetailResponseBody</p> */ public static class Details extends TeaModel { @com.aliyun.core.annotation.NameInMap("NameDisplay") private String nameDisplay; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Details(Builder builder) { this.nameDisplay = builder.nameDisplay; this.type = builder.type; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Details create() { return builder().build(); } /** * @return nameDisplay */ public String getNameDisplay() { return this.nameDisplay; } /** * @return type */ public String getType() { return this.type; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String nameDisplay; private String type; private String value; private Builder() { } private Builder(Details model) { this.nameDisplay = model.nameDisplay; this.type = model.type; this.value = model.value; } /** * <p>The display name of the alert event.</p> * * <strong>example:</strong> * <p>Trojan Path</p> */ public Builder nameDisplay(String nameDisplay) { this.nameDisplay = nameDisplay; return this; } /** * <p>The format in which the details of the exception are displayed.</p> * <p>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 attribute information about the exception. For example, if the exception is associated with an alert that is triggered by an unusual logon, the information can include the time when the logon is initiated and the location from which the logon is initiated. If the exception is associated with an alert that is triggered by a webshell file, the information can include the path of the trojan file and the type of the trojan.</p> * * <strong>example:</strong> * <p>getopt</p> */ public Builder value(String value) { this.value = value; return this; } public Details build() { return new Details(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/DescribeSuspEventExportInfoRequest.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 DescribeSuspEventExportInfoRequest} extends {@link RequestModel} * * <p>DescribeSuspEventExportInfoRequest</p> */ public class DescribeSuspEventExportInfoRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExportId") private Integer exportId; private DescribeSuspEventExportInfoRequest(Builder builder) { super(builder); this.exportId = builder.exportId; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventExportInfoRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return exportId */ public Integer getExportId() { return this.exportId; } public static final class Builder extends Request.Builder<DescribeSuspEventExportInfoRequest, Builder> { private Integer exportId; private Builder() { super(); } private Builder(DescribeSuspEventExportInfoRequest request) { super(request); this.exportId = request.exportId; } /** * <p>The ID of the export task.</p> * <blockquote> * <p>You can call the <a href="~~ExportSuspEvents~~">ExportSuspEvents</a> operation to query the ID.</p> * </blockquote> * * <strong>example:</strong> * <p>123</p> */ public Builder exportId(Integer exportId) { this.putQueryParameter("ExportId", exportId); this.exportId = exportId; return this; } @Override public DescribeSuspEventExportInfoRequest build() { return new DescribeSuspEventExportInfoRequest(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/DescribeSuspEventExportInfoResponse.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 DescribeSuspEventExportInfoResponse} extends {@link TeaModel} * * <p>DescribeSuspEventExportInfoResponse</p> */ public class DescribeSuspEventExportInfoResponse 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 DescribeSuspEventExportInfoResponseBody body; private DescribeSuspEventExportInfoResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSuspEventExportInfoResponse 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 DescribeSuspEventExportInfoResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSuspEventExportInfoResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSuspEventExportInfoResponseBody body); @Override DescribeSuspEventExportInfoResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSuspEventExportInfoResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSuspEventExportInfoResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSuspEventExportInfoResponse 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(DescribeSuspEventExportInfoResponseBody body) { this.body = body; return this; } @Override public DescribeSuspEventExportInfoResponse build() { return new DescribeSuspEventExportInfoResponse(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/DescribeSuspEventExportInfoResponseBody.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 DescribeSuspEventExportInfoResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventExportInfoResponseBody</p> */ public class DescribeSuspEventExportInfoResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ExportStatus") private String exportStatus; @com.aliyun.core.annotation.NameInMap("FileName") private String fileName; @com.aliyun.core.annotation.NameInMap("GmtCreate") private Long gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtModified") private Long gmtModified; @com.aliyun.core.annotation.NameInMap("Id") private Integer id; @com.aliyun.core.annotation.NameInMap("Link") private String link; @com.aliyun.core.annotation.NameInMap("Progress") private Integer progress; @com.aliyun.core.annotation.NameInMap("Properties") private String properties; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; @com.aliyun.core.annotation.NameInMap("Type") private String type; private DescribeSuspEventExportInfoResponseBody(Builder builder) { this.exportStatus = builder.exportStatus; this.fileName = builder.fileName; this.gmtCreate = builder.gmtCreate; this.gmtModified = builder.gmtModified; this.id = builder.id; this.link = builder.link; this.progress = builder.progress; this.properties = builder.properties; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventExportInfoResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return exportStatus */ public String getExportStatus() { return this.exportStatus; } /** * @return fileName */ public String getFileName() { return this.fileName; } /** * @return gmtCreate */ public Long getGmtCreate() { return this.gmtCreate; } /** * @return gmtModified */ public Long getGmtModified() { return this.gmtModified; } /** * @return id */ public Integer getId() { return this.id; } /** * @return link */ public String getLink() { return this.link; } /** * @return progress */ public Integer getProgress() { return this.progress; } /** * @return properties */ public String getProperties() { return this.properties; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String exportStatus; private String fileName; private Long gmtCreate; private Long gmtModified; private Integer id; private String link; private Integer progress; private String properties; private String requestId; private Integer totalCount; private String type; private Builder() { } private Builder(DescribeSuspEventExportInfoResponseBody model) { this.exportStatus = model.exportStatus; this.fileName = model.fileName; this.gmtCreate = model.gmtCreate; this.gmtModified = model.gmtModified; this.id = model.id; this.link = model.link; this.progress = model.progress; this.properties = model.properties; this.requestId = model.requestId; this.totalCount = model.totalCount; this.type = model.type; } /** * <p>The handling status for the exception. Valid values:</p> * <ul> * <li><strong>exporting</strong>: in progress</li> * <li><strong>success</strong>: successful</li> * <li><strong>failed</strong>: failed</li> * <li><strong>pending</strong>: pending</li> * </ul> * * <strong>example:</strong> * <p>success</p> */ public Builder exportStatus(String exportStatus) { this.exportStatus = exportStatus; return this; } /** * <p>The name of the exported file.</p> * * <strong>example:</strong> * <p>suspicious_event_20221221_1671590521234.zip</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>2022-12-20T15:18Z</p> */ public Builder gmtCreate(Long gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The time when the export task was modified.</p> * * <strong>example:</strong> * <p>2022-12-20T15:18Z</p> */ public Builder gmtModified(Long gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>The ID of the export task.</p> * * <strong>example:</strong> * <p>11</p> */ public Builder id(Integer id) { this.id = id; return this; } /** * <p>The URL at which you can download the exported Excel file.</p> * * <strong>example:</strong> * <p><a href="http://suspicious-xxxxxxx.oss-cn-shanghai.aliyuncs.com/xxxxxxxxxxx/suspicious_event_20221221_1671590525269.zip?Expires=1671594125&OSSAccessKeyId=yourAccessKeyID&Signature=xxxxxxxxxxxxxxxxxx">http://suspicious-xxxxxxx.oss-cn-shanghai.aliyuncs.com/xxxxxxxxxxx/suspicious_event_20221221_1671590525269.zip?Expires=1671594125&amp;OSSAccessKeyId=yourAccessKeyID&amp;Signature=xxxxxxxxxxxxxxxxxx</a></p> */ public Builder link(String link) { this.link = link; 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 exported parameters of exceptions.</p> * * <strong>example:</strong> * <p>id,eventSubType,eventDetail,level,status,ip,instanceName,desc,lastTime,operateTime,note</p> */ public Builder properties(String properties) { this.properties = properties; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>BE120DAB-F4E7-4C53-ADC3-A97578AXXXXX</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of exceptions exported.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * <p>The type of the export task. The value is fixed as suspiciousEvent.</p> * * <strong>example:</strong> * <p>suspiciousEvent</p> */ public Builder type(String type) { this.type = type; return this; } public DescribeSuspEventExportInfoResponseBody build() { return new DescribeSuspEventExportInfoResponseBody(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/DescribeSuspEventQuaraFilesRequest.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 DescribeSuspEventQuaraFilesRequest} extends {@link RequestModel} * * <p>DescribeSuspEventQuaraFilesRequest</p> */ public class DescribeSuspEventQuaraFilesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private String currentPage; @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") @Deprecated private String groupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupingId") private Long groupingId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private String pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QuaraTag") private String quaraTag; @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 DescribeSuspEventQuaraFilesRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.from = builder.from; this.groupId = builder.groupId; this.groupingId = builder.groupingId; this.pageSize = builder.pageSize; this.quaraTag = builder.quaraTag; this.sourceIp = builder.sourceIp; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventQuaraFilesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public String getCurrentPage() { return this.currentPage; } /** * @return from */ public String getFrom() { return this.from; } /** * @return groupId */ public String getGroupId() { return this.groupId; } /** * @return groupingId */ public Long getGroupingId() { return this.groupingId; } /** * @return pageSize */ public String getPageSize() { return this.pageSize; } /** * @return quaraTag */ public String getQuaraTag() { return this.quaraTag; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder extends Request.Builder<DescribeSuspEventQuaraFilesRequest, Builder> { private String currentPage; private String from; private String groupId; private Long groupingId; private String pageSize; private String quaraTag; private String sourceIp; private String status; private Builder() { super(); } private Builder(DescribeSuspEventQuaraFilesRequest request) { super(request); this.currentPage = request.currentPage; this.from = request.from; this.groupId = request.groupId; this.groupingId = request.groupingId; this.pageSize = request.pageSize; this.quaraTag = request.quaraTag; this.sourceIp = request.sourceIp; this.status = request.status; } /** * <p>The number of the page to return.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(String currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The ID of the request source. Set the value to <strong>sas</strong>.</p> * * <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.</p> * * <strong>example:</strong> * <p>10541428</p> */ public Builder groupId(String groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** * <p>The ID of the server group to which the server belongs. The quarantined file is located on the server.</p> * * <strong>example:</strong> * <p>11472451</p> */ public Builder groupingId(Long groupingId) { this.putQueryParameter("GroupingId", groupingId); this.groupingId = groupingId; return this; } /** * <p>The number of entries to return on each page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(String pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The unique ID of the quarantined file.</p> * * <strong>example:</strong> * <p>a31337789f64d39b2219733ec99f9af7</p> */ public Builder quaraTag(String quaraTag) { this.putQueryParameter("QuaraTag", quaraTag); this.quaraTag = quaraTag; return this; } /** * <p>The source IP address of the request.</p> * * <strong>example:</strong> * <p>59.82.XX.XX</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } /** * <p>The status of the quarantined file that you want to query. Valid values:</p> * <ul> * <li><strong>quaraFailed</strong>: The file fails to be quarantined.</li> * <li><strong>quaraDone</strong>: The file is quarantined.</li> * <li><strong>quaraing</strong>: The file is being quarantined.</li> * <li><strong>rollbackFailed</strong>: The system fails to cancel quarantining the file.</li> * <li><strong>rollbackDone</strong>: The system cancelled quarantining the file.</li> * <li><strong>rollbacking</strong>: The system is cancelling quarantining the file.</li> * </ul> * * <strong>example:</strong> * <p>quaraDone</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public DescribeSuspEventQuaraFilesRequest build() { return new DescribeSuspEventQuaraFilesRequest(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/DescribeSuspEventQuaraFilesResponse.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 DescribeSuspEventQuaraFilesResponse} extends {@link TeaModel} * * <p>DescribeSuspEventQuaraFilesResponse</p> */ public class DescribeSuspEventQuaraFilesResponse 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 DescribeSuspEventQuaraFilesResponseBody body; private DescribeSuspEventQuaraFilesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSuspEventQuaraFilesResponse 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 DescribeSuspEventQuaraFilesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSuspEventQuaraFilesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSuspEventQuaraFilesResponseBody body); @Override DescribeSuspEventQuaraFilesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSuspEventQuaraFilesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSuspEventQuaraFilesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSuspEventQuaraFilesResponse 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(DescribeSuspEventQuaraFilesResponseBody body) { this.body = body; return this; } @Override public DescribeSuspEventQuaraFilesResponse build() { return new DescribeSuspEventQuaraFilesResponse(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/DescribeSuspEventQuaraFilesResponseBody.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 DescribeSuspEventQuaraFilesResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventQuaraFilesResponseBody</p> */ public class DescribeSuspEventQuaraFilesResponseBody 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("QuaraFiles") private java.util.List<QuaraFiles> quaraFiles; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSuspEventQuaraFilesResponseBody(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.quaraFiles = builder.quaraFiles; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventQuaraFilesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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 quaraFiles */ public java.util.List<QuaraFiles> getQuaraFiles() { return this.quaraFiles; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private java.util.List<QuaraFiles> quaraFiles; private String requestId; private Integer totalCount; private Builder() { } private Builder(DescribeSuspEventQuaraFilesResponseBody model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.quaraFiles = model.quaraFiles; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>7</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>An array that consists of the quarantined files.</p> */ public Builder quaraFiles(java.util.List<QuaraFiles> quaraFiles) { this.quaraFiles = quaraFiles; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>32A73759-4C0F-4801-BE98-901223ACEE9A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>38</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeSuspEventQuaraFilesResponseBody build() { return new DescribeSuspEventQuaraFilesResponseBody(this); } } /** * * {@link DescribeSuspEventQuaraFilesResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventQuaraFilesResponseBody</p> */ public static class QuaraFiles extends TeaModel { @com.aliyun.core.annotation.NameInMap("EventName") private String eventName; @com.aliyun.core.annotation.NameInMap("EventType") private String eventType; @com.aliyun.core.annotation.NameInMap("Id") private Integer id; @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("Link") private String link; @com.aliyun.core.annotation.NameInMap("Md5") private String md5; @com.aliyun.core.annotation.NameInMap("ModifyTime") private String modifyTime; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; private QuaraFiles(Builder builder) { this.eventName = builder.eventName; this.eventType = builder.eventType; this.id = builder.id; this.instanceId = builder.instanceId; this.instanceName = builder.instanceName; this.internetIp = builder.internetIp; this.intranetIp = builder.intranetIp; this.ip = builder.ip; this.link = builder.link; this.md5 = builder.md5; this.modifyTime = builder.modifyTime; this.path = builder.path; this.status = builder.status; this.tag = builder.tag; this.uuid = builder.uuid; } public static Builder builder() { return new Builder(); } public static QuaraFiles create() { return builder().build(); } /** * @return eventName */ public String getEventName() { return this.eventName; } /** * @return eventType */ public String getEventType() { return this.eventType; } /** * @return id */ public Integer getId() { return this.id; } /** * @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 link */ public String getLink() { return this.link; } /** * @return md5 */ public String getMd5() { return this.md5; } /** * @return modifyTime */ public String getModifyTime() { return this.modifyTime; } /** * @return path */ public String getPath() { return this.path; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return uuid */ public String getUuid() { return this.uuid; } public static final class Builder { private String eventName; private String eventType; private Integer id; private String instanceId; private String instanceName; private String internetIp; private String intranetIp; private String ip; private String link; private String md5; private String modifyTime; private String path; private String status; private String tag; private String uuid; private Builder() { } private Builder(QuaraFiles model) { this.eventName = model.eventName; this.eventType = model.eventType; this.id = model.id; this.instanceId = model.instanceId; this.instanceName = model.instanceName; this.internetIp = model.internetIp; this.intranetIp = model.intranetIp; this.ip = model.ip; this.link = model.link; this.md5 = model.md5; this.modifyTime = model.modifyTime; this.path = model.path; this.status = model.status; this.tag = model.tag; this.uuid = model.uuid; } /** * <p>The name of the event.</p> * * <strong>example:</strong> * <p>WEBSHELL</p> */ public Builder eventName(String eventName) { this.eventName = eventName; return this; } /** * <p>The type of the event.</p> * * <strong>example:</strong> * <p>WebshellQuaraEventType</p> */ public Builder eventType(String eventType) { this.eventType = eventType; return this; } /** * <p>The ID of the quarantined file.</p> * * <strong>example:</strong> * <p>26918</p> */ public Builder id(Integer id) { this.id = id; return this; } /** * <p>The instance ID of the asset.</p> * * <strong>example:</strong> * <p>i-2ze9t1qp36n1436m****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The name of the server on which the quarantined file is located.</p> * * <strong>example:</strong> * <p>iZwz98dkiw3vbrtqrt5v****</p> */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * <p>The public IP address of the server on which the quarantined file is located.</p> * * <strong>example:</strong> * <p>47.XX.XX.131</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The private IP address of the server on which the quarantined file is located.</p> * * <strong>example:</strong> * <p>172.16.XX.XX</p> */ public Builder intranetIp(String intranetIp) { this.intranetIp = intranetIp; return this; } /** * <p>The public IP address of the server on which the quarantined file is located.</p> * * <strong>example:</strong> * <p>47.XX.XX.131</p> */ public Builder ip(String ip) { this.ip = ip; return this; } /** * <p>The download link of the quarantined file.</p> * * <strong>example:</strong> * <p><a href="https://xxx.xxx/xxx">https://xxx.xxx/xxx</a></p> */ public Builder link(String link) { this.link = link; return this; } /** * <p>The MD5 hash value of the quarantined file.</p> * * <strong>example:</strong> * <p>5ddebe926acc7ed39a664409bfd0ec10</p> */ public Builder md5(String md5) { this.md5 = md5; return this; } /** * <p>The time when the quarantined file was last modified.</p> * * <strong>example:</strong> * <p>2020-06-11 20:37:08</p> */ public Builder modifyTime(String modifyTime) { this.modifyTime = modifyTime; return this; } /** * <p>The path to the quarantined file on the server.</p> * * <strong>example:</strong> * <p>/var/www/html/webshell-sample-master/others/defc3e21bab59e2a2ab49f7eda99f65f83d4d349.jpg</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The status of the quarantined file. Valid values:</p> * <ul> * <li><strong>quaraFailed</strong>: The file fails to be quarantined.</li> * <li><strong>quaraDone</strong>: The file is quarantined.</li> * <li><strong>quaraing</strong>: The file is being quarantined.</li> * <li><strong>rollbackFailed</strong>: The system fails to cancel quarantining the file.</li> * <li><strong>rollbackDone</strong>: The system cancelled quarantining the file.</li> * <li><strong>rollbacking</strong>: The system is cancelling quarantining the file.</li> * </ul> * * <strong>example:</strong> * <p>rollbackDone</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The unique ID of the event.</p> * * <strong>example:</strong> * <p>228f890e56eae9eec6a42c7ea801b538</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The UUID of the server.</p> * * <strong>example:</strong> * <p>04a0e735-ad32-4835-b635-0458d77b****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } public QuaraFiles build() { return new QuaraFiles(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/DescribeSuspEventUserSettingRequest.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 DescribeSuspEventUserSettingRequest} extends {@link RequestModel} * * <p>DescribeSuspEventUserSettingRequest</p> */ public class DescribeSuspEventUserSettingRequest 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("Id") private Integer id; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIp") private String sourceIp; private DescribeSuspEventUserSettingRequest(Builder builder) { super(builder); this.from = builder.from; this.id = builder.id; this.sourceIp = builder.sourceIp; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventUserSettingRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return from */ public String getFrom() { return this.from; } /** * @return id */ public Integer getId() { return this.id; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } public static final class Builder extends Request.Builder<DescribeSuspEventUserSettingRequest, Builder> { private String from; private Integer id; private String sourceIp; private Builder() { super(); } private Builder(DescribeSuspEventUserSettingRequest request) { super(request); this.from = request.from; this.id = request.id; this.sourceIp = request.sourceIp; } /** * <p>The ID of the request source. Set the value to <strong>sas</strong>.</p> * * <strong>example:</strong> * <p>sas</p> */ public Builder from(String from) { this.putQueryParameter("From", from); this.from = from; return this; } /** * <p>The ID. You do not need to specify this parameter.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder id(Integer id) { this.putQueryParameter("Id", id); this.id = id; return this; } /** * <p>The IP address of the request. You do not need to specify this parameter.</p> * * <strong>example:</strong> * <p>127.0.XX.XX</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } @Override public DescribeSuspEventUserSettingRequest build() { return new DescribeSuspEventUserSettingRequest(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/DescribeSuspEventUserSettingResponse.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 DescribeSuspEventUserSettingResponse} extends {@link TeaModel} * * <p>DescribeSuspEventUserSettingResponse</p> */ public class DescribeSuspEventUserSettingResponse 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 DescribeSuspEventUserSettingResponseBody body; private DescribeSuspEventUserSettingResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSuspEventUserSettingResponse 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 DescribeSuspEventUserSettingResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSuspEventUserSettingResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSuspEventUserSettingResponseBody body); @Override DescribeSuspEventUserSettingResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSuspEventUserSettingResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSuspEventUserSettingResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSuspEventUserSettingResponse 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(DescribeSuspEventUserSettingResponseBody body) { this.body = body; return this; } @Override public DescribeSuspEventUserSettingResponse build() { return new DescribeSuspEventUserSettingResponse(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/DescribeSuspEventUserSettingResponseBody.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 DescribeSuspEventUserSettingResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventUserSettingResponseBody</p> */ public class DescribeSuspEventUserSettingResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("LevelsOn") private java.util.List<String> levelsOn; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeSuspEventUserSettingResponseBody(Builder builder) { this.levelsOn = builder.levelsOn; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventUserSettingResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return levelsOn */ public java.util.List<String> getLevelsOn() { return this.levelsOn; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<String> levelsOn; private String requestId; private Builder() { } private Builder(DescribeSuspEventUserSettingResponseBody model) { this.levelsOn = model.levelsOn; this.requestId = model.requestId; } /** * <p>An array that consists of the risk levels of alert notifications. Valid values:</p> * <ul> * <li><strong>remind</strong></li> * <li><strong>suspicious</strong></li> * <li><strong>serious</strong></li> * </ul> */ public Builder levelsOn(java.util.List<String> levelsOn) { this.levelsOn = levelsOn; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>028CF634-5268-5660-9575-48C9ED6XXXXX</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeSuspEventUserSettingResponseBody build() { return new DescribeSuspEventUserSettingResponseBody(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/DescribeSuspEventsRequest.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 DescribeSuspEventsRequest} extends {@link RequestModel} * * <p>DescribeSuspEventsRequest</p> */ public class DescribeSuspEventsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AlarmUniqueInfo") private String alarmUniqueInfo; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssetsTypeList") private java.util.List<String> assetsTypeList; @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("CurrentPage") private String currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Dealed") private String dealed; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventNames") private String eventNames; @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("Id") private Long id; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Levels") private String levels; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MultiAccountActionType") private Integer multiAccountActionType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperateErrorCodeList") private java.util.List<String> operateErrorCodeList; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperateTimeEnd") private String operateTimeEnd; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperateTimeStart") private String operateTimeStart; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private String pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ParentEventTypes") private String parentEventTypes; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Remark") private String remark; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceDirectoryAccountId") private Long resourceDirectoryAccountId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SortColumn") private String sortColumn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SortType") private String sortType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Source") private String source; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceAliUids") private java.util.List<Long> sourceAliUids; @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StrictMode") private String strictMode; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("TacticId") private String tacticId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TimeEnd") private String timeEnd; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TimeStart") private String timeStart; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UniqueInfo") private String uniqueInfo; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuids") private String uuids; private DescribeSuspEventsRequest(Builder builder) { super(builder); this.alarmUniqueInfo = builder.alarmUniqueInfo; this.assetsTypeList = builder.assetsTypeList; this.clusterId = builder.clusterId; this.containerFieldName = builder.containerFieldName; this.containerFieldValue = builder.containerFieldValue; this.currentPage = builder.currentPage; this.dealed = builder.dealed; this.eventNames = builder.eventNames; this.from = builder.from; this.groupId = builder.groupId; this.id = builder.id; this.lang = builder.lang; this.levels = builder.levels; this.multiAccountActionType = builder.multiAccountActionType; this.name = builder.name; this.operateErrorCodeList = builder.operateErrorCodeList; this.operateTimeEnd = builder.operateTimeEnd; this.operateTimeStart = builder.operateTimeStart; this.pageSize = builder.pageSize; this.parentEventTypes = builder.parentEventTypes; this.remark = builder.remark; this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId; this.sortColumn = builder.sortColumn; this.sortType = builder.sortType; this.source = builder.source; this.sourceAliUids = builder.sourceAliUids; this.sourceIp = builder.sourceIp; this.status = builder.status; this.strictMode = builder.strictMode; this.tacticId = builder.tacticId; this.targetType = builder.targetType; this.timeEnd = builder.timeEnd; this.timeStart = builder.timeStart; this.uniqueInfo = builder.uniqueInfo; this.uuids = builder.uuids; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return alarmUniqueInfo */ public String getAlarmUniqueInfo() { return this.alarmUniqueInfo; } /** * @return assetsTypeList */ public java.util.List<String> getAssetsTypeList() { return this.assetsTypeList; } /** * @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 currentPage */ public String getCurrentPage() { return this.currentPage; } /** * @return dealed */ public String getDealed() { return this.dealed; } /** * @return eventNames */ public String getEventNames() { return this.eventNames; } /** * @return from */ public String getFrom() { return this.from; } /** * @return groupId */ public Long getGroupId() { return this.groupId; } /** * @return id */ public Long getId() { return this.id; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return levels */ public String getLevels() { return this.levels; } /** * @return multiAccountActionType */ public Integer getMultiAccountActionType() { return this.multiAccountActionType; } /** * @return name */ public String getName() { return this.name; } /** * @return operateErrorCodeList */ public java.util.List<String> getOperateErrorCodeList() { return this.operateErrorCodeList; } /** * @return operateTimeEnd */ public String getOperateTimeEnd() { return this.operateTimeEnd; } /** * @return operateTimeStart */ public String getOperateTimeStart() { return this.operateTimeStart; } /** * @return pageSize */ public String getPageSize() { return this.pageSize; } /** * @return parentEventTypes */ public String getParentEventTypes() { return this.parentEventTypes; } /** * @return remark */ public String getRemark() { return this.remark; } /** * @return resourceDirectoryAccountId */ public Long getResourceDirectoryAccountId() { return this.resourceDirectoryAccountId; } /** * @return sortColumn */ public String getSortColumn() { return this.sortColumn; } /** * @return sortType */ public String getSortType() { return this.sortType; } /** * @return source */ public String getSource() { return this.source; } /** * @return sourceAliUids */ public java.util.List<Long> getSourceAliUids() { return this.sourceAliUids; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } /** * @return status */ public String getStatus() { return this.status; } /** * @return strictMode */ public String getStrictMode() { return this.strictMode; } /** * @return tacticId */ public String getTacticId() { return this.tacticId; } /** * @return targetType */ public String getTargetType() { return this.targetType; } /** * @return timeEnd */ public String getTimeEnd() { return this.timeEnd; } /** * @return timeStart */ public String getTimeStart() { return this.timeStart; } /** * @return uniqueInfo */ public String getUniqueInfo() { return this.uniqueInfo; } /** * @return uuids */ public String getUuids() { return this.uuids; } public static final class Builder extends Request.Builder<DescribeSuspEventsRequest, Builder> { private String alarmUniqueInfo; private java.util.List<String> assetsTypeList; private String clusterId; private String containerFieldName; private String containerFieldValue; private String currentPage; private String dealed; private String eventNames; private String from; private Long groupId; private Long id; private String lang; private String levels; private Integer multiAccountActionType; private String name; private java.util.List<String> operateErrorCodeList; private String operateTimeEnd; private String operateTimeStart; private String pageSize; private String parentEventTypes; private String remark; private Long resourceDirectoryAccountId; private String sortColumn; private String sortType; private String source; private java.util.List<Long> sourceAliUids; private String sourceIp; private String status; private String strictMode; private String tacticId; private String targetType; private String timeEnd; private String timeStart; private String uniqueInfo; private String uuids; private Builder() { super(); } private Builder(DescribeSuspEventsRequest request) { super(request); this.alarmUniqueInfo = request.alarmUniqueInfo; this.assetsTypeList = request.assetsTypeList; this.clusterId = request.clusterId; this.containerFieldName = request.containerFieldName; this.containerFieldValue = request.containerFieldValue; this.currentPage = request.currentPage; this.dealed = request.dealed; this.eventNames = request.eventNames; this.from = request.from; this.groupId = request.groupId; this.id = request.id; this.lang = request.lang; this.levels = request.levels; this.multiAccountActionType = request.multiAccountActionType; this.name = request.name; this.operateErrorCodeList = request.operateErrorCodeList; this.operateTimeEnd = request.operateTimeEnd; this.operateTimeStart = request.operateTimeStart; this.pageSize = request.pageSize; this.parentEventTypes = request.parentEventTypes; this.remark = request.remark; this.resourceDirectoryAccountId = request.resourceDirectoryAccountId; this.sortColumn = request.sortColumn; this.sortType = request.sortType; this.source = request.source; this.sourceAliUids = request.sourceAliUids; this.sourceIp = request.sourceIp; this.status = request.status; this.strictMode = request.strictMode; this.tacticId = request.tacticId; this.targetType = request.targetType; this.timeEnd = request.timeEnd; this.timeStart = request.timeStart; this.uniqueInfo = request.uniqueInfo; this.uuids = request.uuids; } /** * <p>The ID of the alert event.</p> * <blockquote> * <p>To query the details of an alert event, you must specify the ID of the alert event. You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to query the IDs of alert events.</p> * </blockquote> * * <strong>example:</strong> * <p>8df914418f4211fb****</p> */ public Builder alarmUniqueInfo(String alarmUniqueInfo) { this.putQueryParameter("AlarmUniqueInfo", alarmUniqueInfo); this.alarmUniqueInfo = alarmUniqueInfo; return this; } /** * <p>The types of the assets.</p> */ public Builder assetsTypeList(java.util.List<String> assetsTypeList) { this.putQueryParameter("AssetsTypeList", assetsTypeList); this.assetsTypeList = assetsTypeList; return this; } /** * <p>The ID of the cluster of whose alert events you want to query.</p> * * <strong>example:</strong> * <p>c4af4fdf38a98496a9b63c2be5dae****</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 alert events on containers. Valid values:</p> * <ul> * <li><strong>instanceId</strong>: the ID of the asset</li> * <li><strong>appName</strong>: the name of the application</li> * <li><strong>clusterId</strong>: the ID of the cluster</li> * <li><strong>regionId</strong>: the ID of the region</li> * <li><strong>nodeName</strong>: the name of the node</li> * <li><strong>namespace</strong>: the namespace</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</li> * <li><strong>imageDigest</strong>: the digest of the image</li> * </ul> * * <strong>example:</strong> * <p>instanceId</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 alert events on containers.</p> * * <strong>example:</strong> * <p>ccf9769c22b844ff9b8d57417683b****</p> */ public Builder containerFieldValue(String containerFieldValue) { this.putQueryParameter("ContainerFieldValue", containerFieldValue); this.containerFieldValue = containerFieldValue; return this; } /** * <p>The number of the page to return. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(String currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>Specifies whether the alert event is handled. Valid values:</p> * <ul> * <li><strong>N</strong>: unhandled</li> * <li><strong>Y</strong>: handled</li> * </ul> * * <strong>example:</strong> * <p>N</p> */ public Builder dealed(String dealed) { this.putQueryParameter("Dealed", dealed); this.dealed = dealed; return this; } /** * <p>The subtype of the alert event. Separate multiple subtypes with commas (,).</p> * * <strong>example:</strong> * <p>WEBSHELL</p> */ public Builder eventNames(String eventNames) { this.putQueryParameter("EventNames", eventNames); this.eventNames = eventNames; return this; } /** * <p>The data source of the alert event. Set the value to sas.</p> * * <strong>example:</strong> * <p>sas</p> */ public Builder from(String from) { this.putQueryParameter("From", from); this.from = from; return this; } /** * <p>The ID of the asset group to which the affected asset belongs.</p> * * <strong>example:</strong> * <p>18768</p> */ public Builder groupId(Long groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** * <p>The ID of the alert event.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder id(Long id) { this.putQueryParameter("Id", id); this.id = id; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The severity of the alert event. Separate multiple severities 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</p> */ public Builder levels(String levels) { this.putQueryParameter("Levels", levels); this.levels = levels; return this; } /** * <p>The type of the accounts that you want to query. Default value: <strong>0</strong>. Valid values:</p> * <ul> * <li><strong>0</strong>: the current account.</li> * <li><strong>1</strong>: all accounts.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder multiAccountActionType(Integer multiAccountActionType) { this.putQueryParameter("MultiAccountActionType", multiAccountActionType); this.multiAccountActionType = multiAccountActionType; return this; } /** * <p>The name of the asset that is affected by the alert event.</p> * * <strong>example:</strong> * <p>ecs-xxx</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>An array that consists of the handling result codes of alert events.</p> */ public Builder operateErrorCodeList(java.util.List<String> operateErrorCodeList) { this.putQueryParameter("OperateErrorCodeList", operateErrorCodeList); this.operateErrorCodeList = operateErrorCodeList; return this; } /** * <p>The timestamp when the handling operation ends.</p> * * <strong>example:</strong> * <p>2022-07-06 13:50:38</p> */ public Builder operateTimeEnd(String operateTimeEnd) { this.putQueryParameter("OperateTimeEnd", operateTimeEnd); this.operateTimeEnd = operateTimeEnd; return this; } /** * <p>The timestamp when the handling operation starts.</p> * * <strong>example:</strong> * <p>2022-07-05 13:50:38</p> */ public Builder operateTimeStart(String operateTimeStart) { this.putQueryParameter("OperateTimeStart", operateTimeStart); this.operateTimeStart = operateTimeStart; return this; } /** * <p>The number of entries per page. Default value: <strong>20</strong>. Maximum value: 100.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(String pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The alert type of the alert event. Valid values:</p> * <ul> * <li><strong>Suspicious process</strong></li> * <li><strong>Webshell</strong></li> * <li><strong>Unusual logon</strong></li> * <li><strong>Exception</strong></li> * <li><strong>Sensitive file tampering</strong></li> * <li><strong>Malicious process (cloud threat detection)</strong></li> * <li><strong>Suspicious network connection</strong></li> * <li><strong>Suspicious account</strong></li> * <li><strong>Application intrusion event</strong></li> * <li><strong>Cloud threat detection</strong></li> * <li><strong>Precise defense</strong></li> * <li><strong>Application whitelist</strong></li> * <li><strong>Persistent webshell</strong></li> * <li><strong>Web application threat detection</strong></li> * <li><strong>Malicious script</strong></li> * <li><strong>Threat intelligence</strong></li> * <li><strong>Malicious network activity</strong></li> * <li><strong>Cluster exception</strong></li> * <li><strong>Webshell (on-premises threat detection)</strong></li> * <li><strong>Vulnerability exploitation</strong></li> * <li><strong>Malicious process (on-premises threat detection)</strong></li> * <li><strong>Trusted exception</strong></li> * <li><strong>Others</strong></li> * </ul> * * <strong>example:</strong> * <p>Webshell</p> */ public Builder parentEventTypes(String parentEventTypes) { this.putQueryParameter("ParentEventTypes", parentEventTypes); this.parentEventTypes = parentEventTypes; return this; } /** * <p>The name of the alert or the information about the asset.</p> * <blockquote> * <p> Fuzzy search is supported. The asset information includes the name, public IP address, and private IP address of an asset.</p> * </blockquote> * * <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 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>16670360956*****</p> */ public Builder resourceDirectoryAccountId(Long resourceDirectoryAccountId) { this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId); this.resourceDirectoryAccountId = resourceDirectoryAccountId; return this; } /** * <p>The custom sorting field. Default value: <strong>operateTime</strong>. Valid values:</p> * <ul> * <li><strong>lastTime</strong>: the latest occurrence time.</li> * <li><strong>operateTime</strong>: the handling time.</li> * </ul> * <blockquote> * <p> This parameter takes effect if you set the <strong>Dealed</strong> parameter to Y.</p> * </blockquote> * * <strong>example:</strong> * <p>operateTime</p> */ public Builder sortColumn(String sortColumn) { this.putQueryParameter("SortColumn", sortColumn); this.sortColumn = sortColumn; return this; } /** * <p>The custom sorting order. Default value: <strong>desc</strong>. Valid values:</p> * <ul> * <li><strong>asc</strong>: the ascending order</li> * <li><strong>desc</strong>: the descending order</li> * </ul> * <blockquote> * <p> This parameter takes effect if you set the <strong>Dealed</strong> parameter to Y.</p> * </blockquote> * * <strong>example:</strong> * <p>desc</p> */ public Builder sortType(String sortType) { this.putQueryParameter("SortType", sortType); this.sortType = sortType; return this; } /** * <p>The source of the alert.</p> * * <strong>example:</strong> * <p>aegis_suspicious_file_v2</p> */ public Builder source(String source) { this.putQueryParameter("Source", source); this.source = source; return this; } /** * <p>The IDs of the Alibaba Cloud accounts within which alerts are generated.</p> */ public Builder sourceAliUids(java.util.List<Long> sourceAliUids) { String sourceAliUidsShrink = shrink(sourceAliUids, "SourceAliUids", "simple"); this.putQueryParameter("SourceAliUids", sourceAliUidsShrink); this.sourceAliUids = sourceAliUids; 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 status of the alert event. Valid values:</p> * <ul> * <li><strong>0</strong>: all</li> * <li><strong>1</strong>: pending handling</li> * <li><strong>2</strong>: ignored</li> * <li><strong>4</strong>: confirmed</li> * <li><strong>8</strong>: marked as a false positive</li> * <li><strong>16</strong>: handling</li> * <li><strong>32</strong>: handled</li> * <li><strong>64</strong>: expired</li> * <li><strong>128</strong>: deleted</li> * <li><strong>512</strong>: automatically blocking</li> * <li><strong>513</strong>: automatically blocked</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>Specifies whether to enable the strict alerting mode.</p> * <ul> * <li>N: no</li> * <li>Y: Yes</li> * </ul> * * <strong>example:</strong> * <p>Y</p> */ public Builder strictMode(String strictMode) { this.putQueryParameter("StrictMode", strictMode); this.strictMode = strictMode; return this; } /** * <p>The tactic ID of ATT&amp;CK.</p> * * <strong>example:</strong> * <p>TA0001</p> */ public Builder tacticId(String tacticId) { this.putBodyParameter("TacticId", tacticId); this.tacticId = tacticId; return this; } /** * <p>The item that is used to search for the container. Valid values:</p> * <ul> * <li><strong>containerId</strong>: the ID of the container</li> * <li><strong>uuid</strong>: the UUID of the server</li> * <li><strong>imageUuid</strong>: the UUID of the image</li> * </ul> * * <strong>example:</strong> * <p>containerId</p> */ public Builder targetType(String targetType) { this.putQueryParameter("TargetType", targetType); this.targetType = targetType; return this; } /** * <p>The end time when the alert event was last detected.</p> * * <strong>example:</strong> * <p>2022-07-06 13:50:38</p> */ public Builder timeEnd(String timeEnd) { this.putQueryParameter("TimeEnd", timeEnd); this.timeEnd = timeEnd; return this; } /** * <p>The start time when the alert event was last detected.</p> * * <strong>example:</strong> * <p>2022-07-05 13:50:38</p> */ public Builder timeStart(String timeStart) { this.putQueryParameter("TimeStart", timeStart); this.timeStart = timeStart; return this; } /** * <p>The unique key of the alert.</p> * * <strong>example:</strong> * <p>73fc06fb175a7405697e402f52864****</p> */ public Builder uniqueInfo(String uniqueInfo) { this.putQueryParameter("UniqueInfo", uniqueInfo); this.uniqueInfo = uniqueInfo; return this; } /** * <p>The UUID of the server on which the alert is detected. Separate multiple UUIDs with commas (,).</p> * * <strong>example:</strong> * <p>bb5d2484-f10e-450d-8917-3e79667e****,0e7c2fcd-7100-42c7-a21a-db6e4f32****</p> */ public Builder uuids(String uuids) { this.putQueryParameter("Uuids", uuids); this.uuids = uuids; return this; } @Override public DescribeSuspEventsRequest build() { return new DescribeSuspEventsRequest(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/DescribeSuspEventsResponse.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 DescribeSuspEventsResponse} extends {@link TeaModel} * * <p>DescribeSuspEventsResponse</p> */ public class DescribeSuspEventsResponse 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 DescribeSuspEventsResponseBody body; private DescribeSuspEventsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSuspEventsResponse 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 DescribeSuspEventsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSuspEventsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSuspEventsResponseBody body); @Override DescribeSuspEventsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSuspEventsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSuspEventsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSuspEventsResponse 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(DescribeSuspEventsResponseBody body) { this.body = body; return this; } @Override public DescribeSuspEventsResponse build() { return new DescribeSuspEventsResponse(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/DescribeSuspEventsResponseBody.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 DescribeSuspEventsResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventsResponseBody</p> */ public class DescribeSuspEventsResponseBody 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("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SuspEvents") private java.util.List<SuspEvents> suspEvents; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSuspEventsResponseBody(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.suspEvents = builder.suspEvents; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSuspEventsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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 requestId */ public String getRequestId() { return this.requestId; } /** * @return suspEvents */ public java.util.List<SuspEvents> getSuspEvents() { return this.suspEvents; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private String requestId; private java.util.List<SuspEvents> suspEvents; private Integer totalCount; private Builder() { } private Builder(DescribeSuspEventsResponseBody model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.requestId = model.requestId; this.suspEvents = model.suspEvents; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>0D6E20E4-8326-1D03-A553-2182BE9E82F9</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the alert events.</p> */ public Builder suspEvents(java.util.List<SuspEvents> suspEvents) { this.suspEvents = suspEvents; return this; } /** * <p>The total number of alert events.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeSuspEventsResponseBody build() { return new DescribeSuspEventsResponseBody(this); } } /** * * {@link DescribeSuspEventsResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventsResponseBody</p> */ public static class Details extends TeaModel { @com.aliyun.core.annotation.NameInMap("NameDisplay") private String nameDisplay; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("Value") private String value; @com.aliyun.core.annotation.NameInMap("ValueDisplay") private String valueDisplay; private Details(Builder builder) { this.nameDisplay = builder.nameDisplay; this.type = builder.type; this.value = builder.value; this.valueDisplay = builder.valueDisplay; } public static Builder builder() { return new Builder(); } public static Details create() { return builder().build(); } /** * @return nameDisplay */ public String getNameDisplay() { return this.nameDisplay; } /** * @return type */ public String getType() { return this.type; } /** * @return value */ public String getValue() { return this.value; } /** * @return valueDisplay */ public String getValueDisplay() { return this.valueDisplay; } public static final class Builder { private String nameDisplay; private String type; private String value; private String valueDisplay; private Builder() { } private Builder(Details model) { this.nameDisplay = model.nameDisplay; this.type = model.type; this.value = model.value; this.valueDisplay = model.valueDisplay; } /** * <p>The display name of the alert event.</p> * * <strong>example:</strong> * <p>Login with unusual location</p> */ public Builder nameDisplay(String nameDisplay) { this.nameDisplay = nameDisplay; return this; } /** * <p>The type of the alert event.</p> * * <strong>example:</strong> * <p>text</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The path of the alert event.</p> * * <strong>example:</strong> * <p>/etc/crontab</p> */ public Builder value(String value) { this.value = value; return this; } /** * <p>The display name of the path of the alert event.</p> * * <strong>example:</strong> * <p>/etc/crontab</p> */ public Builder valueDisplay(String valueDisplay) { this.valueDisplay = valueDisplay; return this; } public Details build() { return new Details(this); } } } /** * * {@link DescribeSuspEventsResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventsResponseBody</p> */ public static class EventNotes extends TeaModel { @com.aliyun.core.annotation.NameInMap("Note") private String note; @com.aliyun.core.annotation.NameInMap("NoteId") private Long noteId; @com.aliyun.core.annotation.NameInMap("NoteTime") private String noteTime; private EventNotes(Builder builder) { this.note = builder.note; this.noteId = builder.noteId; this.noteTime = builder.noteTime; } public static Builder builder() { return new Builder(); } public static EventNotes create() { return builder().build(); } /** * @return note */ public String getNote() { return this.note; } /** * @return noteId */ public Long getNoteId() { return this.noteId; } /** * @return noteTime */ public String getNoteTime() { return this.noteTime; } public static final class Builder { private String note; private Long noteId; private String noteTime; private Builder() { } private Builder(EventNotes model) { this.note = model.note; this.noteId = model.noteId; this.noteTime = model.noteTime; } /** * <p>The note.</p> * * <strong>example:</strong> * <p>Test</p> */ public Builder note(String note) { this.note = note; return this; } /** * <p>The ID of the note.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder noteId(Long noteId) { this.noteId = noteId; return this; } /** * <p>The time when the note was created.</p> * * <strong>example:</strong> * <p>2018-09-26 01:51:01</p> */ public Builder noteTime(String noteTime) { this.noteTime = noteTime; return this; } public EventNotes build() { return new EventNotes(this); } } } /** * * {@link DescribeSuspEventsResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventsResponseBody</p> */ public static class TacticItems extends TeaModel { @com.aliyun.core.annotation.NameInMap("TacticDisplayName") private String tacticDisplayName; @com.aliyun.core.annotation.NameInMap("TacticId") private String tacticId; private TacticItems(Builder builder) { this.tacticDisplayName = builder.tacticDisplayName; this.tacticId = builder.tacticId; } public static Builder builder() { return new Builder(); } public static TacticItems create() { return builder().build(); } /** * @return tacticDisplayName */ public String getTacticDisplayName() { return this.tacticDisplayName; } /** * @return tacticId */ public String getTacticId() { return this.tacticId; } public static final class Builder { private String tacticDisplayName; private String tacticId; private Builder() { } private Builder(TacticItems model) { this.tacticDisplayName = model.tacticDisplayName; this.tacticId = model.tacticId; } /** * <p>The tactic name of ATT&amp;CK.</p> * * <strong>example:</strong> * <p>Malicious scripts-Malicious script code execution</p> */ public Builder tacticDisplayName(String tacticDisplayName) { this.tacticDisplayName = tacticDisplayName; return this; } /** * <p>The stage information about ATT&amp;CK.</p> * * <strong>example:</strong> * <p>TA0001</p> */ public Builder tacticId(String tacticId) { this.tacticId = tacticId; return this; } public TacticItems build() { return new TacticItems(this); } } } /** * * {@link DescribeSuspEventsResponseBody} extends {@link TeaModel} * * <p>DescribeSuspEventsResponseBody</p> */ public static class SuspEvents extends TeaModel { @com.aliyun.core.annotation.NameInMap("Advanced") private Boolean advanced; @com.aliyun.core.annotation.NameInMap("AlarmEventName") private String alarmEventName; @com.aliyun.core.annotation.NameInMap("AlarmEventNameDisplay") private String alarmEventNameDisplay; @com.aliyun.core.annotation.NameInMap("AlarmEventType") private String alarmEventType; @com.aliyun.core.annotation.NameInMap("AlarmEventTypeDisplay") private String alarmEventTypeDisplay; @com.aliyun.core.annotation.NameInMap("AlarmUniqueInfo") private String alarmUniqueInfo; @com.aliyun.core.annotation.NameInMap("AppName") private String appName; @com.aliyun.core.annotation.NameInMap("AutoBreaking") private Boolean autoBreaking; @com.aliyun.core.annotation.NameInMap("CanBeDealOnLine") private Boolean canBeDealOnLine; @com.aliyun.core.annotation.NameInMap("CanCancelFault") private Boolean canCancelFault; @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("Desc") private String desc; @com.aliyun.core.annotation.NameInMap("Details") private java.util.List<Details> details; @com.aliyun.core.annotation.NameInMap("DisplaySandboxResult") private Boolean displaySandboxResult; @com.aliyun.core.annotation.NameInMap("EventNotes") private java.util.List<EventNotes> eventNotes; @com.aliyun.core.annotation.NameInMap("EventStatus") private Integer eventStatus; @com.aliyun.core.annotation.NameInMap("EventSubType") private String eventSubType; @com.aliyun.core.annotation.NameInMap("HasTraceInfo") private Boolean hasTraceInfo; @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("ImageUuid") private String imageUuid; @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("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("LargeModel") private Boolean largeModel; @com.aliyun.core.annotation.NameInMap("LastTime") private String lastTime; @com.aliyun.core.annotation.NameInMap("LastTimeStamp") private Long lastTimeStamp; @com.aliyun.core.annotation.NameInMap("Level") private String level; @com.aliyun.core.annotation.NameInMap("MaliciousRuleStatus") private String maliciousRuleStatus; @com.aliyun.core.annotation.NameInMap("MarkList") private java.util.List<String> markList; @com.aliyun.core.annotation.NameInMap("MarkMisRules") private String markMisRules; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("OccurrenceTime") private String occurrenceTime; @com.aliyun.core.annotation.NameInMap("OccurrenceTimeStamp") private Long occurrenceTimeStamp; @com.aliyun.core.annotation.NameInMap("OperateErrorCode") private String operateErrorCode; @com.aliyun.core.annotation.NameInMap("OperateMsg") private String operateMsg; @com.aliyun.core.annotation.NameInMap("OperateTime") private Long operateTime; @com.aliyun.core.annotation.NameInMap("SaleVersion") private String saleVersion; @com.aliyun.core.annotation.NameInMap("SecurityEventIds") private String securityEventIds; @com.aliyun.core.annotation.NameInMap("SourceAliUid") private Long sourceAliUid; @com.aliyun.core.annotation.NameInMap("Stages") private String stages; @com.aliyun.core.annotation.NameInMap("TacticItems") private java.util.List<TacticItems> tacticItems; @com.aliyun.core.annotation.NameInMap("UniqueInfo") private String uniqueInfo; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; @com.aliyun.core.annotation.NameInMap("clusterId") private String clusterId; private SuspEvents(Builder builder) { this.advanced = builder.advanced; this.alarmEventName = builder.alarmEventName; this.alarmEventNameDisplay = builder.alarmEventNameDisplay; this.alarmEventType = builder.alarmEventType; this.alarmEventTypeDisplay = builder.alarmEventTypeDisplay; this.alarmUniqueInfo = builder.alarmUniqueInfo; this.appName = builder.appName; this.autoBreaking = builder.autoBreaking; this.canBeDealOnLine = builder.canBeDealOnLine; this.canCancelFault = builder.canCancelFault; this.containHwMode = builder.containHwMode; this.containerId = builder.containerId; this.containerImageId = builder.containerImageId; this.containerImageName = builder.containerImageName; this.dataSource = builder.dataSource; this.desc = builder.desc; this.details = builder.details; this.displaySandboxResult = builder.displaySandboxResult; this.eventNotes = builder.eventNotes; this.eventStatus = builder.eventStatus; this.eventSubType = builder.eventSubType; this.hasTraceInfo = builder.hasTraceInfo; this.id = builder.id; this.imageUuid = builder.imageUuid; this.instanceId = builder.instanceId; 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.largeModel = builder.largeModel; this.lastTime = builder.lastTime; this.lastTimeStamp = builder.lastTimeStamp; this.level = builder.level; this.maliciousRuleStatus = builder.maliciousRuleStatus; this.markList = builder.markList; this.markMisRules = builder.markMisRules; this.name = builder.name; this.occurrenceTime = builder.occurrenceTime; this.occurrenceTimeStamp = builder.occurrenceTimeStamp; this.operateErrorCode = builder.operateErrorCode; this.operateMsg = builder.operateMsg; this.operateTime = builder.operateTime; this.saleVersion = builder.saleVersion; this.securityEventIds = builder.securityEventIds; this.sourceAliUid = builder.sourceAliUid; this.stages = builder.stages; this.tacticItems = builder.tacticItems; this.uniqueInfo = builder.uniqueInfo; this.uuid = builder.uuid; this.clusterId = builder.clusterId; } public static Builder builder() { return new Builder(); } public static SuspEvents create() { return builder().build(); } /** * @return advanced */ public Boolean getAdvanced() { return this.advanced; } /** * @return alarmEventName */ public String getAlarmEventName() { return this.alarmEventName; } /** * @return alarmEventNameDisplay */ public String getAlarmEventNameDisplay() { return this.alarmEventNameDisplay; } /** * @return alarmEventType */ public String getAlarmEventType() { return this.alarmEventType; } /** * @return alarmEventTypeDisplay */ public String getAlarmEventTypeDisplay() { return this.alarmEventTypeDisplay; } /** * @return alarmUniqueInfo */ public String getAlarmUniqueInfo() { return this.alarmUniqueInfo; } /** * @return appName */ public String getAppName() { return this.appName; } /** * @return autoBreaking */ public Boolean getAutoBreaking() { return this.autoBreaking; } /** * @return canBeDealOnLine */ public Boolean getCanBeDealOnLine() { return this.canBeDealOnLine; } /** * @return canCancelFault */ public Boolean getCanCancelFault() { return this.canCancelFault; } /** * @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 desc */ public String getDesc() { return this.desc; } /** * @return details */ public java.util.List<Details> getDetails() { return this.details; } /** * @return displaySandboxResult */ public Boolean getDisplaySandboxResult() { return this.displaySandboxResult; } /** * @return eventNotes */ public java.util.List<EventNotes> getEventNotes() { return this.eventNotes; } /** * @return eventStatus */ public Integer getEventStatus() { return this.eventStatus; } /** * @return eventSubType */ public String getEventSubType() { return this.eventSubType; } /** * @return hasTraceInfo */ public Boolean getHasTraceInfo() { return this.hasTraceInfo; } /** * @return id */ public Long getId() { return this.id; } /** * @return imageUuid */ public String getImageUuid() { return this.imageUuid; } /** * @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 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 largeModel */ public Boolean getLargeModel() { return this.largeModel; } /** * @return lastTime */ public String getLastTime() { return this.lastTime; } /** * @return lastTimeStamp */ public Long getLastTimeStamp() { return this.lastTimeStamp; } /** * @return level */ public String getLevel() { return this.level; } /** * @return maliciousRuleStatus */ public String getMaliciousRuleStatus() { return this.maliciousRuleStatus; } /** * @return markList */ public java.util.List<String> getMarkList() { return this.markList; } /** * @return markMisRules */ public String getMarkMisRules() { return this.markMisRules; } /** * @return name */ public String getName() { return this.name; } /** * @return occurrenceTime */ public String getOccurrenceTime() { return this.occurrenceTime; } /** * @return occurrenceTimeStamp */ public Long getOccurrenceTimeStamp() { return this.occurrenceTimeStamp; } /** * @return operateErrorCode */ public String getOperateErrorCode() { return this.operateErrorCode; } /** * @return operateMsg */ public String getOperateMsg() { return this.operateMsg; } /** * @return operateTime */ public Long getOperateTime() { return this.operateTime; } /** * @return saleVersion */ public String getSaleVersion() { return this.saleVersion; } /** * @return securityEventIds */ public String getSecurityEventIds() { return this.securityEventIds; } /** * @return sourceAliUid */ public Long getSourceAliUid() { return this.sourceAliUid; } /** * @return stages */ public String getStages() { return this.stages; } /** * @return tacticItems */ public java.util.List<TacticItems> getTacticItems() { return this.tacticItems; } /** * @return uniqueInfo */ public String getUniqueInfo() { return this.uniqueInfo; } /** * @return uuid */ public String getUuid() { return this.uuid; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } public static final class Builder { private Boolean advanced; private String alarmEventName; private String alarmEventNameDisplay; private String alarmEventType; private String alarmEventTypeDisplay; private String alarmUniqueInfo; private String appName; private Boolean autoBreaking; private Boolean canBeDealOnLine; private Boolean canCancelFault; private Boolean containHwMode; private String containerId; private String containerImageId; private String containerImageName; private String dataSource; private String desc; private java.util.List<Details> details; private Boolean displaySandboxResult; private java.util.List<EventNotes> eventNotes; private Integer eventStatus; private String eventSubType; private Boolean hasTraceInfo; private Long id; private String imageUuid; private String instanceId; 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 Boolean largeModel; private String lastTime; private Long lastTimeStamp; private String level; private String maliciousRuleStatus; private java.util.List<String> markList; private String markMisRules; private String name; private String occurrenceTime; private Long occurrenceTimeStamp; private String operateErrorCode; private String operateMsg; private Long operateTime; private String saleVersion; private String securityEventIds; private Long sourceAliUid; private String stages; private java.util.List<TacticItems> tacticItems; private String uniqueInfo; private String uuid; private String clusterId; private Builder() { } private Builder(SuspEvents model) { this.advanced = model.advanced; this.alarmEventName = model.alarmEventName; this.alarmEventNameDisplay = model.alarmEventNameDisplay; this.alarmEventType = model.alarmEventType; this.alarmEventTypeDisplay = model.alarmEventTypeDisplay; this.alarmUniqueInfo = model.alarmUniqueInfo; this.appName = model.appName; this.autoBreaking = model.autoBreaking; this.canBeDealOnLine = model.canBeDealOnLine; this.canCancelFault = model.canCancelFault; this.containHwMode = model.containHwMode; this.containerId = model.containerId; this.containerImageId = model.containerImageId; this.containerImageName = model.containerImageName; this.dataSource = model.dataSource; this.desc = model.desc; this.details = model.details; this.displaySandboxResult = model.displaySandboxResult; this.eventNotes = model.eventNotes; this.eventStatus = model.eventStatus; this.eventSubType = model.eventSubType; this.hasTraceInfo = model.hasTraceInfo; this.id = model.id; this.imageUuid = model.imageUuid; this.instanceId = model.instanceId; 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.largeModel = model.largeModel; this.lastTime = model.lastTime; this.lastTimeStamp = model.lastTimeStamp; this.level = model.level; this.maliciousRuleStatus = model.maliciousRuleStatus; this.markList = model.markList; this.markMisRules = model.markMisRules; this.name = model.name; this.occurrenceTime = model.occurrenceTime; this.occurrenceTimeStamp = model.occurrenceTimeStamp; this.operateErrorCode = model.operateErrorCode; this.operateMsg = model.operateMsg; this.operateTime = model.operateTime; this.saleVersion = model.saleVersion; this.securityEventIds = model.securityEventIds; this.sourceAliUid = model.sourceAliUid; this.stages = model.stages; this.tacticItems = model.tacticItems; this.uniqueInfo = model.uniqueInfo; this.uuid = model.uuid; this.clusterId = model.clusterId; } /** * <p>Indicates whether the alert event was analyzed offline.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder advanced(Boolean advanced) { this.advanced = advanced; return this; } /** * <p>The name of the alert event.</p> * * <strong>example:</strong> * <p>login_common_location</p> */ public Builder alarmEventName(String alarmEventName) { this.alarmEventName = alarmEventName; return this; } /** * <p>The name of the alert.</p> * * <strong>example:</strong> * <p>Login with unusual location</p> */ public Builder alarmEventNameDisplay(String alarmEventNameDisplay) { this.alarmEventNameDisplay = alarmEventNameDisplay; return this; } /** * <p>The type of the alert event.</p> * * <strong>example:</strong> * <p>Unusual Logon</p> */ public Builder alarmEventType(String alarmEventType) { this.alarmEventType = alarmEventType; return this; } /** * <p>The display name of the type of the alert event.</p> * * <strong>example:</strong> * <p>Unusual Logon</p> */ public Builder alarmEventTypeDisplay(String alarmEventTypeDisplay) { this.alarmEventTypeDisplay = alarmEventTypeDisplay; return this; } /** * <p>The unique ID of the alert event.</p> * * <strong>example:</strong> * <p>8df914418f****</p> */ public Builder alarmUniqueInfo(String alarmUniqueInfo) { this.alarmUniqueInfo = alarmUniqueInfo; return this; } /** * <p>The name of the application to which the alert event belongs.</p> * * <strong>example:</strong> * <p>pro-deploy-tibasic</p> */ public Builder appName(String appName) { this.appName = appName; return this; } /** * <p>Indicates whether automatic defense is enabled.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder autoBreaking(Boolean autoBreaking) { this.autoBreaking = autoBreaking; return this; } /** * <p>Indicates whether you can handle the alert event online, such as quarantining the source file of the malicious process. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</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></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder canCancelFault(Boolean canCancelFault) { this.canCancelFault = canCancelFault; return this; } /** * <p>Indicates whether the safeguard mode for major activities is enabled for the server. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder containHwMode(Boolean containHwMode) { this.containHwMode = containHwMode; return this; } /** * <p>The ID of the container.</p> * * <strong>example:</strong> * <p>container_1648601865161_14925_02_000****</p> */ public Builder containerId(String containerId) { this.containerId = containerId; return this; } /** * <p>The ID of the container image.</p> * * <strong>example:</strong> * <p>sha256:2e5a3b0ae5f452b3cb458789a9a7542ef40035a84318469a8528c5e444db1****</p> */ public Builder containerImageId(String containerImageId) { this.containerImageId = containerImageId; return this; } /** * <p>The name of the container image.</p> * * <strong>example:</strong> * <p>centos7_apache:v1.0.1</p> */ public Builder containerImageName(String containerImageName) { this.containerImageName = containerImageName; return this; } /** * <p>The source of data. This parameter can be ignored.</p> * * <strong>example:</strong> * <p>aegis_suspicious_****</p> */ public Builder dataSource(String dataSource) { this.dataSource = dataSource; return this; } /** * <p>The impact of the alert event.</p> * * <strong>example:</strong> * <p>webshell</p> */ public Builder desc(String desc) { this.desc = desc; return this; } /** * <p>The details of the alert event.</p> */ public Builder details(java.util.List<Details> details) { this.details = details; return this; } /** * <p>Indicates whether the alert event can be detected by cloud sandbox. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder displaySandboxResult(Boolean displaySandboxResult) { this.displaySandboxResult = displaySandboxResult; return this; } /** * <p>The note information about the alert event.</p> */ public Builder eventNotes(java.util.List<EventNotes> eventNotes) { this.eventNotes = eventNotes; return this; } /** * <p>The status of the alert event. Valid values:</p> * <ul> * <li><strong>1</strong>: pending handling</li> * <li><strong>2</strong>: ignored</li> * <li><strong>4</strong>: confirmed</li> * <li><strong>8</strong>: marked as a false positive</li> * <li><strong>16</strong>: handling</li> * <li><strong>32</strong>: handled</li> * <li><strong>64</strong>: expired</li> * <li><strong>604</strong>: marked as a false positive by the system</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder eventStatus(Integer eventStatus) { this.eventStatus = eventStatus; return this; } /** * <p>The subtype of the alert event.</p> * * <strong>example:</strong> * <p>login_common_location</p> */ public Builder eventSubType(String eventSubType) { this.eventSubType = eventSubType; return this; } /** * <p>Indicates whether the alert event has tracing information. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder hasTraceInfo(Boolean hasTraceInfo) { this.hasTraceInfo = hasTraceInfo; return this; } /** * <p>The unique ID of the alert event.</p> * * <strong>example:</strong> * <p>1000</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The UUID of the image.</p> * * <strong>example:</strong> * <p>70489fb520cea585ad9761d5a842****</p> */ public Builder imageUuid(String imageUuid) { this.imageUuid = imageUuid; return this; } /** * <p>The instance ID of the affected asset.</p> * * <strong>example:</strong> * <p>i-9dp6dwsxdl9z5u1e2f****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The name of the associated instance.</p> * * <strong>example:</strong> * <p>nginx</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>1.2.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>100.100.XX.XX</p> */ public Builder intranetIp(String intranetIp) { this.intranetIp = intranetIp; return this; } /** * <p>The ID of the Kubernetes cluster.</p> * * <strong>example:</strong> * <p>c517b37e1401e4961b3951863a49a****</p> */ public Builder k8sClusterId(String k8sClusterId) { this.k8sClusterId = k8sClusterId; return this; } /** * <p>The name of the Kubernetes cluster.</p> * * <strong>example:</strong> * <p>k8s-daily</p> */ public Builder k8sClusterName(String k8sClusterName) { this.k8sClusterName = k8sClusterName; return this; } /** * <p>The namespace of the Kubernetes cluster.</p> * * <strong>example:</strong> * <p>default</p> */ public Builder k8sNamespace(String k8sNamespace) { this.k8sNamespace = k8sNamespace; return this; } /** * <p>The ID of the Kubernetes node.</p> * * <strong>example:</strong> * <p>i-bp14a1ay8e0aa9t0****</p> */ public Builder k8sNodeId(String k8sNodeId) { this.k8sNodeId = k8sNodeId; return this; } /** * <p>The name of the Kubernetes node.</p> * * <strong>example:</strong> * <p>N/A</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>Indicates whether the large model analysis tag is supported. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder largeModel(Boolean largeModel) { this.largeModel = largeModel; return this; } /** * <p>The time when the alert event was last detected.</p> * * <strong>example:</strong> * <p>2018-09-26 01:51:01</p> */ public Builder lastTime(String lastTime) { this.lastTime = lastTime; return this; } /** * <p>The timestamp when the alert event was last detected. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1631699497000</p> */ public Builder lastTimeStamp(Long lastTimeStamp) { this.lastTimeStamp = lastTimeStamp; 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 status of the malicious behavior defense rule. Valid values:</p> * <ul> * <li><strong>open</strong></li> * <li><strong>close</strong></li> * </ul> * * <strong>example:</strong> * <p>open</p> */ public Builder maliciousRuleStatus(String maliciousRuleStatus) { this.maliciousRuleStatus = maliciousRuleStatus; return this; } /** * <p>The tags of the alert events.</p> */ public Builder markList(java.util.List<String> markList) { this.markList = markList; return this; } /** * <p>The advanced whitelist rule.</p> * * <strong>example:</strong> * <p>[{&quot;uuid&quot;:&quot;ALL&quot;,&quot;field&quot;:&quot;gmtModified&quot;,&quot;operate&quot;:&quot;contains&quot;,&quot;fieldValue&quot;:&quot;222&quot;}]</p> */ public Builder markMisRules(String markMisRules) { this.markMisRules = markMisRules; return this; } /** * <p>The complete name of the alert event.</p> * * <strong>example:</strong> * <p>Unusual Logon-Login with unusual location</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The time when the alert event was first detected.</p> * * <strong>example:</strong> * <p>2018-09-26 01:51:01</p> */ public Builder occurrenceTime(String occurrenceTime) { this.occurrenceTime = occurrenceTime; return this; } /** * <p>The timestamp when the alert event was first detected. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1631699497000</p> */ public Builder occurrenceTimeStamp(Long occurrenceTimeStamp) { this.occurrenceTimeStamp = occurrenceTimeStamp; return this; } /** * <p>The handling result code of the alert event.</p> * * <strong>example:</strong> * <p>kill_and_quara.Success</p> */ public Builder operateErrorCode(String operateErrorCode) { this.operateErrorCode = operateErrorCode; return this; } /** * <p>The handing result message of the alert event.</p> * * <strong>example:</strong> * <p>success</p> */ public Builder operateMsg(String operateMsg) { this.operateMsg = operateMsg; return this; } /** * <p>The handling timestamp of the alert event. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1631699497000</p> */ public Builder operateTime(Long operateTime) { this.operateTime = operateTime; return this; } /** * <p>The edition of Security Center in which the alert event can be detected. Valid values:</p> * <ul> * <li><strong>0</strong>: Basic edition</li> * <li><strong>1</strong>: Enterprise edition</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder saleVersion(String saleVersion) { this.saleVersion = saleVersion; return this; } /** * <p>The ID of the associated alert event.</p> * * <strong>example:</strong> * <p>270789</p> */ public Builder securityEventIds(String securityEventIds) { this.securityEventIds = securityEventIds; return this; } /** * <p>The ID of the Alibaba Cloud account within which an alert is generated.</p> * * <strong>example:</strong> * <p>196072141348****</p> */ public Builder sourceAliUid(Long sourceAliUid) { this.sourceAliUid = sourceAliUid; return this; } /** * <p>The stage at which the attack is detected.</p> * * <strong>example:</strong> * <p>&quot;[&quot;authority_maintenance&quot;]&quot;</p> */ public Builder stages(String stages) { this.stages = stages; return this; } /** * <p>The display name of the attack stage.</p> */ public Builder tacticItems(java.util.List<TacticItems> tacticItems) { this.tacticItems = tacticItems; return this; } /** * <p>The unique key of the alert.</p> * * <strong>example:</strong> * <p>e17e****</p> */ public Builder uniqueInfo(String uniqueInfo) { this.uniqueInfo = uniqueInfo; return this; } /** * <p>The unique ID of the associated instance.</p> * * <strong>example:</strong> * <p>bf6b30d3-eea8-4924-9f0a-****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } /** * <p>The ID of the cluster.</p> * * <strong>example:</strong> * <p>c2051775877374cccbf68af596e6****</p> */ public Builder clusterId(String clusterId) { this.clusterId = clusterId; return this; } public SuspEvents build() { return new SuspEvents(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/DescribeSuspiciousOverallConfigRequest.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 DescribeSuspiciousOverallConfigRequest} extends {@link RequestModel} * * <p>DescribeSuspiciousOverallConfigRequest</p> */ public class DescribeSuspiciousOverallConfigRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIp") private String sourceIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; private DescribeSuspiciousOverallConfigRequest(Builder builder) { super(builder); this.sourceIp = builder.sourceIp; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeSuspiciousOverallConfigRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeSuspiciousOverallConfigRequest, Builder> { private String sourceIp; private String type; private Builder() { super(); } private Builder(DescribeSuspiciousOverallConfigRequest request) { super(request); this.sourceIp = request.sourceIp; this.type = request.type; } /** * <p>The source IP address of the request.</p> * * <strong>example:</strong> * <p>39.161.XX.XX</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } /** * <p>The type of the feature. Valid values:</p> * <ul> * <li><strong>auto_breaking</strong>: Anti-Virus</li> * <li><strong>ransomware_breaking</strong>: Anti-ransomware (Bait Capture)</li> * <li><strong>webshell_cloud_breaking</strong>: Webshell Protection</li> * <li><strong>alinet</strong>: Behavior prevention</li> * <li><strong>k8s_log_analysis</strong>: K8s Threat Detection</li> * <li><strong>alisecguard</strong>: Defense mode for Client Protection</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>auto_breaking</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeSuspiciousOverallConfigRequest build() { return new DescribeSuspiciousOverallConfigRequest(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/DescribeSuspiciousOverallConfigResponse.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 DescribeSuspiciousOverallConfigResponse} extends {@link TeaModel} * * <p>DescribeSuspiciousOverallConfigResponse</p> */ public class DescribeSuspiciousOverallConfigResponse 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 DescribeSuspiciousOverallConfigResponseBody body; private DescribeSuspiciousOverallConfigResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSuspiciousOverallConfigResponse 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 DescribeSuspiciousOverallConfigResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSuspiciousOverallConfigResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSuspiciousOverallConfigResponseBody body); @Override DescribeSuspiciousOverallConfigResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSuspiciousOverallConfigResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSuspiciousOverallConfigResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSuspiciousOverallConfigResponse 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(DescribeSuspiciousOverallConfigResponseBody body) { this.body = body; return this; } @Override public DescribeSuspiciousOverallConfigResponse build() { return new DescribeSuspiciousOverallConfigResponse(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/DescribeSuspiciousOverallConfigResponseBody.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 DescribeSuspiciousOverallConfigResponseBody} extends {@link TeaModel} * * <p>DescribeSuspiciousOverallConfigResponseBody</p> */ public class DescribeSuspiciousOverallConfigResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("OverallConfig") private OverallConfig overallConfig; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeSuspiciousOverallConfigResponseBody(Builder builder) { this.overallConfig = builder.overallConfig; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeSuspiciousOverallConfigResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return overallConfig */ public OverallConfig getOverallConfig() { return this.overallConfig; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private OverallConfig overallConfig; private String requestId; private Builder() { } private Builder(DescribeSuspiciousOverallConfigResponseBody model) { this.overallConfig = model.overallConfig; this.requestId = model.requestId; } /** * <p>The configuration.</p> */ public Builder overallConfig(OverallConfig overallConfig) { this.overallConfig = overallConfig; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>6673D49C-A9AB-40DD-B4A2-B92306701AE7</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeSuspiciousOverallConfigResponseBody build() { return new DescribeSuspiciousOverallConfigResponseBody(this); } } /** * * {@link DescribeSuspiciousOverallConfigResponseBody} extends {@link TeaModel} * * <p>DescribeSuspiciousOverallConfigResponseBody</p> */ public static class OverallConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("Config") private String config; @com.aliyun.core.annotation.NameInMap("Type") private String type; private OverallConfig(Builder builder) { this.config = builder.config; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static OverallConfig create() { return builder().build(); } /** * @return config */ public String getConfig() { return this.config; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String config; private String type; private Builder() { } private Builder(OverallConfig model) { this.config = model.config; this.type = model.type; } /** * <p>The status of the feature. Valid values:</p> * <ul> * <li><strong>off</strong>: disabled</li> * <li><strong>on</strong>: enabled</li> * </ul> * * <strong>example:</strong> * <p>on</p> */ public Builder config(String config) { this.config = config; return this; } /** * <p>The type of the feature. Valid values:</p> * <ul> * <li><strong>auto_breaking</strong>: Anti-Virus</li> * <li><strong>ransomware_breaking</strong>: Anti-ransomware (Bait Capture)</li> * <li><strong>webshell_cloud_breaking</strong>: Webshell Protection</li> * <li><strong>alinet</strong>: Behavior prevention</li> * <li><strong>k8s_log_analysis</strong>: K8s Threat Detection</li> * <li><strong>alisecguard</strong>: Defense mode for Client Protection</li> * </ul> * * <strong>example:</strong> * <p>auto_breaking</p> */ public Builder type(String type) { this.type = type; return this; } public OverallConfig build() { return new OverallConfig(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/DescribeSuspiciousUUIDConfigRequest.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 DescribeSuspiciousUUIDConfigRequest} extends {@link RequestModel} * * <p>DescribeSuspiciousUUIDConfigRequest</p> */ public class DescribeSuspiciousUUIDConfigRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; private DescribeSuspiciousUUIDConfigRequest(Builder builder) { super(builder); this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeSuspiciousUUIDConfigRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeSuspiciousUUIDConfigRequest, Builder> { private String type; private Builder() { super(); } private Builder(DescribeSuspiciousUUIDConfigRequest request) { super(request); this.type = request.type; } /** * <p>The type of proactive defense. Valid values:</p> * <ul> * <li><strong>auto_breaking</strong>: virus defense</li> * <li><strong>ransomware_breaking</strong>: ransomware capture</li> * <li><strong>webshell_cloud_breaking</strong>: webshell defense</li> * <li><strong>alinet</strong>: malicious behavior defense</li> * <li><strong>alisecguard</strong>: client protection</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>alinet</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeSuspiciousUUIDConfigRequest build() { return new DescribeSuspiciousUUIDConfigRequest(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/DescribeSuspiciousUUIDConfigResponse.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 DescribeSuspiciousUUIDConfigResponse} extends {@link TeaModel} * * <p>DescribeSuspiciousUUIDConfigResponse</p> */ public class DescribeSuspiciousUUIDConfigResponse 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 DescribeSuspiciousUUIDConfigResponseBody body; private DescribeSuspiciousUUIDConfigResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSuspiciousUUIDConfigResponse 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 DescribeSuspiciousUUIDConfigResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSuspiciousUUIDConfigResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSuspiciousUUIDConfigResponseBody body); @Override DescribeSuspiciousUUIDConfigResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSuspiciousUUIDConfigResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSuspiciousUUIDConfigResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSuspiciousUUIDConfigResponse 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(DescribeSuspiciousUUIDConfigResponseBody body) { this.body = body; return this; } @Override public DescribeSuspiciousUUIDConfigResponse build() { return new DescribeSuspiciousUUIDConfigResponse(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/DescribeSuspiciousUUIDConfigResponseBody.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 DescribeSuspiciousUUIDConfigResponseBody} extends {@link TeaModel} * * <p>DescribeSuspiciousUUIDConfigResponseBody</p> */ public class DescribeSuspiciousUUIDConfigResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("UUIDList") private java.util.List<String> UUIDList; private DescribeSuspiciousUUIDConfigResponseBody(Builder builder) { this.count = builder.count; this.requestId = builder.requestId; this.UUIDList = builder.UUIDList; } public static Builder builder() { return new Builder(); } public static DescribeSuspiciousUUIDConfigResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return UUIDList */ public java.util.List<String> getUUIDList() { return this.UUIDList; } public static final class Builder { private Integer count; private String requestId; private java.util.List<String> UUIDList; private Builder() { } private Builder(DescribeSuspiciousUUIDConfigResponseBody model) { this.count = model.count; this.requestId = model.requestId; this.UUIDList = model.UUIDList; } /** * <p>The total number of servers on which proactive defense of the specified type takes effect.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>6044DC07-86F1-5DDA-A611-EC578EA4EEE6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The UUIDs of servers on which proactive defense of the specified type takes effect.</p> */ public Builder UUIDList(java.util.List<String> UUIDList) { this.UUIDList = UUIDList; return this; } public DescribeSuspiciousUUIDConfigResponseBody build() { return new DescribeSuspiciousUUIDConfigResponseBody(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/DescribeSyncAssetTaskListRequest.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 DescribeSyncAssetTaskListRequest} extends {@link RequestModel} * * <p>DescribeSyncAssetTaskListRequest</p> */ public class DescribeSyncAssetTaskListRequest 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("EndTime") private Long endTime; @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") private Long startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskName") private String taskName; private DescribeSyncAssetTaskListRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.endTime = builder.endTime; this.pageSize = builder.pageSize; this.startTime = builder.startTime; this.taskName = builder.taskName; } public static Builder builder() { return new Builder(); } public static DescribeSyncAssetTaskListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return taskName */ public String getTaskName() { return this.taskName; } public static final class Builder extends Request.Builder<DescribeSyncAssetTaskListRequest, Builder> { private Integer currentPage; private Long endTime; private Integer pageSize; private Long startTime; private String taskName; private Builder() { super(); } private Builder(DescribeSyncAssetTaskListRequest request) { super(request); this.currentPage = request.currentPage; this.endTime = request.endTime; this.pageSize = request.pageSize; this.startTime = request.startTime; this.taskName = request.taskName; } /** * <p>The page number. Default value: 1. Pages start from page 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The timestamp when the IDC scan task ends. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1662430077000</p> */ public Builder endTime(Long endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The timestamp when the IDC scan task starts. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1652063828796</p> */ public Builder startTime(Long startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * <p>The name of the IDC scan task.</p> * * <strong>example:</strong> * <p>IDC_PROBE_SCAN***</p> */ public Builder taskName(String taskName) { this.putQueryParameter("TaskName", taskName); this.taskName = taskName; return this; } @Override public DescribeSyncAssetTaskListRequest build() { return new DescribeSyncAssetTaskListRequest(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/DescribeSyncAssetTaskListResponse.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 DescribeSyncAssetTaskListResponse} extends {@link TeaModel} * * <p>DescribeSyncAssetTaskListResponse</p> */ public class DescribeSyncAssetTaskListResponse 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 DescribeSyncAssetTaskListResponseBody body; private DescribeSyncAssetTaskListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSyncAssetTaskListResponse 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 DescribeSyncAssetTaskListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSyncAssetTaskListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSyncAssetTaskListResponseBody body); @Override DescribeSyncAssetTaskListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSyncAssetTaskListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSyncAssetTaskListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSyncAssetTaskListResponse 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(DescribeSyncAssetTaskListResponseBody body) { this.body = body; return this; } @Override public DescribeSyncAssetTaskListResponse build() { return new DescribeSyncAssetTaskListResponse(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/DescribeSyncAssetTaskListResponseBody.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 DescribeSyncAssetTaskListResponseBody} extends {@link TeaModel} * * <p>DescribeSyncAssetTaskListResponseBody</p> */ public class DescribeSyncAssetTaskListResponseBody 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("TaskRecords") private java.util.List<TaskRecords> taskRecords; private DescribeSyncAssetTaskListResponseBody(Builder builder) { this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; this.taskRecords = builder.taskRecords; } public static Builder builder() { return new Builder(); } public static DescribeSyncAssetTaskListResponseBody 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 taskRecords */ public java.util.List<TaskRecords> getTaskRecords() { return this.taskRecords; } public static final class Builder { private PageInfo pageInfo; private String requestId; private java.util.List<TaskRecords> taskRecords; private Builder() { } private Builder(DescribeSyncAssetTaskListResponseBody model) { this.pageInfo = model.pageInfo; this.requestId = model.requestId; this.taskRecords = model.taskRecords; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>24A20733-10A0-4AF6-BE6B-E3322413BB68</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The IDC scan tasks.</p> */ public Builder taskRecords(java.util.List<TaskRecords> taskRecords) { this.taskRecords = taskRecords; return this; } public DescribeSyncAssetTaskListResponseBody build() { return new DescribeSyncAssetTaskListResponseBody(this); } } /** * * {@link DescribeSyncAssetTaskListResponseBody} extends {@link TeaModel} * * <p>DescribeSyncAssetTaskListResponseBody</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 IDC scan tasks 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.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of IDC scan tasks per page. Default value: 20. If you leave this parameter empty, 20 IDC scan tasks are returned on each page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of IDC scan tasks returned.</p> * * <strong>example:</strong> * <p>110</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeSyncAssetTaskListResponseBody} extends {@link TeaModel} * * <p>DescribeSyncAssetTaskListResponseBody</p> */ public static class TaskRecords extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssetCount") private Integer assetCount; @com.aliyun.core.annotation.NameInMap("IpSegments") private String ipSegments; @com.aliyun.core.annotation.NameInMap("ProcessRate") private Integer processRate; @com.aliyun.core.annotation.NameInMap("RootTaskId") private String rootTaskId; @com.aliyun.core.annotation.NameInMap("TaskEndTime") private Long taskEndTime; @com.aliyun.core.annotation.NameInMap("TaskName") private String taskName; @com.aliyun.core.annotation.NameInMap("TaskStartTime") private Long taskStartTime; @com.aliyun.core.annotation.NameInMap("TaskStatus") private String taskStatus; @com.aliyun.core.annotation.NameInMap("TaskType") private String taskType; private TaskRecords(Builder builder) { this.assetCount = builder.assetCount; this.ipSegments = builder.ipSegments; this.processRate = builder.processRate; this.rootTaskId = builder.rootTaskId; this.taskEndTime = builder.taskEndTime; this.taskName = builder.taskName; this.taskStartTime = builder.taskStartTime; this.taskStatus = builder.taskStatus; this.taskType = builder.taskType; } public static Builder builder() { return new Builder(); } public static TaskRecords create() { return builder().build(); } /** * @return assetCount */ public Integer getAssetCount() { return this.assetCount; } /** * @return ipSegments */ public String getIpSegments() { return this.ipSegments; } /** * @return processRate */ public Integer getProcessRate() { return this.processRate; } /** * @return rootTaskId */ public String getRootTaskId() { return this.rootTaskId; } /** * @return taskEndTime */ public Long getTaskEndTime() { return this.taskEndTime; } /** * @return taskName */ public String getTaskName() { return this.taskName; } /** * @return taskStartTime */ public Long getTaskStartTime() { return this.taskStartTime; } /** * @return taskStatus */ public String getTaskStatus() { return this.taskStatus; } /** * @return taskType */ public String getTaskType() { return this.taskType; } public static final class Builder { private Integer assetCount; private String ipSegments; private Integer processRate; private String rootTaskId; private Long taskEndTime; private String taskName; private Long taskStartTime; private String taskStatus; private String taskType; private Builder() { } private Builder(TaskRecords model) { this.assetCount = model.assetCount; this.ipSegments = model.ipSegments; this.processRate = model.processRate; this.rootTaskId = model.rootTaskId; this.taskEndTime = model.taskEndTime; this.taskName = model.taskName; this.taskStartTime = model.taskStartTime; this.taskStatus = model.taskStatus; this.taskType = model.taskType; } /** * <p>The number of assets that are detected by the task.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder assetCount(Integer assetCount) { this.assetCount = assetCount; return this; } /** * <p>The CIDR blocks that are used for scanning. Multiple CIDR blocks are separated by commas (,).</p> * * <strong>example:</strong> * <p>1.1.1.1/24,1.1.1.1/24</p> */ public Builder ipSegments(String ipSegments) { this.ipSegments = ipSegments; return this; } /** * <p>The progress of the task, in percentage.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder processRate(Integer processRate) { this.processRate = processRate; return this; } /** * <p>The ID of the root task.</p> * * <strong>example:</strong> * <p>73c392f9c505129a257472a3f911d65d</p> */ public Builder rootTaskId(String rootTaskId) { this.rootTaskId = rootTaskId; return this; } /** * <p>The timestamp when the task ended.</p> * * <strong>example:</strong> * <p>1653965680000</p> */ public Builder taskEndTime(Long taskEndTime) { this.taskEndTime = taskEndTime; return this; } /** * <p>The name of the task.</p> * * <strong>example:</strong> * <p>IDC_PROBE_SCAN-1.1.1..124-lse_ubuntu_test1</p> */ public Builder taskName(String taskName) { this.taskName = taskName; return this; } /** * <p>The timestamp when the task started. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1633746651715</p> */ public Builder taskStartTime(Long taskStartTime) { this.taskStartTime = taskStartTime; return this; } /** * <p>The status of the IDC scan task. Valid Values:</p> * <ul> * <li><strong>INIT</strong>: The task is not started.</li> * <li><strong>START</strong>: The task is started.</li> * <li><strong>MESSAGE_SEND</strong>: The command is sent.</li> * <li><strong>SUCCESS</strong>: The task is complete.</li> * <li><strong>FAIL</strong>: The task failed.</li> * <li><strong>TIMEOUT</strong>: The task timed out.</li> * </ul> * * <strong>example:</strong> * <p>SUCCESS</p> */ public Builder taskStatus(String taskStatus) { this.taskStatus = taskStatus; return this; } /** * <p>The type of the task. The value is fixed as <strong>IDC_PROBE_SCAN</strong>, which indicates an IDC scan task.</p> * * <strong>example:</strong> * <p>IDC_PROBE_SCAN</p> */ public Builder taskType(String taskType) { this.taskType = taskType; return this; } public TaskRecords build() { return new TaskRecords(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/DescribeSyncAssetTaskLogDetailRequest.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 DescribeSyncAssetTaskLogDetailRequest} extends {@link RequestModel} * * <p>DescribeSyncAssetTaskLogDetailRequest</p> */ public class DescribeSyncAssetTaskLogDetailRequest 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("EndTime") private Long endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RootTaskId") private String rootTaskId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskName") private String taskName; private DescribeSyncAssetTaskLogDetailRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.endTime = builder.endTime; this.pageSize = builder.pageSize; this.rootTaskId = builder.rootTaskId; this.startTime = builder.startTime; this.taskName = builder.taskName; } public static Builder builder() { return new Builder(); } public static DescribeSyncAssetTaskLogDetailRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return rootTaskId */ public String getRootTaskId() { return this.rootTaskId; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return taskName */ public String getTaskName() { return this.taskName; } public static final class Builder extends Request.Builder<DescribeSyncAssetTaskLogDetailRequest, Builder> { private Integer currentPage; private Long endTime; private Integer pageSize; private String rootTaskId; private Long startTime; private String taskName; private Builder() { super(); } private Builder(DescribeSyncAssetTaskLogDetailRequest request) { super(request); this.currentPage = request.currentPage; this.endTime = request.endTime; this.pageSize = request.pageSize; this.rootTaskId = request.rootTaskId; this.startTime = request.startTime; this.taskName = request.taskName; } /** * <p>The page number. Default value: 1. Pages start from page 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The end timestamp of the task.</p> * * <strong>example:</strong> * <p>1668064495000</p> */ public Builder endTime(Long endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The ID of the IDC scan task. You can call the <a href="https://help.aliyun.com/document_detail/141932.html">DescribeSyncAssetTaskList</a> operation to obtain the ID.</p> * * <strong>example:</strong> * <p>7e9565f537146fdf6bfb4e01f6f08818</p> */ public Builder rootTaskId(String rootTaskId) { this.putQueryParameter("RootTaskId", rootTaskId); this.rootTaskId = rootTaskId; return this; } /** * <p>The start timestamp of the task.</p> * * <strong>example:</strong> * <p>1644027670</p> */ public Builder startTime(Long startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * <p>The name of the IDC scan task.</p> * * <strong>example:</strong> * <p>IDC_PROBE_SCAN-TEST_001</p> */ public Builder taskName(String taskName) { this.putQueryParameter("TaskName", taskName); this.taskName = taskName; return this; } @Override public DescribeSyncAssetTaskLogDetailRequest build() { return new DescribeSyncAssetTaskLogDetailRequest(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/DescribeSyncAssetTaskLogDetailResponse.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 DescribeSyncAssetTaskLogDetailResponse} extends {@link TeaModel} * * <p>DescribeSyncAssetTaskLogDetailResponse</p> */ public class DescribeSyncAssetTaskLogDetailResponse 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 DescribeSyncAssetTaskLogDetailResponseBody body; private DescribeSyncAssetTaskLogDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSyncAssetTaskLogDetailResponse 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 DescribeSyncAssetTaskLogDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSyncAssetTaskLogDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSyncAssetTaskLogDetailResponseBody body); @Override DescribeSyncAssetTaskLogDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSyncAssetTaskLogDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSyncAssetTaskLogDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSyncAssetTaskLogDetailResponse 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(DescribeSyncAssetTaskLogDetailResponseBody body) { this.body = body; return this; } @Override public DescribeSyncAssetTaskLogDetailResponse build() { return new DescribeSyncAssetTaskLogDetailResponse(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/DescribeSyncAssetTaskLogDetailResponseBody.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 DescribeSyncAssetTaskLogDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSyncAssetTaskLogDetailResponseBody</p> */ public class DescribeSyncAssetTaskLogDetailResponseBody 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("TaskRecordDetails") private java.util.List<TaskRecordDetails> taskRecordDetails; private DescribeSyncAssetTaskLogDetailResponseBody(Builder builder) { this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; this.taskRecordDetails = builder.taskRecordDetails; } public static Builder builder() { return new Builder(); } public static DescribeSyncAssetTaskLogDetailResponseBody 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 taskRecordDetails */ public java.util.List<TaskRecordDetails> getTaskRecordDetails() { return this.taskRecordDetails; } public static final class Builder { private PageInfo pageInfo; private String requestId; private java.util.List<TaskRecordDetails> taskRecordDetails; private Builder() { } private Builder(DescribeSyncAssetTaskLogDetailResponseBody model) { this.pageInfo = model.pageInfo; this.requestId = model.requestId; this.taskRecordDetails = model.taskRecordDetails; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>0B48AB3C-84FC-424D-A01D-B9270EF46038</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The details of the tasks.</p> */ public Builder taskRecordDetails(java.util.List<TaskRecordDetails> taskRecordDetails) { this.taskRecordDetails = taskRecordDetails; return this; } public DescribeSyncAssetTaskLogDetailResponseBody build() { return new DescribeSyncAssetTaskLogDetailResponseBody(this); } } /** * * {@link DescribeSyncAssetTaskLogDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSyncAssetTaskLogDetailResponseBody</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 on the current page.</p> * * <strong>example:</strong> * <p>4</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. Default value: 20. If you leave this parameter empty, 20 entries are returned on each 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>12</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeSyncAssetTaskLogDetailResponseBody} extends {@link TeaModel} * * <p>DescribeSyncAssetTaskLogDetailResponseBody</p> */ public static class TaskRecordDetails extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssetCount") private Integer assetCount; @com.aliyun.core.annotation.NameInMap("IdcRegion") private String idcRegion; @com.aliyun.core.annotation.NameInMap("LeafTaskId") private String leafTaskId; @com.aliyun.core.annotation.NameInMap("LeafTaskStatus") private String leafTaskStatus; @com.aliyun.core.annotation.NameInMap("TaskMsg") private String taskMsg; @com.aliyun.core.annotation.NameInMap("TaskReportTime") private Long taskReportTime; @com.aliyun.core.annotation.NameInMap("UnprotectedAssetCount") private Integer unprotectedAssetCount; private TaskRecordDetails(Builder builder) { this.assetCount = builder.assetCount; this.idcRegion = builder.idcRegion; this.leafTaskId = builder.leafTaskId; this.leafTaskStatus = builder.leafTaskStatus; this.taskMsg = builder.taskMsg; this.taskReportTime = builder.taskReportTime; this.unprotectedAssetCount = builder.unprotectedAssetCount; } public static Builder builder() { return new Builder(); } public static TaskRecordDetails create() { return builder().build(); } /** * @return assetCount */ public Integer getAssetCount() { return this.assetCount; } /** * @return idcRegion */ public String getIdcRegion() { return this.idcRegion; } /** * @return leafTaskId */ public String getLeafTaskId() { return this.leafTaskId; } /** * @return leafTaskStatus */ public String getLeafTaskStatus() { return this.leafTaskStatus; } /** * @return taskMsg */ public String getTaskMsg() { return this.taskMsg; } /** * @return taskReportTime */ public Long getTaskReportTime() { return this.taskReportTime; } /** * @return unprotectedAssetCount */ public Integer getUnprotectedAssetCount() { return this.unprotectedAssetCount; } public static final class Builder { private Integer assetCount; private String idcRegion; private String leafTaskId; private String leafTaskStatus; private String taskMsg; private Long taskReportTime; private Integer unprotectedAssetCount; private Builder() { } private Builder(TaskRecordDetails model) { this.assetCount = model.assetCount; this.idcRegion = model.idcRegion; this.leafTaskId = model.leafTaskId; this.leafTaskStatus = model.leafTaskStatus; this.taskMsg = model.taskMsg; this.taskReportTime = model.taskReportTime; this.unprotectedAssetCount = model.unprotectedAssetCount; } /** * <p>The total number of assets.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder assetCount(Integer assetCount) { this.assetCount = assetCount; return this; } /** * <p>The region of the server in the data center.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder idcRegion(String idcRegion) { this.idcRegion = idcRegion; return this; } /** * <p>The ID of the task.</p> * * <strong>example:</strong> * <p>6c4e4c36ffc3e5919120b405c2b3****</p> */ public Builder leafTaskId(String leafTaskId) { this.leafTaskId = leafTaskId; return this; } /** * <p>The status of the task. Valid values:</p> * <ul> * <li><strong>INIT</strong>: The task is not started.</li> * <li><strong>START</strong>: The task is started.</li> * <li><strong>MESSAGE_SEND</strong>: The command is sent.</li> * <li><strong>SUCCESS</strong>: The task is complete.</li> * <li><strong>FAIL</strong>: The task failed.</li> * <li><strong>TIMEOUT</strong>: The task timed out.</li> * </ul> * * <strong>example:</strong> * <p>INIT</p> */ public Builder leafTaskStatus(String leafTaskStatus) { this.leafTaskStatus = leafTaskStatus; return this; } /** * <p>The description of the task.</p> * * <strong>example:</strong> * <p>unknown reason</p> */ public Builder taskMsg(String taskMsg) { this.taskMsg = taskMsg; return this; } /** * <p>The timestamp when the task results were reported.</p> * * <strong>example:</strong> * <p>1671614217000</p> */ public Builder taskReportTime(Long taskReportTime) { this.taskReportTime = taskReportTime; return this; } /** * <p>The number of unprotected assets.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder unprotectedAssetCount(Integer unprotectedAssetCount) { this.unprotectedAssetCount = unprotectedAssetCount; return this; } public TaskRecordDetails build() { return new TaskRecordDetails(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/DescribeTargetRequest.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 DescribeTargetRequest} extends {@link RequestModel} * * <p>DescribeTargetRequest</p> */ public class DescribeTargetRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Config") private String config; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") private String type; private DescribeTargetRequest(Builder builder) { super(builder); this.config = builder.config; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeTargetRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return config */ public String getConfig() { return this.config; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeTargetRequest, Builder> { private String config; private String type; private Builder() { super(); } private Builder(DescribeTargetRequest request) { super(request); this.config = request.config; this.type = request.type; } /** * <p>The type of the vulnerability. Valid values:</p> * <ul> * <li><strong>cms</strong>: Web CMS vulnerability</li> * <li><strong>sys</strong>: Windows system vulnerability</li> * <li><strong>cve</strong>: Linux software vulnerability</li> * <li><strong>emg</strong>: urgent vulnerability</li> * </ul> * * <strong>example:</strong> * <p>{&quot;vulType&quot;:&quot;cms&quot;}</p> */ public Builder config(String config) { this.putQueryParameter("Config", config); this.config = config; return this; } /** * <p>The type of the query. Set the value to vul.</p> * * <strong>example:</strong> * <p>vul</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeTargetRequest build() { return new DescribeTargetRequest(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/DescribeTargetResponse.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 DescribeTargetResponse} extends {@link TeaModel} * * <p>DescribeTargetResponse</p> */ public class DescribeTargetResponse 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 DescribeTargetResponseBody body; private DescribeTargetResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTargetResponse 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 DescribeTargetResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeTargetResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeTargetResponseBody body); @Override DescribeTargetResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeTargetResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeTargetResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTargetResponse 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(DescribeTargetResponseBody body) { this.body = body; return this; } @Override public DescribeTargetResponse build() { return new DescribeTargetResponse(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/DescribeTargetResponseBody.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 DescribeTargetResponseBody} extends {@link TeaModel} * * <p>DescribeTargetResponseBody</p> */ public class DescribeTargetResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Targets") private java.util.List<Targets> targets; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeTargetResponseBody(Builder builder) { this.requestId = builder.requestId; this.targets = builder.targets; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeTargetResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return targets */ public java.util.List<Targets> getTargets() { return this.targets; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private String requestId; private java.util.List<Targets> targets; private Integer totalCount; private Builder() { } private Builder(DescribeTargetResponseBody model) { this.requestId = model.requestId; this.targets = model.targets; this.totalCount = model.totalCount; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>79CFF74D-E967-5407-8A78-EE03B925FDAA</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the server.</p> */ public Builder targets(java.util.List<Targets> targets) { this.targets = targets; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeTargetResponseBody build() { return new DescribeTargetResponseBody(this); } } /** * * {@link DescribeTargetResponseBody} extends {@link TeaModel} * * <p>DescribeTargetResponseBody</p> */ public static class Targets extends TeaModel { @com.aliyun.core.annotation.NameInMap("Flag") private String flag; @com.aliyun.core.annotation.NameInMap("Target") private String target; @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; private Targets(Builder builder) { this.flag = builder.flag; this.target = builder.target; this.targetType = builder.targetType; } public static Builder builder() { return new Builder(); } public static Targets create() { return builder().build(); } /** * @return flag */ public String getFlag() { return this.flag; } /** * @return target */ public String getTarget() { return this.target; } /** * @return targetType */ public String getTargetType() { return this.targetType; } public static final class Builder { private String flag; private String target; private String targetType; private Builder() { } private Builder(Targets model) { this.flag = model.flag; this.target = model.target; this.targetType = model.targetType; } /** * <p>The flag that is added to the server. This parameter can be empty.</p> * * <strong>example:</strong> * <p>del</p> */ public Builder flag(String flag) { this.flag = flag; return this; } /** * <p>The UUID of the server or the ID of the server group.</p> * * <strong>example:</strong> * <p>5c5f0169-3527-40a2-b5ff-0bc1db8f****</p> */ public Builder target(String target) { this.target = target; return this; } /** * <p>The type of the object. Valid values:</p> * <ul> * <li><strong>uuid</strong>: a server</li> * <li><strong>groupId</strong>: a server group</li> * </ul> * * <strong>example:</strong> * <p>uuid</p> */ public Builder targetType(String targetType) { this.targetType = targetType; return this; } public Targets build() { return new Targets(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/DescribeTaskErrorLogRequest.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 DescribeTaskErrorLogRequest} extends {@link RequestModel} * * <p>DescribeTaskErrorLogRequest</p> */ public class DescribeTaskErrorLogRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BuildTaskId") @com.aliyun.core.annotation.Validation(required = true) private String buildTaskId; private DescribeTaskErrorLogRequest(Builder builder) { super(builder); this.buildTaskId = builder.buildTaskId; } public static Builder builder() { return new Builder(); } public static DescribeTaskErrorLogRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return buildTaskId */ public String getBuildTaskId() { return this.buildTaskId; } public static final class Builder extends Request.Builder<DescribeTaskErrorLogRequest, Builder> { private String buildTaskId; private Builder() { super(); } private Builder(DescribeTaskErrorLogRequest request) { super(request); this.buildTaskId = request.buildTaskId; } /** * <p>The ID of the task.</p> * <blockquote> * <p> You can call the DescribeImageFixTask operation to query the IDs of tasks.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ivf-6e520160-205d-4801-b8e9-9e7e****</p> */ public Builder buildTaskId(String buildTaskId) { this.putQueryParameter("BuildTaskId", buildTaskId); this.buildTaskId = buildTaskId; return this; } @Override public DescribeTaskErrorLogRequest build() { return new DescribeTaskErrorLogRequest(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/DescribeTaskErrorLogResponse.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 DescribeTaskErrorLogResponse} extends {@link TeaModel} * * <p>DescribeTaskErrorLogResponse</p> */ public class DescribeTaskErrorLogResponse 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 DescribeTaskErrorLogResponseBody body; private DescribeTaskErrorLogResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTaskErrorLogResponse 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 DescribeTaskErrorLogResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeTaskErrorLogResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeTaskErrorLogResponseBody body); @Override DescribeTaskErrorLogResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeTaskErrorLogResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeTaskErrorLogResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTaskErrorLogResponse 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(DescribeTaskErrorLogResponseBody body) { this.body = body; return this; } @Override public DescribeTaskErrorLogResponse build() { return new DescribeTaskErrorLogResponse(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/DescribeTaskErrorLogResponseBody.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 DescribeTaskErrorLogResponseBody} extends {@link TeaModel} * * <p>DescribeTaskErrorLogResponseBody</p> */ public class DescribeTaskErrorLogResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Logs") private java.util.List<Logs> logs; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeTaskErrorLogResponseBody(Builder builder) { this.logs = builder.logs; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeTaskErrorLogResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return logs */ public java.util.List<Logs> getLogs() { return this.logs; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<Logs> logs; private String requestId; private Builder() { } private Builder(DescribeTaskErrorLogResponseBody model) { this.logs = model.logs; this.requestId = model.requestId; } /** * <p>An array that consists of the error logs.</p> */ public Builder logs(java.util.List<Logs> logs) { this.logs = logs; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>F929E952-EBFC-56C3-BD35-BF8B59024C69</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeTaskErrorLogResponseBody build() { return new DescribeTaskErrorLogResponseBody(this); } } /** * * {@link DescribeTaskErrorLogResponseBody} extends {@link TeaModel} * * <p>DescribeTaskErrorLogResponseBody</p> */ public static class Logs extends TeaModel { @com.aliyun.core.annotation.NameInMap("Text") private String text; private Logs(Builder builder) { this.text = builder.text; } public static Builder builder() { return new Builder(); } public static Logs create() { return builder().build(); } /** * @return text */ public String getText() { return this.text; } public static final class Builder { private String text; private Builder() { } private Builder(Logs model) { this.text = model.text; } /** * <p>The text content of the log.</p> * * <strong>example:</strong> * <p>mv: cannot move &quot;CentOS-Base.repo&quot; to &quot;CentOS-Base.repo.backup&quot;: Permission denied</p> */ public Builder text(String text) { this.text = text; return this; } public Logs build() { return new Logs(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/DescribeTotalStatisticsRequest.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 DescribeTotalStatisticsRequest} extends {@link RequestModel} * * <p>DescribeTotalStatisticsRequest</p> */ public class DescribeTotalStatisticsRequest 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; private DescribeTotalStatisticsRequest(Builder builder) { super(builder); this.from = builder.from; this.groupId = builder.groupId; this.remark = builder.remark; } public static Builder builder() { return new Builder(); } public static DescribeTotalStatisticsRequest 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; } public static final class Builder extends Request.Builder<DescribeTotalStatisticsRequest, Builder> { private String from; private Long groupId; private String remark; private Builder() { super(); } private Builder(DescribeTotalStatisticsRequest request) { super(request); this.from = request.from; this.groupId = request.groupId; this.remark = request.remark; } /** * <p>The source of data. 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.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/130972.html">DescribeAllGroups</a> operation to query the IDs of asset groups.</p> * </blockquote> * * <strong>example:</strong> * <p>8076980</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>222.185.XX.XX</p> */ public Builder remark(String remark) { this.putQueryParameter("Remark", remark); this.remark = remark; return this; } @Override public DescribeTotalStatisticsRequest build() { return new DescribeTotalStatisticsRequest(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/DescribeTotalStatisticsResponse.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 DescribeTotalStatisticsResponse} extends {@link TeaModel} * * <p>DescribeTotalStatisticsResponse</p> */ public class DescribeTotalStatisticsResponse 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 DescribeTotalStatisticsResponseBody body; private DescribeTotalStatisticsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTotalStatisticsResponse 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 DescribeTotalStatisticsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeTotalStatisticsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeTotalStatisticsResponseBody body); @Override DescribeTotalStatisticsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeTotalStatisticsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeTotalStatisticsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTotalStatisticsResponse 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(DescribeTotalStatisticsResponseBody body) { this.body = body; return this; } @Override public DescribeTotalStatisticsResponse build() { return new DescribeTotalStatisticsResponse(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/DescribeTotalStatisticsResponseBody.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 DescribeTotalStatisticsResponseBody} extends {@link TeaModel} * * <p>DescribeTotalStatisticsResponseBody</p> */ public class DescribeTotalStatisticsResponseBody 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("HealthTotal") private Integer healthTotal; @com.aliyun.core.annotation.NameInMap("HealthdealedTotal") private Integer healthdealedTotal; @com.aliyun.core.annotation.NameInMap("HealthhighTotal") private Integer healthhighTotal; @com.aliyun.core.annotation.NameInMap("HealthlowTotal") private Integer healthlowTotal; @com.aliyun.core.annotation.NameInMap("HealthmediumTotal") private Integer healthmediumTotal; @com.aliyun.core.annotation.NameInMap("HealthseriousTotal") private Integer healthseriousTotal; @com.aliyun.core.annotation.NameInMap("Newsuspicious") private Integer newsuspicious; @com.aliyun.core.annotation.NameInMap("Online") private Boolean online; @com.aliyun.core.annotation.NameInMap("Patch") private Integer patch; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Suspicious") private Integer suspicious; @com.aliyun.core.annotation.NameInMap("SuspiciousTotal") private Integer suspiciousTotal; @com.aliyun.core.annotation.NameInMap("SuspiciousdealedTotal") private Integer suspiciousdealedTotal; @com.aliyun.core.annotation.NameInMap("SuspicioushighTotal") private Integer suspicioushighTotal; @com.aliyun.core.annotation.NameInMap("SuspiciouslowTotal") private Integer suspiciouslowTotal; @com.aliyun.core.annotation.NameInMap("SuspiciousmediumTotal") private Integer suspiciousmediumTotal; @com.aliyun.core.annotation.NameInMap("SuspiciousseriousTotal") private Integer suspiciousseriousTotal; @com.aliyun.core.annotation.NameInMap("Trojan") private Integer trojan; @com.aliyun.core.annotation.NameInMap("Vul") private Integer vul; @com.aliyun.core.annotation.NameInMap("VulAsapSum") private Integer vulAsapSum; @com.aliyun.core.annotation.NameInMap("VulDealedTotal") private Integer vulDealedTotal; @com.aliyun.core.annotation.NameInMap("VulLaterSum") private Integer vulLaterSum; @com.aliyun.core.annotation.NameInMap("VulNntfSum") private Integer vulNntfSum; @com.aliyun.core.annotation.NameInMap("VulTotal") private Integer vulTotal; private DescribeTotalStatisticsResponseBody(Builder builder) { this.account = builder.account; this.health = builder.health; this.healthTotal = builder.healthTotal; this.healthdealedTotal = builder.healthdealedTotal; this.healthhighTotal = builder.healthhighTotal; this.healthlowTotal = builder.healthlowTotal; this.healthmediumTotal = builder.healthmediumTotal; this.healthseriousTotal = builder.healthseriousTotal; this.newsuspicious = builder.newsuspicious; this.online = builder.online; this.patch = builder.patch; this.requestId = builder.requestId; this.suspicious = builder.suspicious; this.suspiciousTotal = builder.suspiciousTotal; this.suspiciousdealedTotal = builder.suspiciousdealedTotal; this.suspicioushighTotal = builder.suspicioushighTotal; this.suspiciouslowTotal = builder.suspiciouslowTotal; this.suspiciousmediumTotal = builder.suspiciousmediumTotal; this.suspiciousseriousTotal = builder.suspiciousseriousTotal; this.trojan = builder.trojan; this.vul = builder.vul; this.vulAsapSum = builder.vulAsapSum; this.vulDealedTotal = builder.vulDealedTotal; this.vulLaterSum = builder.vulLaterSum; this.vulNntfSum = builder.vulNntfSum; this.vulTotal = builder.vulTotal; } public static Builder builder() { return new Builder(); } public static DescribeTotalStatisticsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return account */ public Integer getAccount() { return this.account; } /** * @return health */ public Integer getHealth() { return this.health; } /** * @return healthTotal */ public Integer getHealthTotal() { return this.healthTotal; } /** * @return healthdealedTotal */ public Integer getHealthdealedTotal() { return this.healthdealedTotal; } /** * @return healthhighTotal */ public Integer getHealthhighTotal() { return this.healthhighTotal; } /** * @return healthlowTotal */ public Integer getHealthlowTotal() { return this.healthlowTotal; } /** * @return healthmediumTotal */ public Integer getHealthmediumTotal() { return this.healthmediumTotal; } /** * @return healthseriousTotal */ public Integer getHealthseriousTotal() { return this.healthseriousTotal; } /** * @return newsuspicious */ public Integer getNewsuspicious() { return this.newsuspicious; } /** * @return online */ public Boolean getOnline() { return this.online; } /** * @return patch */ public Integer getPatch() { return this.patch; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return suspicious */ public Integer getSuspicious() { return this.suspicious; } /** * @return suspiciousTotal */ public Integer getSuspiciousTotal() { return this.suspiciousTotal; } /** * @return suspiciousdealedTotal */ public Integer getSuspiciousdealedTotal() { return this.suspiciousdealedTotal; } /** * @return suspicioushighTotal */ public Integer getSuspicioushighTotal() { return this.suspicioushighTotal; } /** * @return suspiciouslowTotal */ public Integer getSuspiciouslowTotal() { return this.suspiciouslowTotal; } /** * @return suspiciousmediumTotal */ public Integer getSuspiciousmediumTotal() { return this.suspiciousmediumTotal; } /** * @return suspiciousseriousTotal */ public Integer getSuspiciousseriousTotal() { return this.suspiciousseriousTotal; } /** * @return trojan */ public Integer getTrojan() { return this.trojan; } /** * @return vul */ public Integer getVul() { return this.vul; } /** * @return vulAsapSum */ public Integer getVulAsapSum() { return this.vulAsapSum; } /** * @return vulDealedTotal */ public Integer getVulDealedTotal() { return this.vulDealedTotal; } /** * @return vulLaterSum */ public Integer getVulLaterSum() { return this.vulLaterSum; } /** * @return vulNntfSum */ public Integer getVulNntfSum() { return this.vulNntfSum; } /** * @return vulTotal */ public Integer getVulTotal() { return this.vulTotal; } public static final class Builder { private Integer account; private Integer health; private Integer healthTotal; private Integer healthdealedTotal; private Integer healthhighTotal; private Integer healthlowTotal; private Integer healthmediumTotal; private Integer healthseriousTotal; private Integer newsuspicious; private Boolean online; private Integer patch; private String requestId; private Integer suspicious; private Integer suspiciousTotal; private Integer suspiciousdealedTotal; private Integer suspicioushighTotal; private Integer suspiciouslowTotal; private Integer suspiciousmediumTotal; private Integer suspiciousseriousTotal; private Integer trojan; private Integer vul; private Integer vulAsapSum; private Integer vulDealedTotal; private Integer vulLaterSum; private Integer vulNntfSum; private Integer vulTotal; private Builder() { } private Builder(DescribeTotalStatisticsResponseBody model) { this.account = model.account; this.health = model.health; this.healthTotal = model.healthTotal; this.healthdealedTotal = model.healthdealedTotal; this.healthhighTotal = model.healthhighTotal; this.healthlowTotal = model.healthlowTotal; this.healthmediumTotal = model.healthmediumTotal; this.healthseriousTotal = model.healthseriousTotal; this.newsuspicious = model.newsuspicious; this.online = model.online; this.patch = model.patch; this.requestId = model.requestId; this.suspicious = model.suspicious; this.suspiciousTotal = model.suspiciousTotal; this.suspiciousdealedTotal = model.suspiciousdealedTotal; this.suspicioushighTotal = model.suspicioushighTotal; this.suspiciouslowTotal = model.suspiciouslowTotal; this.suspiciousmediumTotal = model.suspiciousmediumTotal; this.suspiciousseriousTotal = model.suspiciousseriousTotal; this.trojan = model.trojan; this.vul = model.vul; this.vulAsapSum = model.vulAsapSum; this.vulDealedTotal = model.vulDealedTotal; this.vulLaterSum = model.vulLaterSum; this.vulNntfSum = model.vulNntfSum; this.vulTotal = model.vulTotal; } /** * <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>0</p> */ public Builder health(Integer health) { this.health = health; return this; } /** * <p>The total number of baseline risks.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder healthTotal(Integer healthTotal) { this.healthTotal = healthTotal; return this; } /** * <p>The total number of fixed baseline risk items. This parameter is deprecated.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder healthdealedTotal(Integer healthdealedTotal) { this.healthdealedTotal = healthdealedTotal; return this; } /** * <p>The number of baseline risk items whose severity is high.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder healthhighTotal(Integer healthhighTotal) { this.healthhighTotal = healthhighTotal; return this; } /** * <p>The number of baseline risk items whose severity is low.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder healthlowTotal(Integer healthlowTotal) { this.healthlowTotal = healthlowTotal; return this; } /** * <p>The number of baseline risk items whose severity is medium.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder healthmediumTotal(Integer healthmediumTotal) { this.healthmediumTotal = healthmediumTotal; return this; } /** * <p>The number of baseline risk items whose severity is urgent. This parameter is deprecated.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder healthseriousTotal(Integer healthseriousTotal) { this.healthseriousTotal = healthseriousTotal; return this; } /** * <p>The number of alerts that are generated by Server Guard or Security Center.</p> * <blockquote> * </blockquote> * <blockquote> * <ul> * <li>If you set the <strong>Type</strong> parameter to <strong>sas</strong>, this parameter indicates the number of alerts that are generated by Security Center.</li> * </ul> * </blockquote> * <blockquote> * <ul> * <li>If you set the <strong>Type</strong> parameter to <strong>aqs</strong>, this parameter indicates the number of alerts that are generated by Server Guard.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>0</p> */ public Builder newsuspicious(Integer newsuspicious) { this.newsuspicious = newsuspicious; return this; } /** * <p>Indicates whether the agent is online. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder online(Boolean online) { this.online = online; return this; } /** * <p>The number of Web-CMS vulnerabilities.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder patch(Integer patch) { this.patch = patch; 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; } /** * <p>The number of alerts that are generated by Server Guard.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder suspicious(Integer suspicious) { this.suspicious = suspicious; return this; } /** * <p>This parameter is deprecated.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder suspiciousTotal(Integer suspiciousTotal) { this.suspiciousTotal = suspiciousTotal; return this; } /** * <p>The number of handled alerts.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder suspiciousdealedTotal(Integer suspiciousdealedTotal) { this.suspiciousdealedTotal = suspiciousdealedTotal; return this; } /** * <p>This parameter is deprecated. This parameter is deprecated.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder suspicioushighTotal(Integer suspicioushighTotal) { this.suspicioushighTotal = suspicioushighTotal; return this; } /** * <p>The number of alerts whose risk level is reminder.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder suspiciouslowTotal(Integer suspiciouslowTotal) { this.suspiciouslowTotal = suspiciouslowTotal; return this; } /** * <p>The number of alerts whose risk level is suspicious.</p> * * <strong>example:</strong> * <p>28</p> */ public Builder suspiciousmediumTotal(Integer suspiciousmediumTotal) { this.suspiciousmediumTotal = suspiciousmediumTotal; return this; } /** * <p>The number of alerts whose risk level is urgent.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder suspiciousseriousTotal(Integer suspiciousseriousTotal) { this.suspiciousseriousTotal = suspiciousseriousTotal; return this; } /** * <p>The number of webshell alerts.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder trojan(Integer trojan) { this.trojan = trojan; return this; } /** * <p>The number of unfixed vulnerabilities.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder vul(Integer vul) { this.vul = vul; return this; } /** * <p>The number of vulnerabilities whose severity level is high.</p> * * <strong>example:</strong> * <p>16</p> */ public Builder vulAsapSum(Integer vulAsapSum) { this.vulAsapSum = vulAsapSum; return this; } /** * <p>The total number of fixed vulnerabilities.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder vulDealedTotal(Integer vulDealedTotal) { this.vulDealedTotal = vulDealedTotal; return this; } /** * <p>The number of vulnerabilities whose severity level is medium.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder vulLaterSum(Integer vulLaterSum) { this.vulLaterSum = vulLaterSum; return this; } /** * <p>The number of unfixed vulnerabilities whose severity level is low.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder vulNntfSum(Integer vulNntfSum) { this.vulNntfSum = vulNntfSum; return this; } /** * <p>The total number of vulnerabilities.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder vulTotal(Integer vulTotal) { this.vulTotal = vulTotal; return this; } public DescribeTotalStatisticsResponseBody build() { return new DescribeTotalStatisticsResponseBody(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/DescribeTraceInfoDetailRequest.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 DescribeTraceInfoDetailRequest} extends {@link RequestModel} * * <p>DescribeTraceInfoDetailRequest</p> */ public class DescribeTraceInfoDetailRequest extends Request { @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("IncidentTime") private Long incidentTime; @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("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuid") @com.aliyun.core.annotation.Validation(required = true) private String uuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VertexId") @com.aliyun.core.annotation.Validation(required = true) private String vertexId; private DescribeTraceInfoDetailRequest(Builder builder) { super(builder); this.from = builder.from; this.incidentTime = builder.incidentTime; this.lang = builder.lang; this.sourceIp = builder.sourceIp; this.type = builder.type; this.uuid = builder.uuid; this.vertexId = builder.vertexId; } public static Builder builder() { return new Builder(); } public static DescribeTraceInfoDetailRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return from */ public String getFrom() { return this.from; } /** * @return incidentTime */ public Long getIncidentTime() { return this.incidentTime; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } /** * @return type */ public String getType() { return this.type; } /** * @return uuid */ public String getUuid() { return this.uuid; } /** * @return vertexId */ public String getVertexId() { return this.vertexId; } public static final class Builder extends Request.Builder<DescribeTraceInfoDetailRequest, Builder> { private String from; private Long incidentTime; private String lang; private String sourceIp; private String type; private String uuid; private String vertexId; private Builder() { super(); } private Builder(DescribeTraceInfoDetailRequest request) { super(request); this.from = request.from; this.incidentTime = request.incidentTime; this.lang = request.lang; this.sourceIp = request.sourceIp; this.type = request.type; this.uuid = request.uuid; this.vertexId = request.vertexId; } /** * <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 timestamp of the detection. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1670555392000</p> */ public Builder incidentTime(Long incidentTime) { this.putQueryParameter("IncidentTime", incidentTime); this.incidentTime = incidentTime; 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 source IP address of the request. The value of this parameter is specified by the system.</p> * * <strong>example:</strong> * <p>127.0.0.1</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } /** * <p>The type of the vertex. Set the value to <strong>SAS_INCIDENT</strong>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>SAS_INCIDENT</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } /** * <p>The UUID of the server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1627f2d7-aaa2-4ed1-b07a-xxxxxxxxxxxxxx</p> */ public Builder uuid(String uuid) { this.putQueryParameter("Uuid", uuid); this.uuid = uuid; return this; } /** * <p>The ID of the vertex. You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to query the ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cce1d28dxxxxxxxxxxxxxxxx</p> */ public Builder vertexId(String vertexId) { this.putQueryParameter("VertexId", vertexId); this.vertexId = vertexId; return this; } @Override public DescribeTraceInfoDetailRequest build() { return new DescribeTraceInfoDetailRequest(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/DescribeTraceInfoDetailResponse.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 DescribeTraceInfoDetailResponse} extends {@link TeaModel} * * <p>DescribeTraceInfoDetailResponse</p> */ public class DescribeTraceInfoDetailResponse 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 DescribeTraceInfoDetailResponseBody body; private DescribeTraceInfoDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTraceInfoDetailResponse 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 DescribeTraceInfoDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeTraceInfoDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeTraceInfoDetailResponseBody body); @Override DescribeTraceInfoDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeTraceInfoDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeTraceInfoDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTraceInfoDetailResponse 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(DescribeTraceInfoDetailResponseBody body) { this.body = body; return this; } @Override public DescribeTraceInfoDetailResponse build() { return new DescribeTraceInfoDetailResponse(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/DescribeTraceInfoDetailResponseBody.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 DescribeTraceInfoDetailResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoDetailResponseBody</p> */ public class DescribeTraceInfoDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; @com.aliyun.core.annotation.NameInMap("TraceInfoDetail") private TraceInfoDetail traceInfoDetail; private DescribeTraceInfoDetailResponseBody(Builder builder) { this.requestId = builder.requestId; this.success = builder.success; this.traceInfoDetail = builder.traceInfoDetail; } public static Builder builder() { return new Builder(); } public static DescribeTraceInfoDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } /** * @return traceInfoDetail */ public TraceInfoDetail getTraceInfoDetail() { return this.traceInfoDetail; } public static final class Builder { private String requestId; private Boolean success; private TraceInfoDetail traceInfoDetail; private Builder() { } private Builder(DescribeTraceInfoDetailResponseBody model) { this.requestId = model.requestId; this.success = model.success; this.traceInfoDetail = model.traceInfoDetail; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>24A20733-10A0-4AF6-BE6B-XXXXXXXXX</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong>: The request was successful.</li> * <li><strong>false</strong>: The request failed.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } /** * <p>The details of the tracing diagram.</p> */ public Builder traceInfoDetail(TraceInfoDetail traceInfoDetail) { this.traceInfoDetail = traceInfoDetail; return this; } public DescribeTraceInfoDetailResponseBody build() { return new DescribeTraceInfoDetailResponseBody(this); } } /** * * {@link DescribeTraceInfoDetailResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoDetailResponseBody</p> */ public static class EdgeList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("EndId") private String endId; @com.aliyun.core.annotation.NameInMap("StartId") private String startId; @com.aliyun.core.annotation.NameInMap("Time") private String time; @com.aliyun.core.annotation.NameInMap("Type") private String type; private EdgeList(Builder builder) { this.count = builder.count; this.endId = builder.endId; this.startId = builder.startId; this.time = builder.time; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static EdgeList create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return endId */ public String getEndId() { return this.endId; } /** * @return startId */ public String getStartId() { return this.startId; } /** * @return time */ public String getTime() { return this.time; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private Integer count; private String endId; private String startId; private String time; private String type; private Builder() { } private Builder(EdgeList model) { this.count = model.count; this.endId = model.endId; this.startId = model.startId; this.time = model.time; this.type = model.type; } /** * <p>The number of times.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The ending vertex ID of the edge of the tracing diagram.</p> * * <strong>example:</strong> * <p>a1d1fa39e5345dcef3f9712172cxxxxx</p> */ public Builder endId(String endId) { this.endId = endId; return this; } /** * <p>The starting vertex ID of the edge of the tracing diagram.</p> * * <strong>example:</strong> * <p>02b4bf933c8e3bb8b9465eee502xxxxx</p> */ public Builder startId(String startId) { this.startId = startId; return this; } /** * <p>The point in time.</p> * * <strong>example:</strong> * <p>2022-12-21 10:24:42</p> */ public Builder time(String time) { this.time = time; return this; } /** * <p>The type of the edge of the tracing diagram.</p> * * <strong>example:</strong> * <p>trigger_file_alert</p> */ public Builder type(String type) { this.type = type; return this; } public EdgeList build() { return new EdgeList(this); } } } /** * * {@link DescribeTraceInfoDetailResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoDetailResponseBody</p> */ public static class EntityTypeList extends TeaModel { @com.aliyun.core.annotation.NameInMap("DbId") private Integer dbId; @com.aliyun.core.annotation.NameInMap("DisplayColor") private String displayColor; @com.aliyun.core.annotation.NameInMap("DisplayIcon") private String displayIcon; @com.aliyun.core.annotation.NameInMap("DisplayTemplate") private String displayTemplate; @com.aliyun.core.annotation.NameInMap("GmtCreate") private Long gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtModified") private Long gmtModified; @com.aliyun.core.annotation.NameInMap("Id") private String id; @com.aliyun.core.annotation.NameInMap("Limit") private Integer limit; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Namespace") private String namespace; @com.aliyun.core.annotation.NameInMap("Offset") private Integer offset; private EntityTypeList(Builder builder) { this.dbId = builder.dbId; this.displayColor = builder.displayColor; this.displayIcon = builder.displayIcon; this.displayTemplate = builder.displayTemplate; this.gmtCreate = builder.gmtCreate; this.gmtModified = builder.gmtModified; this.id = builder.id; this.limit = builder.limit; this.name = builder.name; this.namespace = builder.namespace; this.offset = builder.offset; } public static Builder builder() { return new Builder(); } public static EntityTypeList create() { return builder().build(); } /** * @return dbId */ public Integer getDbId() { return this.dbId; } /** * @return displayColor */ public String getDisplayColor() { return this.displayColor; } /** * @return displayIcon */ public String getDisplayIcon() { return this.displayIcon; } /** * @return displayTemplate */ public String getDisplayTemplate() { return this.displayTemplate; } /** * @return gmtCreate */ public Long getGmtCreate() { return this.gmtCreate; } /** * @return gmtModified */ public Long getGmtModified() { return this.gmtModified; } /** * @return id */ public String getId() { return this.id; } /** * @return limit */ public Integer getLimit() { return this.limit; } /** * @return name */ public String getName() { return this.name; } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return offset */ public Integer getOffset() { return this.offset; } public static final class Builder { private Integer dbId; private String displayColor; private String displayIcon; private String displayTemplate; private Long gmtCreate; private Long gmtModified; private String id; private Integer limit; private String name; private String namespace; private Integer offset; private Builder() { } private Builder(EntityTypeList model) { this.dbId = model.dbId; this.displayColor = model.displayColor; this.displayIcon = model.displayIcon; this.displayTemplate = model.displayTemplate; this.gmtCreate = model.gmtCreate; this.gmtModified = model.gmtModified; this.id = model.id; this.limit = model.limit; this.name = model.name; this.namespace = model.namespace; this.offset = model.offset; } /** * <p>This parameter is deprecated.</p> * * <strong>example:</strong> * <p>Deprecated</p> */ public Builder dbId(Integer dbId) { this.dbId = dbId; return this; } /** * <p>The rendering color of the vertex.</p> * * <strong>example:</strong> * <p>#fff</p> */ public Builder displayColor(String displayColor) { this.displayColor = displayColor; return this; } /** * <p>The icon style of the vertex.</p> * * <strong>example:</strong> * <p><a href="https://img.alicdn.com/tfs/TB176P5OgDqK1RjSZSyXXaxEVXa-49-48.png">https://img.alicdn.com/tfs/TB176P5OgDqK1RjSZSyXXaxEVXa-49-48.png</a></p> */ public Builder displayIcon(String displayIcon) { this.displayIcon = displayIcon; return this; } /** * <p>This parameter is deprecated.</p> * * <strong>example:</strong> * <p>[{&quot;name&quot;:&quot;${logtime}&quot;,&quot;value&quot;:&quot;$!{time}&quot;}]</p> */ public Builder displayTemplate(String displayTemplate) { this.displayTemplate = displayTemplate; return this; } /** * <p>The timestamp when the vertex was created.</p> * * <strong>example:</strong> * <p>2022-10-09T11:47Z</p> */ public Builder gmtCreate(Long gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The time when the vertex was last modified.</p> * * <strong>example:</strong> * <p>2022-10-09T11:47Z</p> */ public Builder gmtModified(Long gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>The ID of the vertex type.</p> * * <strong>example:</strong> * <p>Alert</p> */ public Builder id(String id) { this.id = id; return this; } /** * <p>This parameter is deprecated.</p> * * <strong>example:</strong> * <p>Deprecated</p> */ public Builder limit(Integer limit) { this.limit = limit; return this; } /** * <p>The name of the vertex type.</p> * * <strong>example:</strong> * <p>Alert</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The namespace.</p> * * <strong>example:</strong> * <ul> * <li></li> * </ul> */ public Builder namespace(String namespace) { this.namespace = namespace; return this; } /** * <p>This parameter is deprecated.</p> * * <strong>example:</strong> * <p>Deprecated</p> */ public Builder offset(Integer offset) { this.offset = offset; return this; } public EntityTypeList build() { return new EntityTypeList(this); } } } /** * * {@link DescribeTraceInfoDetailResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoDetailResponseBody</p> */ public static class RelationTypeList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Directed") private Integer directed; @com.aliyun.core.annotation.NameInMap("DisplayColor") private String displayColor; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RelationTypeId") private String relationTypeId; @com.aliyun.core.annotation.NameInMap("ShowType") private String showType; private RelationTypeList(Builder builder) { this.directed = builder.directed; this.displayColor = builder.displayColor; this.name = builder.name; this.relationTypeId = builder.relationTypeId; this.showType = builder.showType; } public static Builder builder() { return new Builder(); } public static RelationTypeList create() { return builder().build(); } /** * @return directed */ public Integer getDirected() { return this.directed; } /** * @return displayColor */ public String getDisplayColor() { return this.displayColor; } /** * @return name */ public String getName() { return this.name; } /** * @return relationTypeId */ public String getRelationTypeId() { return this.relationTypeId; } /** * @return showType */ public String getShowType() { return this.showType; } public static final class Builder { private Integer directed; private String displayColor; private String name; private String relationTypeId; private String showType; private Builder() { } private Builder(RelationTypeList model) { this.directed = model.directed; this.displayColor = model.displayColor; this.name = model.name; this.relationTypeId = model.relationTypeId; this.showType = model.showType; } /** * <p>Indicates whether the edge is a directional edge. Valid values:</p> * <ul> * <li><strong>1</strong>: yes</li> * <li><strong>0</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder directed(Integer directed) { this.directed = directed; return this; } /** * <p>The rendering color of the edge.</p> * * <strong>example:</strong> * <p>#fff</p> */ public Builder displayColor(String displayColor) { this.displayColor = displayColor; return this; } /** * <p>The name of the edge type.</p> * * <strong>example:</strong> * <p>file</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The ID of the edge type.</p> * * <strong>example:</strong> * <p>netflow_to_process</p> */ public Builder relationTypeId(String relationTypeId) { this.relationTypeId = relationTypeId; return this; } /** * <p>This parameter is deprecated.</p> * * <strong>example:</strong> * <p>Deprecated</p> */ public Builder showType(String showType) { this.showType = showType; return this; } public RelationTypeList build() { return new RelationTypeList(this); } } } /** * * {@link DescribeTraceInfoDetailResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoDetailResponseBody</p> */ public static class NeighborList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("HasMore") private Boolean hasMore; @com.aliyun.core.annotation.NameInMap("Type") private String type; private NeighborList(Builder builder) { this.count = builder.count; this.hasMore = builder.hasMore; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static NeighborList create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return hasMore */ public Boolean getHasMore() { return this.hasMore; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private Integer count; private Boolean hasMore; private String type; private Builder() { } private Builder(NeighborList model) { this.count = model.count; this.hasMore = model.hasMore; this.type = model.type; } /** * <p>The number of neighbor nodes.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>Indicates whether one more page is returned.</p> * * <strong>example:</strong> * <p>False</p> */ public Builder hasMore(Boolean hasMore) { this.hasMore = hasMore; return this; } /** * <p>The type of the neighbor node. The value is fixed as <strong>alert</strong>.</p> * * <strong>example:</strong> * <p>alert</p> */ public Builder type(String type) { this.type = type; return this; } public NeighborList build() { return new NeighborList(this); } } } /** * * {@link DescribeTraceInfoDetailResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoDetailResponseBody</p> */ public static class VertexList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("Id") private String id; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("NeighborList") private java.util.List<NeighborList> neighborList; @com.aliyun.core.annotation.NameInMap("Time") private String time; @com.aliyun.core.annotation.NameInMap("Type") private String type; private VertexList(Builder builder) { this.count = builder.count; this.id = builder.id; this.name = builder.name; this.neighborList = builder.neighborList; this.time = builder.time; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static VertexList create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return id */ public String getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return neighborList */ public java.util.List<NeighborList> getNeighborList() { return this.neighborList; } /** * @return time */ public String getTime() { return this.time; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private Integer count; private String id; private String name; private java.util.List<NeighborList> neighborList; private String time; private String type; private Builder() { } private Builder(VertexList model) { this.count = model.count; this.id = model.id; this.name = model.name; this.neighborList = model.neighborList; this.time = model.time; this.type = model.type; } /** * <p>The number of times.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The ID of the vertex.</p> * * <strong>example:</strong> * <p>a1d1fa39e5345dcef3f9712172xxxxxx</p> */ public Builder id(String id) { this.id = id; return this; } /** * <p>The name of the entity represented by the vertex.</p> * * <strong>example:</strong> * <p>/usr/local/tomcat</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>An array that consists of the neighbor nodes.</p> */ public Builder neighborList(java.util.List<NeighborList> neighborList) { this.neighborList = neighborList; return this; } /** * <p>The point in time.</p> * * <strong>example:</strong> * <p>2022-12-21 10:24:42</p> */ public Builder time(String time) { this.time = time; return this; } /** * <p>The type of the entity represented by the vertex.</p> * * <strong>example:</strong> * <p>file_path</p> */ public Builder type(String type) { this.type = type; return this; } public VertexList build() { return new VertexList(this); } } } /** * * {@link DescribeTraceInfoDetailResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoDetailResponseBody</p> */ public static class TraceInfoDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("EdgeList") private java.util.List<EdgeList> edgeList; @com.aliyun.core.annotation.NameInMap("EntityTypeList") private java.util.List<EntityTypeList> entityTypeList; @com.aliyun.core.annotation.NameInMap("RelationTypeList") private java.util.List<RelationTypeList> relationTypeList; @com.aliyun.core.annotation.NameInMap("VertexList") private java.util.List<VertexList> vertexList; private TraceInfoDetail(Builder builder) { this.edgeList = builder.edgeList; this.entityTypeList = builder.entityTypeList; this.relationTypeList = builder.relationTypeList; this.vertexList = builder.vertexList; } public static Builder builder() { return new Builder(); } public static TraceInfoDetail create() { return builder().build(); } /** * @return edgeList */ public java.util.List<EdgeList> getEdgeList() { return this.edgeList; } /** * @return entityTypeList */ public java.util.List<EntityTypeList> getEntityTypeList() { return this.entityTypeList; } /** * @return relationTypeList */ public java.util.List<RelationTypeList> getRelationTypeList() { return this.relationTypeList; } /** * @return vertexList */ public java.util.List<VertexList> getVertexList() { return this.vertexList; } public static final class Builder { private java.util.List<EdgeList> edgeList; private java.util.List<EntityTypeList> entityTypeList; private java.util.List<RelationTypeList> relationTypeList; private java.util.List<VertexList> vertexList; private Builder() { } private Builder(TraceInfoDetail model) { this.edgeList = model.edgeList; this.entityTypeList = model.entityTypeList; this.relationTypeList = model.relationTypeList; this.vertexList = model.vertexList; } /** * <p>An array that consists of the edges of the tracing diagram.</p> */ public Builder edgeList(java.util.List<EdgeList> edgeList) { this.edgeList = edgeList; return this; } /** * <p>An array that consists of the metadata configurations of the vertex type.</p> */ public Builder entityTypeList(java.util.List<EntityTypeList> entityTypeList) { this.entityTypeList = entityTypeList; return this; } /** * <p>An array that consists of the metadata configurations of the edge type.</p> */ public Builder relationTypeList(java.util.List<RelationTypeList> relationTypeList) { this.relationTypeList = relationTypeList; return this; } /** * <p>An array that consists of all vertexes of the tracing diagram.</p> */ public Builder vertexList(java.util.List<VertexList> vertexList) { this.vertexList = vertexList; return this; } public TraceInfoDetail build() { return new TraceInfoDetail(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/DescribeTraceInfoNodeRequest.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 DescribeTraceInfoNodeRequest} extends {@link RequestModel} * * <p>DescribeTraceInfoNodeRequest</p> */ public class DescribeTraceInfoNodeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventName") private String eventName; @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("IncidentTime") private Long incidentTime; @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("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuid") @com.aliyun.core.annotation.Validation(required = true) private String uuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VertexId") @com.aliyun.core.annotation.Validation(required = true) private String vertexId; private DescribeTraceInfoNodeRequest(Builder builder) { super(builder); this.eventName = builder.eventName; this.from = builder.from; this.incidentTime = builder.incidentTime; this.lang = builder.lang; this.sourceIp = builder.sourceIp; this.type = builder.type; this.uuid = builder.uuid; this.vertexId = builder.vertexId; } public static Builder builder() { return new Builder(); } public static DescribeTraceInfoNodeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return eventName */ public String getEventName() { return this.eventName; } /** * @return from */ public String getFrom() { return this.from; } /** * @return incidentTime */ public Long getIncidentTime() { return this.incidentTime; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } /** * @return type */ public String getType() { return this.type; } /** * @return uuid */ public String getUuid() { return this.uuid; } /** * @return vertexId */ public String getVertexId() { return this.vertexId; } public static final class Builder extends Request.Builder<DescribeTraceInfoNodeRequest, Builder> { private String eventName; private String from; private Long incidentTime; private String lang; private String sourceIp; private String type; private String uuid; private String vertexId; private Builder() { super(); } private Builder(DescribeTraceInfoNodeRequest request) { super(request); this.eventName = request.eventName; this.from = request.from; this.incidentTime = request.incidentTime; this.lang = request.lang; this.sourceIp = request.sourceIp; this.type = request.type; this.uuid = request.uuid; this.vertexId = request.vertexId; } /** * <p>The name of the alert event.</p> * <blockquote> * <p>You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to query the names of alerts events.</p> * </blockquote> * * <strong>example:</strong> * <p>WEBSHELL</p> */ public Builder eventName(String eventName) { this.putQueryParameter("EventName", eventName); this.eventName = eventName; return this; } /** * <p>The ID of the request source. Set the value to sas.</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 time when the alert event was first detected.</p> * * <strong>example:</strong> * <p>1635978934000</p> */ public Builder incidentTime(Long incidentTime) { this.putQueryParameter("IncidentTime", incidentTime); this.incidentTime = incidentTime; 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. The value of this parameter is specified by the system.</p> * * <strong>example:</strong> * <p>127.0.XX.XX</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } /** * <p>The type of the vertex. You can call the <a href="~~DescribeTraceInfoDetail~~">DescribeTraceInfoDetail</a> operation to query the types of vertexes.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>SAS_ASSET</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } /** * <p>The UUID of the server. You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to query the UUIDs of servers.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>6f346617-eef9-45e6-b6d1-946xxxxxxxx</p> */ public Builder uuid(String uuid) { this.putQueryParameter("Uuid", uuid); this.uuid = uuid; return this; } /** * <p>The ID of the vertex.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>03da4e2350a3eb50cd25a18cexxxxxxx</p> */ public Builder vertexId(String vertexId) { this.putQueryParameter("VertexId", vertexId); this.vertexId = vertexId; return this; } @Override public DescribeTraceInfoNodeRequest build() { return new DescribeTraceInfoNodeRequest(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/DescribeTraceInfoNodeResponse.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 DescribeTraceInfoNodeResponse} extends {@link TeaModel} * * <p>DescribeTraceInfoNodeResponse</p> */ public class DescribeTraceInfoNodeResponse 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 DescribeTraceInfoNodeResponseBody body; private DescribeTraceInfoNodeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTraceInfoNodeResponse 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 DescribeTraceInfoNodeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeTraceInfoNodeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeTraceInfoNodeResponseBody body); @Override DescribeTraceInfoNodeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeTraceInfoNodeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeTraceInfoNodeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTraceInfoNodeResponse 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(DescribeTraceInfoNodeResponseBody body) { this.body = body; return this; } @Override public DescribeTraceInfoNodeResponse build() { return new DescribeTraceInfoNodeResponse(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/DescribeTraceInfoNodeResponseBody.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 DescribeTraceInfoNodeResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoNodeResponseBody</p> */ public class DescribeTraceInfoNodeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Node") private Node node; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeTraceInfoNodeResponseBody(Builder builder) { this.node = builder.node; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeTraceInfoNodeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return node */ public Node getNode() { return this.node; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Node node; private String requestId; private Builder() { } private Builder(DescribeTraceInfoNodeResponseBody model) { this.node = model.node; this.requestId = model.requestId; } /** * <p>The details about the node.</p> */ public Builder node(Node node) { this.node = node; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>F35F45B0-5D6B-4238-BE02-A62DXXXXXXXX</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeTraceInfoNodeResponseBody build() { return new DescribeTraceInfoNodeResponseBody(this); } } /** * * {@link DescribeTraceInfoNodeResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoNodeResponseBody</p> */ public static class PropertyList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Value") private String value; private PropertyList(Builder builder) { this.name = builder.name; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static PropertyList create() { return builder().build(); } /** * @return name */ public String getName() { return this.name; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String name; private String value; private Builder() { } private Builder(PropertyList model) { this.name = model.name; this.value = model.value; } /** * <p>The name of the property.</p> * * <strong>example:</strong> * <p>Incident</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The value of the property.</p> * * <strong>example:</strong> * <p>Alert</p> */ public Builder value(String value) { this.value = value; return this; } public PropertyList build() { return new PropertyList(this); } } } /** * * {@link DescribeTraceInfoNodeResponseBody} extends {@link TeaModel} * * <p>DescribeTraceInfoNodeResponseBody</p> */ public static class Node extends TeaModel { @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("PropertyList") private java.util.List<PropertyList> propertyList; @com.aliyun.core.annotation.NameInMap("Type") private String type; private Node(Builder builder) { this.name = builder.name; this.propertyList = builder.propertyList; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static Node create() { return builder().build(); } /** * @return name */ public String getName() { return this.name; } /** * @return propertyList */ public java.util.List<PropertyList> getPropertyList() { return this.propertyList; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String name; private java.util.List<PropertyList> propertyList; private String type; private Builder() { } private Builder(Node model) { this.name = model.name; this.propertyList = model.propertyList; this.type = model.type; } /** * <p>The name of the node.</p> * * <strong>example:</strong> * <p>login</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>An array that consists of the properties of the node.</p> */ public Builder propertyList(java.util.List<PropertyList> propertyList) { this.propertyList = propertyList; return this; } /** * <p>The type of the node.</p> * * <strong>example:</strong> * <p>Alert</p> */ public Builder type(String type) { this.type = type; return this; } public Node build() { return new Node(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/DescribeUniBackupDatabaseRequest.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 DescribeUniBackupDatabaseRequest} extends {@link RequestModel} * * <p>DescribeUniBackupDatabaseRequest</p> */ public class DescribeUniBackupDatabaseRequest 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("DatabaseType") private String databaseType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueryType") private String queryType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UniRegionId") private String uniRegionId; private DescribeUniBackupDatabaseRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.databaseType = builder.databaseType; this.instanceName = builder.instanceName; this.pageSize = builder.pageSize; this.queryType = builder.queryType; this.uniRegionId = builder.uniRegionId; } public static Builder builder() { return new Builder(); } public static DescribeUniBackupDatabaseRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return databaseType */ public String getDatabaseType() { return this.databaseType; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return queryType */ public String getQueryType() { return this.queryType; } /** * @return uniRegionId */ public String getUniRegionId() { return this.uniRegionId; } public static final class Builder extends Request.Builder<DescribeUniBackupDatabaseRequest, Builder> { private Integer currentPage; private String databaseType; private String instanceName; private Integer pageSize; private String queryType; private String uniRegionId; private Builder() { super(); } private Builder(DescribeUniBackupDatabaseRequest request) { super(request); this.currentPage = request.currentPage; this.databaseType = request.databaseType; this.instanceName = request.instanceName; this.pageSize = request.pageSize; this.queryType = request.queryType; this.uniRegionId = request.uniRegionId; } /** * <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 type of the database. Valid values:</p> * <ul> * <li><strong>MYSQL</strong></li> * <li><strong>MSSQL</strong></li> * <li><strong>Oracle</strong></li> * </ul> * * <strong>example:</strong> * <p>MYSQL</p> */ public Builder databaseType(String databaseType) { this.putQueryParameter("DatabaseType", databaseType); this.databaseType = databaseType; return this; } /** * <p>The name of the Elastic Compute Service (ECS) instance.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder instanceName(String instanceName) { this.putQueryParameter("InstanceName", instanceName); this.instanceName = instanceName; return this; } /** * <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The condition that is used to query the database. Valid values:</p> * <ul> * <li><strong>create</strong>: newly created</li> * <li><strong>restore</strong>: restored</li> * </ul> * * <strong>example:</strong> * <p>create</p> */ public Builder queryType(String queryType) { this.putQueryParameter("QueryType", queryType); this.queryType = queryType; return this; } /** * <p>The region ID of the server that hosts the database.</p> * * <strong>example:</strong> * <p>cn-hongkong</p> */ public Builder uniRegionId(String uniRegionId) { this.putQueryParameter("UniRegionId", uniRegionId); this.uniRegionId = uniRegionId; return this; } @Override public DescribeUniBackupDatabaseRequest build() { return new DescribeUniBackupDatabaseRequest(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/DescribeUniBackupDatabaseResponse.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 DescribeUniBackupDatabaseResponse} extends {@link TeaModel} * * <p>DescribeUniBackupDatabaseResponse</p> */ public class DescribeUniBackupDatabaseResponse 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 DescribeUniBackupDatabaseResponseBody body; private DescribeUniBackupDatabaseResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeUniBackupDatabaseResponse 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 DescribeUniBackupDatabaseResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeUniBackupDatabaseResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeUniBackupDatabaseResponseBody body); @Override DescribeUniBackupDatabaseResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeUniBackupDatabaseResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeUniBackupDatabaseResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeUniBackupDatabaseResponse 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(DescribeUniBackupDatabaseResponseBody body) { this.body = body; return this; } @Override public DescribeUniBackupDatabaseResponse build() { return new DescribeUniBackupDatabaseResponse(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/DescribeUniBackupDatabaseResponseBody.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 DescribeUniBackupDatabaseResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupDatabaseResponseBody</p> */ public class DescribeUniBackupDatabaseResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DatabaseList") private java.util.List<DatabaseList> databaseList; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeUniBackupDatabaseResponseBody(Builder builder) { this.databaseList = builder.databaseList; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeUniBackupDatabaseResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return databaseList */ public java.util.List<DatabaseList> getDatabaseList() { return this.databaseList; } /** * @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<DatabaseList> databaseList; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeUniBackupDatabaseResponseBody model) { this.databaseList = model.databaseList; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>An array that consists of the information about the databases.</p> */ public Builder databaseList(java.util.List<DatabaseList> databaseList) { this.databaseList = databaseList; 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>09969D2C-4FAD-429E-BFBF-9A60DEF8****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeUniBackupDatabaseResponseBody build() { return new DescribeUniBackupDatabaseResponseBody(this); } } /** * * {@link DescribeUniBackupDatabaseResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupDatabaseResponseBody</p> */ public static class DatabaseList extends TeaModel { @com.aliyun.core.annotation.NameInMap("AgentStatus") private String agentStatus; @com.aliyun.core.annotation.NameInMap("CreatedByProduct") private String createdByProduct; @com.aliyun.core.annotation.NameInMap("DatabaseName") private String databaseName; @com.aliyun.core.annotation.NameInMap("DatabaseType") private String databaseType; @com.aliyun.core.annotation.NameInMap("DatabaseVersion") private String databaseVersion; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.NameInMap("InstanceUuid") private String instanceUuid; @com.aliyun.core.annotation.NameInMap("PolicyId") private Long policyId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private DatabaseList(Builder builder) { this.agentStatus = builder.agentStatus; this.createdByProduct = builder.createdByProduct; this.databaseName = builder.databaseName; this.databaseType = builder.databaseType; this.databaseVersion = builder.databaseVersion; this.instanceId = builder.instanceId; this.instanceName = builder.instanceName; this.instanceUuid = builder.instanceUuid; this.policyId = builder.policyId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DatabaseList create() { return builder().build(); } /** * @return agentStatus */ public String getAgentStatus() { return this.agentStatus; } /** * @return createdByProduct */ public String getCreatedByProduct() { return this.createdByProduct; } /** * @return databaseName */ public String getDatabaseName() { return this.databaseName; } /** * @return databaseType */ public String getDatabaseType() { return this.databaseType; } /** * @return databaseVersion */ public String getDatabaseVersion() { return this.databaseVersion; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return instanceUuid */ public String getInstanceUuid() { return this.instanceUuid; } /** * @return policyId */ public Long getPolicyId() { return this.policyId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String agentStatus; private String createdByProduct; private String databaseName; private String databaseType; private String databaseVersion; private String instanceId; private String instanceName; private String instanceUuid; private Long policyId; private String status; private Builder() { } private Builder(DatabaseList model) { this.agentStatus = model.agentStatus; this.createdByProduct = model.createdByProduct; this.databaseName = model.databaseName; this.databaseType = model.databaseType; this.databaseVersion = model.databaseVersion; this.instanceId = model.instanceId; this.instanceName = model.instanceName; this.instanceUuid = model.instanceUuid; this.policyId = model.policyId; this.status = model.status; } /** * <p>The status of the anti-ransomware agent. Valid values:</p> * <ul> * <li><strong>UNKNOWN</strong>: unknown</li> * <li><strong>INSTALLED</strong>: installed</li> * <li><strong>INSTALL_FAILED</strong>: installation failed</li> * <li><strong>UNINSTALL_FAILED</strong>: uninstallation failed</li> * </ul> * * <strong>example:</strong> * <p>INSTALLED</p> */ public Builder agentStatus(String agentStatus) { this.agentStatus = agentStatus; return this; } /** * <p>The service from which the database is created. Valid values:</p> * <ul> * <li><strong>HBR</strong>: HBR</li> * <li><strong>AEGIS</strong>: Security Center</li> * </ul> * * <strong>example:</strong> * <p>AEGIS</p> */ public Builder createdByProduct(String createdByProduct) { this.createdByProduct = createdByProduct; return this; } /** * <p>The name of the database.</p> * * <strong>example:</strong> * <p>apns_tt180</p> */ public Builder databaseName(String databaseName) { this.databaseName = databaseName; return this; } /** * <p>The type of the database. Valid values:</p> * <ul> * <li><strong>MYSQL</strong></li> * <li><strong>MSSQL</strong></li> * <li><strong>Oracle</strong></li> * </ul> * * <strong>example:</strong> * <p>MYSQL</p> */ public Builder databaseType(String databaseType) { this.databaseType = databaseType; return this; } /** * <p>The version of the database engine.</p> * * <strong>example:</strong> * <p>12.0.4100.1</p> */ public Builder databaseVersion(String databaseVersion) { this.databaseVersion = databaseVersion; return this; } /** * <p>The ID of the server.</p> * * <strong>example:</strong> * <p>i-bp15aho9hhftvmhw****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The name of the instance to which the database belongs.</p> * * <strong>example:</strong> * <p>sql-test-001</p> */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * <p>The UUID of the Hybrid Backup Recovery (HBR) agent that is used to back up the data of the database.</p> * * <strong>example:</strong> * <p>85878b284df911ec800000163e19****</p> */ public Builder instanceUuid(String instanceUuid) { this.instanceUuid = instanceUuid; return this; } /** * <p>The ID of the anti-ransomware policy.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder policyId(Long policyId) { this.policyId = policyId; return this; } /** * <p>The status of the ECS instance. Valid values:</p> * <ul> * <li><strong>Stopped</strong></li> * <li><strong>Running</strong></li> * </ul> * * <strong>example:</strong> * <p>Running</p> */ public Builder status(String status) { this.status = status; return this; } public DatabaseList build() { return new DatabaseList(this); } } } /** * * {@link DescribeUniBackupDatabaseResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupDatabaseResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>25</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/DescribeUniBackupPoliciesRequest.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 DescribeUniBackupPoliciesRequest} extends {@link RequestModel} * * <p>DescribeUniBackupPoliciesRequest</p> */ public class DescribeUniBackupPoliciesRequest 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("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PolicyName") private String policyName; private DescribeUniBackupPoliciesRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.policyName = builder.policyName; } public static Builder builder() { return new Builder(); } public static DescribeUniBackupPoliciesRequest 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 policyName */ public String getPolicyName() { return this.policyName; } public static final class Builder extends Request.Builder<DescribeUniBackupPoliciesRequest, Builder> { private Integer currentPage; private Integer pageSize; private String policyName; private Builder() { super(); } private Builder(DescribeUniBackupPoliciesRequest request) { super(request); this.currentPage = request.currentPage; this.pageSize = request.pageSize; this.policyName = request.policyName; } /** * <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 number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p>We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The name of the anti-ransomware policy.</p> * * <strong>example:</strong> * <p>auto_oracle_Hpm</p> */ public Builder policyName(String policyName) { this.putQueryParameter("PolicyName", policyName); this.policyName = policyName; return this; } @Override public DescribeUniBackupPoliciesRequest build() { return new DescribeUniBackupPoliciesRequest(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/DescribeUniBackupPoliciesResponse.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 DescribeUniBackupPoliciesResponse} extends {@link TeaModel} * * <p>DescribeUniBackupPoliciesResponse</p> */ public class DescribeUniBackupPoliciesResponse 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 DescribeUniBackupPoliciesResponseBody body; private DescribeUniBackupPoliciesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeUniBackupPoliciesResponse 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 DescribeUniBackupPoliciesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeUniBackupPoliciesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeUniBackupPoliciesResponseBody body); @Override DescribeUniBackupPoliciesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeUniBackupPoliciesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeUniBackupPoliciesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeUniBackupPoliciesResponse 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(DescribeUniBackupPoliciesResponseBody body) { this.body = body; return this; } @Override public DescribeUniBackupPoliciesResponse build() { return new DescribeUniBackupPoliciesResponse(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/DescribeUniBackupPoliciesResponseBody.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 DescribeUniBackupPoliciesResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupPoliciesResponseBody</p> */ public class DescribeUniBackupPoliciesResponseBody 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("UniBackupPolicies") private java.util.List<UniBackupPolicies> uniBackupPolicies; private DescribeUniBackupPoliciesResponseBody(Builder builder) { this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; this.uniBackupPolicies = builder.uniBackupPolicies; } public static Builder builder() { return new Builder(); } public static DescribeUniBackupPoliciesResponseBody 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 uniBackupPolicies */ public java.util.List<UniBackupPolicies> getUniBackupPolicies() { return this.uniBackupPolicies; } public static final class Builder { private PageInfo pageInfo; private String requestId; private java.util.List<UniBackupPolicies> uniBackupPolicies; private Builder() { } private Builder(DescribeUniBackupPoliciesResponseBody model) { this.pageInfo = model.pageInfo; this.requestId = model.requestId; this.uniBackupPolicies = model.uniBackupPolicies; } /** * <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-34DF12BR****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>An array that consists of the anti-ransomware policies.</p> */ public Builder uniBackupPolicies(java.util.List<UniBackupPolicies> uniBackupPolicies) { this.uniBackupPolicies = uniBackupPolicies; return this; } public DescribeUniBackupPoliciesResponseBody build() { return new DescribeUniBackupPoliciesResponseBody(this); } } /** * * {@link DescribeUniBackupPoliciesResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupPoliciesResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeUniBackupPoliciesResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupPoliciesResponseBody</p> */ public static class UniBackupPolicies extends TeaModel { @com.aliyun.core.annotation.NameInMap("AgentErrorMessage") private String agentErrorMessage; @com.aliyun.core.annotation.NameInMap("AgentStatus") private String agentStatus; @com.aliyun.core.annotation.NameInMap("DatabaseName") private String databaseName; @com.aliyun.core.annotation.NameInMap("DatabaseType") private String databaseType; @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("ErrorMessage") private String errorMessage; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.NameInMap("InstanceStatus") private String instanceStatus; @com.aliyun.core.annotation.NameInMap("InstanceUuid") private String instanceUuid; @com.aliyun.core.annotation.NameInMap("LatestBackResult") private String latestBackResult; @com.aliyun.core.annotation.NameInMap("LatestBackupTime") private String latestBackupTime; @com.aliyun.core.annotation.NameInMap("PlanStatus") private String planStatus; @com.aliyun.core.annotation.NameInMap("PolicyId") private Long policyId; @com.aliyun.core.annotation.NameInMap("PolicyName") private String policyName; @com.aliyun.core.annotation.NameInMap("PolicyStatus") private String policyStatus; @com.aliyun.core.annotation.NameInMap("UniRegionId") private String uniRegionId; private UniBackupPolicies(Builder builder) { this.agentErrorMessage = builder.agentErrorMessage; this.agentStatus = builder.agentStatus; this.databaseName = builder.databaseName; this.databaseType = builder.databaseType; this.errorCode = builder.errorCode; this.errorMessage = builder.errorMessage; this.instanceId = builder.instanceId; this.instanceName = builder.instanceName; this.instanceStatus = builder.instanceStatus; this.instanceUuid = builder.instanceUuid; this.latestBackResult = builder.latestBackResult; this.latestBackupTime = builder.latestBackupTime; this.planStatus = builder.planStatus; this.policyId = builder.policyId; this.policyName = builder.policyName; this.policyStatus = builder.policyStatus; this.uniRegionId = builder.uniRegionId; } public static Builder builder() { return new Builder(); } public static UniBackupPolicies create() { return builder().build(); } /** * @return agentErrorMessage */ public String getAgentErrorMessage() { return this.agentErrorMessage; } /** * @return agentStatus */ public String getAgentStatus() { return this.agentStatus; } /** * @return databaseName */ public String getDatabaseName() { return this.databaseName; } /** * @return databaseType */ public String getDatabaseType() { return this.databaseType; } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return errorMessage */ public String getErrorMessage() { return this.errorMessage; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return instanceStatus */ public String getInstanceStatus() { return this.instanceStatus; } /** * @return instanceUuid */ public String getInstanceUuid() { return this.instanceUuid; } /** * @return latestBackResult */ public String getLatestBackResult() { return this.latestBackResult; } /** * @return latestBackupTime */ public String getLatestBackupTime() { return this.latestBackupTime; } /** * @return planStatus */ public String getPlanStatus() { return this.planStatus; } /** * @return policyId */ public Long getPolicyId() { return this.policyId; } /** * @return policyName */ public String getPolicyName() { return this.policyName; } /** * @return policyStatus */ public String getPolicyStatus() { return this.policyStatus; } /** * @return uniRegionId */ public String getUniRegionId() { return this.uniRegionId; } public static final class Builder { private String agentErrorMessage; private String agentStatus; private String databaseName; private String databaseType; private String errorCode; private String errorMessage; private String instanceId; private String instanceName; private String instanceStatus; private String instanceUuid; private String latestBackResult; private String latestBackupTime; private String planStatus; private Long policyId; private String policyName; private String policyStatus; private String uniRegionId; private Builder() { } private Builder(UniBackupPolicies model) { this.agentErrorMessage = model.agentErrorMessage; this.agentStatus = model.agentStatus; this.databaseName = model.databaseName; this.databaseType = model.databaseType; this.errorCode = model.errorCode; this.errorMessage = model.errorMessage; this.instanceId = model.instanceId; this.instanceName = model.instanceName; this.instanceStatus = model.instanceStatus; this.instanceUuid = model.instanceUuid; this.latestBackResult = model.latestBackResult; this.latestBackupTime = model.latestBackupTime; this.planStatus = model.planStatus; this.policyId = model.policyId; this.policyName = model.policyName; this.policyStatus = model.policyStatus; this.uniRegionId = model.uniRegionId; } /** * <p>The error message for the anti-ransomware agent.</p> * * <strong>example:</strong> * <p>INSTALL_TIMEOUT</p> */ public Builder agentErrorMessage(String agentErrorMessage) { this.agentErrorMessage = agentErrorMessage; return this; } /** * <p>The status of the agent. Valid values:</p> * <ul> * <li><strong>UNKNOWN</strong></li> * <li><strong>INSTALLED</strong></li> * <li><strong>INSTALL_FAILED</strong></li> * <li><strong>UNINSTALL_FAILED</strong></li> * </ul> * * <strong>example:</strong> * <p>INSTALLED</p> */ public Builder agentStatus(String agentStatus) { this.agentStatus = agentStatus; return this; } /** * <p>The name of the database.</p> * * <strong>example:</strong> * <p>abc123</p> */ public Builder databaseName(String databaseName) { this.databaseName = databaseName; return this; } /** * <p>The type of the database. Valid values:</p> * <ul> * <li><strong>MYSQL</strong></li> * <li><strong>MSSQL</strong></li> * <li><strong>Oracle</strong></li> * </ul> * * <strong>example:</strong> * <p>MYSQL</p> */ public Builder databaseType(String databaseType) { this.databaseType = databaseType; return this; } /** * <p>The error code returned when the backup task fails.</p> * * <strong>example:</strong> * <p>EXPIRED</p> */ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** * <p>The error message for the anti-ransomware policy.</p> * * <strong>example:</strong> * <p>AttachRamRoleError</p> */ public Builder errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } /** * <p>The ID of the server.</p> * * <strong>example:</strong> * <p>i-9dp7mubt5wit6g0h****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The name of the server.</p> * * <strong>example:</strong> * <p>sql-test-001</p> */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * <p>The status of the Elastic Compute Service (ECS) instance. Valid values:</p> * <ul> * <li><strong>Stopped</strong></li> * <li><strong>Running</strong></li> * </ul> * * <strong>example:</strong> * <p>Running</p> */ public Builder instanceStatus(String instanceStatus) { this.instanceStatus = instanceStatus; return this; } /** * <p>The UUID of the agent that is used to back up the data of the database.</p> * * <strong>example:</strong> * <p>cf1bcad4063f11ed800000163e0e****</p> */ public Builder instanceUuid(String instanceUuid) { this.instanceUuid = instanceUuid; return this; } /** * <p>The execution result of the last backup task.</p> * * <strong>example:</strong> * <p>completed</p> */ public Builder latestBackResult(String latestBackResult) { this.latestBackResult = latestBackResult; return this; } /** * <p>The time when the last backup task was executed.</p> * * <strong>example:</strong> * <p>2022-01-01 00:00:11</p> */ public Builder latestBackupTime(String latestBackupTime) { this.latestBackupTime = latestBackupTime; return this; } /** * <p>The status of the backup task. Valid values:</p> * <ul> * <li><strong>init</strong></li> * <li><strong>running</strong></li> * <li><strong>completed</strong></li> * <li><strong>restoring</strong></li> * <li><strong>creating</strong></li> * <li><strong>created</strong></li> * </ul> * * <strong>example:</strong> * <p>creating</p> */ public Builder planStatus(String planStatus) { this.planStatus = planStatus; return this; } /** * <p>The ID of the anti-ransomware policy.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder policyId(Long policyId) { this.policyId = policyId; return this; } /** * <p>The name of the anti-ransomware policy.</p> * * <strong>example:</strong> * <p>auto_oracle_37f</p> */ public Builder policyName(String policyName) { this.policyName = policyName; return this; } /** * <p>The status of the anti-ransomware policy. Valid values:</p> * <ul> * <li><strong>initiating</strong></li> * <li><strong>opening</strong></li> * <li><strong>closing</strong></li> * <li><strong>deleting</strong></li> * <li><strong>enabled</strong></li> * <li><strong>disabled</strong></li> * </ul> * * <strong>example:</strong> * <p>opening</p> */ public Builder policyStatus(String policyStatus) { this.policyStatus = policyStatus; return this; } /** * <p>The region ID of the server that hosts the database.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder uniRegionId(String uniRegionId) { this.uniRegionId = uniRegionId; return this; } public UniBackupPolicies build() { return new UniBackupPolicies(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/DescribeUniBackupPolicyDetailRequest.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 DescribeUniBackupPolicyDetailRequest} extends {@link RequestModel} * * <p>DescribeUniBackupPolicyDetailRequest</p> */ public class DescribeUniBackupPolicyDetailRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PolicyId") @com.aliyun.core.annotation.Validation(required = true) private String policyId; private DescribeUniBackupPolicyDetailRequest(Builder builder) { super(builder); this.policyId = builder.policyId; } public static Builder builder() { return new Builder(); } public static DescribeUniBackupPolicyDetailRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return policyId */ public String getPolicyId() { return this.policyId; } public static final class Builder extends Request.Builder<DescribeUniBackupPolicyDetailRequest, Builder> { private String policyId; private Builder() { super(); } private Builder(DescribeUniBackupPolicyDetailRequest request) { super(request); this.policyId = request.policyId; } /** * <p>The ID of the anti-ransomware policy.</p> * <blockquote> * <p>You can call the <a href="~~DescribeUniBackupPolicies~~">DescribeUniBackupPolicies</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(String policyId) { this.putQueryParameter("PolicyId", policyId); this.policyId = policyId; return this; } @Override public DescribeUniBackupPolicyDetailRequest build() { return new DescribeUniBackupPolicyDetailRequest(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/DescribeUniBackupPolicyDetailResponse.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 DescribeUniBackupPolicyDetailResponse} extends {@link TeaModel} * * <p>DescribeUniBackupPolicyDetailResponse</p> */ public class DescribeUniBackupPolicyDetailResponse 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 DescribeUniBackupPolicyDetailResponseBody body; private DescribeUniBackupPolicyDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeUniBackupPolicyDetailResponse 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 DescribeUniBackupPolicyDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeUniBackupPolicyDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeUniBackupPolicyDetailResponseBody body); @Override DescribeUniBackupPolicyDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeUniBackupPolicyDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeUniBackupPolicyDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeUniBackupPolicyDetailResponse 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(DescribeUniBackupPolicyDetailResponseBody body) { this.body = body; return this; } @Override public DescribeUniBackupPolicyDetailResponse build() { return new DescribeUniBackupPolicyDetailResponse(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/DescribeUniBackupPolicyDetailResponseBody.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 DescribeUniBackupPolicyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupPolicyDetailResponseBody</p> */ public class DescribeUniBackupPolicyDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("UniBackupPolicyDTO") private UniBackupPolicyDTO uniBackupPolicyDTO; private DescribeUniBackupPolicyDetailResponseBody(Builder builder) { this.requestId = builder.requestId; this.uniBackupPolicyDTO = builder.uniBackupPolicyDTO; } public static Builder builder() { return new Builder(); } public static DescribeUniBackupPolicyDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return uniBackupPolicyDTO */ public UniBackupPolicyDTO getUniBackupPolicyDTO() { return this.uniBackupPolicyDTO; } public static final class Builder { private String requestId; private UniBackupPolicyDTO uniBackupPolicyDTO; private Builder() { } private Builder(DescribeUniBackupPolicyDetailResponseBody model) { this.requestId = model.requestId; this.uniBackupPolicyDTO = model.uniBackupPolicyDTO; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>F35F45B0-5D6B-4238-BE02-A62D0760****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The details of the anti-ransomware policy.</p> */ public Builder uniBackupPolicyDTO(UniBackupPolicyDTO uniBackupPolicyDTO) { this.uniBackupPolicyDTO = uniBackupPolicyDTO; return this; } public DescribeUniBackupPolicyDetailResponseBody build() { return new DescribeUniBackupPolicyDetailResponseBody(this); } } /** * * {@link DescribeUniBackupPolicyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupPolicyDetailResponseBody</p> */ public static class FullPlan extends TeaModel { @com.aliyun.core.annotation.NameInMap("Days") private java.util.List<String> days; @com.aliyun.core.annotation.NameInMap("Interval") private Integer interval; @com.aliyun.core.annotation.NameInMap("PlanType") private String planType; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; private FullPlan(Builder builder) { this.days = builder.days; this.interval = builder.interval; this.planType = builder.planType; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static FullPlan create() { return builder().build(); } /** * @return days */ public java.util.List<String> getDays() { return this.days; } /** * @return interval */ public Integer getInterval() { return this.interval; } /** * @return planType */ public String getPlanType() { return this.planType; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder { private java.util.List<String> days; private Integer interval; private String planType; private String startTime; private Builder() { } private Builder(FullPlan model) { this.days = model.days; this.interval = model.interval; this.planType = model.planType; this.startTime = model.startTime; } /** * <p>An array that consists of the days of a week on which the backup is performed.</p> */ public Builder days(java.util.List<String> days) { this.days = days; return this; } /** * <p>The interval of backup tasks.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder interval(Integer interval) { this.interval = interval; return this; } /** * <p>The unit of the interval. Valid values:</p> * <ul> * <li><strong>hourly</strong>: hour</li> * <li><strong>daily</strong>: day</li> * <li><strong>weekly</strong>: week</li> * </ul> * * <strong>example:</strong> * <p>daily</p> */ public Builder planType(String planType) { this.planType = planType; return this; } /** * <p>The time when the full backup started. The time is in the HH:mm:ss format.</p> * * <strong>example:</strong> * <p>00:10:00</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } public FullPlan build() { return new FullPlan(this); } } } /** * * {@link DescribeUniBackupPolicyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupPolicyDetailResponseBody</p> */ public static class IncPlan extends TeaModel { @com.aliyun.core.annotation.NameInMap("Days") private java.util.List<String> days; @com.aliyun.core.annotation.NameInMap("Interval") private Integer interval; @com.aliyun.core.annotation.NameInMap("PlanType") private String planType; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; private IncPlan(Builder builder) { this.days = builder.days; this.interval = builder.interval; this.planType = builder.planType; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static IncPlan create() { return builder().build(); } /** * @return days */ public java.util.List<String> getDays() { return this.days; } /** * @return interval */ public Integer getInterval() { return this.interval; } /** * @return planType */ public String getPlanType() { return this.planType; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder { private java.util.List<String> days; private Integer interval; private String planType; private String startTime; private Builder() { } private Builder(IncPlan model) { this.days = model.days; this.interval = model.interval; this.planType = model.planType; this.startTime = model.startTime; } /** * <p>An array that consists of the days of a week on which the backup is performed.</p> */ public Builder days(java.util.List<String> days) { this.days = days; return this; } /** * <p>The interval of backup tasks.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder interval(Integer interval) { this.interval = interval; return this; } /** * <p>The unit of the interval. Valid values:</p> * <ul> * <li><strong>hourly</strong>: hour</li> * <li><strong>daily</strong>: day</li> * <li><strong>weekly</strong>: week</li> * </ul> * * <strong>example:</strong> * <p>daily</p> */ public Builder planType(String planType) { this.planType = planType; return this; } /** * <p>The time when the incremental data backup starts. The time is in the hh:mm:ss format.</p> * * <strong>example:</strong> * <p>00:10:00</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } public IncPlan build() { return new IncPlan(this); } } } /** * * {@link DescribeUniBackupPolicyDetailResponseBody} extends {@link TeaModel} * * <p>DescribeUniBackupPolicyDetailResponseBody</p> */ public static class UniBackupPolicyDTO extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccountName") private String accountName; @com.aliyun.core.annotation.NameInMap("AgentStatus") private String agentStatus; @com.aliyun.core.annotation.NameInMap("DatabaseType") private String databaseType; @com.aliyun.core.annotation.NameInMap("FullPlan") private FullPlan fullPlan; @com.aliyun.core.annotation.NameInMap("IncPlan") private IncPlan incPlan; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.NameInMap("PolicyId") private Long policyId; @com.aliyun.core.annotation.NameInMap("PolicyName") private String policyName; @com.aliyun.core.annotation.NameInMap("PolicyStatus") private String policyStatus; @com.aliyun.core.annotation.NameInMap("Retention") private Integer retention; @com.aliyun.core.annotation.NameInMap("SpeedLimiter") private Long speedLimiter; private UniBackupPolicyDTO(Builder builder) { this.accountName = builder.accountName; this.agentStatus = builder.agentStatus; this.databaseType = builder.databaseType; this.fullPlan = builder.fullPlan; this.incPlan = builder.incPlan; this.instanceId = builder.instanceId; this.instanceName = builder.instanceName; this.policyId = builder.policyId; this.policyName = builder.policyName; this.policyStatus = builder.policyStatus; this.retention = builder.retention; this.speedLimiter = builder.speedLimiter; } public static Builder builder() { return new Builder(); } public static UniBackupPolicyDTO create() { return builder().build(); } /** * @return accountName */ public String getAccountName() { return this.accountName; } /** * @return agentStatus */ public String getAgentStatus() { return this.agentStatus; } /** * @return databaseType */ public String getDatabaseType() { return this.databaseType; } /** * @return fullPlan */ public FullPlan getFullPlan() { return this.fullPlan; } /** * @return incPlan */ public IncPlan getIncPlan() { return this.incPlan; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return policyId */ public Long getPolicyId() { return this.policyId; } /** * @return policyName */ public String getPolicyName() { return this.policyName; } /** * @return policyStatus */ public String getPolicyStatus() { return this.policyStatus; } /** * @return retention */ public Integer getRetention() { return this.retention; } /** * @return speedLimiter */ public Long getSpeedLimiter() { return this.speedLimiter; } public static final class Builder { private String accountName; private String agentStatus; private String databaseType; private FullPlan fullPlan; private IncPlan incPlan; private String instanceId; private String instanceName; private Long policyId; private String policyName; private String policyStatus; private Integer retention; private Long speedLimiter; private Builder() { } private Builder(UniBackupPolicyDTO model) { this.accountName = model.accountName; this.agentStatus = model.agentStatus; this.databaseType = model.databaseType; this.fullPlan = model.fullPlan; this.incPlan = model.incPlan; this.instanceId = model.instanceId; this.instanceName = model.instanceName; this.policyId = model.policyId; this.policyName = model.policyName; this.policyStatus = model.policyStatus; this.retention = model.retention; this.speedLimiter = model.speedLimiter; } /** * <p>The name of the database account.</p> * * <strong>example:</strong> * <p>admin</p> */ public Builder accountName(String accountName) { this.accountName = accountName; return this; } /** * <p>The status of the database client. Valid values:</p> * <ul> * <li><strong>UNKNOWN</strong>: unknown</li> * <li><strong>INSTALLED</strong>: installed</li> * <li><strong>INSTALL_FAILED</strong>: installation failed</li> * <li><strong>UNINSTALL_FAILED</strong>: uninstallation failed</li> * </ul> * * <strong>example:</strong> * <p>INSTALLED</p> */ public Builder agentStatus(String agentStatus) { this.agentStatus = agentStatus; return this; } /** * <p>The type of the database. Valid values:</p> * <ul> * <li><strong>MYSQL</strong></li> * <li><strong>MSSQL</strong></li> * <li><strong>Oracle</strong></li> * </ul> * * <strong>example:</strong> * <p>ORACLE</p> */ public Builder databaseType(String databaseType) { this.databaseType = databaseType; return this; } /** * <p>The details of the policy for full backup.</p> */ public Builder fullPlan(FullPlan fullPlan) { this.fullPlan = fullPlan; return this; } /** * <p>The policy for incremental data backup.</p> */ public Builder incPlan(IncPlan incPlan) { this.incPlan = incPlan; return this; } /** * <p>The ID of the server.</p> * * <strong>example:</strong> * <p>i-2zefcy2id5d60m9t****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The name of the server.</p> * * <strong>example:</strong> * <p>sql-test-01</p> */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * <p>The ID of the anti-ransomware policy.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder policyId(Long policyId) { this.policyId = policyId; return this; } /** * <p>The name of the anti-ransomware policy.</p> * * <strong>example:</strong> * <p>auto_test_sql</p> */ public Builder policyName(String policyName) { this.policyName = policyName; return this; } /** * <p>The status of the anti-ransomware policy. Valid values:</p> * <ul> * <li><strong>initiating</strong>: initializing</li> * <li><strong>opening</strong>: enabled</li> * <li><strong>closing</strong>: disabled</li> * <li><strong>deleting</strong>: deleting</li> * </ul> * * <strong>example:</strong> * <p>opening</p> */ public Builder policyStatus(String policyStatus) { this.policyStatus = policyStatus; return this; } /** * <p>The retention period of the backup snapshot.</p> * * <strong>example:</strong> * <p>7</p> */ public Builder retention(Integer retention) { this.retention = retention; return this; } /** * <p>The maximum network bandwidth that is allowed during data backup. Unit: bytes.</p> * * <strong>example:</strong> * <p>5242880</p> */ public Builder speedLimiter(Long speedLimiter) { this.speedLimiter = speedLimiter; return this; } public UniBackupPolicyDTO build() { return new UniBackupPolicyDTO(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/DescribeUniBackupStatisticsRequest.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 DescribeUniBackupStatisticsRequest} extends {@link RequestModel} * * <p>DescribeUniBackupStatisticsRequest</p> */ public class DescribeUniBackupStatisticsRequest extends Request { private DescribeUniBackupStatisticsRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static DescribeUniBackupStatisticsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<DescribeUniBackupStatisticsRequest, Builder> { private Builder() { super(); } private Builder(DescribeUniBackupStatisticsRequest request) { super(request); } @Override public DescribeUniBackupStatisticsRequest build() { return new DescribeUniBackupStatisticsRequest(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/DescribeUniBackupStatisticsResponse.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 DescribeUniBackupStatisticsResponse} extends {@link TeaModel} * * <p>DescribeUniBackupStatisticsResponse</p> */ public class DescribeUniBackupStatisticsResponse 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 DescribeUniBackupStatisticsResponseBody body; private DescribeUniBackupStatisticsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeUniBackupStatisticsResponse 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 DescribeUniBackupStatisticsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeUniBackupStatisticsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeUniBackupStatisticsResponseBody body); @Override DescribeUniBackupStatisticsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeUniBackupStatisticsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeUniBackupStatisticsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeUniBackupStatisticsResponse 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(DescribeUniBackupStatisticsResponseBody body) { this.body = body; return this; } @Override public DescribeUniBackupStatisticsResponse build() { return new DescribeUniBackupStatisticsResponse(this); } } }