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/GetCloudAssetSummaryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCloudAssetSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCloudAssetSummaryResponseBody</p>
*/
public class GetCloudAssetSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GroupedFields")
private GroupedFields groupedFields;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCloudAssetSummaryResponseBody(Builder builder) {
this.groupedFields = builder.groupedFields;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCloudAssetSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return groupedFields
*/
public GroupedFields getGroupedFields() {
return this.groupedFields;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private GroupedFields groupedFields;
private String requestId;
private Builder() {
}
private Builder(GetCloudAssetSummaryResponseBody model) {
this.groupedFields = model.groupedFields;
this.requestId = model.requestId;
}
/**
* <p>The summary of cloud services.</p>
*/
public Builder groupedFields(GroupedFields groupedFields) {
this.groupedFields = groupedFields;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>F5CF78A7-30AA-59DB-847F-13EE3AE7****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCloudAssetSummaryResponseBody build() {
return new GetCloudAssetSummaryResponseBody(this);
}
}
/**
*
* {@link GetCloudAssetSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCloudAssetSummaryResponseBody</p>
*/
public static class CloudAssetSummaryMetas extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("InstanceCount")
private Integer instanceCount;
@com.aliyun.core.annotation.NameInMap("InstanceRiskCount")
private Integer instanceRiskCount;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private CloudAssetSummaryMetas(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.instanceCount = builder.instanceCount;
this.instanceRiskCount = builder.instanceRiskCount;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static CloudAssetSummaryMetas create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return instanceCount
*/
public Integer getInstanceCount() {
return this.instanceCount;
}
/**
* @return instanceRiskCount
*/
public Integer getInstanceRiskCount() {
return this.instanceRiskCount;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private Integer instanceCount;
private Integer instanceRiskCount;
private Integer vendor;
private Builder() {
}
private Builder(CloudAssetSummaryMetas model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.instanceCount = model.instanceCount;
this.instanceRiskCount = model.instanceRiskCount;
this.vendor = model.vendor;
}
/**
* <p>The subtype of the cloud service.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The type of the cloud service. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Elastic Compute Service (ECS)</li>
* <li><strong>1</strong>: Server Load Balancer (SLB)</li>
* <li><strong>3</strong>: ApsaraDB RDS</li>
* <li><strong>4</strong>: ApsaraDB for MongoDB (MongoDB)</li>
* <li><strong>5</strong>: ApsaraDB for Redis (Redis)</li>
* <li><strong>6</strong>: Container Registry</li>
* <li><strong>8</strong>: Container Service for Kubernetes (ACK)</li>
* <li><strong>9</strong>: Virtual Private Cloud (VPC)</li>
* <li><strong>11</strong>: ActionTrail</li>
* <li><strong>12</strong>: Alibaba Cloud CDN (CDN)</li>
* <li><strong>13</strong>: Certificate Management Service (formerly SSL Certificates Service)</li>
* <li><strong>14</strong>: Apsara Devops</li>
* <li><strong>15</strong>: Resource Access Management (RAM)</li>
* <li><strong>16</strong>: Anti-DDoS</li>
* <li><strong>17</strong>: Web Application Firewall (WAF)</li>
* <li><strong>18</strong>: Object Storage Service (OSS)</li>
* <li><strong>19</strong>: PolarDB</li>
* <li><strong>20</strong>: ApsaraDB RDS for PostgreSQL</li>
* <li><strong>21</strong>: Microservices Engine (MSE)</li>
* <li><strong>22</strong>: File Storage NAS (NAS)</li>
* <li><strong>23</strong>: Data Security Center (DSC)</li>
* <li><strong>24</strong>: Elastic IP Address (EIP)</li>
* <li><strong>25</strong>: Identity as a Service (IDaaS) - Enterprise Identity Access Management (EIAM)</li>
* <li><strong>26</strong>: PolarDB for Xscale (PolarDB-X)</li>
* <li><strong>27</strong>: Elasticsearch</li>
* </ul>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The total number of cloud service instances of this type.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder instanceCount(Integer instanceCount) {
this.instanceCount = instanceCount;
return this;
}
/**
* <p>The total number of cloud service instances that are at risk of this type.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder instanceRiskCount(Integer instanceRiskCount) {
this.instanceRiskCount = instanceRiskCount;
return this;
}
/**
* <p>The server type. Valid values:</p>
* <ul>
* <li><strong>0</strong>: an asset provided by Alibaba Cloud</li>
* <li><strong>1</strong>: an asset outside Alibaba Cloud</li>
* <li><strong>2</strong>: an asset in a data center</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: an asset provided by a third-party service provider</li>
* <li><strong>8</strong>: a lightweight asset</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public CloudAssetSummaryMetas build() {
return new CloudAssetSummaryMetas(this);
}
}
}
/**
*
* {@link GetCloudAssetSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetCloudAssetSummaryResponseBody</p>
*/
public static class GroupedFields extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CloudAssetSummaryMetas")
private java.util.List<CloudAssetSummaryMetas> cloudAssetSummaryMetas;
@com.aliyun.core.annotation.NameInMap("InstanceCountTotal")
private Integer instanceCountTotal;
@com.aliyun.core.annotation.NameInMap("InstanceRiskCountTotal")
private Integer instanceRiskCountTotal;
private GroupedFields(Builder builder) {
this.cloudAssetSummaryMetas = builder.cloudAssetSummaryMetas;
this.instanceCountTotal = builder.instanceCountTotal;
this.instanceRiskCountTotal = builder.instanceRiskCountTotal;
}
public static Builder builder() {
return new Builder();
}
public static GroupedFields create() {
return builder().build();
}
/**
* @return cloudAssetSummaryMetas
*/
public java.util.List<CloudAssetSummaryMetas> getCloudAssetSummaryMetas() {
return this.cloudAssetSummaryMetas;
}
/**
* @return instanceCountTotal
*/
public Integer getInstanceCountTotal() {
return this.instanceCountTotal;
}
/**
* @return instanceRiskCountTotal
*/
public Integer getInstanceRiskCountTotal() {
return this.instanceRiskCountTotal;
}
public static final class Builder {
private java.util.List<CloudAssetSummaryMetas> cloudAssetSummaryMetas;
private Integer instanceCountTotal;
private Integer instanceRiskCountTotal;
private Builder() {
}
private Builder(GroupedFields model) {
this.cloudAssetSummaryMetas = model.cloudAssetSummaryMetas;
this.instanceCountTotal = model.instanceCountTotal;
this.instanceRiskCountTotal = model.instanceRiskCountTotal;
}
/**
* <p>The statistics of cloud services.</p>
*/
public Builder cloudAssetSummaryMetas(java.util.List<CloudAssetSummaryMetas> cloudAssetSummaryMetas) {
this.cloudAssetSummaryMetas = cloudAssetSummaryMetas;
return this;
}
/**
* <p>The total number of cloud service instances.</p>
*
* <strong>example:</strong>
* <p>919</p>
*/
public Builder instanceCountTotal(Integer instanceCountTotal) {
this.instanceCountTotal = instanceCountTotal;
return this;
}
/**
* <p>The total number of cloud service instances that are at risk.</p>
*
* <strong>example:</strong>
* <p>544</p>
*/
public Builder instanceRiskCountTotal(Integer instanceRiskCountTotal) {
this.instanceRiskCountTotal = instanceRiskCountTotal;
return this;
}
public GroupedFields build() {
return new GroupedFields(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterCheckItemWarningStatisticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterCheckItemWarningStatisticsRequest} extends {@link RequestModel}
*
* <p>GetClusterCheckItemWarningStatisticsRequest</p>
*/
public class GetClusterCheckItemWarningStatisticsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private GetClusterCheckItemWarningStatisticsRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static GetClusterCheckItemWarningStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<GetClusterCheckItemWarningStatisticsRequest, Builder> {
private String clusterId;
private String uuid;
private Builder() {
super();
}
private Builder(GetClusterCheckItemWarningStatisticsRequest request) {
super(request);
this.clusterId = request.clusterId;
this.uuid = request.uuid;
}
/**
* <p>The ID of the container cluster.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/182997.html">DescribeGroupedContainerInstances</a> operation to query the IDs of container clusters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cd49575861a3044d49c954e4b3911****</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>The server UUID.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeCloudCenterInstances~~">DescribeCloudCenterInstances</a> operation to query the server UUID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>e4af3620-6895-4e2f-a641-a9d8fb53****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public GetClusterCheckItemWarningStatisticsRequest build() {
return new GetClusterCheckItemWarningStatisticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterCheckItemWarningStatisticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterCheckItemWarningStatisticsResponse} extends {@link TeaModel}
*
* <p>GetClusterCheckItemWarningStatisticsResponse</p>
*/
public class GetClusterCheckItemWarningStatisticsResponse 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 GetClusterCheckItemWarningStatisticsResponseBody body;
private GetClusterCheckItemWarningStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetClusterCheckItemWarningStatisticsResponse 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 GetClusterCheckItemWarningStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetClusterCheckItemWarningStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetClusterCheckItemWarningStatisticsResponseBody body);
@Override
GetClusterCheckItemWarningStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetClusterCheckItemWarningStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetClusterCheckItemWarningStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetClusterCheckItemWarningStatisticsResponse 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(GetClusterCheckItemWarningStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetClusterCheckItemWarningStatisticsResponse build() {
return new GetClusterCheckItemWarningStatisticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterCheckItemWarningStatisticsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterCheckItemWarningStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetClusterCheckItemWarningStatisticsResponseBody</p>
*/
public class GetClusterCheckItemWarningStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetClusterCheckItemWarningStatisticsResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetClusterCheckItemWarningStatisticsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetClusterCheckItemWarningStatisticsResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The statistics on risk items by risk level.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>C2B285A3-3493-5C5F-A224-4CCE4BFC****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetClusterCheckItemWarningStatisticsResponseBody build() {
return new GetClusterCheckItemWarningStatisticsResponseBody(this);
}
}
/**
*
* {@link GetClusterCheckItemWarningStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetClusterCheckItemWarningStatisticsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HighWarningCount")
private Integer highWarningCount;
@com.aliyun.core.annotation.NameInMap("LowWarningCount")
private Integer lowWarningCount;
@com.aliyun.core.annotation.NameInMap("MediumWarningCount")
private Integer mediumWarningCount;
private Data(Builder builder) {
this.highWarningCount = builder.highWarningCount;
this.lowWarningCount = builder.lowWarningCount;
this.mediumWarningCount = builder.mediumWarningCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return highWarningCount
*/
public Integer getHighWarningCount() {
return this.highWarningCount;
}
/**
* @return lowWarningCount
*/
public Integer getLowWarningCount() {
return this.lowWarningCount;
}
/**
* @return mediumWarningCount
*/
public Integer getMediumWarningCount() {
return this.mediumWarningCount;
}
public static final class Builder {
private Integer highWarningCount;
private Integer lowWarningCount;
private Integer mediumWarningCount;
private Builder() {
}
private Builder(Data model) {
this.highWarningCount = model.highWarningCount;
this.lowWarningCount = model.lowWarningCount;
this.mediumWarningCount = model.mediumWarningCount;
}
/**
* <p>The number of high-risk items.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder highWarningCount(Integer highWarningCount) {
this.highWarningCount = highWarningCount;
return this;
}
/**
* <p>The number of low-risk items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder lowWarningCount(Integer lowWarningCount) {
this.lowWarningCount = lowWarningCount;
return this;
}
/**
* <p>The number of medium-risk items.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder mediumWarningCount(Integer mediumWarningCount) {
this.mediumWarningCount = mediumWarningCount;
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/GetClusterRuleSummaryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterRuleSummaryRequest} extends {@link RequestModel}
*
* <p>GetClusterRuleSummaryRequest</p>
*/
public class GetClusterRuleSummaryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
private GetClusterRuleSummaryRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
}
public static Builder builder() {
return new Builder();
}
public static GetClusterRuleSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
public static final class Builder extends Request.Builder<GetClusterRuleSummaryRequest, Builder> {
private String clusterId;
private Builder() {
super();
}
private Builder(GetClusterRuleSummaryRequest request) {
super(request);
this.clusterId = request.clusterId;
}
/**
* <p>The ID of the container cluster.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation to query the IDs of container clusters.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cc49d88d1exxx</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
@Override
public GetClusterRuleSummaryRequest build() {
return new GetClusterRuleSummaryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterRuleSummaryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterRuleSummaryResponse} extends {@link TeaModel}
*
* <p>GetClusterRuleSummaryResponse</p>
*/
public class GetClusterRuleSummaryResponse 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 GetClusterRuleSummaryResponseBody body;
private GetClusterRuleSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetClusterRuleSummaryResponse 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 GetClusterRuleSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetClusterRuleSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetClusterRuleSummaryResponseBody body);
@Override
GetClusterRuleSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetClusterRuleSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetClusterRuleSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetClusterRuleSummaryResponse 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(GetClusterRuleSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public GetClusterRuleSummaryResponse build() {
return new GetClusterRuleSummaryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterRuleSummaryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterRuleSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetClusterRuleSummaryResponseBody</p>
*/
public class GetClusterRuleSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterRuleSummary")
private ClusterRuleSummary clusterRuleSummary;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetClusterRuleSummaryResponseBody(Builder builder) {
this.clusterRuleSummary = builder.clusterRuleSummary;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetClusterRuleSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterRuleSummary
*/
public ClusterRuleSummary getClusterRuleSummary() {
return this.clusterRuleSummary;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private ClusterRuleSummary clusterRuleSummary;
private String requestId;
private Builder() {
}
private Builder(GetClusterRuleSummaryResponseBody model) {
this.clusterRuleSummary = model.clusterRuleSummary;
this.requestId = model.requestId;
}
/**
* <p>The overall information about the cluster defense rules.</p>
*/
public Builder clusterRuleSummary(ClusterRuleSummary clusterRuleSummary) {
this.clusterRuleSummary = clusterRuleSummary;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>291B49F9-xxx</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetClusterRuleSummaryResponseBody build() {
return new GetClusterRuleSummaryResponseBody(this);
}
}
/**
*
* {@link GetClusterRuleSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetClusterRuleSummaryResponseBody</p>
*/
public static class ClusterRuleSummary extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CloseRuleCount")
private Integer closeRuleCount;
@com.aliyun.core.annotation.NameInMap("InterceptionCount7Day")
private Long interceptionCount7Day;
@com.aliyun.core.annotation.NameInMap("InterceptionSwitch")
private Integer interceptionSwitch;
@com.aliyun.core.annotation.NameInMap("InterceptionType")
private Integer interceptionType;
@com.aliyun.core.annotation.NameInMap("OpenRuleCount")
private Integer openRuleCount;
@com.aliyun.core.annotation.NameInMap("RuleCount")
private Integer ruleCount;
@com.aliyun.core.annotation.NameInMap("SuggestRuleCount")
private Integer suggestRuleCount;
private ClusterRuleSummary(Builder builder) {
this.closeRuleCount = builder.closeRuleCount;
this.interceptionCount7Day = builder.interceptionCount7Day;
this.interceptionSwitch = builder.interceptionSwitch;
this.interceptionType = builder.interceptionType;
this.openRuleCount = builder.openRuleCount;
this.ruleCount = builder.ruleCount;
this.suggestRuleCount = builder.suggestRuleCount;
}
public static Builder builder() {
return new Builder();
}
public static ClusterRuleSummary create() {
return builder().build();
}
/**
* @return closeRuleCount
*/
public Integer getCloseRuleCount() {
return this.closeRuleCount;
}
/**
* @return interceptionCount7Day
*/
public Long getInterceptionCount7Day() {
return this.interceptionCount7Day;
}
/**
* @return interceptionSwitch
*/
public Integer getInterceptionSwitch() {
return this.interceptionSwitch;
}
/**
* @return interceptionType
*/
public Integer getInterceptionType() {
return this.interceptionType;
}
/**
* @return openRuleCount
*/
public Integer getOpenRuleCount() {
return this.openRuleCount;
}
/**
* @return ruleCount
*/
public Integer getRuleCount() {
return this.ruleCount;
}
/**
* @return suggestRuleCount
*/
public Integer getSuggestRuleCount() {
return this.suggestRuleCount;
}
public static final class Builder {
private Integer closeRuleCount;
private Long interceptionCount7Day;
private Integer interceptionSwitch;
private Integer interceptionType;
private Integer openRuleCount;
private Integer ruleCount;
private Integer suggestRuleCount;
private Builder() {
}
private Builder(ClusterRuleSummary model) {
this.closeRuleCount = model.closeRuleCount;
this.interceptionCount7Day = model.interceptionCount7Day;
this.interceptionSwitch = model.interceptionSwitch;
this.interceptionType = model.interceptionType;
this.openRuleCount = model.openRuleCount;
this.ruleCount = model.ruleCount;
this.suggestRuleCount = model.suggestRuleCount;
}
/**
* <p>The number of disabled cluster defense rules.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder closeRuleCount(Integer closeRuleCount) {
this.closeRuleCount = closeRuleCount;
return this;
}
/**
* <p>The number of alerts that are triggered by the cluster defense rules in the last seven days.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder interceptionCount7Day(Long interceptionCount7Day) {
this.interceptionCount7Day = interceptionCount7Day;
return this;
}
/**
* <p>The status of the container firewall feature. Valid values:</p>
* <ul>
* <li><strong>0</strong>: disabled</li>
* <li><strong>1</strong>: enabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder interceptionSwitch(Integer interceptionSwitch) {
this.interceptionSwitch = interceptionSwitch;
return this;
}
/**
* <p>The interception mode.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder interceptionType(Integer interceptionType) {
this.interceptionType = interceptionType;
return this;
}
/**
* <p>The number of enabled cluster defense rules.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder openRuleCount(Integer openRuleCount) {
this.openRuleCount = openRuleCount;
return this;
}
/**
* <p>The total number of configured cluster defense rules.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder ruleCount(Integer ruleCount) {
this.ruleCount = ruleCount;
return this;
}
/**
* <p>The number of recommended cluster defense rules.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder suggestRuleCount(Integer suggestRuleCount) {
this.suggestRuleCount = suggestRuleCount;
return this;
}
public ClusterRuleSummary build() {
return new ClusterRuleSummary(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterStrategyCountRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterStrategyCountRequest} extends {@link RequestModel}
*
* <p>GetClusterStrategyCountRequest</p>
*/
public class GetClusterStrategyCountRequest extends Request {
private GetClusterStrategyCountRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetClusterStrategyCountRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetClusterStrategyCountRequest, Builder> {
private Builder() {
super();
}
private Builder(GetClusterStrategyCountRequest request) {
super(request);
}
@Override
public GetClusterStrategyCountRequest build() {
return new GetClusterStrategyCountRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterStrategyCountResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterStrategyCountResponse} extends {@link TeaModel}
*
* <p>GetClusterStrategyCountResponse</p>
*/
public class GetClusterStrategyCountResponse 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 GetClusterStrategyCountResponseBody body;
private GetClusterStrategyCountResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetClusterStrategyCountResponse 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 GetClusterStrategyCountResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetClusterStrategyCountResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetClusterStrategyCountResponseBody body);
@Override
GetClusterStrategyCountResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetClusterStrategyCountResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetClusterStrategyCountResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetClusterStrategyCountResponse 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(GetClusterStrategyCountResponseBody body) {
this.body = body;
return this;
}
@Override
public GetClusterStrategyCountResponse build() {
return new GetClusterStrategyCountResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterStrategyCountResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterStrategyCountResponseBody} extends {@link TeaModel}
*
* <p>GetClusterStrategyCountResponseBody</p>
*/
public class GetClusterStrategyCountResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetClusterStrategyCountResponseBody(Builder builder) {
this.code = builder.code;
this.count = builder.count;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetClusterStrategyCountResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Integer count;
private java.util.List<Data> data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetClusterStrategyCountResponseBody model) {
this.code = model.code;
this.count = model.count;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The total number of entries.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The returned data.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code that is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>796348B5-115C-5BFB-83EA-B5C3C12F822F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetClusterStrategyCountResponseBody build() {
return new GetClusterStrategyCountResponseBody(this);
}
}
/**
*
* {@link GetClusterStrategyCountResponseBody} extends {@link TeaModel}
*
* <p>GetClusterStrategyCountResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("StrategyCount")
private Integer strategyCount;
private Data(Builder builder) {
this.clusterId = builder.clusterId;
this.strategyCount = builder.strategyCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return strategyCount
*/
public Integer getStrategyCount() {
return this.strategyCount;
}
public static final class Builder {
private String clusterId;
private Integer strategyCount;
private Builder() {
}
private Builder(Data model) {
this.clusterId = model.clusterId;
this.strategyCount = model.strategyCount;
}
/**
* <p>The cluster ID.</p>
*
* <strong>example:</strong>
* <p>c8ca91e0907d94efaba7fb0827eb9****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The number of policies.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder strategyCount(Integer strategyCount) {
this.strategyCount = strategyCount;
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/GetClusterSuspEventStatisticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterSuspEventStatisticsRequest} extends {@link RequestModel}
*
* <p>GetClusterSuspEventStatisticsRequest</p>
*/
public class GetClusterSuspEventStatisticsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("From")
private String from;
private GetClusterSuspEventStatisticsRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.from = builder.from;
}
public static Builder builder() {
return new Builder();
}
public static GetClusterSuspEventStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return from
*/
public String getFrom() {
return this.from;
}
public static final class Builder extends Request.Builder<GetClusterSuspEventStatisticsRequest, Builder> {
private String clusterId;
private String from;
private Builder() {
super();
}
private Builder(GetClusterSuspEventStatisticsRequest request) {
super(request);
this.clusterId = request.clusterId;
this.from = request.from;
}
/**
* <p>The ID of the container cluster.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation to query the IDs of container clusters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>c6094b964bfc145fe9e418c869e7e****</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>The ID of the request source. Set the value to sas.</p>
*
* <strong>example:</strong>
* <p>sas</p>
*/
public Builder from(String from) {
this.putQueryParameter("From", from);
this.from = from;
return this;
}
@Override
public GetClusterSuspEventStatisticsRequest build() {
return new GetClusterSuspEventStatisticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterSuspEventStatisticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterSuspEventStatisticsResponse} extends {@link TeaModel}
*
* <p>GetClusterSuspEventStatisticsResponse</p>
*/
public class GetClusterSuspEventStatisticsResponse 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 GetClusterSuspEventStatisticsResponseBody body;
private GetClusterSuspEventStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetClusterSuspEventStatisticsResponse 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 GetClusterSuspEventStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetClusterSuspEventStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetClusterSuspEventStatisticsResponseBody body);
@Override
GetClusterSuspEventStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetClusterSuspEventStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetClusterSuspEventStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetClusterSuspEventStatisticsResponse 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(GetClusterSuspEventStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetClusterSuspEventStatisticsResponse build() {
return new GetClusterSuspEventStatisticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetClusterSuspEventStatisticsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetClusterSuspEventStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetClusterSuspEventStatisticsResponseBody</p>
*/
public class GetClusterSuspEventStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SuspStatistics")
private SuspStatistics suspStatistics;
private GetClusterSuspEventStatisticsResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.suspStatistics = builder.suspStatistics;
}
public static Builder builder() {
return new Builder();
}
public static GetClusterSuspEventStatisticsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return suspStatistics
*/
public SuspStatistics getSuspStatistics() {
return this.suspStatistics;
}
public static final class Builder {
private String requestId;
private SuspStatistics suspStatistics;
private Builder() {
}
private Builder(GetClusterSuspEventStatisticsResponseBody model) {
this.requestId = model.requestId;
this.suspStatistics = model.suspStatistics;
}
/**
* <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>The number of alerts by risk level.</p>
*/
public Builder suspStatistics(SuspStatistics suspStatistics) {
this.suspStatistics = suspStatistics;
return this;
}
public GetClusterSuspEventStatisticsResponseBody build() {
return new GetClusterSuspEventStatisticsResponseBody(this);
}
}
/**
*
* {@link GetClusterSuspEventStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetClusterSuspEventStatisticsResponseBody</p>
*/
public static class SuspStatistics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Remind")
private Integer remind;
@com.aliyun.core.annotation.NameInMap("Serious")
private Integer serious;
@com.aliyun.core.annotation.NameInMap("Suspicious")
private Integer suspicious;
private SuspStatistics(Builder builder) {
this.remind = builder.remind;
this.serious = builder.serious;
this.suspicious = builder.suspicious;
}
public static Builder builder() {
return new Builder();
}
public static SuspStatistics create() {
return builder().build();
}
/**
* @return remind
*/
public Integer getRemind() {
return this.remind;
}
/**
* @return serious
*/
public Integer getSerious() {
return this.serious;
}
/**
* @return suspicious
*/
public Integer getSuspicious() {
return this.suspicious;
}
public static final class Builder {
private Integer remind;
private Integer serious;
private Integer suspicious;
private Builder() {
}
private Builder(SuspStatistics model) {
this.remind = model.remind;
this.serious = model.serious;
this.suspicious = model.suspicious;
}
/**
* <p>The number of alerts whose Emergency level is Reminder.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder remind(Integer remind) {
this.remind = remind;
return this;
}
/**
* <p>The number of alerts whose Emergency level is Urgent.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder serious(Integer serious) {
this.serious = serious;
return this;
}
/**
* <p>The number of alerts whose Emergency level is Suspicious.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder suspicious(Integer suspicious) {
this.suspicious = suspicious;
return this;
}
public SuspStatistics build() {
return new SuspStatistics(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCommonSwitchConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCommonSwitchConfigRequest} extends {@link RequestModel}
*
* <p>GetCommonSwitchConfigRequest</p>
*/
public class GetCommonSwitchConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private GetCommonSwitchConfigRequest(Builder builder) {
super(builder);
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static GetCommonSwitchConfigRequest 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<GetCommonSwitchConfigRequest, Builder> {
private String type;
private Builder() {
super();
}
private Builder(GetCommonSwitchConfigRequest request) {
super(request);
this.type = request.type;
}
/**
* <p>The type of the common switch.</p>
* <blockquote>
* <p> You can call the <a href="~~ListClientUserDefineRules~~">ListClientUserDefineRules</a> or <a href="~~ListSystemClientRules~~">ListSystemClientRules</a> operation to obtain the switch type from the response parameter SwitchId.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>USER-DEFINE-RULE-SWITCH-TYPE_180****</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public GetCommonSwitchConfigRequest build() {
return new GetCommonSwitchConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCommonSwitchConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCommonSwitchConfigResponse} extends {@link TeaModel}
*
* <p>GetCommonSwitchConfigResponse</p>
*/
public class GetCommonSwitchConfigResponse 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 GetCommonSwitchConfigResponseBody body;
private GetCommonSwitchConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCommonSwitchConfigResponse 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 GetCommonSwitchConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCommonSwitchConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCommonSwitchConfigResponseBody body);
@Override
GetCommonSwitchConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCommonSwitchConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCommonSwitchConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCommonSwitchConfigResponse 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(GetCommonSwitchConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCommonSwitchConfigResponse build() {
return new GetCommonSwitchConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCommonSwitchConfigResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCommonSwitchConfigResponseBody} extends {@link TeaModel}
*
* <p>GetCommonSwitchConfigResponseBody</p>
*/
public class GetCommonSwitchConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCommonSwitchConfigResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCommonSwitchConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetCommonSwitchConfigResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>24A20733-10A0-4AF6-BE6B-E3322413****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCommonSwitchConfigResponseBody build() {
return new GetCommonSwitchConfigResponseBody(this);
}
}
/**
*
* {@link GetCommonSwitchConfigResponseBody} extends {@link TeaModel}
*
* <p>GetCommonSwitchConfigResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TargetDefault")
private String targetDefault;
@com.aliyun.core.annotation.NameInMap("TargetSyncStatus")
private String targetSyncStatus;
private Data(Builder builder) {
this.targetDefault = builder.targetDefault;
this.targetSyncStatus = builder.targetSyncStatus;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return targetDefault
*/
public String getTargetDefault() {
return this.targetDefault;
}
/**
* @return targetSyncStatus
*/
public String getTargetSyncStatus() {
return this.targetSyncStatus;
}
public static final class Builder {
private String targetDefault;
private String targetSyncStatus;
private Builder() {
}
private Builder(Data model) {
this.targetDefault = model.targetDefault;
this.targetSyncStatus = model.targetSyncStatus;
}
/**
* <p>Specifies whether to turn on the switch for newly added servers. Valid values:</p>
* <ul>
* <li><strong>add</strong>: By default, the switch is turned on for newly added servers.</li>
* <li><strong>del</strong>: By default, the switch is turned off for newly added servers.</li>
* </ul>
*
* <strong>example:</strong>
* <p>add</p>
*/
public Builder targetDefault(String targetDefault) {
this.targetDefault = targetDefault;
return this;
}
/**
* <p>The status of the synchronization. Valid values:</p>
* <ul>
* <li><strong>sync</strong>: The modifications are being synchronized.</li>
* <li><strong>valid</strong>: The modifications has taken effect.</li>
* </ul>
*
* <strong>example:</strong>
* <p>valid</p>
*/
public Builder targetSyncStatus(String targetSyncStatus) {
this.targetSyncStatus = targetSyncStatus;
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/GetConsoleFuncGrayStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetConsoleFuncGrayStatusRequest} extends {@link RequestModel}
*
* <p>GetConsoleFuncGrayStatusRequest</p>
*/
public class GetConsoleFuncGrayStatusRequest 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("Lang")
private String lang;
private GetConsoleFuncGrayStatusRequest(Builder builder) {
super(builder);
this.condition = builder.condition;
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static GetConsoleFuncGrayStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return condition
*/
public String getCondition() {
return this.condition;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<GetConsoleFuncGrayStatusRequest, Builder> {
private String condition;
private String lang;
private Builder() {
super();
}
private Builder(GetConsoleFuncGrayStatusRequest request) {
super(request);
this.condition = request.condition;
this.lang = request.lang;
}
/**
* <p>Name of the function module.</p>
*
* <strong>example:</strong>
* <p>vpcConsoleSwitch</p>
*/
public Builder condition(String condition) {
this.putQueryParameter("Condition", condition);
this.condition = condition;
return this;
}
/**
* <p>Set the language type for request and response messages. Default value: <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 GetConsoleFuncGrayStatusRequest build() {
return new GetConsoleFuncGrayStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetConsoleFuncGrayStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetConsoleFuncGrayStatusResponse} extends {@link TeaModel}
*
* <p>GetConsoleFuncGrayStatusResponse</p>
*/
public class GetConsoleFuncGrayStatusResponse 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 GetConsoleFuncGrayStatusResponseBody body;
private GetConsoleFuncGrayStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetConsoleFuncGrayStatusResponse 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 GetConsoleFuncGrayStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetConsoleFuncGrayStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetConsoleFuncGrayStatusResponseBody body);
@Override
GetConsoleFuncGrayStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetConsoleFuncGrayStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetConsoleFuncGrayStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetConsoleFuncGrayStatusResponse 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(GetConsoleFuncGrayStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public GetConsoleFuncGrayStatusResponse build() {
return new GetConsoleFuncGrayStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetConsoleFuncGrayStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetConsoleFuncGrayStatusResponseBody} extends {@link TeaModel}
*
* <p>GetConsoleFuncGrayStatusResponseBody</p>
*/
public class GetConsoleFuncGrayStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetConsoleFuncGrayStatusResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetConsoleFuncGrayStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetConsoleFuncGrayStatusResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>Return result.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request. It can be used to troubleshoot and pinpoint issues.</p>
*
* <strong>example:</strong>
* <p>5DFD6277-CC36-57F7-ACE6-F5952XXXXXXXX</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetConsoleFuncGrayStatusResponseBody build() {
return new GetConsoleFuncGrayStatusResponseBody(this);
}
}
/**
*
* {@link GetConsoleFuncGrayStatusResponseBody} extends {@link TeaModel}
*
* <p>GetConsoleFuncGrayStatusResponseBody</p>
*/
public static class ExcludeApiList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Action")
private String action;
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Version")
private String version;
private ExcludeApiList(Builder builder) {
this.action = builder.action;
this.code = builder.code;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static ExcludeApiList create() {
return builder().build();
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return version
*/
public String getVersion() {
return this.version;
}
public static final class Builder {
private String action;
private String code;
private String version;
private Builder() {
}
private Builder(ExcludeApiList model) {
this.action = model.action;
this.code = model.code;
this.version = model.version;
}
/**
* <p>Action corresponding to the API.</p>
*
* <strong>example:</strong>
* <p>GetAttackTypeList</p>
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* <p>Product Code.</p>
*
* <strong>example:</strong>
* <p>Sas</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>API version.</p>
*
* <strong>example:</strong>
* <p>2017-11-10</p>
*/
public Builder version(String version) {
this.version = version;
return this;
}
public ExcludeApiList build() {
return new ExcludeApiList(this);
}
}
}
/**
*
* {@link GetConsoleFuncGrayStatusResponseBody} extends {@link TeaModel}
*
* <p>GetConsoleFuncGrayStatusResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ExcludeApiList")
private java.util.List<ExcludeApiList> excludeApiList;
@com.aliyun.core.annotation.NameInMap("Hit")
private Boolean hit;
private Data(Builder builder) {
this.excludeApiList = builder.excludeApiList;
this.hit = builder.hit;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return excludeApiList
*/
public java.util.List<ExcludeApiList> getExcludeApiList() {
return this.excludeApiList;
}
/**
* @return hit
*/
public Boolean getHit() {
return this.hit;
}
public static final class Builder {
private java.util.List<ExcludeApiList> excludeApiList;
private Boolean hit;
private Builder() {
}
private Builder(Data model) {
this.excludeApiList = model.excludeApiList;
this.hit = model.hit;
}
/**
* <p>List of APIs not hit.</p>
*/
public Builder excludeApiList(java.util.List<ExcludeApiList> excludeApiList) {
this.excludeApiList = excludeApiList;
return this;
}
/**
* <p>Whether it hits the gray status.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder hit(Boolean hit) {
this.hit = hit;
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/GetContainerDefenseRuleDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetContainerDefenseRuleDetailRequest} extends {@link RequestModel}
*
* <p>GetContainerDefenseRuleDetailRequest</p>
*/
public class GetContainerDefenseRuleDetailRequest 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("RuleId")
private Long ruleId;
private GetContainerDefenseRuleDetailRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.ruleId = builder.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static GetContainerDefenseRuleDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
public static final class Builder extends Request.Builder<GetContainerDefenseRuleDetailRequest, Builder> {
private String lang;
private Long ruleId;
private Builder() {
super();
}
private Builder(GetContainerDefenseRuleDetailRequest request) {
super(request);
this.lang = request.lang;
this.ruleId = request.ruleId;
}
/**
* Lang.
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The rule ID.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/2590599.html">ListContainerDefenseRule</a> operation to query the rule ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>156</p>
*/
public Builder ruleId(Long ruleId) {
this.putQueryParameter("RuleId", ruleId);
this.ruleId = ruleId;
return this;
}
@Override
public GetContainerDefenseRuleDetailRequest build() {
return new GetContainerDefenseRuleDetailRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetContainerDefenseRuleDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetContainerDefenseRuleDetailResponse} extends {@link TeaModel}
*
* <p>GetContainerDefenseRuleDetailResponse</p>
*/
public class GetContainerDefenseRuleDetailResponse 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 GetContainerDefenseRuleDetailResponseBody body;
private GetContainerDefenseRuleDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetContainerDefenseRuleDetailResponse 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 GetContainerDefenseRuleDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetContainerDefenseRuleDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetContainerDefenseRuleDetailResponseBody body);
@Override
GetContainerDefenseRuleDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetContainerDefenseRuleDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetContainerDefenseRuleDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetContainerDefenseRuleDetailResponse 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(GetContainerDefenseRuleDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public GetContainerDefenseRuleDetailResponse build() {
return new GetContainerDefenseRuleDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetContainerDefenseRuleDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetContainerDefenseRuleDetailResponseBody} extends {@link TeaModel}
*
* <p>GetContainerDefenseRuleDetailResponseBody</p>
*/
public class GetContainerDefenseRuleDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetContainerDefenseRuleDetailResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetContainerDefenseRuleDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetContainerDefenseRuleDetailResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The response code. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The details of the rule.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code. The status code 200 indicates that the request was successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>77546BF4-CCE8-5F8D-B42B-5FD3306B43B4</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetContainerDefenseRuleDetailResponseBody build() {
return new GetContainerDefenseRuleDetailResponseBody(this);
}
}
/**
*
* {@link GetContainerDefenseRuleDetailResponseBody} extends {@link TeaModel}
*
* <p>GetContainerDefenseRuleDetailResponseBody</p>
*/
public static class Scope extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllNamespace")
private Integer allNamespace;
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("Namespaces")
private java.util.List<String> namespaces;
private Scope(Builder builder) {
this.allNamespace = builder.allNamespace;
this.clusterId = builder.clusterId;
this.namespaces = builder.namespaces;
}
public static Builder builder() {
return new Builder();
}
public static Scope create() {
return builder().build();
}
/**
* @return allNamespace
*/
public Integer getAllNamespace() {
return this.allNamespace;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return namespaces
*/
public java.util.List<String> getNamespaces() {
return this.namespaces;
}
public static final class Builder {
private Integer allNamespace;
private String clusterId;
private java.util.List<String> namespaces;
private Builder() {
}
private Builder(Scope model) {
this.allNamespace = model.allNamespace;
this.clusterId = model.clusterId;
this.namespaces = model.namespaces;
}
/**
* <p>Indicates whether all namespaces are included. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder allNamespace(Integer allNamespace) {
this.allNamespace = allNamespace;
return this;
}
/**
* <p>The ID of the container cluster.</p>
*
* <strong>example:</strong>
* <p>c9bea04<em>2b25</em>*</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>An array that consists of queried namespaces.</p>
*/
public Builder namespaces(java.util.List<String> namespaces) {
this.namespaces = namespaces;
return this;
}
public Scope build() {
return new Scope(this);
}
}
}
/**
*
* {@link GetContainerDefenseRuleDetailResponseBody} extends {@link TeaModel}
*
* <p>GetContainerDefenseRuleDetailResponseBody</p>
*/
public static class Whitelist extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Hash")
@Deprecated
private java.util.List<String> hash;
@com.aliyun.core.annotation.NameInMap("Image")
private java.util.List<String> image;
@com.aliyun.core.annotation.NameInMap("Path")
private java.util.List<String> path;
private Whitelist(Builder builder) {
this.hash = builder.hash;
this.image = builder.image;
this.path = builder.path;
}
public static Builder builder() {
return new Builder();
}
public static Whitelist create() {
return builder().build();
}
/**
* @return hash
*/
public java.util.List<String> getHash() {
return this.hash;
}
/**
* @return image
*/
public java.util.List<String> getImage() {
return this.image;
}
/**
* @return path
*/
public java.util.List<String> getPath() {
return this.path;
}
public static final class Builder {
private java.util.List<String> hash;
private java.util.List<String> image;
private java.util.List<String> path;
private Builder() {
}
private Builder(Whitelist model) {
this.hash = model.hash;
this.image = model.image;
this.path = model.path;
}
/**
* <p>The hash values of the files that are added to the whitelist.</p>
* <blockquote>
* <p> This parameter is not supported.</p>
* </blockquote>
*/
public Builder hash(java.util.List<String> hash) {
this.hash = hash;
return this;
}
/**
* <p>An array consisting of images that are added to the whitelist.</p>
*/
public Builder image(java.util.List<String> image) {
this.image = image;
return this;
}
/**
* <p>The paths to the files that are added to the whitelist.</p>
*/
public Builder path(java.util.List<String> path) {
this.path = path;
return this;
}
public Whitelist build() {
return new Whitelist(this);
}
}
}
/**
*
* {@link GetContainerDefenseRuleDetailResponseBody} extends {@link TeaModel}
*
* <p>GetContainerDefenseRuleDetailResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private Long aliUid;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@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 Long id;
@com.aliyun.core.annotation.NameInMap("RuleAction")
private Integer ruleAction;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("RuleSwitch")
private Integer ruleSwitch;
@com.aliyun.core.annotation.NameInMap("RuleType")
private String ruleType;
@com.aliyun.core.annotation.NameInMap("Scope")
private java.util.List<Scope> scope;
@com.aliyun.core.annotation.NameInMap("Whitelist")
private Whitelist whitelist;
private Data(Builder builder) {
this.aliUid = builder.aliUid;
this.description = builder.description;
this.eventName = builder.eventName;
this.eventType = builder.eventType;
this.id = builder.id;
this.ruleAction = builder.ruleAction;
this.ruleName = builder.ruleName;
this.ruleSwitch = builder.ruleSwitch;
this.ruleType = builder.ruleType;
this.scope = builder.scope;
this.whitelist = builder.whitelist;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return aliUid
*/
public Long getAliUid() {
return this.aliUid;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return eventType
*/
public String getEventType() {
return this.eventType;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return ruleAction
*/
public Integer getRuleAction() {
return this.ruleAction;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return ruleSwitch
*/
public Integer getRuleSwitch() {
return this.ruleSwitch;
}
/**
* @return ruleType
*/
public String getRuleType() {
return this.ruleType;
}
/**
* @return scope
*/
public java.util.List<Scope> getScope() {
return this.scope;
}
/**
* @return whitelist
*/
public Whitelist getWhitelist() {
return this.whitelist;
}
public static final class Builder {
private Long aliUid;
private String description;
private String eventName;
private String eventType;
private Long id;
private Integer ruleAction;
private String ruleName;
private Integer ruleSwitch;
private String ruleType;
private java.util.List<Scope> scope;
private Whitelist whitelist;
private Builder() {
}
private Builder(Data model) {
this.aliUid = model.aliUid;
this.description = model.description;
this.eventName = model.eventName;
this.eventType = model.eventType;
this.id = model.id;
this.ruleAction = model.ruleAction;
this.ruleName = model.ruleName;
this.ruleSwitch = model.ruleSwitch;
this.ruleType = model.ruleType;
this.scope = model.scope;
this.whitelist = model.whitelist;
}
/**
* <p>The user ID.</p>
*
* <strong>example:</strong>
* <p>1766185894104***</p>
*/
public Builder aliUid(Long aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <p>The description of the rule.</p>
*
* <strong>example:</strong>
* <p>Custom defense configuration</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The alert name. Valid values:</p>
* <ul>
* <li><strong>Non-image Program Startup</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>EventName</p>
*/
public Builder eventName(String eventName) {
this.eventName = eventName;
return this;
}
/**
* <p>The alert type. Valid values:</p>
* <ul>
* <li><strong>Proactive Defense for Containers</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>EventType</p>
*/
public Builder eventType(String eventType) {
this.eventType = eventType;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>1948</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The action specified in the rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: alert</li>
* <li><strong>2</strong>: block</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ruleAction(Integer ruleAction) {
this.ruleAction = ruleAction;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test-000</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The status of the rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: enabled</li>
* <li><strong>0</strong>: disabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder ruleSwitch(Integer ruleSwitch) {
this.ruleSwitch = ruleSwitch;
return this;
}
/**
* <p>The type of the rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: system rule</li>
* <li><strong>2</strong>: custom rule</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ruleType(String ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* <p>The effective scope of the rule.</p>
*/
public Builder scope(java.util.List<Scope> scope) {
this.scope = scope;
return this;
}
/**
* <p>The whitelist.</p>
*/
public Builder whitelist(Whitelist whitelist) {
this.whitelist = whitelist;
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/GetCurrentVersionPublishRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCurrentVersionPublishRequest} extends {@link RequestModel}
*
* <p>GetCurrentVersionPublishRequest</p>
*/
public class GetCurrentVersionPublishRequest extends Request {
private GetCurrentVersionPublishRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetCurrentVersionPublishRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetCurrentVersionPublishRequest, Builder> {
private Builder() {
super();
}
private Builder(GetCurrentVersionPublishRequest request) {
super(request);
}
@Override
public GetCurrentVersionPublishRequest build() {
return new GetCurrentVersionPublishRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCurrentVersionPublishResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCurrentVersionPublishResponse} extends {@link TeaModel}
*
* <p>GetCurrentVersionPublishResponse</p>
*/
public class GetCurrentVersionPublishResponse 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 GetCurrentVersionPublishResponseBody body;
private GetCurrentVersionPublishResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCurrentVersionPublishResponse 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 GetCurrentVersionPublishResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCurrentVersionPublishResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCurrentVersionPublishResponseBody body);
@Override
GetCurrentVersionPublishResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCurrentVersionPublishResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCurrentVersionPublishResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCurrentVersionPublishResponse 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(GetCurrentVersionPublishResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCurrentVersionPublishResponse build() {
return new GetCurrentVersionPublishResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetCurrentVersionPublishResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetCurrentVersionPublishResponseBody} extends {@link TeaModel}
*
* <p>GetCurrentVersionPublishResponseBody</p>
*/
public class GetCurrentVersionPublishResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetCurrentVersionPublishResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetCurrentVersionPublishResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetCurrentVersionPublishResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1383B0DB-D5D6-4B0C-9E6B-75939C8E67FE</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetCurrentVersionPublishResponseBody build() {
return new GetCurrentVersionPublishResponseBody(this);
}
}
/**
*
* {@link GetCurrentVersionPublishResponseBody} extends {@link TeaModel}
*
* <p>GetCurrentVersionPublishResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AutoUpgrade")
private Integer autoUpgrade;
@com.aliyun.core.annotation.NameInMap("BigCustomer")
private Boolean bigCustomer;
@com.aliyun.core.annotation.NameInMap("CurVersion")
private String curVersion;
@com.aliyun.core.annotation.NameInMap("ForceUpgradeTime")
private Long forceUpgradeTime;
@com.aliyun.core.annotation.NameInMap("GraySwitchStatus")
private Integer graySwitchStatus;
@com.aliyun.core.annotation.NameInMap("LatestVersion")
private String latestVersion;
@com.aliyun.core.annotation.NameInMap("LatestVersionCreate")
private Long latestVersionCreate;
@com.aliyun.core.annotation.NameInMap("LatestVersionDesc")
private String latestVersionDesc;
@com.aliyun.core.annotation.NameInMap("PublishStatus")
private Integer publishStatus;
@com.aliyun.core.annotation.NameInMap("UpgradeVersion")
private String upgradeVersion;
private Data(Builder builder) {
this.autoUpgrade = builder.autoUpgrade;
this.bigCustomer = builder.bigCustomer;
this.curVersion = builder.curVersion;
this.forceUpgradeTime = builder.forceUpgradeTime;
this.graySwitchStatus = builder.graySwitchStatus;
this.latestVersion = builder.latestVersion;
this.latestVersionCreate = builder.latestVersionCreate;
this.latestVersionDesc = builder.latestVersionDesc;
this.publishStatus = builder.publishStatus;
this.upgradeVersion = builder.upgradeVersion;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return autoUpgrade
*/
public Integer getAutoUpgrade() {
return this.autoUpgrade;
}
/**
* @return bigCustomer
*/
public Boolean getBigCustomer() {
return this.bigCustomer;
}
/**
* @return curVersion
*/
public String getCurVersion() {
return this.curVersion;
}
/**
* @return forceUpgradeTime
*/
public Long getForceUpgradeTime() {
return this.forceUpgradeTime;
}
/**
* @return graySwitchStatus
*/
public Integer getGraySwitchStatus() {
return this.graySwitchStatus;
}
/**
* @return latestVersion
*/
public String getLatestVersion() {
return this.latestVersion;
}
/**
* @return latestVersionCreate
*/
public Long getLatestVersionCreate() {
return this.latestVersionCreate;
}
/**
* @return latestVersionDesc
*/
public String getLatestVersionDesc() {
return this.latestVersionDesc;
}
/**
* @return publishStatus
*/
public Integer getPublishStatus() {
return this.publishStatus;
}
/**
* @return upgradeVersion
*/
public String getUpgradeVersion() {
return this.upgradeVersion;
}
public static final class Builder {
private Integer autoUpgrade;
private Boolean bigCustomer;
private String curVersion;
private Long forceUpgradeTime;
private Integer graySwitchStatus;
private String latestVersion;
private Long latestVersionCreate;
private String latestVersionDesc;
private Integer publishStatus;
private String upgradeVersion;
private Builder() {
}
private Builder(Data model) {
this.autoUpgrade = model.autoUpgrade;
this.bigCustomer = model.bigCustomer;
this.curVersion = model.curVersion;
this.forceUpgradeTime = model.forceUpgradeTime;
this.graySwitchStatus = model.graySwitchStatus;
this.latestVersion = model.latestVersion;
this.latestVersionCreate = model.latestVersionCreate;
this.latestVersionDesc = model.latestVersionDesc;
this.publishStatus = model.publishStatus;
this.upgradeVersion = model.upgradeVersion;
}
/**
* <p>Indicates whether automatic upgrade is enabled. 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 autoUpgrade(Integer autoUpgrade) {
this.autoUpgrade = autoUpgrade;
return this;
}
/**
* <p>Indicates whether you can enable custom upgrade for the Security Center agent. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder bigCustomer(Boolean bigCustomer) {
this.bigCustomer = bigCustomer;
return this;
}
/**
* <p>The version of the Security Center agent.</p>
*
* <strong>example:</strong>
* <p>0.0.8</p>
*/
public Builder curVersion(String curVersion) {
this.curVersion = curVersion;
return this;
}
/**
* <p>The timestamp when the Security Center agent was forcibly upgraded.</p>
*
* <strong>example:</strong>
* <p>1732506308000</p>
*/
public Builder forceUpgradeTime(Long forceUpgradeTime) {
this.forceUpgradeTime = forceUpgradeTime;
return this;
}
/**
* <p>Indicates whether the canary release policy is enabled. 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 graySwitchStatus(Integer graySwitchStatus) {
this.graySwitchStatus = graySwitchStatus;
return this;
}
/**
* <p>The latest version of the Security Center agent.</p>
*
* <strong>example:</strong>
* <p>0.0.9</p>
*/
public Builder latestVersion(String latestVersion) {
this.latestVersion = latestVersion;
return this;
}
/**
* <p>The timestamp when the latest version of the Security Center agent was created.</p>
*
* <strong>example:</strong>
* <p>1662639150000</p>
*/
public Builder latestVersionCreate(Long latestVersionCreate) {
this.latestVersionCreate = latestVersionCreate;
return this;
}
/**
* <p>The description of about the latest version.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder latestVersionDesc(String latestVersionDesc) {
this.latestVersionDesc = latestVersionDesc;
return this;
}
/**
* <p>The publish status of the Security Center agent. Valid values:</p>
* <ul>
* <li><strong>0</strong>: not started.</li>
* <li><strong>1</strong>: publishing.</li>
* <li><strong>2</strong>: published.</li>
* <li><strong>3</strong>: publish suspended.</li>
* <li><strong>4</strong>: forcibly upgrading.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder publishStatus(Integer publishStatus) {
this.publishStatus = publishStatus;
return this;
}
/**
* <p>The destination version of the Security Center agent.</p>
*
* <strong>example:</strong>
* <p>0.0.9</p>
*/
public Builder upgradeVersion(String upgradeVersion) {
this.upgradeVersion = upgradeVersion;
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/GetDataTrendRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDataTrendRequest} extends {@link RequestModel}
*
* <p>GetDataTrendRequest</p>
*/
public class GetDataTrendRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BizTypes")
@com.aliyun.core.annotation.Validation(required = true)
private String bizTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTimestamp")
@com.aliyun.core.annotation.Validation(required = true)
private Long endTimestamp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Interval")
@com.aliyun.core.annotation.Validation(required = true, minimum = 1000)
private Integer interval;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTimestamp")
@com.aliyun.core.annotation.Validation(required = true)
private Long startTimestamp;
private GetDataTrendRequest(Builder builder) {
super(builder);
this.bizTypes = builder.bizTypes;
this.endTimestamp = builder.endTimestamp;
this.interval = builder.interval;
this.startTimestamp = builder.startTimestamp;
}
public static Builder builder() {
return new Builder();
}
public static GetDataTrendRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bizTypes
*/
public String getBizTypes() {
return this.bizTypes;
}
/**
* @return endTimestamp
*/
public Long getEndTimestamp() {
return this.endTimestamp;
}
/**
* @return interval
*/
public Integer getInterval() {
return this.interval;
}
/**
* @return startTimestamp
*/
public Long getStartTimestamp() {
return this.startTimestamp;
}
public static final class Builder extends Request.Builder<GetDataTrendRequest, Builder> {
private String bizTypes;
private Long endTimestamp;
private Integer interval;
private Long startTimestamp;
private Builder() {
super();
}
private Builder(GetDataTrendRequest request) {
super(request);
this.bizTypes = request.bizTypes;
this.endTimestamp = request.endTimestamp;
this.interval = request.interval;
this.startTimestamp = request.startTimestamp;
}
/**
* <p>The type of the security data that you want to query. Valid values:</p>
* <ul>
* <li><strong>HC_NEW</strong>: the number of new baseline risks.</li>
* <li><strong>HC_OPERATE</strong>: the number of handled baseline risks.</li>
* <li><strong>VUL_NEW</strong>: the number of new vulnerabilities.</li>
* <li><strong>VUL_OPERATE</strong>: the number of handled vulnerabilities.</li>
* <li><strong>SUSP_NEW</strong>: the number of new alerts.</li>
* <li><strong>SUSP_OPERATE</strong>: the number of handled alerts.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>HC_NEW,HC_OPERATE</p>
*/
public Builder bizTypes(String bizTypes) {
this.putQueryParameter("BizTypes", bizTypes);
this.bizTypes = bizTypes;
return this;
}
/**
* <p>The end of the time range to query. The value is a UNIX timestamp. Unit: milliseconds.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1721923200000</p>
*/
public Builder endTimestamp(Long endTimestamp) {
this.putQueryParameter("EndTimestamp", endTimestamp);
this.endTimestamp = endTimestamp;
return this;
}
/**
* <p>The interval of the data that you want to query. Unit: milliseconds.</p>
* <blockquote>
* <p> The minimum value is 1000.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>86400000</p>
*/
public Builder interval(Integer interval) {
this.putQueryParameter("Interval", interval);
this.interval = interval;
return this;
}
/**
* <p>The beginning of the time range to query. The value is a UNIX timestamp. Unit: milliseconds.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1687334501000</p>
*/
public Builder startTimestamp(Long startTimestamp) {
this.putQueryParameter("StartTimestamp", startTimestamp);
this.startTimestamp = startTimestamp;
return this;
}
@Override
public GetDataTrendRequest build() {
return new GetDataTrendRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDataTrendResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDataTrendResponse} extends {@link TeaModel}
*
* <p>GetDataTrendResponse</p>
*/
public class GetDataTrendResponse 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 GetDataTrendResponseBody body;
private GetDataTrendResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDataTrendResponse 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 GetDataTrendResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDataTrendResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDataTrendResponseBody body);
@Override
GetDataTrendResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDataTrendResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDataTrendResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDataTrendResponse 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(GetDataTrendResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDataTrendResponse build() {
return new GetDataTrendResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDataTrendResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDataTrendResponseBody} extends {@link TeaModel}
*
* <p>GetDataTrendResponseBody</p>
*/
public class GetDataTrendResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetDataTrendResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetDataTrendResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetDataTrendResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The response parameters.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1383B0DB-D5D6-4B0C-9E6B-75939C8E****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetDataTrendResponseBody build() {
return new GetDataTrendResponseBody(this);
}
}
/**
*
* {@link GetDataTrendResponseBody} extends {@link TeaModel}
*
* <p>GetDataTrendResponseBody</p>
*/
public static class ItemList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CountList")
private java.util.List<Long> countList;
@com.aliyun.core.annotation.NameInMap("KeyName")
private String keyName;
private ItemList(Builder builder) {
this.countList = builder.countList;
this.keyName = builder.keyName;
}
public static Builder builder() {
return new Builder();
}
public static ItemList create() {
return builder().build();
}
/**
* @return countList
*/
public java.util.List<Long> getCountList() {
return this.countList;
}
/**
* @return keyName
*/
public String getKeyName() {
return this.keyName;
}
public static final class Builder {
private java.util.List<Long> countList;
private String keyName;
private Builder() {
}
private Builder(ItemList model) {
this.countList = model.countList;
this.keyName = model.keyName;
}
/**
* <p>The statistical values of the trend data.</p>
*/
public Builder countList(java.util.List<Long> countList) {
this.countList = countList;
return this;
}
/**
* <p>The type of the security data. Valid values:</p>
* <ul>
* <li><strong>HC_NEW</strong>: the number of new baseline risks.</li>
* <li><strong>HC_OPERATE</strong>: the number of handled baseline risks.</li>
* <li><strong>VUL_NEW</strong>: the number of new vulnerabilities.</li>
* <li><strong>VUL_OPERATE</strong>: the number of handled vulnerabilities.</li>
* <li><strong>SUSP_NEW</strong>: the number of new alerts.</li>
* <li><strong>SUSP_OPERATE</strong>: the number of handled alerts.</li>
* </ul>
*
* <strong>example:</strong>
* <p>HC_NEW</p>
*/
public Builder keyName(String keyName) {
this.keyName = keyName;
return this;
}
public ItemList build() {
return new ItemList(this);
}
}
}
/**
*
* {@link GetDataTrendResponseBody} extends {@link TeaModel}
*
* <p>GetDataTrendResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DateList")
private java.util.List<Integer> dateList;
@com.aliyun.core.annotation.NameInMap("DateStrList")
private java.util.List<String> dateStrList;
@com.aliyun.core.annotation.NameInMap("ItemList")
private java.util.List<ItemList> itemList;
private Data(Builder builder) {
this.dateList = builder.dateList;
this.dateStrList = builder.dateStrList;
this.itemList = builder.itemList;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return dateList
*/
public java.util.List<Integer> getDateList() {
return this.dateList;
}
/**
* @return dateStrList
*/
public java.util.List<String> getDateStrList() {
return this.dateStrList;
}
/**
* @return itemList
*/
public java.util.List<ItemList> getItemList() {
return this.itemList;
}
public static final class Builder {
private java.util.List<Integer> dateList;
private java.util.List<String> dateStrList;
private java.util.List<ItemList> itemList;
private Builder() {
}
private Builder(Data model) {
this.dateList = model.dateList;
this.dateStrList = model.dateStrList;
this.itemList = model.itemList;
}
/**
* <p>The statistical timestamps of the trend data.</p>
*/
public Builder dateList(java.util.List<Integer> dateList) {
this.dateList = dateList;
return this;
}
/**
* <p>The statistical dates and time for the trend data.</p>
*/
public Builder dateStrList(java.util.List<String> dateStrList) {
this.dateStrList = dateStrList;
return this;
}
/**
* <p>The returned data.</p>
*/
public Builder itemList(java.util.List<ItemList> itemList) {
this.itemList = itemList;
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/GetDefenceCountRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDefenceCountRequest} extends {@link RequestModel}
*
* <p>GetDefenceCountRequest</p>
*/
public class GetDefenceCountRequest extends Request {
private GetDefenceCountRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetDefenceCountRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetDefenceCountRequest, Builder> {
private Builder() {
super();
}
private Builder(GetDefenceCountRequest request) {
super(request);
}
@Override
public GetDefenceCountRequest build() {
return new GetDefenceCountRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDefenceCountResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDefenceCountResponse} extends {@link TeaModel}
*
* <p>GetDefenceCountResponse</p>
*/
public class GetDefenceCountResponse 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 GetDefenceCountResponseBody body;
private GetDefenceCountResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDefenceCountResponse 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 GetDefenceCountResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDefenceCountResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDefenceCountResponseBody body);
@Override
GetDefenceCountResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDefenceCountResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDefenceCountResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDefenceCountResponse 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(GetDefenceCountResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDefenceCountResponse build() {
return new GetDefenceCountResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDefenceCountResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDefenceCountResponseBody} extends {@link TeaModel}
*
* <p>GetDefenceCountResponseBody</p>
*/
public class GetDefenceCountResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DefenceCount15Days")
private Integer defenceCount15Days;
@com.aliyun.core.annotation.NameInMap("DefenceCountTotal")
private Integer defenceCountTotal;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SuspiciousDealtCount")
private Integer suspiciousDealtCount;
@com.aliyun.core.annotation.NameInMap("TamperProof15Days")
private Integer tamperProof15Days;
@com.aliyun.core.annotation.NameInMap("TamperProofTotal")
private Integer tamperProofTotal;
private GetDefenceCountResponseBody(Builder builder) {
this.defenceCount15Days = builder.defenceCount15Days;
this.defenceCountTotal = builder.defenceCountTotal;
this.requestId = builder.requestId;
this.suspiciousDealtCount = builder.suspiciousDealtCount;
this.tamperProof15Days = builder.tamperProof15Days;
this.tamperProofTotal = builder.tamperProofTotal;
}
public static Builder builder() {
return new Builder();
}
public static GetDefenceCountResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return defenceCount15Days
*/
public Integer getDefenceCount15Days() {
return this.defenceCount15Days;
}
/**
* @return defenceCountTotal
*/
public Integer getDefenceCountTotal() {
return this.defenceCountTotal;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return suspiciousDealtCount
*/
public Integer getSuspiciousDealtCount() {
return this.suspiciousDealtCount;
}
/**
* @return tamperProof15Days
*/
public Integer getTamperProof15Days() {
return this.tamperProof15Days;
}
/**
* @return tamperProofTotal
*/
public Integer getTamperProofTotal() {
return this.tamperProofTotal;
}
public static final class Builder {
private Integer defenceCount15Days;
private Integer defenceCountTotal;
private String requestId;
private Integer suspiciousDealtCount;
private Integer tamperProof15Days;
private Integer tamperProofTotal;
private Builder() {
}
private Builder(GetDefenceCountResponseBody model) {
this.defenceCount15Days = model.defenceCount15Days;
this.defenceCountTotal = model.defenceCountTotal;
this.requestId = model.requestId;
this.suspiciousDealtCount = model.suspiciousDealtCount;
this.tamperProof15Days = model.tamperProof15Days;
this.tamperProofTotal = model.tamperProofTotal;
}
/**
* <p>The number of handled alerts of the precise defense type in the last 15 days.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder defenceCount15Days(Integer defenceCount15Days) {
this.defenceCount15Days = defenceCount15Days;
return this;
}
/**
* <p>The number of handled alerts of the precision defense type.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder defenceCountTotal(Integer defenceCountTotal) {
this.defenceCountTotal = defenceCountTotal;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>89AD16CC-97EE-50F3-9B12-9E28E5C8****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of handled security alerts of Cloud Security Center.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder suspiciousDealtCount(Integer suspiciousDealtCount) {
this.suspiciousDealtCount = suspiciousDealtCount;
return this;
}
/**
* <p>The number of handled alerts of the web tamper proofing type in the last 15 days.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder tamperProof15Days(Integer tamperProof15Days) {
this.tamperProof15Days = tamperProof15Days;
return this;
}
/**
* <p>The number of handled alerts of the web tamper proofing type.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder tamperProofTotal(Integer tamperProofTotal) {
this.tamperProofTotal = tamperProofTotal;
return this;
}
public GetDefenceCountResponseBody build() {
return new GetDefenceCountResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDockerhubImageRiskRankInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDockerhubImageRiskRankInfoRequest} extends {@link RequestModel}
*
* <p>GetDockerhubImageRiskRankInfoRequest</p>
*/
public class GetDockerhubImageRiskRankInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Types")
private java.util.List<String> types;
private GetDockerhubImageRiskRankInfoRequest(Builder builder) {
super(builder);
this.types = builder.types;
}
public static Builder builder() {
return new Builder();
}
public static GetDockerhubImageRiskRankInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return types
*/
public java.util.List<String> getTypes() {
return this.types;
}
public static final class Builder extends Request.Builder<GetDockerhubImageRiskRankInfoRequest, Builder> {
private java.util.List<String> types;
private Builder() {
super();
}
private Builder(GetDockerhubImageRiskRankInfoRequest request) {
super(request);
this.types = request.types;
}
/**
* <p>The dimension types.</p>
*/
public Builder types(java.util.List<String> types) {
this.putQueryParameter("Types", types);
this.types = types;
return this;
}
@Override
public GetDockerhubImageRiskRankInfoRequest build() {
return new GetDockerhubImageRiskRankInfoRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDockerhubImageRiskRankInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDockerhubImageRiskRankInfoResponse} extends {@link TeaModel}
*
* <p>GetDockerhubImageRiskRankInfoResponse</p>
*/
public class GetDockerhubImageRiskRankInfoResponse 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 GetDockerhubImageRiskRankInfoResponseBody body;
private GetDockerhubImageRiskRankInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDockerhubImageRiskRankInfoResponse 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 GetDockerhubImageRiskRankInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDockerhubImageRiskRankInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDockerhubImageRiskRankInfoResponseBody body);
@Override
GetDockerhubImageRiskRankInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDockerhubImageRiskRankInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDockerhubImageRiskRankInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDockerhubImageRiskRankInfoResponse 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(GetDockerhubImageRiskRankInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDockerhubImageRiskRankInfoResponse build() {
return new GetDockerhubImageRiskRankInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDockerhubImageRiskRankInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDockerhubImageRiskRankInfoResponseBody} extends {@link TeaModel}
*
* <p>GetDockerhubImageRiskRankInfoResponseBody</p>
*/
public class GetDockerhubImageRiskRankInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RiskRankInfo")
private RiskRankInfo riskRankInfo;
private GetDockerhubImageRiskRankInfoResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.riskRankInfo = builder.riskRankInfo;
}
public static Builder builder() {
return new Builder();
}
public static GetDockerhubImageRiskRankInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return riskRankInfo
*/
public RiskRankInfo getRiskRankInfo() {
return this.riskRankInfo;
}
public static final class Builder {
private String requestId;
private RiskRankInfo riskRankInfo;
private Builder() {
}
private Builder(GetDockerhubImageRiskRankInfoResponseBody model) {
this.requestId = model.requestId;
this.riskRankInfo = model.riskRankInfo;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>30CBF632-109F-596F-97F2-451C8B2A****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The risk information.</p>
*/
public Builder riskRankInfo(RiskRankInfo riskRankInfo) {
this.riskRankInfo = riskRankInfo;
return this;
}
public GetDockerhubImageRiskRankInfoResponseBody build() {
return new GetDockerhubImageRiskRankInfoResponseBody(this);
}
}
/**
*
* {@link GetDockerhubImageRiskRankInfoResponseBody} extends {@link TeaModel}
*
* <p>GetDockerhubImageRiskRankInfoResponseBody</p>
*/
public static class Baseline extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Digest")
private String digest;
@com.aliyun.core.annotation.NameInMap("HcCount")
private Integer hcCount;
@com.aliyun.core.annotation.NameInMap("ImageId")
private String imageId;
@com.aliyun.core.annotation.NameInMap("ImageSize")
private Long imageSize;
@com.aliyun.core.annotation.NameInMap("RepoName")
private String repoName;
@com.aliyun.core.annotation.NameInMap("RepoNamespace")
private String repoNamespace;
@com.aliyun.core.annotation.NameInMap("RiskLevelDetail")
private String riskLevelDetail;
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VulCount")
private Integer vulCount;
private Baseline(Builder builder) {
this.digest = builder.digest;
this.hcCount = builder.hcCount;
this.imageId = builder.imageId;
this.imageSize = builder.imageSize;
this.repoName = builder.repoName;
this.repoNamespace = builder.repoNamespace;
this.riskLevelDetail = builder.riskLevelDetail;
this.tag = builder.tag;
this.uuid = builder.uuid;
this.vulCount = builder.vulCount;
}
public static Builder builder() {
return new Builder();
}
public static Baseline create() {
return builder().build();
}
/**
* @return digest
*/
public String getDigest() {
return this.digest;
}
/**
* @return hcCount
*/
public Integer getHcCount() {
return this.hcCount;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return imageSize
*/
public Long getImageSize() {
return this.imageSize;
}
/**
* @return repoName
*/
public String getRepoName() {
return this.repoName;
}
/**
* @return repoNamespace
*/
public String getRepoNamespace() {
return this.repoNamespace;
}
/**
* @return riskLevelDetail
*/
public String getRiskLevelDetail() {
return this.riskLevelDetail;
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vulCount
*/
public Integer getVulCount() {
return this.vulCount;
}
public static final class Builder {
private String digest;
private Integer hcCount;
private String imageId;
private Long imageSize;
private String repoName;
private String repoNamespace;
private String riskLevelDetail;
private String tag;
private String uuid;
private Integer vulCount;
private Builder() {
}
private Builder(Baseline model) {
this.digest = model.digest;
this.hcCount = model.hcCount;
this.imageId = model.imageId;
this.imageSize = model.imageSize;
this.repoName = model.repoName;
this.repoNamespace = model.repoNamespace;
this.riskLevelDetail = model.riskLevelDetail;
this.tag = model.tag;
this.uuid = model.uuid;
this.vulCount = model.vulCount;
}
/**
* <p>The digest value of the image.</p>
*
* <strong>example:</strong>
* <p>f28ecca63bfaf22ead4b28b63d752a21e4d2c1de90b8549fbde880d619f3****</p>
*/
public Builder digest(String digest) {
this.digest = digest;
return this;
}
/**
* <p>The number of baseline risks detected on the image repository.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hcCount(Integer hcCount) {
this.hcCount = hcCount;
return this;
}
/**
* <p>The ID of the image.</p>
*
* <strong>example:</strong>
* <p>7c5ad02865aef575387a05bb3c81b27e0d8ed1f2e3f722ea05523b72882f****</p>
*/
public Builder imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* <p>The image size.</p>
*
* <strong>example:</strong>
* <p>1024</p>
*/
public Builder imageSize(Long imageSize) {
this.imageSize = imageSize;
return this;
}
/**
* <p>The name of the Container Registry repository.</p>
*
* <strong>example:</strong>
* <p>glz123</p>
*/
public Builder repoName(String repoName) {
this.repoName = repoName;
return this;
}
/**
* <p>The namespace to which the repository belongs.</p>
*
* <strong>example:</strong>
* <p>namespace-01</p>
*/
public Builder repoNamespace(String repoNamespace) {
this.repoNamespace = repoNamespace;
return this;
}
/**
* <p>The risk statistics of all hosts, images, and containers.</p>
*
* <strong>example:</strong>
* <p>{"account":0,"agentlessAll":0,"agentlessBaseline":0,"agentlessMalicious":0,"agentlessSensitiveFile":0,"agentlessVulCve":0,"agentlessVulSca":0,"agentlessVulSys":0,"appNum":0,"asapVulCount":0,"baselineHigh":0,"baselineLow":0,"baselineMedium":0,"baselineNum":0,"cmsNum":0,"containerAsap":0,"containerLater":0,"containerNntf":0,"containerRemind":0,"containerSerious":0,"containerSuspicious":0,"cveNum":0,"emgNum":0,"health":0,"imageBaselineHigh":1,"imageBaselineLow":0,"imageBaselineMedium":0,"imageBaselineNum":1,"imageMaliciousFileRemind":0,"imageMaliciousFileSerious":0,"imageMaliciousFileSuspicious":0,"imageVulAsap":0,"imageVulLater":0,"imageVulNntf":0,"laterVulCount":0,"newSuspicious":0,"nntfVulCount":0,"remindNum":0,"scaNum":0,"seriousNum":0,"suspNum":0,"suspicious":0,"sysNum":0,"trojan":0,"uuid":"009635bf00c0585e3122ab92f5449919","vul":0,"weakPWNum":0}</p>
*/
public Builder riskLevelDetail(String riskLevelDetail) {
this.riskLevelDetail = riskLevelDetail;
return this;
}
/**
* <p>The tag of the image.</p>
*
* <strong>example:</strong>
* <p>machineResource</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The UUID of the record.</p>
*
* <strong>example:</strong>
* <p>5583aa03-922e-4709-a888-389f2489****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The number of detected vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder vulCount(Integer vulCount) {
this.vulCount = vulCount;
return this;
}
public Baseline build() {
return new Baseline(this);
}
}
}
/**
*
* {@link GetDockerhubImageRiskRankInfoResponseBody} extends {@link TeaModel}
*
* <p>GetDockerhubImageRiskRankInfoResponseBody</p>
*/
public static class VulAsap extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Digest")
private String digest;
@com.aliyun.core.annotation.NameInMap("HcCount")
private Integer hcCount;
@com.aliyun.core.annotation.NameInMap("ImageId")
private String imageId;
@com.aliyun.core.annotation.NameInMap("ImageSize")
private Long imageSize;
@com.aliyun.core.annotation.NameInMap("RepoName")
private String repoName;
@com.aliyun.core.annotation.NameInMap("RepoNamespace")
private String repoNamespace;
@com.aliyun.core.annotation.NameInMap("RiskLevelDetail")
private String riskLevelDetail;
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VulCount")
private Integer vulCount;
private VulAsap(Builder builder) {
this.digest = builder.digest;
this.hcCount = builder.hcCount;
this.imageId = builder.imageId;
this.imageSize = builder.imageSize;
this.repoName = builder.repoName;
this.repoNamespace = builder.repoNamespace;
this.riskLevelDetail = builder.riskLevelDetail;
this.tag = builder.tag;
this.uuid = builder.uuid;
this.vulCount = builder.vulCount;
}
public static Builder builder() {
return new Builder();
}
public static VulAsap create() {
return builder().build();
}
/**
* @return digest
*/
public String getDigest() {
return this.digest;
}
/**
* @return hcCount
*/
public Integer getHcCount() {
return this.hcCount;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return imageSize
*/
public Long getImageSize() {
return this.imageSize;
}
/**
* @return repoName
*/
public String getRepoName() {
return this.repoName;
}
/**
* @return repoNamespace
*/
public String getRepoNamespace() {
return this.repoNamespace;
}
/**
* @return riskLevelDetail
*/
public String getRiskLevelDetail() {
return this.riskLevelDetail;
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vulCount
*/
public Integer getVulCount() {
return this.vulCount;
}
public static final class Builder {
private String digest;
private Integer hcCount;
private String imageId;
private Long imageSize;
private String repoName;
private String repoNamespace;
private String riskLevelDetail;
private String tag;
private String uuid;
private Integer vulCount;
private Builder() {
}
private Builder(VulAsap model) {
this.digest = model.digest;
this.hcCount = model.hcCount;
this.imageId = model.imageId;
this.imageSize = model.imageSize;
this.repoName = model.repoName;
this.repoNamespace = model.repoNamespace;
this.riskLevelDetail = model.riskLevelDetail;
this.tag = model.tag;
this.uuid = model.uuid;
this.vulCount = model.vulCount;
}
/**
* <p>The digest value of the image.</p>
*
* <strong>example:</strong>
* <p>d97c1348e56eb52902888e6e5673623321b1f19ac45ed532c3114dc0f989****</p>
*/
public Builder digest(String digest) {
this.digest = digest;
return this;
}
/**
* <p>The number of risks detected on the image repository.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder hcCount(Integer hcCount) {
this.hcCount = hcCount;
return this;
}
/**
* <p>The image ID.</p>
*
* <strong>example:</strong>
* <p>fabe4203a89765a2c99554040bda51eac7885a18216f4ac0be82710cff60****</p>
*/
public Builder imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* <p>The image size.</p>
*
* <strong>example:</strong>
* <p>1024</p>
*/
public Builder imageSize(Long imageSize) {
this.imageSize = imageSize;
return this;
}
/**
* <p>The name of the image repository.</p>
*
* <strong>example:</strong>
* <p>lkl-zf-ss-ordapi-labs</p>
*/
public Builder repoName(String repoName) {
this.repoName = repoName;
return this;
}
/**
* <p>The namespace to which the image repository belongs.</p>
*
* <strong>example:</strong>
* <p>namespace-01</p>
*/
public Builder repoNamespace(String repoNamespace) {
this.repoNamespace = repoNamespace;
return this;
}
/**
* <p>The risk statistics of all hosts, images, and containers.</p>
*
* <strong>example:</strong>
* <p>{"account":0,"agentlessAll":0,"agentlessBaseline":0,"agentlessMalicious":0,"agentlessSensitiveFile":0,"agentlessVulCve":0,"agentlessVulSca":0,"agentlessVulSys":0,"appNum":0,"asapVulCount":0,"baselineHigh":0,"baselineLow":0,"baselineMedium":0,"baselineNum":0,"cmsNum":0,"containerAsap":0,"containerLater":0,"containerNntf":0,"containerRemind":0,"containerSerious":0,"containerSuspicious":0,"cveNum":513,"emgNum":0,"health":0,"imageBaselineHigh":0,"imageBaselineLow":0,"imageBaselineMedium":0,"imageBaselineNum":0,"imageMaliciousFileRemind":0,"imageMaliciousFileSerious":0,"imageMaliciousFileSuspicious":0,"imageVulAsap":3,"imageVulLater":182,"imageVulNntf":328,"laterVulCount":0,"newSuspicious":0,"nntfVulCount":0,"remindNum":0,"scaNum":0,"seriousNum":0,"suspNum":0,"suspicious":0,"sysNum":0,"trojan":0,"uuid":"44ffb29d6f66d8509598bcdfa660a21d","vul":513,"weakPWNum":0}</p>
*/
public Builder riskLevelDetail(String riskLevelDetail) {
this.riskLevelDetail = riskLevelDetail;
return this;
}
/**
* <p>The tag of the image.</p>
*
* <strong>example:</strong>
* <p>app:app01-ubuntu</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The UUID of the record.</p>
*
* <strong>example:</strong>
* <p>6636c286-8063-4c97-8508-6aaf16a8****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The number of vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder vulCount(Integer vulCount) {
this.vulCount = vulCount;
return this;
}
public VulAsap build() {
return new VulAsap(this);
}
}
}
/**
*
* {@link GetDockerhubImageRiskRankInfoResponseBody} extends {@link TeaModel}
*
* <p>GetDockerhubImageRiskRankInfoResponseBody</p>
*/
public static class RiskRankInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Baseline")
private java.util.List<Baseline> baseline;
@com.aliyun.core.annotation.NameInMap("VulAsap")
private java.util.List<VulAsap> vulAsap;
private RiskRankInfo(Builder builder) {
this.baseline = builder.baseline;
this.vulAsap = builder.vulAsap;
}
public static Builder builder() {
return new Builder();
}
public static RiskRankInfo create() {
return builder().build();
}
/**
* @return baseline
*/
public java.util.List<Baseline> getBaseline() {
return this.baseline;
}
/**
* @return vulAsap
*/
public java.util.List<VulAsap> getVulAsap() {
return this.vulAsap;
}
public static final class Builder {
private java.util.List<Baseline> baseline;
private java.util.List<VulAsap> vulAsap;
private Builder() {
}
private Builder(RiskRankInfo model) {
this.baseline = model.baseline;
this.vulAsap = model.vulAsap;
}
/**
* <p>The baseline risks.</p>
*/
public Builder baseline(java.util.List<Baseline> baseline) {
this.baseline = baseline;
return this;
}
/**
* <p>The risk information of high-risk vulnerabilities.</p>
*/
public Builder vulAsap(java.util.List<VulAsap> vulAsap) {
this.vulAsap = vulAsap;
return this;
}
public RiskRankInfo build() {
return new RiskRankInfo(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDockerhubImageRiskStatisticRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDockerhubImageRiskStatisticRequest} extends {@link RequestModel}
*
* <p>GetDockerhubImageRiskStatisticRequest</p>
*/
public class GetDockerhubImageRiskStatisticRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Types")
private java.util.List<String> types;
private GetDockerhubImageRiskStatisticRequest(Builder builder) {
super(builder);
this.types = builder.types;
}
public static Builder builder() {
return new Builder();
}
public static GetDockerhubImageRiskStatisticRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return types
*/
public java.util.List<String> getTypes() {
return this.types;
}
public static final class Builder extends Request.Builder<GetDockerhubImageRiskStatisticRequest, Builder> {
private java.util.List<String> types;
private Builder() {
super();
}
private Builder(GetDockerhubImageRiskStatisticRequest request) {
super(request);
this.types = request.types;
}
/**
* <p>The types of image risks to be queried.</p>
*/
public Builder types(java.util.List<String> types) {
this.putQueryParameter("Types", types);
this.types = types;
return this;
}
@Override
public GetDockerhubImageRiskStatisticRequest build() {
return new GetDockerhubImageRiskStatisticRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDockerhubImageRiskStatisticResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDockerhubImageRiskStatisticResponse} extends {@link TeaModel}
*
* <p>GetDockerhubImageRiskStatisticResponse</p>
*/
public class GetDockerhubImageRiskStatisticResponse 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 GetDockerhubImageRiskStatisticResponseBody body;
private GetDockerhubImageRiskStatisticResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDockerhubImageRiskStatisticResponse 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 GetDockerhubImageRiskStatisticResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDockerhubImageRiskStatisticResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDockerhubImageRiskStatisticResponseBody body);
@Override
GetDockerhubImageRiskStatisticResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDockerhubImageRiskStatisticResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDockerhubImageRiskStatisticResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDockerhubImageRiskStatisticResponse 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(GetDockerhubImageRiskStatisticResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDockerhubImageRiskStatisticResponse build() {
return new GetDockerhubImageRiskStatisticResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetDockerhubImageRiskStatisticResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDockerhubImageRiskStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetDockerhubImageRiskStatisticResponseBody</p>
*/
public class GetDockerhubImageRiskStatisticResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RiskRankInfo")
private RiskRankInfo riskRankInfo;
private GetDockerhubImageRiskStatisticResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.riskRankInfo = builder.riskRankInfo;
}
public static Builder builder() {
return new Builder();
}
public static GetDockerhubImageRiskStatisticResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return riskRankInfo
*/
public RiskRankInfo getRiskRankInfo() {
return this.riskRankInfo;
}
public static final class Builder {
private String requestId;
private RiskRankInfo riskRankInfo;
private Builder() {
}
private Builder(GetDockerhubImageRiskStatisticResponseBody model) {
this.requestId = model.requestId;
this.riskRankInfo = model.riskRankInfo;
}
/**
* <p>The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem localization.</p>
*
* <strong>example:</strong>
* <p>7532B7EE-7CE7-5F4D-BF04-B12447DD****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Risk source information.</p>
*/
public Builder riskRankInfo(RiskRankInfo riskRankInfo) {
this.riskRankInfo = riskRankInfo;
return this;
}
public GetDockerhubImageRiskStatisticResponseBody build() {
return new GetDockerhubImageRiskStatisticResponseBody(this);
}
}
/**
*
* {@link GetDockerhubImageRiskStatisticResponseBody} extends {@link TeaModel}
*
* <p>GetDockerhubImageRiskStatisticResponseBody</p>
*/
public static class RiskRankInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Baseline")
private Integer baseline;
@com.aliyun.core.annotation.NameInMap("ScanTime")
private Long scanTime;
@com.aliyun.core.annotation.NameInMap("ScanTimeTimestamp")
private Long scanTimeTimestamp;
@com.aliyun.core.annotation.NameInMap("TotalScanned")
private Integer totalScanned;
@com.aliyun.core.annotation.NameInMap("VulAsap")
private Integer vulAsap;
private RiskRankInfo(Builder builder) {
this.baseline = builder.baseline;
this.scanTime = builder.scanTime;
this.scanTimeTimestamp = builder.scanTimeTimestamp;
this.totalScanned = builder.totalScanned;
this.vulAsap = builder.vulAsap;
}
public static Builder builder() {
return new Builder();
}
public static RiskRankInfo create() {
return builder().build();
}
/**
* @return baseline
*/
public Integer getBaseline() {
return this.baseline;
}
/**
* @return scanTime
*/
public Long getScanTime() {
return this.scanTime;
}
/**
* @return scanTimeTimestamp
*/
public Long getScanTimeTimestamp() {
return this.scanTimeTimestamp;
}
/**
* @return totalScanned
*/
public Integer getTotalScanned() {
return this.totalScanned;
}
/**
* @return vulAsap
*/
public Integer getVulAsap() {
return this.vulAsap;
}
public static final class Builder {
private Integer baseline;
private Long scanTime;
private Long scanTimeTimestamp;
private Integer totalScanned;
private Integer vulAsap;
private Builder() {
}
private Builder(RiskRankInfo model) {
this.baseline = model.baseline;
this.scanTime = model.scanTime;
this.scanTimeTimestamp = model.scanTimeTimestamp;
this.totalScanned = model.totalScanned;
this.vulAsap = model.vulAsap;
}
/**
* <p>Number of baseline issue risks.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder baseline(Integer baseline) {
this.baseline = baseline;
return this;
}
/**
* <p>Scan timestamp.</p>
*
* <strong>example:</strong>
* <p>1693997625000</p>
*/
public Builder scanTime(Long scanTime) {
this.scanTime = scanTime;
return this;
}
/**
* <p>Scan timestamp.</p>
*
* <strong>example:</strong>
* <p>1693997625000</p>
*/
public Builder scanTimeTimestamp(Long scanTimeTimestamp) {
this.scanTimeTimestamp = scanTimeTimestamp;
return this;
}
/**
* <p>Count of scanned Dockerhub images.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalScanned(Integer totalScanned) {
this.totalScanned = totalScanned;
return this;
}
/**
* <p>Number of high-risk vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder vulAsap(Integer vulAsap) {
this.vulAsap = vulAsap;
return this;
}
public RiskRankInfo build() {
return new RiskRankInfo(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileDetectApiInvokeInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectApiInvokeInfoRequest} extends {@link RequestModel}
*
* <p>GetFileDetectApiInvokeInfoRequest</p>
*/
public class GetFileDetectApiInvokeInfoRequest extends Request {
private GetFileDetectApiInvokeInfoRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetFileDetectApiInvokeInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetFileDetectApiInvokeInfoRequest, Builder> {
private Builder() {
super();
}
private Builder(GetFileDetectApiInvokeInfoRequest request) {
super(request);
}
@Override
public GetFileDetectApiInvokeInfoRequest build() {
return new GetFileDetectApiInvokeInfoRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileDetectApiInvokeInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectApiInvokeInfoResponse} extends {@link TeaModel}
*
* <p>GetFileDetectApiInvokeInfoResponse</p>
*/
public class GetFileDetectApiInvokeInfoResponse 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 GetFileDetectApiInvokeInfoResponseBody body;
private GetFileDetectApiInvokeInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFileDetectApiInvokeInfoResponse 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 GetFileDetectApiInvokeInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFileDetectApiInvokeInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFileDetectApiInvokeInfoResponseBody body);
@Override
GetFileDetectApiInvokeInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFileDetectApiInvokeInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFileDetectApiInvokeInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFileDetectApiInvokeInfoResponse 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(GetFileDetectApiInvokeInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFileDetectApiInvokeInfoResponse build() {
return new GetFileDetectApiInvokeInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileDetectApiInvokeInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectApiInvokeInfoResponseBody} extends {@link TeaModel}
*
* <p>GetFileDetectApiInvokeInfoResponseBody</p>
*/
public class GetFileDetectApiInvokeInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetFileDetectApiInvokeInfoResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetFileDetectApiInvokeInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetFileDetectApiInvokeInfoResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>Returns the response body.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>9f368b6e-d60a-43c5-bd6f-c7087f2d****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetFileDetectApiInvokeInfoResponseBody build() {
return new GetFileDetectApiInvokeInfoResponseBody(this);
}
}
/**
*
* {@link GetFileDetectApiInvokeInfoResponseBody} extends {@link TeaModel}
*
* <p>GetFileDetectApiInvokeInfoResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AuthCount")
private Long authCount;
@com.aliyun.core.annotation.NameInMap("AuthCountInSaleVersion")
private Long authCountInSaleVersion;
@com.aliyun.core.annotation.NameInMap("Expire")
private Long expire;
@com.aliyun.core.annotation.NameInMap("FlowRate")
private Integer flowRate;
@com.aliyun.core.annotation.NameInMap("InvokeCount")
private Long invokeCount;
@com.aliyun.core.annotation.NameInMap("InvokeCountInSaleVersion")
private Long invokeCountInSaleVersion;
@com.aliyun.core.annotation.NameInMap("RemainAuthCount")
private Long remainAuthCount;
@com.aliyun.core.annotation.NameInMap("SaleVersion")
private Integer saleVersion;
@com.aliyun.core.annotation.NameInMap("TimeUnit")
private String timeUnit;
private Data(Builder builder) {
this.authCount = builder.authCount;
this.authCountInSaleVersion = builder.authCountInSaleVersion;
this.expire = builder.expire;
this.flowRate = builder.flowRate;
this.invokeCount = builder.invokeCount;
this.invokeCountInSaleVersion = builder.invokeCountInSaleVersion;
this.remainAuthCount = builder.remainAuthCount;
this.saleVersion = builder.saleVersion;
this.timeUnit = builder.timeUnit;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return authCount
*/
public Long getAuthCount() {
return this.authCount;
}
/**
* @return authCountInSaleVersion
*/
public Long getAuthCountInSaleVersion() {
return this.authCountInSaleVersion;
}
/**
* @return expire
*/
public Long getExpire() {
return this.expire;
}
/**
* @return flowRate
*/
public Integer getFlowRate() {
return this.flowRate;
}
/**
* @return invokeCount
*/
public Long getInvokeCount() {
return this.invokeCount;
}
/**
* @return invokeCountInSaleVersion
*/
public Long getInvokeCountInSaleVersion() {
return this.invokeCountInSaleVersion;
}
/**
* @return remainAuthCount
*/
public Long getRemainAuthCount() {
return this.remainAuthCount;
}
/**
* @return saleVersion
*/
public Integer getSaleVersion() {
return this.saleVersion;
}
/**
* @return timeUnit
*/
public String getTimeUnit() {
return this.timeUnit;
}
public static final class Builder {
private Long authCount;
private Long authCountInSaleVersion;
private Long expire;
private Integer flowRate;
private Long invokeCount;
private Long invokeCountInSaleVersion;
private Long remainAuthCount;
private Integer saleVersion;
private String timeUnit;
private Builder() {
}
private Builder(Data model) {
this.authCount = model.authCount;
this.authCountInSaleVersion = model.authCountInSaleVersion;
this.expire = model.expire;
this.flowRate = model.flowRate;
this.invokeCount = model.invokeCount;
this.invokeCountInSaleVersion = model.invokeCountInSaleVersion;
this.remainAuthCount = model.remainAuthCount;
this.saleVersion = model.saleVersion;
this.timeUnit = model.timeUnit;
}
/**
* <p>The total number of authorizations.</p>
*
* <strong>example:</strong>
* <p>10000</p>
*/
public Builder authCount(Long authCount) {
this.authCount = authCount;
return this;
}
/**
* <p>The total number of authorizations(excluding trials).</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder authCountInSaleVersion(Long authCountInSaleVersion) {
this.authCountInSaleVersion = authCountInSaleVersion;
return this;
}
/**
* <p>The timestamp of the expiration date of the authorization number.</p>
*
* <strong>example:</strong>
* <p>1815753600000</p>
*/
public Builder expire(Long expire) {
this.expire = expire;
return this;
}
/**
* <p>The frequency of calls.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder flowRate(Integer flowRate) {
this.flowRate = flowRate;
return this;
}
/**
* <p>The number of authorizations used.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder invokeCount(Long invokeCount) {
this.invokeCount = invokeCount;
return this;
}
/**
* <p>The number of authorizations used(excluding trials).</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder invokeCountInSaleVersion(Long invokeCountInSaleVersion) {
this.invokeCountInSaleVersion = invokeCountInSaleVersion;
return this;
}
/**
* <p>The number of remaining authorizations.</p>
*
* <strong>example:</strong>
* <p>900</p>
*/
public Builder remainAuthCount(Long remainAuthCount) {
this.remainAuthCount = remainAuthCount;
return this;
}
/**
* <p>The Authorized Version. Valid values include:</p>
* <ul>
* <li><strong>1:</strong> trial version</li>
* <li><strong>2:</strong> Enterprise Edition</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder saleVersion(Integer saleVersion) {
this.saleVersion = saleVersion;
return this;
}
/**
* <p>The time unit of the frequency limit. Value:</p>
* <ul>
* <li><strong>SECONDS</strong></li>
* <li><strong>MINUTES</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>SECONDS</p>
*/
public Builder timeUnit(String timeUnit) {
this.timeUnit = timeUnit;
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/GetFileDetectReportRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectReportRequest} extends {@link RequestModel}
*
* <p>GetFileDetectReportRequest</p>
*/
public class GetFileDetectReportRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EventId")
private Long eventId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Field")
private String field;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileHash")
private String fileHash;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceType")
private String sourceType;
private GetFileDetectReportRequest(Builder builder) {
super(builder);
this.eventId = builder.eventId;
this.field = builder.field;
this.fileHash = builder.fileHash;
this.lang = builder.lang;
this.sourceType = builder.sourceType;
}
public static Builder builder() {
return new Builder();
}
public static GetFileDetectReportRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return eventId
*/
public Long getEventId() {
return this.eventId;
}
/**
* @return field
*/
public String getField() {
return this.field;
}
/**
* @return fileHash
*/
public String getFileHash() {
return this.fileHash;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return sourceType
*/
public String getSourceType() {
return this.sourceType;
}
public static final class Builder extends Request.Builder<GetFileDetectReportRequest, Builder> {
private Long eventId;
private String field;
private String fileHash;
private String lang;
private String sourceType;
private Builder() {
super();
}
private Builder(GetFileDetectReportRequest request) {
super(request);
this.eventId = request.eventId;
this.field = request.field;
this.fileHash = request.fileHash;
this.lang = request.lang;
this.sourceType = request.sourceType;
}
/**
* <p>The event ID that corresponds to the file to be detected.</p>
*
* <strong>example:</strong>
* <p>81****</p>
*/
public Builder eventId(Long eventId) {
this.putQueryParameter("EventId", eventId);
this.eventId = eventId;
return this;
}
/**
* <p>The field that you want to query. You can enter multiple fields and separate them with commas (,).</p>
* <p>Valid values:</p>
* <ul>
* <li><strong>ThreatTypes</strong>: the type of the threat intelligence event</li>
* <li><strong>Intelligences</strong>: the threat intelligence event</li>
* <li><strong>ThreatLevel</strong>: the level of the threat intelligence event</li>
* <li><strong>Basic</strong>: the basic information about the report (the scan result)</li>
* <li><strong>Sandbox</strong>: the cloud sandbox check report</li>
* </ul>
*
* <strong>example:</strong>
* <p>Basic,,ThreatTypes,Intelligences,Sandbox</p>
*/
public Builder field(String field) {
this.putQueryParameter("Field", field);
this.field = field;
return this;
}
/**
* <p>The hash value of the file to be detected.</p>
*
* <strong>example:</strong>
* <p>b63917332950e5d219d0737ffe31****</p>
*/
public Builder fileHash(String fileHash) {
this.putQueryParameter("FileHash", fileHash);
this.fileHash = fileHash;
return this;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The data source type. Valid values:</p>
* <ul>
* <li><strong>machine</strong>: host alerts</li>
* <li><strong>object_scan</strong>: file detection alerts</li>
* </ul>
*
* <strong>example:</strong>
* <p>object_scan</p>
*/
public Builder sourceType(String sourceType) {
this.putQueryParameter("SourceType", sourceType);
this.sourceType = sourceType;
return this;
}
@Override
public GetFileDetectReportRequest build() {
return new GetFileDetectReportRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileDetectReportResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectReportResponse} extends {@link TeaModel}
*
* <p>GetFileDetectReportResponse</p>
*/
public class GetFileDetectReportResponse 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 GetFileDetectReportResponseBody body;
private GetFileDetectReportResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFileDetectReportResponse 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 GetFileDetectReportResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFileDetectReportResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFileDetectReportResponseBody body);
@Override
GetFileDetectReportResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFileDetectReportResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFileDetectReportResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFileDetectReportResponse 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(GetFileDetectReportResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFileDetectReportResponse build() {
return new GetFileDetectReportResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileDetectReportResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectReportResponseBody} extends {@link TeaModel}
*
* <p>GetFileDetectReportResponseBody</p>
*/
public class GetFileDetectReportResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetFileDetectReportResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetFileDetectReportResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetFileDetectReportResponseBody model) {
this.code = model.code;
this.data = model.data;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code that is returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The response parameters.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A4EB8B1C-1DEC-5E18-BCD0-D1BBB393XXXX</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetFileDetectReportResponseBody build() {
return new GetFileDetectReportResponseBody(this);
}
}
/**
*
* {@link GetFileDetectReportResponseBody} extends {@link TeaModel}
*
* <p>GetFileDetectReportResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Basic")
private String basic;
@com.aliyun.core.annotation.NameInMap("FileHash")
private String fileHash;
@com.aliyun.core.annotation.NameInMap("Filename")
private String filename;
@com.aliyun.core.annotation.NameInMap("HasData")
private Boolean hasData;
@com.aliyun.core.annotation.NameInMap("Intelligences")
private String intelligences;
@com.aliyun.core.annotation.NameInMap("Sandbox")
private String sandbox;
@com.aliyun.core.annotation.NameInMap("ShowTab")
private Boolean showTab;
@com.aliyun.core.annotation.NameInMap("ThreatLevel")
private Long threatLevel;
@com.aliyun.core.annotation.NameInMap("ThreatTypes")
private String threatTypes;
private Data(Builder builder) {
this.basic = builder.basic;
this.fileHash = builder.fileHash;
this.filename = builder.filename;
this.hasData = builder.hasData;
this.intelligences = builder.intelligences;
this.sandbox = builder.sandbox;
this.showTab = builder.showTab;
this.threatLevel = builder.threatLevel;
this.threatTypes = builder.threatTypes;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return basic
*/
public String getBasic() {
return this.basic;
}
/**
* @return fileHash
*/
public String getFileHash() {
return this.fileHash;
}
/**
* @return filename
*/
public String getFilename() {
return this.filename;
}
/**
* @return hasData
*/
public Boolean getHasData() {
return this.hasData;
}
/**
* @return intelligences
*/
public String getIntelligences() {
return this.intelligences;
}
/**
* @return sandbox
*/
public String getSandbox() {
return this.sandbox;
}
/**
* @return showTab
*/
public Boolean getShowTab() {
return this.showTab;
}
/**
* @return threatLevel
*/
public Long getThreatLevel() {
return this.threatLevel;
}
/**
* @return threatTypes
*/
public String getThreatTypes() {
return this.threatTypes;
}
public static final class Builder {
private String basic;
private String fileHash;
private String filename;
private Boolean hasData;
private String intelligences;
private String sandbox;
private Boolean showTab;
private Long threatLevel;
private String threatTypes;
private Builder() {
}
private Builder(Data model) {
this.basic = model.basic;
this.fileHash = model.fileHash;
this.filename = model.filename;
this.hasData = model.hasData;
this.intelligences = model.intelligences;
this.sandbox = model.sandbox;
this.showTab = model.showTab;
this.threatLevel = model.threatLevel;
this.threatTypes = model.threatTypes;
}
/**
* <p>The basic information about the detected file.</p>
*
* <strong>example:</strong>
* <p>{
* "sha256": "",
* "sha512": "",
* "source": "aegis",
* "gmt_first_submit": "",
* "sha1": "",
* "virus_result": "",
* "webshell_result": "",
* "gmt_update": "",
* "sandbox_result": "2",
* "fileSize": "363752",
* "virus_name": "",
* }</p>
*/
public Builder basic(String basic) {
this.basic = basic;
return this;
}
/**
* <p>The hash value of the file.</p>
*
* <strong>example:</strong>
* <p>c42b5f6bde0b730ece2923266333****</p>
*/
public Builder fileHash(String fileHash) {
this.fileHash = fileHash;
return this;
}
/**
* <p>The name of the file.</p>
*
* <strong>example:</strong>
* <p>test.zip</p>
*/
public Builder filename(String filename) {
this.filename = filename;
return this;
}
/**
* <p>Indicates whether the file data exists in the 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 hasData(Boolean hasData) {
this.hasData = hasData;
return this;
}
/**
* <p>The threat intelligence event, which is a JSON array.</p>
* <p>Valid values:</p>
* <ul>
* <li>The threat type. The value is an array. The elements in the array can be DDoS trojans, mining programs, network layer intrusions, network service scans, network sharing and discovery, mining pools, exploits, dark webs, malicious logons, malicious download sources, C&C servers, webshells, and web attacks.</li>
* </ul>
*
* <strong>example:</strong>
* <p>["The threat type"]</p>
*/
public Builder intelligences(String intelligences) {
this.intelligences = intelligences;
return this;
}
/**
* <p>The details of the cloud sandbox check results.</p>
*
* <strong>example:</strong>
* <p>{"BehaviorData": {}, "ProcessData": {}, "SandboxData": {}, "AttackData": [], "NetworkData": {}, "SolutionData": {}, "FileData": {}}</p>
*/
public Builder sandbox(String sandbox) {
this.sandbox = sandbox;
return this;
}
/**
* <p>Indicates whether the check report is displayed. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder showTab(Boolean showTab) {
this.showTab = showTab;
return this;
}
/**
* <p>The threat level. Valid values:</p>
* <ul>
* <li><strong>0</strong>: normal</li>
* <li><strong>1</strong>: suspicious</li>
* <li><strong>2</strong>: high</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder threatLevel(Long threatLevel) {
this.threatLevel = threatLevel;
return this;
}
/**
* <p>The risk tags and server tags that are generated by analyzing threat intelligence and security events. The value is a string array. The array includes the following elements:</p>
* <ul>
* <li><strong>threat_type_desc</strong>: the threat type.</li>
* <li><strong>last_find_time</strong>: the last time the threat was detected.</li>
* <li><strong>risk_type</strong>: indicates whether the tag is malicious. The value 0 indicates that the tag is not malicious. The value 1 indicates that the tag is malicious. The value -1 indicates that whether the tag type is malicious is unknown.</li>
* <li><strong>threat_type</strong>: the threat type. The value is an array. The elements in the array can be network layer intrusion, network service scanning, network sharing and discovery, mining pool, exploits, darknet, malicious logon, malicious download source, central control, web shell, and web attack.</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"threat_type_desc": "test","risk_type": 1,"threat_type": ""}]</p>
*/
public Builder threatTypes(String threatTypes) {
this.threatTypes = threatTypes;
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/GetFileDetectResultRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectResultRequest} extends {@link RequestModel}
*
* <p>GetFileDetectResultRequest</p>
*/
public class GetFileDetectResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HashKeyList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> hashKeyList;
@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 Integer type;
private GetFileDetectResultRequest(Builder builder) {
super(builder);
this.hashKeyList = builder.hashKeyList;
this.sourceIp = builder.sourceIp;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static GetFileDetectResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hashKeyList
*/
public java.util.List<String> getHashKeyList() {
return this.hashKeyList;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return type
*/
public Integer getType() {
return this.type;
}
public static final class Builder extends Request.Builder<GetFileDetectResultRequest, Builder> {
private java.util.List<String> hashKeyList;
private String sourceIp;
private Integer type;
private Builder() {
super();
}
private Builder(GetFileDetectResultRequest request) {
super(request);
this.hashKeyList = request.hashKeyList;
this.sourceIp = request.sourceIp;
this.type = request.type;
}
/**
* <p>The identifiers of files. Only MD5 hash values are supported.</p>
* <p>This parameter is required.</p>
*/
public Builder hashKeyList(java.util.List<String> hashKeyList) {
this.putQueryParameter("HashKeyList", hashKeyList);
this.hashKeyList = hashKeyList;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>183.46.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The type of the file. Valid values:</p>
* <ul>
* <li><strong>0</strong>: unknown file</li>
* <li><strong>1</strong>: binary file</li>
* <li><strong>2</strong>: webshell file</li>
* <li><strong>4</strong>: script file</li>
* </ul>
* <blockquote>
* <p>If you do not know the type of the file, set this parameter to 0.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder type(Integer type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public GetFileDetectResultRequest build() {
return new GetFileDetectResultRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileDetectResultResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectResultResponse} extends {@link TeaModel}
*
* <p>GetFileDetectResultResponse</p>
*/
public class GetFileDetectResultResponse 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 GetFileDetectResultResponseBody body;
private GetFileDetectResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFileDetectResultResponse 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 GetFileDetectResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFileDetectResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFileDetectResultResponseBody body);
@Override
GetFileDetectResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFileDetectResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFileDetectResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFileDetectResultResponse 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(GetFileDetectResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFileDetectResultResponse build() {
return new GetFileDetectResultResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileDetectResultResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileDetectResultResponseBody} extends {@link TeaModel}
*
* <p>GetFileDetectResultResponseBody</p>
*/
public class GetFileDetectResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResultList")
private java.util.List<ResultList> resultList;
private GetFileDetectResultResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resultList = builder.resultList;
}
public static Builder builder() {
return new Builder();
}
public static GetFileDetectResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resultList
*/
public java.util.List<ResultList> getResultList() {
return this.resultList;
}
public static final class Builder {
private String requestId;
private java.util.List<ResultList> resultList;
private Builder() {
}
private Builder(GetFileDetectResultResponseBody model) {
this.requestId = model.requestId;
this.resultList = model.resultList;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>24A20733-10A0-4AF6-BE6B-E3322413BB68</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of file detection results.</p>
*/
public Builder resultList(java.util.List<ResultList> resultList) {
this.resultList = resultList;
return this;
}
public GetFileDetectResultResponseBody build() {
return new GetFileDetectResultResponseBody(this);
}
}
/**
*
* {@link GetFileDetectResultResponseBody} extends {@link TeaModel}
*
* <p>GetFileDetectResultResponseBody</p>
*/
public static class ResultList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Compress")
private Boolean compress;
@com.aliyun.core.annotation.NameInMap("Ext")
private String ext;
@com.aliyun.core.annotation.NameInMap("HashKey")
private String hashKey;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("Result")
private Integer result;
@com.aliyun.core.annotation.NameInMap("Score")
private Integer score;
@com.aliyun.core.annotation.NameInMap("VirusType")
private String virusType;
private ResultList(Builder builder) {
this.code = builder.code;
this.compress = builder.compress;
this.ext = builder.ext;
this.hashKey = builder.hashKey;
this.message = builder.message;
this.result = builder.result;
this.score = builder.score;
this.virusType = builder.virusType;
}
public static Builder builder() {
return new Builder();
}
public static ResultList create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return compress
*/
public Boolean getCompress() {
return this.compress;
}
/**
* @return ext
*/
public String getExt() {
return this.ext;
}
/**
* @return hashKey
*/
public String getHashKey() {
return this.hashKey;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return result
*/
public Integer getResult() {
return this.result;
}
/**
* @return score
*/
public Integer getScore() {
return this.score;
}
/**
* @return virusType
*/
public String getVirusType() {
return this.virusType;
}
public static final class Builder {
private String code;
private Boolean compress;
private String ext;
private String hashKey;
private String message;
private Integer result;
private Integer score;
private String virusType;
private Builder() {
}
private Builder(ResultList model) {
this.code = model.code;
this.compress = model.compress;
this.ext = model.ext;
this.hashKey = model.hashKey;
this.message = model.message;
this.result = model.result;
this.score = model.score;
this.virusType = model.virusType;
}
/**
* <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>Whether to identify as a compressed package. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Yes.</li>
* <li><strong>false</strong>: No.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder compress(Boolean compress) {
this.compress = compress;
return this;
}
/**
* <p>The extended information about the file detection result.</p>
*
* <strong>example:</strong>
* <p>{"HighLight":[[23245,23212]]}</p>
*/
public Builder ext(String ext) {
this.ext = ext;
return this;
}
/**
* <p>The identifier of the file. Only MD5 hash values are supported.</p>
*
* <strong>example:</strong>
* <p>0a212417e65c26ff133cfff28f6c****</p>
*/
public Builder hashKey(String hashKey) {
this.hashKey = hashKey;
return this;
}
/**
* <p>The error message returned.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The file detection result. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The file is normal.</li>
* <li><strong>1</strong>: The file is suspicious.</li>
* <li><strong>3</strong>: The detection is in progress.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder result(Integer result) {
this.result = result;
return this;
}
/**
* <p>The score of file detection result.</p>
* <blockquote>
* <p>A higher score indicates a more suspicious file.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(Integer score) {
this.score = score;
return this;
}
/**
* <p>The type of the virus. Valid values:</p>
* <ul>
* <li><strong>Trojan</strong>: trojan horse</li>
* <li><strong>WebShell</strong>: webshell</li>
* <li><strong>Backdoor</strong>: backdoor program</li>
* <li><strong>RansomWare</strong>: ransomware</li>
* <li><strong>Scanner</strong>: scanner</li>
* <li><strong>Stealer</strong>: tool that is used to steal information</li>
* <li><strong>Malbaseware</strong>: tainted basic software</li>
* <li><strong>Hacktool</strong>: attacker tool</li>
* <li><strong>Engtest</strong>: engine test program</li>
* <li><strong>Downloader</strong>: trojan downloader</li>
* <li><strong>Virus</strong>: infectious virus</li>
* <li><strong>Miner</strong>: mining program</li>
* <li><strong>Worm</strong>: worm</li>
* <li><strong>DDoS</strong>: DDoS trojan</li>
* <li><strong>Malware</strong>: malicious program</li>
* <li><strong>RiskWare</strong>: software that has risks</li>
* <li><strong>Proxytool</strong>: proxy</li>
* <li><strong>Suspicious</strong>: suspicious program</li>
* <li><strong>MalScript</strong>: malicious script</li>
* <li><strong>Rootkit</strong>: rootkit</li>
* <li><strong>Exploit</strong>: exploit</li>
* </ul>
*
* <strong>example:</strong>
* <p>WEBSHELL</p>
*/
public Builder virusType(String virusType) {
this.virusType = virusType;
return this;
}
public ResultList build() {
return new ResultList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectDashboardRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectDashboardRequest} extends {@link RequestModel}
*
* <p>GetFileProtectDashboardRequest</p>
*/
public class GetFileProtectDashboardRequest extends Request {
private GetFileProtectDashboardRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetFileProtectDashboardRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetFileProtectDashboardRequest, Builder> {
private Builder() {
super();
}
private Builder(GetFileProtectDashboardRequest request) {
super(request);
}
@Override
public GetFileProtectDashboardRequest build() {
return new GetFileProtectDashboardRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectDashboardResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectDashboardResponse} extends {@link TeaModel}
*
* <p>GetFileProtectDashboardResponse</p>
*/
public class GetFileProtectDashboardResponse 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 GetFileProtectDashboardResponseBody body;
private GetFileProtectDashboardResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFileProtectDashboardResponse 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 GetFileProtectDashboardResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFileProtectDashboardResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFileProtectDashboardResponseBody body);
@Override
GetFileProtectDashboardResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFileProtectDashboardResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFileProtectDashboardResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFileProtectDashboardResponse 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(GetFileProtectDashboardResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFileProtectDashboardResponse build() {
return new GetFileProtectDashboardResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectDashboardResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectDashboardResponseBody} extends {@link TeaModel}
*
* <p>GetFileProtectDashboardResponseBody</p>
*/
public class GetFileProtectDashboardResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetFileProtectDashboardResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetFileProtectDashboardResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetFileProtectDashboardResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The response parameters.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>6673D49C-A9AB-40DD-B4A2-B92306701AE7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetFileProtectDashboardResponseBody build() {
return new GetFileProtectDashboardResponseBody(this);
}
}
/**
*
* {@link GetFileProtectDashboardResponseBody} extends {@link TeaModel}
*
* <p>GetFileProtectDashboardResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EnableRuleCount")
private Integer enableRuleCount;
@com.aliyun.core.annotation.NameInMap("PluginCount")
private Integer pluginCount;
@com.aliyun.core.annotation.NameInMap("PluginOfflineCount")
private Integer pluginOfflineCount;
@com.aliyun.core.annotation.NameInMap("PluginOnlineCount")
private Integer pluginOnlineCount;
private Data(Builder builder) {
this.enableRuleCount = builder.enableRuleCount;
this.pluginCount = builder.pluginCount;
this.pluginOfflineCount = builder.pluginOfflineCount;
this.pluginOnlineCount = builder.pluginOnlineCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return enableRuleCount
*/
public Integer getEnableRuleCount() {
return this.enableRuleCount;
}
/**
* @return pluginCount
*/
public Integer getPluginCount() {
return this.pluginCount;
}
/**
* @return pluginOfflineCount
*/
public Integer getPluginOfflineCount() {
return this.pluginOfflineCount;
}
/**
* @return pluginOnlineCount
*/
public Integer getPluginOnlineCount() {
return this.pluginOnlineCount;
}
public static final class Builder {
private Integer enableRuleCount;
private Integer pluginCount;
private Integer pluginOfflineCount;
private Integer pluginOnlineCount;
private Builder() {
}
private Builder(Data model) {
this.enableRuleCount = model.enableRuleCount;
this.pluginCount = model.pluginCount;
this.pluginOfflineCount = model.pluginOfflineCount;
this.pluginOnlineCount = model.pluginOnlineCount;
}
/**
* <p>The total number of enabled rules.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder enableRuleCount(Integer enableRuleCount) {
this.enableRuleCount = enableRuleCount;
return this;
}
/**
* <p>The total number of servers on which the Security Center agent is installed.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder pluginCount(Integer pluginCount) {
this.pluginCount = pluginCount;
return this;
}
/**
* <p>The total number of servers on which the Security Center agent is offline.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pluginOfflineCount(Integer pluginOfflineCount) {
this.pluginOfflineCount = pluginOfflineCount;
return this;
}
/**
* <p>The total number of servers on which the Security Center agent is online.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder pluginOnlineCount(Integer pluginOnlineCount) {
this.pluginOnlineCount = pluginOnlineCount;
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/GetFileProtectEventCountRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectEventCountRequest} extends {@link RequestModel}
*
* <p>GetFileProtectEventCountRequest</p>
*/
public class GetFileProtectEventCountRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private GetFileProtectEventCountRequest(Builder builder) {
super(builder);
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static GetFileProtectEventCountRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<GetFileProtectEventCountRequest, Builder> {
private Integer status;
private Builder() {
super();
}
private Builder(GetFileProtectEventCountRequest request) {
super(request);
this.status = request.status;
}
/**
* <p>The status of the event. Valid values:</p>
* <ul>
* <li>0: unhandled</li>
* <li>1: handled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public GetFileProtectEventCountRequest build() {
return new GetFileProtectEventCountRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectEventCountResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectEventCountResponse} extends {@link TeaModel}
*
* <p>GetFileProtectEventCountResponse</p>
*/
public class GetFileProtectEventCountResponse 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 GetFileProtectEventCountResponseBody body;
private GetFileProtectEventCountResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFileProtectEventCountResponse 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 GetFileProtectEventCountResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFileProtectEventCountResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFileProtectEventCountResponseBody body);
@Override
GetFileProtectEventCountResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFileProtectEventCountResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFileProtectEventCountResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFileProtectEventCountResponse 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(GetFileProtectEventCountResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFileProtectEventCountResponse build() {
return new GetFileProtectEventCountResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectEventCountResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectEventCountResponseBody} extends {@link TeaModel}
*
* <p>GetFileProtectEventCountResponseBody</p>
*/
public class GetFileProtectEventCountResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Integer data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetFileProtectEventCountResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetFileProtectEventCountResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Integer getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer data;
private String requestId;
private Builder() {
}
private Builder(GetFileProtectEventCountResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned if the request is successful.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder data(Integer data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9B28EC81-2FA7-5097-80D9-0DBE1A3DBD59</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetFileProtectEventCountResponseBody build() {
return new GetFileProtectEventCountResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectEventRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectEventRequest} extends {@link RequestModel}
*
* <p>GetFileProtectEventRequest</p>
*/
public class GetFileProtectEventRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
private GetFileProtectEventRequest(Builder builder) {
super(builder);
this.id = builder.id;
}
public static Builder builder() {
return new Builder();
}
public static GetFileProtectEventRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
public static final class Builder extends Request.Builder<GetFileProtectEventRequest, Builder> {
private Long id;
private Builder() {
super();
}
private Builder(GetFileProtectEventRequest request) {
super(request);
this.id = request.id;
}
/**
* <p>The ID of the event.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
@Override
public GetFileProtectEventRequest build() {
return new GetFileProtectEventRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectEventResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectEventResponse} extends {@link TeaModel}
*
* <p>GetFileProtectEventResponse</p>
*/
public class GetFileProtectEventResponse 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 GetFileProtectEventResponseBody body;
private GetFileProtectEventResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFileProtectEventResponse 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 GetFileProtectEventResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFileProtectEventResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFileProtectEventResponseBody body);
@Override
GetFileProtectEventResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFileProtectEventResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFileProtectEventResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFileProtectEventResponse 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(GetFileProtectEventResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFileProtectEventResponse build() {
return new GetFileProtectEventResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectEventResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectEventResponseBody} extends {@link TeaModel}
*
* <p>GetFileProtectEventResponseBody</p>
*/
public class GetFileProtectEventResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetFileProtectEventResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetFileProtectEventResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetFileProtectEventResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The details of the returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
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;
}
public GetFileProtectEventResponseBody build() {
return new GetFileProtectEventResponseBody(this);
}
}
/**
*
* {@link GetFileProtectEventResponseBody} extends {@link TeaModel}
*
* <p>GetFileProtectEventResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AlertLevel")
private Integer alertLevel;
@com.aliyun.core.annotation.NameInMap("CmdLine")
private String cmdLine;
@com.aliyun.core.annotation.NameInMap("FilePath")
private String filePath;
@com.aliyun.core.annotation.NameInMap("FilePermission")
private String filePermission;
@com.aliyun.core.annotation.NameInMap("FirstTime")
private Long firstTime;
@com.aliyun.core.annotation.NameInMap("HandleTime")
private Long handleTime;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("LatestTime")
private Long latestTime;
@com.aliyun.core.annotation.NameInMap("Operation")
private String operation;
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.NameInMap("ProcPath")
private String procPath;
@com.aliyun.core.annotation.NameInMap("ProcessId")
private String processId;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("UserId")
private String userId;
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private Data(Builder builder) {
this.alertLevel = builder.alertLevel;
this.cmdLine = builder.cmdLine;
this.filePath = builder.filePath;
this.filePermission = builder.filePermission;
this.firstTime = builder.firstTime;
this.handleTime = builder.handleTime;
this.id = builder.id;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.latestTime = builder.latestTime;
this.operation = builder.operation;
this.platform = builder.platform;
this.procPath = builder.procPath;
this.processId = builder.processId;
this.remark = builder.remark;
this.ruleName = builder.ruleName;
this.status = builder.status;
this.userId = builder.userId;
this.userName = builder.userName;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return alertLevel
*/
public Integer getAlertLevel() {
return this.alertLevel;
}
/**
* @return cmdLine
*/
public String getCmdLine() {
return this.cmdLine;
}
/**
* @return filePath
*/
public String getFilePath() {
return this.filePath;
}
/**
* @return filePermission
*/
public String getFilePermission() {
return this.filePermission;
}
/**
* @return firstTime
*/
public Long getFirstTime() {
return this.firstTime;
}
/**
* @return handleTime
*/
public Long getHandleTime() {
return this.handleTime;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return latestTime
*/
public Long getLatestTime() {
return this.latestTime;
}
/**
* @return operation
*/
public String getOperation() {
return this.operation;
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return procPath
*/
public String getProcPath() {
return this.procPath;
}
/**
* @return processId
*/
public String getProcessId() {
return this.processId;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private Integer alertLevel;
private String cmdLine;
private String filePath;
private String filePermission;
private Long firstTime;
private Long handleTime;
private Long id;
private String instanceName;
private String internetIp;
private String intranetIp;
private Long latestTime;
private String operation;
private String platform;
private String procPath;
private String processId;
private String remark;
private String ruleName;
private Integer status;
private String userId;
private String userName;
private String uuid;
private Builder() {
}
private Builder(Data model) {
this.alertLevel = model.alertLevel;
this.cmdLine = model.cmdLine;
this.filePath = model.filePath;
this.filePermission = model.filePermission;
this.firstTime = model.firstTime;
this.handleTime = model.handleTime;
this.id = model.id;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.latestTime = model.latestTime;
this.operation = model.operation;
this.platform = model.platform;
this.procPath = model.procPath;
this.processId = model.processId;
this.remark = model.remark;
this.ruleName = model.ruleName;
this.status = model.status;
this.userId = model.userId;
this.userName = model.userName;
this.uuid = model.uuid;
}
/**
* <p>The severity of alerts. Valid values:</p>
* <ul>
* <li>0: does not generate alerts</li>
* <li>1: sends notifications</li>
* <li>2: suspicious</li>
* <li>3: high-risk</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder alertLevel(Integer alertLevel) {
this.alertLevel = alertLevel;
return this;
}
/**
* <p>The event command line.</p>
*
* <strong>example:</strong>
* <p>["touch","/usr/local/aaaa"]</p>
*/
public Builder cmdLine(String cmdLine) {
this.cmdLine = cmdLine;
return this;
}
/**
* <p>The path to the file.</p>
*
* <strong>example:</strong>
* <p>/usr/local</p>
*/
public Builder filePath(String filePath) {
this.filePath = filePath;
return this;
}
/**
* <p>The permissions to run the process.</p>
*
* <strong>example:</strong>
* <p>rwxr-xr-x</p>
*/
public Builder filePermission(String filePermission) {
this.filePermission = filePermission;
return this;
}
/**
* <p>The timestamp at which the event was first detected.</p>
*
* <strong>example:</strong>
* <p>1694576692000</p>
*/
public Builder firstTime(Long firstTime) {
this.firstTime = firstTime;
return this;
}
/**
* <p>The time when the event was handled.</p>
*
* <strong>example:</strong>
* <p>1694576692000</p>
*/
public Builder handleTime(Long handleTime) {
this.handleTime = handleTime;
return this;
}
/**
* <p>The ID of the event.</p>
*
* <strong>example:</strong>
* <p>55037</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>i-wz92q7m5hsbgfhdss***</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the associated instance.</p>
*
* <strong>example:</strong>
* <p>172.16.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the associated instance.</p>
*
* <strong>example:</strong>
* <p>10.42.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The time when the event last occurred.</p>
*
* <strong>example:</strong>
* <p>1694576692000</p>
*/
public Builder latestTime(Long latestTime) {
this.latestTime = latestTime;
return this;
}
/**
* <p>The operation that the process performed on the file.</p>
*
* <strong>example:</strong>
* <p>DELETE</p>
*/
public Builder operation(String operation) {
this.operation = operation;
return this;
}
/**
* <p>The type of the operating system. Valid values:</p>
* <ul>
* <li><strong>windows</strong>: Windows</li>
* <li><strong>linux</strong>: Linux</li>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.platform = platform;
return this;
}
/**
* <p>The path to the process.</p>
*
* <strong>example:</strong>
* <p>/bin/bash33</p>
*/
public Builder procPath(String procPath) {
this.procPath = procPath;
return this;
}
/**
* <p>The process ID of the event.</p>
*
* <strong>example:</strong>
* <p>3453</p>
*/
public Builder processId(String processId) {
this.processId = processId;
return this;
}
/**
* <p>The remarks.</p>
*
* <strong>example:</strong>
* <p>["test"]</p>
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test-000</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The status of the event. Valid values:</p>
* <ul>
* <li>0: not handled</li>
* <li>1: handled</li>
* <li>2: added to the whitelist</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* UserId.
*/
public Builder userId(String userId) {
this.userId = userId;
return this;
}
/**
* UserName.
*/
public Builder userName(String userName) {
this.userName = userName;
return this;
}
/**
* <p>The UUID of the asset.</p>
*
* <strong>example:</strong>
* <p>49f1360f-62c8-4b48-a24c-5cc317656419</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectRuleRequest} extends {@link RequestModel}
*
* <p>GetFileProtectRuleRequest</p>
*/
public class GetFileProtectRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
private GetFileProtectRuleRequest(Builder builder) {
super(builder);
this.id = builder.id;
}
public static Builder builder() {
return new Builder();
}
public static GetFileProtectRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
public static final class Builder extends Request.Builder<GetFileProtectRuleRequest, Builder> {
private Long id;
private Builder() {
super();
}
private Builder(GetFileProtectRuleRequest request) {
super(request);
this.id = request.id;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>245</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
@Override
public GetFileProtectRuleRequest build() {
return new GetFileProtectRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectRuleResponse} extends {@link TeaModel}
*
* <p>GetFileProtectRuleResponse</p>
*/
public class GetFileProtectRuleResponse 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 GetFileProtectRuleResponseBody body;
private GetFileProtectRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFileProtectRuleResponse 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 GetFileProtectRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFileProtectRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFileProtectRuleResponseBody body);
@Override
GetFileProtectRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFileProtectRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFileProtectRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFileProtectRuleResponse 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(GetFileProtectRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFileProtectRuleResponse build() {
return new GetFileProtectRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileProtectRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileProtectRuleResponseBody} extends {@link TeaModel}
*
* <p>GetFileProtectRuleResponseBody</p>
*/
public class GetFileProtectRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetFileProtectRuleResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetFileProtectRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetFileProtectRuleResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The response parameters.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C0DF9057-67C5-574D-A2D2-0CA9AC74C4D3</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetFileProtectRuleResponseBody build() {
return new GetFileProtectRuleResponseBody(this);
}
}
/**
*
* {@link GetFileProtectRuleResponseBody} extends {@link TeaModel}
*
* <p>GetFileProtectRuleResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Action")
private String action;
@com.aliyun.core.annotation.NameInMap("AlertLevel")
private Integer alertLevel;
@com.aliyun.core.annotation.NameInMap("FileOps")
private java.util.List<String> fileOps;
@com.aliyun.core.annotation.NameInMap("FilePaths")
private java.util.List<String> filePaths;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.NameInMap("ProcPaths")
private java.util.List<String> procPaths;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("SwitchId")
private String switchId;
private Data(Builder builder) {
this.action = builder.action;
this.alertLevel = builder.alertLevel;
this.fileOps = builder.fileOps;
this.filePaths = builder.filePaths;
this.id = builder.id;
this.platform = builder.platform;
this.procPaths = builder.procPaths;
this.ruleName = builder.ruleName;
this.status = builder.status;
this.switchId = builder.switchId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return alertLevel
*/
public Integer getAlertLevel() {
return this.alertLevel;
}
/**
* @return fileOps
*/
public java.util.List<String> getFileOps() {
return this.fileOps;
}
/**
* @return filePaths
*/
public java.util.List<String> getFilePaths() {
return this.filePaths;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return procPaths
*/
public java.util.List<String> getProcPaths() {
return this.procPaths;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return switchId
*/
public String getSwitchId() {
return this.switchId;
}
public static final class Builder {
private String action;
private Integer alertLevel;
private java.util.List<String> fileOps;
private java.util.List<String> filePaths;
private Long id;
private String platform;
private java.util.List<String> procPaths;
private String ruleName;
private Integer status;
private String switchId;
private Builder() {
}
private Builder(Data model) {
this.action = model.action;
this.alertLevel = model.alertLevel;
this.fileOps = model.fileOps;
this.filePaths = model.filePaths;
this.id = model.id;
this.platform = model.platform;
this.procPaths = model.procPaths;
this.ruleName = model.ruleName;
this.status = model.status;
this.switchId = model.switchId;
}
/**
* <p>The handling method of the rule. Valid values:</p>
* <ol>
* <li>pass: allow</li>
* <li>alert</li>
* </ol>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* <p>The severity of alerts. Valid values:</p>
* <ul>
* <li>0: does not generate alerts</li>
* <li>1: sends notifications</li>
* <li>2: suspicious</li>
* <li>3: high-risk</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder alertLevel(Integer alertLevel) {
this.alertLevel = alertLevel;
return this;
}
/**
* <p>The operations performed on the files.</p>
*/
public Builder fileOps(java.util.List<String> fileOps) {
this.fileOps = fileOps;
return this;
}
/**
* <p>The paths to the monitored files.</p>
*/
public Builder filePaths(java.util.List<String> filePaths) {
this.filePaths = filePaths;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>44616</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The type of the operating system. Valid values:</p>
* <ul>
* <li><strong>windows</strong>: Windows</li>
* <li><strong>linux</strong>: Linux</li>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.platform = platform;
return this;
}
/**
* <p>The paths to the monitored processes.</p>
*/
public Builder procPaths(java.util.List<String> procPaths) {
this.procPaths = procPaths;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test-000</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The status of the rule. Valid values:</p>
* <ol>
* <li>0: disabled</li>
* <li>1: enabled</li>
* </ol>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The switch ID of the rule.</p>
*
* <strong>example:</strong>
* <p>FILE_PROTECT_RULE_SWITCH_TYPE_0000</p>
*/
public Builder switchId(String switchId) {
this.switchId = switchId;
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/GetFileUploadLimitRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileUploadLimitRequest} extends {@link RequestModel}
*
* <p>GetFileUploadLimitRequest</p>
*/
public class GetFileUploadLimitRequest extends Request {
private GetFileUploadLimitRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static GetFileUploadLimitRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<GetFileUploadLimitRequest, Builder> {
private Builder() {
super();
}
private Builder(GetFileUploadLimitRequest request) {
super(request);
}
@Override
public GetFileUploadLimitRequest build() {
return new GetFileUploadLimitRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileUploadLimitResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileUploadLimitResponse} extends {@link TeaModel}
*
* <p>GetFileUploadLimitResponse</p>
*/
public class GetFileUploadLimitResponse 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 GetFileUploadLimitResponseBody body;
private GetFileUploadLimitResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFileUploadLimitResponse 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 GetFileUploadLimitResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFileUploadLimitResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFileUploadLimitResponseBody body);
@Override
GetFileUploadLimitResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFileUploadLimitResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFileUploadLimitResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFileUploadLimitResponse 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(GetFileUploadLimitResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFileUploadLimitResponse build() {
return new GetFileUploadLimitResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFileUploadLimitResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFileUploadLimitResponseBody} extends {@link TeaModel}
*
* <p>GetFileUploadLimitResponseBody</p>
*/
public class GetFileUploadLimitResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetFileUploadLimitResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetFileUploadLimitResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetFileUploadLimitResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned if the request is successful.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1A975D03-5F49-5354-B2CB-3918D5DA431A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetFileUploadLimitResponseBody build() {
return new GetFileUploadLimitResponseBody(this);
}
}
/**
*
* {@link GetFileUploadLimitResponseBody} extends {@link TeaModel}
*
* <p>GetFileUploadLimitResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Limit")
private String limit;
private Data(Builder builder) {
this.limit = builder.limit;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return limit
*/
public String getLimit() {
return this.limit;
}
public static final class Builder {
private String limit;
private Builder() {
}
private Builder(Data model) {
this.limit = model.limit;
}
/**
* <p>The QPS limit on the files uploaded from the client.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder limit(String limit) {
this.limit = limit;
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/GetFunctionTrialStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFunctionTrialStatusRequest} extends {@link RequestModel}
*
* <p>GetFunctionTrialStatusRequest</p>
*/
public class GetFunctionTrialStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FunctionName")
private String functionName;
private GetFunctionTrialStatusRequest(Builder builder) {
super(builder);
this.functionName = builder.functionName;
}
public static Builder builder() {
return new Builder();
}
public static GetFunctionTrialStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return functionName
*/
public String getFunctionName() {
return this.functionName;
}
public static final class Builder extends Request.Builder<GetFunctionTrialStatusRequest, Builder> {
private String functionName;
private Builder() {
super();
}
private Builder(GetFunctionTrialStatusRequest request) {
super(request);
this.functionName = request.functionName;
}
/**
* <p>The name of the function module.</p>
*
* <strong>example:</strong>
* <p>trail_file_detect_api_reward</p>
*/
public Builder functionName(String functionName) {
this.putQueryParameter("FunctionName", functionName);
this.functionName = functionName;
return this;
}
@Override
public GetFunctionTrialStatusRequest build() {
return new GetFunctionTrialStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFunctionTrialStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFunctionTrialStatusResponse} extends {@link TeaModel}
*
* <p>GetFunctionTrialStatusResponse</p>
*/
public class GetFunctionTrialStatusResponse 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 GetFunctionTrialStatusResponseBody body;
private GetFunctionTrialStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFunctionTrialStatusResponse 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 GetFunctionTrialStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFunctionTrialStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFunctionTrialStatusResponseBody body);
@Override
GetFunctionTrialStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFunctionTrialStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFunctionTrialStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFunctionTrialStatusResponse 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(GetFunctionTrialStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFunctionTrialStatusResponse build() {
return new GetFunctionTrialStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetFunctionTrialStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFunctionTrialStatusResponseBody} extends {@link TeaModel}
*
* <p>GetFunctionTrialStatusResponseBody</p>
*/
public class GetFunctionTrialStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Integer data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetFunctionTrialStatusResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetFunctionTrialStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Integer getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer data;
private String requestId;
private Builder() {
}
private Builder(GetFunctionTrialStatusResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>Indicates eligibility. Values:</p>
* <ul>
* <li><strong>0</strong>: Eligible</li>
* <li><strong>1</strong>: Not eligible</li>
* <li><strong>2</strong>: Trial ended</li>
* <li><strong>3</strong>: In trial</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder data(Integer data) {
this.data = data;
return this;
}
/**
* <p>The ID of this 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>8B30CCDD-B79A-5844-BE66-F6D51335
* XXXX</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetFunctionTrialStatusResponseBody build() {
return new GetFunctionTrialStatusResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneyPotUploadPolicyInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneyPotUploadPolicyInfoRequest} extends {@link RequestModel}
*
* <p>GetHoneyPotUploadPolicyInfoRequest</p>
*/
public class GetHoneyPotUploadPolicyInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private GetHoneyPotUploadPolicyInfoRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneyPotUploadPolicyInfoRequest 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<GetHoneyPotUploadPolicyInfoRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(GetHoneyPotUploadPolicyInfoRequest request) {
super(request);
this.lang = request.lang;
}
/**
* <p>The language of the content within the request and the response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public GetHoneyPotUploadPolicyInfoRequest build() {
return new GetHoneyPotUploadPolicyInfoRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneyPotUploadPolicyInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneyPotUploadPolicyInfoResponse} extends {@link TeaModel}
*
* <p>GetHoneyPotUploadPolicyInfoResponse</p>
*/
public class GetHoneyPotUploadPolicyInfoResponse 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 GetHoneyPotUploadPolicyInfoResponseBody body;
private GetHoneyPotUploadPolicyInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetHoneyPotUploadPolicyInfoResponse 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 GetHoneyPotUploadPolicyInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetHoneyPotUploadPolicyInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetHoneyPotUploadPolicyInfoResponseBody body);
@Override
GetHoneyPotUploadPolicyInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetHoneyPotUploadPolicyInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetHoneyPotUploadPolicyInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetHoneyPotUploadPolicyInfoResponse 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(GetHoneyPotUploadPolicyInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public GetHoneyPotUploadPolicyInfoResponse build() {
return new GetHoneyPotUploadPolicyInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneyPotUploadPolicyInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneyPotUploadPolicyInfoResponseBody} extends {@link TeaModel}
*
* <p>GetHoneyPotUploadPolicyInfoResponseBody</p>
*/
public class GetHoneyPotUploadPolicyInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetHoneyPotUploadPolicyInfoResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneyPotUploadPolicyInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetHoneyPotUploadPolicyInfoResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The HTTP status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code that is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>8C177095-A734-59B2-9409-7D4F26FF****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetHoneyPotUploadPolicyInfoResponseBody build() {
return new GetHoneyPotUploadPolicyInfoResponseBody(this);
}
}
/**
*
* {@link GetHoneyPotUploadPolicyInfoResponseBody} extends {@link TeaModel}
*
* <p>GetHoneyPotUploadPolicyInfoResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Accessid")
private String accessid;
@com.aliyun.core.annotation.NameInMap("Expire")
private String expire;
@com.aliyun.core.annotation.NameInMap("Host")
private String host;
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.NameInMap("Signature")
private String signature;
private Data(Builder builder) {
this.accessid = builder.accessid;
this.expire = builder.expire;
this.host = builder.host;
this.key = builder.key;
this.policy = builder.policy;
this.securityToken = builder.securityToken;
this.signature = builder.signature;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return accessid
*/
public String getAccessid() {
return this.accessid;
}
/**
* @return expire
*/
public String getExpire() {
return this.expire;
}
/**
* @return host
*/
public String getHost() {
return this.host;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return signature
*/
public String getSignature() {
return this.signature;
}
public static final class Builder {
private String accessid;
private String expire;
private String host;
private String key;
private String policy;
private String securityToken;
private String signature;
private Builder() {
}
private Builder(Data model) {
this.accessid = model.accessid;
this.expire = model.expire;
this.host = model.host;
this.key = model.key;
this.policy = model.policy;
this.securityToken = model.securityToken;
this.signature = model.signature;
}
/**
* <p>The key ID that is required for the file upload.</p>
*
* <strong>example:</strong>
* <p>yourAccessKeyID</p>
*/
public Builder accessid(String accessid) {
this.accessid = accessid;
return this;
}
/**
* <p>The expiration time of the URL. The value is a timestamp. You can use the value to determine whether the URL expires. If the expiration time arrives, you can no longer use the URL to upload files.</p>
*
* <strong>example:</strong>
* <p>1661443200000</p>
*/
public Builder expire(String expire) {
this.expire = expire;
return this;
}
/**
* <p>The request URL during the upload.</p>
*
* <strong>example:</strong>
* <p><a href="https://aegis-update-static-file.oss-cn-hangzhou.aliyuncs.com">https://aegis-update-static-file.oss-cn-hangzhou.aliyuncs.com</a></p>
*/
public Builder host(String host) {
this.host = host;
return this;
}
/**
* <p>The full path of the file in OSS. The file is uploaded by calling the OSS PostObject operation.</p>
*
* <strong>example:</strong>
* <p>HONEYPOT_FILE/1766185894104675_169********</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The limits that are imposed on the file upload. The limits include the file size.</p>
*
* <strong>example:</strong>
* <p>eyJleHBpcmF0aW9uIjoiMjAyMy0wOS0wMVQwMzoyNTozNS44MzZaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwXSxbInN0YXJ0cy13aXRoIiwiJGtleSIsIkhPTkVZUE9UX0ZJTEUvMTc2NjE4NTg5NDEwNDY3NV8xNjkzNTM4NDM1N*****************</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The security token.</p>
*
* <strong>example:</strong>
* <hr>
*/
public Builder securityToken(String securityToken) {
this.securityToken = securityToken;
return this;
}
/**
* <p>The signature that is calculated based on <strong>AccessKeySecret</strong> and <strong>Policy</strong>. When you call an Object Storage Service (OSS) API operation, OSS uses the signature information to verify the POST request.</p>
*
* <strong>example:</strong>
* <p>wKPqlFneNTZPn52k2Rz9GTY*****</p>
*/
public Builder signature(String signature) {
this.signature = signature;
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/GetHoneypotAttackStatisticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotAttackStatisticsRequest} extends {@link RequestModel}
*
* <p>GetHoneypotAttackStatisticsRequest</p>
*/
public class GetHoneypotAttackStatisticsRequest 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("EndTimeStamp")
private Long endTimeStamp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevelList")
private java.util.List<String> riskLevelList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SrcIp")
@com.aliyun.core.annotation.Validation(required = true)
private String srcIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTimeStamp")
private Long startTimeStamp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatisticsType")
@com.aliyun.core.annotation.Validation(required = true)
private String statisticsType;
private GetHoneypotAttackStatisticsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.endTimeStamp = builder.endTimeStamp;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.riskLevelList = builder.riskLevelList;
this.srcIp = builder.srcIp;
this.startTimeStamp = builder.startTimeStamp;
this.statisticsType = builder.statisticsType;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotAttackStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return endTimeStamp
*/
public Long getEndTimeStamp() {
return this.endTimeStamp;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return riskLevelList
*/
public java.util.List<String> getRiskLevelList() {
return this.riskLevelList;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
/**
* @return startTimeStamp
*/
public Long getStartTimeStamp() {
return this.startTimeStamp;
}
/**
* @return statisticsType
*/
public String getStatisticsType() {
return this.statisticsType;
}
public static final class Builder extends Request.Builder<GetHoneypotAttackStatisticsRequest, Builder> {
private Integer currentPage;
private Long endTimeStamp;
private String lang;
private Integer pageSize;
private java.util.List<String> riskLevelList;
private String srcIp;
private Long startTimeStamp;
private String statisticsType;
private Builder() {
super();
}
private Builder(GetHoneypotAttackStatisticsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.endTimeStamp = request.endTimeStamp;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.riskLevelList = request.riskLevelList;
this.srcIp = request.srcIp;
this.startTimeStamp = request.startTimeStamp;
this.statisticsType = request.statisticsType;
}
/**
* <p>The page number. Pages start from page <strong>1</strong>. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The end time. The value is a UNIX timestamp.</p>
*
* <strong>example:</strong>
* <p>1675058931215</p>
*/
public Builder endTimeStamp(Long endTimeStamp) {
this.putQueryParameter("EndTimeStamp", endTimeStamp);
this.endTimeStamp = endTimeStamp;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page. We recommend that you do not leave this parameter empty.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The risk levels.</p>
*/
public Builder riskLevelList(java.util.List<String> riskLevelList) {
this.putQueryParameter("RiskLevelList", riskLevelList);
this.riskLevelList = riskLevelList;
return this;
}
/**
* <p>The source IP address of the attack.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>47.92.139.**</p>
*/
public Builder srcIp(String srcIp) {
this.putQueryParameter("SrcIp", srcIp);
this.srcIp = srcIp;
return this;
}
/**
* <p>The start time. The value is a UNIX timestamp.</p>
*
* <strong>example:</strong>
* <p>1681624877761</p>
*/
public Builder startTimeStamp(Long startTimeStamp) {
this.putQueryParameter("StartTimeStamp", startTimeStamp);
this.startTimeStamp = startTimeStamp;
return this;
}
/**
* <p>The type of the attack source statistics. Valid values:</p>
* <ul>
* <li><strong>TOP_ATTACKED_AGENT</strong>: the top 5 probes that are attacked the most frequently</li>
* <li><strong>TOP_ATTACKED_IP</strong>: the top 5 IP addresses that are attacked the most frequently</li>
* <li><strong>ATTACK_EVENT_TYPE</strong>: the type of the intrusion event</li>
* <li><strong>ATTACK_HONEYPOT_TYPE</strong>: the type of the attacked honeypot</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>TOP_ATTACKED_IP</p>
*/
public Builder statisticsType(String statisticsType) {
this.putQueryParameter("StatisticsType", statisticsType);
this.statisticsType = statisticsType;
return this;
}
@Override
public GetHoneypotAttackStatisticsRequest build() {
return new GetHoneypotAttackStatisticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotAttackStatisticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotAttackStatisticsResponse} extends {@link TeaModel}
*
* <p>GetHoneypotAttackStatisticsResponse</p>
*/
public class GetHoneypotAttackStatisticsResponse 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 GetHoneypotAttackStatisticsResponseBody body;
private GetHoneypotAttackStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetHoneypotAttackStatisticsResponse 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 GetHoneypotAttackStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetHoneypotAttackStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetHoneypotAttackStatisticsResponseBody body);
@Override
GetHoneypotAttackStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetHoneypotAttackStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetHoneypotAttackStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetHoneypotAttackStatisticsResponse 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(GetHoneypotAttackStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetHoneypotAttackStatisticsResponse build() {
return new GetHoneypotAttackStatisticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotAttackStatisticsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotAttackStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotAttackStatisticsResponseBody</p>
*/
public class GetHoneypotAttackStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetHoneypotAttackStatisticsResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotAttackStatisticsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetHoneypotAttackStatisticsResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code that is returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The statistics.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>3FACC60A-3FE4-5F49-9184-50730C8B****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetHoneypotAttackStatisticsResponseBody build() {
return new GetHoneypotAttackStatisticsResponseBody(this);
}
}
/**
*
* {@link GetHoneypotAttackStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotAttackStatisticsResponseBody</p>
*/
public static class HoneypotAttackStatistics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("StatisticsCount")
private Integer statisticsCount;
@com.aliyun.core.annotation.NameInMap("StatisticsValue")
private String statisticsValue;
private HoneypotAttackStatistics(Builder builder) {
this.statisticsCount = builder.statisticsCount;
this.statisticsValue = builder.statisticsValue;
}
public static Builder builder() {
return new Builder();
}
public static HoneypotAttackStatistics create() {
return builder().build();
}
/**
* @return statisticsCount
*/
public Integer getStatisticsCount() {
return this.statisticsCount;
}
/**
* @return statisticsValue
*/
public String getStatisticsValue() {
return this.statisticsValue;
}
public static final class Builder {
private Integer statisticsCount;
private String statisticsValue;
private Builder() {
}
private Builder(HoneypotAttackStatistics model) {
this.statisticsCount = model.statisticsCount;
this.statisticsValue = model.statisticsValue;
}
/**
* <p>The number of times the value is counted.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder statisticsCount(Integer statisticsCount) {
this.statisticsCount = statisticsCount;
return this;
}
/**
* <p>The statistical value.</p>
*
* <strong>example:</strong>
* <p>112.168.1.**</p>
*/
public Builder statisticsValue(String statisticsValue) {
this.statisticsValue = statisticsValue;
return this;
}
public HoneypotAttackStatistics build() {
return new HoneypotAttackStatistics(this);
}
}
}
/**
*
* {@link GetHoneypotAttackStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotAttackStatisticsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("HoneypotAttackStatistics")
private java.util.List<HoneypotAttackStatistics> honeypotAttackStatistics;
@com.aliyun.core.annotation.NameInMap("StatisticsType")
private String statisticsType;
private Data(Builder builder) {
this.count = builder.count;
this.honeypotAttackStatistics = builder.honeypotAttackStatistics;
this.statisticsType = builder.statisticsType;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return honeypotAttackStatistics
*/
public java.util.List<HoneypotAttackStatistics> getHoneypotAttackStatistics() {
return this.honeypotAttackStatistics;
}
/**
* @return statisticsType
*/
public String getStatisticsType() {
return this.statisticsType;
}
public static final class Builder {
private Integer count;
private java.util.List<HoneypotAttackStatistics> honeypotAttackStatistics;
private String statisticsType;
private Builder() {
}
private Builder(Data model) {
this.count = model.count;
this.honeypotAttackStatistics = model.honeypotAttackStatistics;
this.statisticsType = model.statisticsType;
}
/**
* <p>The number of entries on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The statistics details.</p>
*/
public Builder honeypotAttackStatistics(java.util.List<HoneypotAttackStatistics> honeypotAttackStatistics) {
this.honeypotAttackStatistics = honeypotAttackStatistics;
return this;
}
/**
* <p>The type of the attack source statistics. Valid values:</p>
* <ul>
* <li><strong>TOP_ATTACKED_AGENT</strong>: the top five probes that are attacked the most frequently.</li>
* <li><strong>TOP_ATTACKED_IP</strong>: the top five IP addresses that are attacked the most frequently.</li>
* <li><strong>ATTACK_EVENT_TYPE</strong>: the type of the intrusion event.</li>
* <li><strong>ATTACK_HONEYPOT_TYPE</strong>: the type of the attacked honeypot.</li>
* </ul>
*
* <strong>example:</strong>
* <p>TOP_ATTACKED_IP</p>
*/
public Builder statisticsType(String statisticsType) {
this.statisticsType = statisticsType;
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/GetHoneypotEventTrendRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotEventTrendRequest} extends {@link RequestModel}
*
* <p>GetHoneypotEventTrendRequest</p>
*/
public class GetHoneypotEventTrendRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTimeStamp")
private Long endTimeStamp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevelList")
private java.util.List<String> riskLevelList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SrcIp")
@com.aliyun.core.annotation.Validation(required = true)
private String srcIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTimeStamp")
private Long startTimeStamp;
private GetHoneypotEventTrendRequest(Builder builder) {
super(builder);
this.endTimeStamp = builder.endTimeStamp;
this.lang = builder.lang;
this.riskLevelList = builder.riskLevelList;
this.srcIp = builder.srcIp;
this.startTimeStamp = builder.startTimeStamp;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotEventTrendRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return endTimeStamp
*/
public Long getEndTimeStamp() {
return this.endTimeStamp;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return riskLevelList
*/
public java.util.List<String> getRiskLevelList() {
return this.riskLevelList;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
/**
* @return startTimeStamp
*/
public Long getStartTimeStamp() {
return this.startTimeStamp;
}
public static final class Builder extends Request.Builder<GetHoneypotEventTrendRequest, Builder> {
private Long endTimeStamp;
private String lang;
private java.util.List<String> riskLevelList;
private String srcIp;
private Long startTimeStamp;
private Builder() {
super();
}
private Builder(GetHoneypotEventTrendRequest request) {
super(request);
this.endTimeStamp = request.endTimeStamp;
this.lang = request.lang;
this.riskLevelList = request.riskLevelList;
this.srcIp = request.srcIp;
this.startTimeStamp = request.startTimeStamp;
}
/**
* <p>End time, timestamp format.</p>
*
* <strong>example:</strong>
* <p>1687831329169</p>
*/
public Builder endTimeStamp(Long endTimeStamp) {
this.putQueryParameter("EndTimeStamp", endTimeStamp);
this.endTimeStamp = endTimeStamp;
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 risk levels of the alert events.</p>
*/
public Builder riskLevelList(java.util.List<String> riskLevelList) {
this.putQueryParameter("RiskLevelList", riskLevelList);
this.riskLevelList = riskLevelList;
return this;
}
/**
* <p>The source IP address of the attack.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.91.254.***</p>
*/
public Builder srcIp(String srcIp) {
this.putQueryParameter("SrcIp", srcIp);
this.srcIp = srcIp;
return this;
}
/**
* <p>Start time, timestamp format.</p>
*
* <strong>example:</strong>
* <p>1683516557757</p>
*/
public Builder startTimeStamp(Long startTimeStamp) {
this.putQueryParameter("StartTimeStamp", startTimeStamp);
this.startTimeStamp = startTimeStamp;
return this;
}
@Override
public GetHoneypotEventTrendRequest build() {
return new GetHoneypotEventTrendRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotEventTrendResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotEventTrendResponse} extends {@link TeaModel}
*
* <p>GetHoneypotEventTrendResponse</p>
*/
public class GetHoneypotEventTrendResponse 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 GetHoneypotEventTrendResponseBody body;
private GetHoneypotEventTrendResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetHoneypotEventTrendResponse 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 GetHoneypotEventTrendResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetHoneypotEventTrendResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetHoneypotEventTrendResponseBody body);
@Override
GetHoneypotEventTrendResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetHoneypotEventTrendResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetHoneypotEventTrendResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetHoneypotEventTrendResponse 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(GetHoneypotEventTrendResponseBody body) {
this.body = body;
return this;
}
@Override
public GetHoneypotEventTrendResponse build() {
return new GetHoneypotEventTrendResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotEventTrendResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotEventTrendResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotEventTrendResponseBody</p>
*/
public class GetHoneypotEventTrendResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetHoneypotEventTrendResponseBody(Builder builder) {
this.code = builder.code;
this.count = builder.count;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotEventTrendResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Integer count;
private java.util.List<Data> data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetHoneypotEventTrendResponseBody model) {
this.code = model.code;
this.count = model.count;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The list of data returned. </p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>21637690-9B21-5EEC-94DB-2A732480****</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;
}
public GetHoneypotEventTrendResponseBody build() {
return new GetHoneypotEventTrendResponseBody(this);
}
}
/**
*
* {@link GetHoneypotEventTrendResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotEventTrendResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("KeyName")
private String keyName;
@com.aliyun.core.annotation.NameInMap("TimeStamp")
private Long timeStamp;
private Data(Builder builder) {
this.count = builder.count;
this.keyName = builder.keyName;
this.timeStamp = builder.timeStamp;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return keyName
*/
public String getKeyName() {
return this.keyName;
}
/**
* @return timeStamp
*/
public Long getTimeStamp() {
return this.timeStamp;
}
public static final class Builder {
private Integer count;
private String keyName;
private Long timeStamp;
private Builder() {
}
private Builder(Data model) {
this.count = model.count;
this.keyName = model.keyName;
this.timeStamp = model.timeStamp;
}
/**
* <p>The number of attacks that occurred.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The name of the attack.</p>
*
* <strong>example:</strong>
* <p>ATTACK_EVENT</p>
*/
public Builder keyName(String keyName) {
this.keyName = keyName;
return this;
}
/**
* <p>The timestamp when the attack event occurred.</p>
*
* <strong>example:</strong>
* <p>1686968163644</p>
*/
public Builder timeStamp(Long timeStamp) {
this.timeStamp = timeStamp;
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/GetHoneypotNodeMetricListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotNodeMetricListRequest} extends {@link RequestModel}
*
* <p>GetHoneypotNodeMetricListRequest</p>
*/
public class GetHoneypotNodeMetricListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Express")
private String express;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Length")
private String length;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MetricName")
private String metricName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Period")
private String period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
private GetHoneypotNodeMetricListRequest(Builder builder) {
super(builder);
this.endTime = builder.endTime;
this.express = builder.express;
this.length = builder.length;
this.metricName = builder.metricName;
this.namespace = builder.namespace;
this.nodeId = builder.nodeId;
this.period = builder.period;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotNodeMetricListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return express
*/
public String getExpress() {
return this.express;
}
/**
* @return length
*/
public String getLength() {
return this.length;
}
/**
* @return metricName
*/
public String getMetricName() {
return this.metricName;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return period
*/
public String getPeriod() {
return this.period;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<GetHoneypotNodeMetricListRequest, Builder> {
private String endTime;
private String express;
private String length;
private String metricName;
private String namespace;
private String nodeId;
private String period;
private String startTime;
private Builder() {
super();
}
private Builder(GetHoneypotNodeMetricListRequest request) {
super(request);
this.endTime = request.endTime;
this.express = request.express;
this.length = request.length;
this.metricName = request.metricName;
this.namespace = request.namespace;
this.nodeId = request.nodeId;
this.period = request.period;
this.startTime = request.startTime;
}
/**
* <p>The end of the time range to query. Valid values:</p>
* <ul>
* <li>UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC</li>
* <li>Date format: YYYY-MM-DDThh:mm:ssZ</li>
* </ul>
*
* <strong>example:</strong>
* <p>2019-01-30 00:10:00</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The expression that is used to compute the query results in real time.</p>
* <blockquote>
* <p> Only the groupby expression is supported. This expression is similar to the GROUP BY statement that applies to databases.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"groupby":["userId","instanceId"]}</p>
*/
public Builder express(String express) {
this.putQueryParameter("Express", express);
this.express = express;
return this;
}
/**
* <p>The number of entries per page.</p>
* <blockquote>
* <p> The maximum value of the Length parameter in a request is 1440.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder length(String length) {
this.putQueryParameter("Length", length);
this.length = length;
return this;
}
/**
* <p>The metric that is used to monitor the cloud service.</p>
*
* <strong>example:</strong>
* <p>cpu_total</p>
*/
public Builder metricName(String metricName) {
this.putQueryParameter("MetricName", metricName);
this.metricName = metricName;
return this;
}
/**
* <p>The namespace of the cloud service. Format: acs_cloud service name.</p>
*
* <strong>example:</strong>
* <p>acs_ecs_dashboard</p>
*/
public Builder namespace(String namespace) {
this.putQueryParameter("Namespace", namespace);
this.namespace = namespace;
return this;
}
/**
* <p>The management node ID.</p>
*
* <strong>example:</strong>
* <p>cc427e14-f257-4670-9d2b-d83bbbe7****</p>
*/
public Builder nodeId(String nodeId) {
this.putQueryParameter("NodeId", nodeId);
this.nodeId = nodeId;
return this;
}
/**
* <p>The time interval. Unit: seconds. Valid values: 60, 300, and 900.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder period(String period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The beginning of the time range to query. The following formats are supported:</p>
* <ul>
* <li>UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC</li>
* <li>Date format: YYYY-MM-DDThh:mm:ssZ</li>
* <li>The interval between the start time and the end time is less than or equal to 31 days.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2019-01-30 00:00:00</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public GetHoneypotNodeMetricListRequest build() {
return new GetHoneypotNodeMetricListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotNodeMetricListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotNodeMetricListResponse} extends {@link TeaModel}
*
* <p>GetHoneypotNodeMetricListResponse</p>
*/
public class GetHoneypotNodeMetricListResponse 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 GetHoneypotNodeMetricListResponseBody body;
private GetHoneypotNodeMetricListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetHoneypotNodeMetricListResponse 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 GetHoneypotNodeMetricListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetHoneypotNodeMetricListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetHoneypotNodeMetricListResponseBody body);
@Override
GetHoneypotNodeMetricListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetHoneypotNodeMetricListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetHoneypotNodeMetricListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetHoneypotNodeMetricListResponse 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(GetHoneypotNodeMetricListResponseBody body) {
this.body = body;
return this;
}
@Override
public GetHoneypotNodeMetricListResponse build() {
return new GetHoneypotNodeMetricListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotNodeMetricListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotNodeMetricListResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotNodeMetricListResponseBody</p>
*/
public class GetHoneypotNodeMetricListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private String data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetHoneypotNodeMetricListResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotNodeMetricListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public String getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String data;
private String requestId;
private Builder() {
}
private Builder(GetHoneypotNodeMetricListResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The monitoring data.</p>
*
* <strong>example:</strong>
* <p>{
* "code": "200",
* "datapoints": "[{"timestamp":1698375060000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":67084.0,"Maximum":67084.0,"Average":67084.0},{"timestamp":1698375120000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":63704.0,"Maximum":63704.0,"Average":63704.0},{"timestamp":1698375180000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":67624.0,"Maximum":67624.0,"Average":67624.0},{"timestamp":1698375240000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":68432.0,"Maximum":68432.0,"Average":68432.0},{"timestamp":1698375300000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":70148.0,"Maximum":70148.0,"Average":70148.0},{"timestamp":1698375360000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":63612.0,"Maximum":63612.0,"Average":63612.0},{"timestamp":1698375420000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":68032.0,"Maximum":68032.0,"Average":68032.0},{"timestamp":1698375480000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":67400.0,"Maximum":67400.0,"Average":67400.0},{"timestamp":1698375540000,"instanceId":"i-bp18jn50nid83nsu****","ip":"1.1.1.1","userId":"132776878515****","Minimum":65352.0,"Maximum":65352.0,"Average":65352.0}]",
* "period": "60",
* "requestId": "AFE33E4E-70A3-5BAE-AEA8-4D3BF3A75067",
* "success": true
* }</p>
*/
public Builder data(String data) {
this.data = data;
return this;
}
/**
* <p>The request ID, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>48F523DA-4C7E-5417-B872-E313E5A4****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetHoneypotNodeMetricListResponseBody build() {
return new GetHoneypotNodeMetricListResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotNodeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotNodeRequest} extends {@link RequestModel}
*
* <p>GetHoneypotNodeRequest</p>
*/
public class GetHoneypotNodeRequest 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("NodeId")
@com.aliyun.core.annotation.Validation(required = true)
private String nodeId;
private GetHoneypotNodeRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.nodeId = builder.nodeId;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotNodeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
public static final class Builder extends Request.Builder<GetHoneypotNodeRequest, Builder> {
private String lang;
private String nodeId;
private Builder() {
super();
}
private Builder(GetHoneypotNodeRequest request) {
super(request);
this.lang = request.lang;
this.nodeId = request.nodeId;
}
/**
* <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 ID of the management node.</p>
* <blockquote>
* <p>You can call the <a href="~~ListHoneypotNode~~">ListHoneypotNode</a> operation to query the IDs of management nodes.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>d3dd3864-4e02-4abd-8b6a-8f5f6fec4715</p>
*/
public Builder nodeId(String nodeId) {
this.putQueryParameter("NodeId", nodeId);
this.nodeId = nodeId;
return this;
}
@Override
public GetHoneypotNodeRequest build() {
return new GetHoneypotNodeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotNodeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotNodeResponse} extends {@link TeaModel}
*
* <p>GetHoneypotNodeResponse</p>
*/
public class GetHoneypotNodeResponse 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 GetHoneypotNodeResponseBody body;
private GetHoneypotNodeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetHoneypotNodeResponse 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 GetHoneypotNodeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetHoneypotNodeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetHoneypotNodeResponseBody body);
@Override
GetHoneypotNodeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetHoneypotNodeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetHoneypotNodeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetHoneypotNodeResponse 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(GetHoneypotNodeResponseBody body) {
this.body = body;
return this;
}
@Override
public GetHoneypotNodeResponse build() {
return new GetHoneypotNodeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotNodeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotNodeResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotNodeResponseBody</p>
*/
public class GetHoneypotNodeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("HoneypotNode")
private HoneypotNode honeypotNode;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetHoneypotNodeResponseBody(Builder builder) {
this.code = builder.code;
this.honeypotNode = builder.honeypotNode;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotNodeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return honeypotNode
*/
public HoneypotNode getHoneypotNode() {
return this.honeypotNode;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private HoneypotNode honeypotNode;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetHoneypotNodeResponseBody model) {
this.code = model.code;
this.honeypotNode = model.honeypotNode;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The details of the management node.</p>
*/
public Builder honeypotNode(HoneypotNode honeypotNode) {
this.honeypotNode = honeypotNode;
return this;
}
/**
* <p>The HTTP status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>0A453658-070B-5554-B46C-867425BE4FD4</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;
}
public GetHoneypotNodeResponseBody build() {
return new GetHoneypotNodeResponseBody(this);
}
}
/**
*
* {@link GetHoneypotNodeResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotNodeResponseBody</p>
*/
public static class HoneypotNode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowHoneypotAccessInternet")
private Boolean allowHoneypotAccessInternet;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("EcsInstanceId")
private String ecsInstanceId;
@com.aliyun.core.annotation.NameInMap("HoneypotTotalCount")
private Integer honeypotTotalCount;
@com.aliyun.core.annotation.NameInMap("HoneypotUsedCount")
private Integer honeypotUsedCount;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("NodeIp")
private String nodeIp;
@com.aliyun.core.annotation.NameInMap("NodeName")
private String nodeName;
@com.aliyun.core.annotation.NameInMap("ProbeTotalCount")
private Integer probeTotalCount;
@com.aliyun.core.annotation.NameInMap("ProbeUsedCount")
private Integer probeUsedCount;
@com.aliyun.core.annotation.NameInMap("SecurityGroupProbeIpList")
private java.util.List<String> securityGroupProbeIpList;
@com.aliyun.core.annotation.NameInMap("TotalStatus")
private Integer totalStatus;
@com.aliyun.core.annotation.NameInMap("UpgradeAvailable")
private Boolean upgradeAvailable;
private HoneypotNode(Builder builder) {
this.allowHoneypotAccessInternet = builder.allowHoneypotAccessInternet;
this.createTime = builder.createTime;
this.ecsInstanceId = builder.ecsInstanceId;
this.honeypotTotalCount = builder.honeypotTotalCount;
this.honeypotUsedCount = builder.honeypotUsedCount;
this.nodeId = builder.nodeId;
this.nodeIp = builder.nodeIp;
this.nodeName = builder.nodeName;
this.probeTotalCount = builder.probeTotalCount;
this.probeUsedCount = builder.probeUsedCount;
this.securityGroupProbeIpList = builder.securityGroupProbeIpList;
this.totalStatus = builder.totalStatus;
this.upgradeAvailable = builder.upgradeAvailable;
}
public static Builder builder() {
return new Builder();
}
public static HoneypotNode create() {
return builder().build();
}
/**
* @return allowHoneypotAccessInternet
*/
public Boolean getAllowHoneypotAccessInternet() {
return this.allowHoneypotAccessInternet;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return ecsInstanceId
*/
public String getEcsInstanceId() {
return this.ecsInstanceId;
}
/**
* @return honeypotTotalCount
*/
public Integer getHoneypotTotalCount() {
return this.honeypotTotalCount;
}
/**
* @return honeypotUsedCount
*/
public Integer getHoneypotUsedCount() {
return this.honeypotUsedCount;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeIp
*/
public String getNodeIp() {
return this.nodeIp;
}
/**
* @return nodeName
*/
public String getNodeName() {
return this.nodeName;
}
/**
* @return probeTotalCount
*/
public Integer getProbeTotalCount() {
return this.probeTotalCount;
}
/**
* @return probeUsedCount
*/
public Integer getProbeUsedCount() {
return this.probeUsedCount;
}
/**
* @return securityGroupProbeIpList
*/
public java.util.List<String> getSecurityGroupProbeIpList() {
return this.securityGroupProbeIpList;
}
/**
* @return totalStatus
*/
public Integer getTotalStatus() {
return this.totalStatus;
}
/**
* @return upgradeAvailable
*/
public Boolean getUpgradeAvailable() {
return this.upgradeAvailable;
}
public static final class Builder {
private Boolean allowHoneypotAccessInternet;
private String createTime;
private String ecsInstanceId;
private Integer honeypotTotalCount;
private Integer honeypotUsedCount;
private String nodeId;
private String nodeIp;
private String nodeName;
private Integer probeTotalCount;
private Integer probeUsedCount;
private java.util.List<String> securityGroupProbeIpList;
private Integer totalStatus;
private Boolean upgradeAvailable;
private Builder() {
}
private Builder(HoneypotNode model) {
this.allowHoneypotAccessInternet = model.allowHoneypotAccessInternet;
this.createTime = model.createTime;
this.ecsInstanceId = model.ecsInstanceId;
this.honeypotTotalCount = model.honeypotTotalCount;
this.honeypotUsedCount = model.honeypotUsedCount;
this.nodeId = model.nodeId;
this.nodeIp = model.nodeIp;
this.nodeName = model.nodeName;
this.probeTotalCount = model.probeTotalCount;
this.probeUsedCount = model.probeUsedCount;
this.securityGroupProbeIpList = model.securityGroupProbeIpList;
this.totalStatus = model.totalStatus;
this.upgradeAvailable = model.upgradeAvailable;
}
/**
* <p>Indicates whether a honeypot is allowed to access the Internet. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The honeypot is allowed to access the Internet.</li>
* <li><strong>false</strong>: The honeypot is not allowed to access the Internet.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder allowHoneypotAccessInternet(Boolean allowHoneypotAccessInternet) {
this.allowHoneypotAccessInternet = allowHoneypotAccessInternet;
return this;
}
/**
* <p>The time when the management node was created.</p>
*
* <strong>example:</strong>
* <p>2022-12-02 17:13:43</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>i-2vccskxjunf1ag6w****</p>
*/
public Builder ecsInstanceId(String ecsInstanceId) {
this.ecsInstanceId = ecsInstanceId;
return this;
}
/**
* <p>The maximum number of honeypots that can be deployed to the management node.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder honeypotTotalCount(Integer honeypotTotalCount) {
this.honeypotTotalCount = honeypotTotalCount;
return this;
}
/**
* <p>The number of honeypots that are deployed to the management node.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder honeypotUsedCount(Integer honeypotUsedCount) {
this.honeypotUsedCount = honeypotUsedCount;
return this;
}
/**
* <p>The ID of the management node.</p>
*
* <strong>example:</strong>
* <p>a7409a58-bc60-41af-9d36-080d58ae****</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The IP address of the management node.</p>
*
* <strong>example:</strong>
* <p>101.37.XX.XX</p>
*/
public Builder nodeIp(String nodeIp) {
this.nodeIp = nodeIp;
return this;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>gmmc</p>
*/
public Builder nodeName(String nodeName) {
this.nodeName = nodeName;
return this;
}
/**
* <p>The maximum number of probes that can be deployed for the management node.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder probeTotalCount(Integer probeTotalCount) {
this.probeTotalCount = probeTotalCount;
return this;
}
/**
* <p>The number of probes that are deployed for the management node.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder probeUsedCount(Integer probeUsedCount) {
this.probeUsedCount = probeUsedCount;
return this;
}
/**
* <p>An array consisting of the CIDR blocks that are allowed to access the management node.</p>
*/
public Builder securityGroupProbeIpList(java.util.List<String> securityGroupProbeIpList) {
this.securityGroupProbeIpList = securityGroupProbeIpList;
return this;
}
/**
* <p>The status of the management node. Valid values:</p>
* <ul>
* <li><strong>0</strong>: preparing</li>
* <li><strong>1</strong>: normal</li>
* <li><strong>2</strong>: abnormal</li>
* <li><strong>4</strong>: starting</li>
* <li><strong>5</strong>: upgrading</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder totalStatus(Integer totalStatus) {
this.totalStatus = totalStatus;
return this;
}
/**
* <p>Indicates whether the management node can be upgraded. 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 upgradeAvailable(Boolean upgradeAvailable) {
this.upgradeAvailable = upgradeAvailable;
return this;
}
public HoneypotNode build() {
return new HoneypotNode(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotPresetRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotPresetRequest} extends {@link RequestModel}
*
* <p>GetHoneypotPresetRequest</p>
*/
public class GetHoneypotPresetRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HoneypotPresetId")
@com.aliyun.core.annotation.Validation(required = true)
private String honeypotPresetId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private GetHoneypotPresetRequest(Builder builder) {
super(builder);
this.honeypotPresetId = builder.honeypotPresetId;
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotPresetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return honeypotPresetId
*/
public String getHoneypotPresetId() {
return this.honeypotPresetId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<GetHoneypotPresetRequest, Builder> {
private String honeypotPresetId;
private String lang;
private Builder() {
super();
}
private Builder(GetHoneypotPresetRequest request) {
super(request);
this.honeypotPresetId = request.honeypotPresetId;
this.lang = request.lang;
}
/**
* <p>The ID of the honeypot template.</p>
* <blockquote>
* <p>You can call the <a href="~~ListHoneypotPreset~~">ListHoneypotPreset</a> operation to query the IDs of honeypot templates.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>207ca117-44b9-495d-84e7-50289b4cxxxx</p>
*/
public Builder honeypotPresetId(String honeypotPresetId) {
this.putQueryParameter("HoneypotPresetId", honeypotPresetId);
this.honeypotPresetId = honeypotPresetId;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public GetHoneypotPresetRequest build() {
return new GetHoneypotPresetRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotPresetResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotPresetResponse} extends {@link TeaModel}
*
* <p>GetHoneypotPresetResponse</p>
*/
public class GetHoneypotPresetResponse 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 GetHoneypotPresetResponseBody body;
private GetHoneypotPresetResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetHoneypotPresetResponse 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 GetHoneypotPresetResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetHoneypotPresetResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetHoneypotPresetResponseBody body);
@Override
GetHoneypotPresetResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetHoneypotPresetResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetHoneypotPresetResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetHoneypotPresetResponse 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(GetHoneypotPresetResponseBody body) {
this.body = body;
return this;
}
@Override
public GetHoneypotPresetResponse build() {
return new GetHoneypotPresetResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotPresetResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotPresetResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotPresetResponseBody</p>
*/
public class GetHoneypotPresetResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetHoneypotPresetResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotPresetResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetHoneypotPresetResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the honeypot template.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>38AFE393-88E8-5642-B3E2-D57C6E76025D</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;
}
public GetHoneypotPresetResponseBody build() {
return new GetHoneypotPresetResponseBody(this);
}
}
/**
*
* {@link GetHoneypotPresetResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotPresetResponseBody</p>
*/
public static class FileInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FileId")
private String fileId;
@com.aliyun.core.annotation.NameInMap("FileName")
private String fileName;
@com.aliyun.core.annotation.NameInMap("OssUrl")
private String ossUrl;
private FileInfoList(Builder builder) {
this.fileId = builder.fileId;
this.fileName = builder.fileName;
this.ossUrl = builder.ossUrl;
}
public static Builder builder() {
return new Builder();
}
public static FileInfoList create() {
return builder().build();
}
/**
* @return fileId
*/
public String getFileId() {
return this.fileId;
}
/**
* @return fileName
*/
public String getFileName() {
return this.fileName;
}
/**
* @return ossUrl
*/
public String getOssUrl() {
return this.ossUrl;
}
public static final class Builder {
private String fileId;
private String fileName;
private String ossUrl;
private Builder() {
}
private Builder(FileInfoList model) {
this.fileId = model.fileId;
this.fileName = model.fileName;
this.ossUrl = model.ossUrl;
}
/**
* <p>The ID of the uploaded file.</p>
*
* <strong>example:</strong>
* <p>HONEYPOT_FILE/1765_167040128****</p>
*/
public Builder fileId(String fileId) {
this.fileId = fileId;
return this;
}
/**
* <p>The name of the uploaded file.</p>
*
* <strong>example:</strong>
* <p>HONEYPOT_FILE****</p>
*/
public Builder fileName(String fileName) {
this.fileName = fileName;
return this;
}
/**
* <p>The download URL.</p>
*
* <strong>example:</strong>
* <p><a href="http://aegis">http://aegis</a>****</p>
*/
public Builder ossUrl(String ossUrl) {
this.ossUrl = ossUrl;
return this;
}
public FileInfoList build() {
return new FileInfoList(this);
}
}
}
/**
*
* {@link GetHoneypotPresetResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotPresetResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ControlNodeName")
private String controlNodeName;
@com.aliyun.core.annotation.NameInMap("FileInfoList")
private java.util.List<FileInfoList> fileInfoList;
@com.aliyun.core.annotation.NameInMap("HoneypotImageDisplayName")
private String honeypotImageDisplayName;
@com.aliyun.core.annotation.NameInMap("HoneypotImageName")
private String honeypotImageName;
@com.aliyun.core.annotation.NameInMap("HoneypotPresetId")
private String honeypotPresetId;
@com.aliyun.core.annotation.NameInMap("Meta")
private String meta;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("PresetName")
private String presetName;
@com.aliyun.core.annotation.NameInMap("PresetType")
private String presetType;
private Data(Builder builder) {
this.controlNodeName = builder.controlNodeName;
this.fileInfoList = builder.fileInfoList;
this.honeypotImageDisplayName = builder.honeypotImageDisplayName;
this.honeypotImageName = builder.honeypotImageName;
this.honeypotPresetId = builder.honeypotPresetId;
this.meta = builder.meta;
this.nodeId = builder.nodeId;
this.presetName = builder.presetName;
this.presetType = builder.presetType;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return controlNodeName
*/
public String getControlNodeName() {
return this.controlNodeName;
}
/**
* @return fileInfoList
*/
public java.util.List<FileInfoList> getFileInfoList() {
return this.fileInfoList;
}
/**
* @return honeypotImageDisplayName
*/
public String getHoneypotImageDisplayName() {
return this.honeypotImageDisplayName;
}
/**
* @return honeypotImageName
*/
public String getHoneypotImageName() {
return this.honeypotImageName;
}
/**
* @return honeypotPresetId
*/
public String getHoneypotPresetId() {
return this.honeypotPresetId;
}
/**
* @return meta
*/
public String getMeta() {
return this.meta;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return presetName
*/
public String getPresetName() {
return this.presetName;
}
/**
* @return presetType
*/
public String getPresetType() {
return this.presetType;
}
public static final class Builder {
private String controlNodeName;
private java.util.List<FileInfoList> fileInfoList;
private String honeypotImageDisplayName;
private String honeypotImageName;
private String honeypotPresetId;
private String meta;
private String nodeId;
private String presetName;
private String presetType;
private Builder() {
}
private Builder(Data model) {
this.controlNodeName = model.controlNodeName;
this.fileInfoList = model.fileInfoList;
this.honeypotImageDisplayName = model.honeypotImageDisplayName;
this.honeypotImageName = model.honeypotImageName;
this.honeypotPresetId = model.honeypotPresetId;
this.meta = model.meta;
this.nodeId = model.nodeId;
this.presetName = model.presetName;
this.presetType = model.presetType;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>managerNodename</p>
*/
public Builder controlNodeName(String controlNodeName) {
this.controlNodeName = controlNodeName;
return this;
}
/**
* <p>An array that consists of the configurations of the uploaded file.</p>
*/
public Builder fileInfoList(java.util.List<FileInfoList> fileInfoList) {
this.fileInfoList = fileInfoList;
return this;
}
/**
* <p>The display name of the honeypot image.</p>
*
* <strong>example:</strong>
* <p>RuoYi</p>
*/
public Builder honeypotImageDisplayName(String honeypotImageDisplayName) {
this.honeypotImageDisplayName = honeypotImageDisplayName;
return this;
}
/**
* <p>The name of the honeypot image.</p>
*
* <strong>example:</strong>
* <p>ruoyi</p>
*/
public Builder honeypotImageName(String honeypotImageName) {
this.honeypotImageName = honeypotImageName;
return this;
}
/**
* <p>The ID of the honeypot template.</p>
*
* <strong>example:</strong>
* <p>94fd8805-d178-4361-84d3-de47fb4e****</p>
*/
public Builder honeypotPresetId(String honeypotPresetId) {
this.honeypotPresetId = honeypotPresetId;
return this;
}
/**
* <p>The custom configuration of the honeypot template.</p>
*
* <strong>example:</strong>
* <p>{"trojan_git":"zip","burp":"open","portrait_option":"true"}</p>
*/
public Builder meta(String meta) {
this.meta = meta;
return this;
}
/**
* <p>The ID of the management node.</p>
*
* <strong>example:</strong>
* <p>a882e590-b87b-45a6-87b9-d0a3e5a0****</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The custom name of the honeypot template.</p>
*
* <strong>example:</strong>
* <p>ssh</p>
*/
public Builder presetName(String presetName) {
this.presetName = presetName;
return this;
}
/**
* <p>The type of the honeypot template. Valid values:</p>
* <ul>
* <li><strong>TEMP</strong>: automatically generated template</li>
* <li><strong>CUSTOM</strong>: custom template</li>
* <li><strong>DEFAULT</strong>: default template</li>
* </ul>
*
* <strong>example:</strong>
* <p>CUSTOM</p>
*/
public Builder presetType(String presetType) {
this.presetType = presetType;
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/GetHoneypotProbeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotProbeRequest} extends {@link RequestModel}
*
* <p>GetHoneypotProbeRequest</p>
*/
public class GetHoneypotProbeRequest 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("ProbeId")
@com.aliyun.core.annotation.Validation(required = true)
private String probeId;
private GetHoneypotProbeRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.probeId = builder.probeId;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotProbeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return probeId
*/
public String getProbeId() {
return this.probeId;
}
public static final class Builder extends Request.Builder<GetHoneypotProbeRequest, Builder> {
private String lang;
private String probeId;
private Builder() {
super();
}
private Builder(GetHoneypotProbeRequest request) {
super(request);
this.lang = request.lang;
this.probeId = request.probeId;
}
/**
* <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 probe ID.</p>
* <blockquote>
* <p>You can call the <a href="~~ListHoneypotProbe~~">ListHoneypotProbe</a> operation to query the IDs of probes.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>d6c1ebc9-a90d-4c9e-9490-328814d1ca00</p>
*/
public Builder probeId(String probeId) {
this.putQueryParameter("ProbeId", probeId);
this.probeId = probeId;
return this;
}
@Override
public GetHoneypotProbeRequest build() {
return new GetHoneypotProbeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotProbeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotProbeResponse} extends {@link TeaModel}
*
* <p>GetHoneypotProbeResponse</p>
*/
public class GetHoneypotProbeResponse 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 GetHoneypotProbeResponseBody body;
private GetHoneypotProbeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetHoneypotProbeResponse 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 GetHoneypotProbeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetHoneypotProbeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetHoneypotProbeResponseBody body);
@Override
GetHoneypotProbeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetHoneypotProbeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetHoneypotProbeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetHoneypotProbeResponse 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(GetHoneypotProbeResponseBody body) {
this.body = body;
return this;
}
@Override
public GetHoneypotProbeResponse build() {
return new GetHoneypotProbeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotProbeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotProbeResponseBody</p>
*/
public class GetHoneypotProbeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetHoneypotProbeResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotProbeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetHoneypotProbeResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the probe.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>6550E0E6-FD6C-5F39-AB5E-35B30DCA97B5</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;
}
public GetHoneypotProbeResponseBody build() {
return new GetHoneypotProbeResponseBody(this);
}
}
/**
*
* {@link GetHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotProbeResponseBody</p>
*/
public static class ControlNode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EcsInstanceId")
private String ecsInstanceId;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("NodeName")
private String nodeName;
private ControlNode(Builder builder) {
this.ecsInstanceId = builder.ecsInstanceId;
this.nodeId = builder.nodeId;
this.nodeName = builder.nodeName;
}
public static Builder builder() {
return new Builder();
}
public static ControlNode create() {
return builder().build();
}
/**
* @return ecsInstanceId
*/
public String getEcsInstanceId() {
return this.ecsInstanceId;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeName
*/
public String getNodeName() {
return this.nodeName;
}
public static final class Builder {
private String ecsInstanceId;
private String nodeId;
private String nodeName;
private Builder() {
}
private Builder(ControlNode model) {
this.ecsInstanceId = model.ecsInstanceId;
this.nodeId = model.nodeId;
this.nodeName = model.nodeName;
}
/**
* <p>The instance ID of the management node.</p>
*
* <strong>example:</strong>
* <p>i-bp19ijepxytwtzrk****</p>
*/
public Builder ecsInstanceId(String ecsInstanceId) {
this.ecsInstanceId = ecsInstanceId;
return this;
}
/**
* <p>The ID of the management node.</p>
*
* <strong>example:</strong>
* <p>37a15ff1-3475-4897-aa6c-f7fd9122****</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>online-honeypot</p>
*/
public Builder nodeName(String nodeName) {
this.nodeName = nodeName;
return this;
}
public ControlNode build() {
return new ControlNode(this);
}
}
}
/**
*
* {@link GetHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotProbeResponseBody</p>
*/
public static class HoneyPotProbeScanPort extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Ports")
private String ports;
@com.aliyun.core.annotation.NameInMap("ProbeId")
private String probeId;
@com.aliyun.core.annotation.NameInMap("ServiceIpList")
private java.util.List<String> serviceIpList;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private HoneyPotProbeScanPort(Builder builder) {
this.id = builder.id;
this.ports = builder.ports;
this.probeId = builder.probeId;
this.serviceIpList = builder.serviceIpList;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static HoneyPotProbeScanPort create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return ports
*/
public String getPorts() {
return this.ports;
}
/**
* @return probeId
*/
public String getProbeId() {
return this.probeId;
}
/**
* @return serviceIpList
*/
public java.util.List<String> getServiceIpList() {
return this.serviceIpList;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder {
private Long id;
private String ports;
private String probeId;
private java.util.List<String> serviceIpList;
private Integer status;
private Builder() {
}
private Builder(HoneyPotProbeScanPort model) {
this.id = model.id;
this.ports = model.ports;
this.probeId = model.probeId;
this.serviceIpList = model.serviceIpList;
this.status = model.status;
}
/**
* <p>The unique ID of the service that is monitored.</p>
*
* <strong>example:</strong>
* <p>15389</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The ports that are monitored.</p>
*
* <strong>example:</strong>
* <p>{
* "tcp": "1-65535",
* "udp": "1-65535"
* }</p>
*/
public Builder ports(String ports) {
this.ports = ports;
return this;
}
/**
* <p>The ID of the probe.</p>
*
* <strong>example:</strong>
* <p>a46f5162-c70d-4e26-8ddf-7435feca****</p>
*/
public Builder probeId(String probeId) {
this.probeId = probeId;
return this;
}
/**
* <p>The IP addresses that are monitored.</p>
*/
public Builder serviceIpList(java.util.List<String> serviceIpList) {
this.serviceIpList = serviceIpList;
return this;
}
/**
* <p>The monitoring status. Valid values:</p>
* <ul>
* <li><strong>1</strong>: abnormal</li>
* <li><strong>3</strong>: normal</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
public HoneyPotProbeScanPort build() {
return new HoneyPotProbeScanPort(this);
}
}
}
/**
*
* {@link GetHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotProbeResponseBody</p>
*/
public static class BindPortList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BindPort")
private Boolean bindPort;
@com.aliyun.core.annotation.NameInMap("EndPort")
private Integer endPort;
@com.aliyun.core.annotation.NameInMap("Err")
private String err;
@com.aliyun.core.annotation.NameInMap("Fixed")
private Boolean fixed;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Msg")
private String msg;
@com.aliyun.core.annotation.NameInMap("Proto")
private String proto;
@com.aliyun.core.annotation.NameInMap("StartPort")
private Integer startPort;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("TargetPort")
private Integer targetPort;
private BindPortList(Builder builder) {
this.bindPort = builder.bindPort;
this.endPort = builder.endPort;
this.err = builder.err;
this.fixed = builder.fixed;
this.id = builder.id;
this.msg = builder.msg;
this.proto = builder.proto;
this.startPort = builder.startPort;
this.status = builder.status;
this.targetPort = builder.targetPort;
}
public static Builder builder() {
return new Builder();
}
public static BindPortList create() {
return builder().build();
}
/**
* @return bindPort
*/
public Boolean getBindPort() {
return this.bindPort;
}
/**
* @return endPort
*/
public Integer getEndPort() {
return this.endPort;
}
/**
* @return err
*/
public String getErr() {
return this.err;
}
/**
* @return fixed
*/
public Boolean getFixed() {
return this.fixed;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return msg
*/
public String getMsg() {
return this.msg;
}
/**
* @return proto
*/
public String getProto() {
return this.proto;
}
/**
* @return startPort
*/
public Integer getStartPort() {
return this.startPort;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return targetPort
*/
public Integer getTargetPort() {
return this.targetPort;
}
public static final class Builder {
private Boolean bindPort;
private Integer endPort;
private String err;
private Boolean fixed;
private Long id;
private String msg;
private String proto;
private Integer startPort;
private Integer status;
private Integer targetPort;
private Builder() {
}
private Builder(BindPortList model) {
this.bindPort = model.bindPort;
this.endPort = model.endPort;
this.err = model.err;
this.fixed = model.fixed;
this.id = model.id;
this.msg = model.msg;
this.proto = model.proto;
this.startPort = model.startPort;
this.status = model.status;
this.targetPort = model.targetPort;
}
/**
* <p>Indicates whether the port is bound.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder bindPort(Boolean bindPort) {
this.bindPort = bindPort;
return this;
}
/**
* <p>The end port on which the probe monitors.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder endPort(Integer endPort) {
this.endPort = endPort;
return this;
}
/**
* <p>The error that is returned if an error occurred in the port of the honeypot that is bound to the probe.</p>
*
* <strong>example:</strong>
* <p>portmap failed</p>
*/
public Builder err(String err) {
this.err = err;
return this;
}
/**
* <p>Indicates whether the port is a fixed port.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder fixed(Boolean fixed) {
this.fixed = fixed;
return this;
}
/**
* <p>The unique ID of the port binding record.</p>
*
* <strong>example:</strong>
* <p>2512</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The error message that is returned if an error occurred in the port of the honeypot that is bound to the probe.</p>
*
* <strong>example:</strong>
* <p>listen 22 tcp4 failed</p>
*/
public Builder msg(String msg) {
this.msg = msg;
return this;
}
/**
* <p>The type of the protocol.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder proto(String proto) {
this.proto = proto;
return this;
}
/**
* <p>The start port on which the probe monitors.</p>
*
* <strong>example:</strong>
* <p>22</p>
*/
public Builder startPort(Integer startPort) {
this.startPort = startPort;
return this;
}
/**
* <p>The status of the port of the honeypot that is bound to the probe. Valid values:</p>
* <ul>
* <li><strong>1</strong>: abnormal</li>
* <li><strong>3</strong>: normal</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The destination port.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder targetPort(Integer targetPort) {
this.targetPort = targetPort;
return this;
}
public BindPortList build() {
return new BindPortList(this);
}
}
}
/**
*
* {@link GetHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotProbeResponseBody</p>
*/
public static class HoneypotProbeBindList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BindId")
private String bindId;
@com.aliyun.core.annotation.NameInMap("BindPortList")
private java.util.List<BindPortList> bindPortList;
@com.aliyun.core.annotation.NameInMap("HoneypotId")
private String honeypotId;
@com.aliyun.core.annotation.NameInMap("ServiceIpList")
private java.util.List<String> serviceIpList;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private HoneypotProbeBindList(Builder builder) {
this.bindId = builder.bindId;
this.bindPortList = builder.bindPortList;
this.honeypotId = builder.honeypotId;
this.serviceIpList = builder.serviceIpList;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static HoneypotProbeBindList create() {
return builder().build();
}
/**
* @return bindId
*/
public String getBindId() {
return this.bindId;
}
/**
* @return bindPortList
*/
public java.util.List<BindPortList> getBindPortList() {
return this.bindPortList;
}
/**
* @return honeypotId
*/
public String getHoneypotId() {
return this.honeypotId;
}
/**
* @return serviceIpList
*/
public java.util.List<String> getServiceIpList() {
return this.serviceIpList;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder {
private String bindId;
private java.util.List<BindPortList> bindPortList;
private String honeypotId;
private java.util.List<String> serviceIpList;
private Integer status;
private Builder() {
}
private Builder(HoneypotProbeBindList model) {
this.bindId = model.bindId;
this.bindPortList = model.bindPortList;
this.honeypotId = model.honeypotId;
this.serviceIpList = model.serviceIpList;
this.status = model.status;
}
/**
* <p>The unique ID of the honeypot that is bound to the probe.</p>
*
* <strong>example:</strong>
* <p>45378f64-d7b4-4a53-9c48-4303eb4b****</p>
*/
public Builder bindId(String bindId) {
this.bindId = bindId;
return this;
}
/**
* <p>The ports that are bound to the probe.</p>
*/
public Builder bindPortList(java.util.List<BindPortList> bindPortList) {
this.bindPortList = bindPortList;
return this;
}
/**
* <p>The honeypot ID.</p>
*
* <strong>example:</strong>
* <p>913347774a3b3c378c6a50f66de23dfa097765214ec3f0526b01c67bf59c****</p>
*/
public Builder honeypotId(String honeypotId) {
this.honeypotId = honeypotId;
return this;
}
/**
* <p>The IP addresses that are monitored.</p>
*/
public Builder serviceIpList(java.util.List<String> serviceIpList) {
this.serviceIpList = serviceIpList;
return this;
}
/**
* <p>The status of the honeypot that is bound to the probe. Valid values:</p>
* <ul>
* <li><strong>1</strong>: abnormal</li>
* <li><strong>3</strong>: normal</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
public HoneypotProbeBindList build() {
return new HoneypotProbeBindList(this);
}
}
}
/**
*
* {@link GetHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotProbeResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Arp")
private Boolean arp;
@com.aliyun.core.annotation.NameInMap("CanListenIpList")
private java.util.List<String> canListenIpList;
@com.aliyun.core.annotation.NameInMap("CidrList")
private java.util.List<String> cidrList;
@com.aliyun.core.annotation.NameInMap("ControlNode")
private ControlNode controlNode;
@com.aliyun.core.annotation.NameInMap("CpuLoad")
private Double cpuLoad;
@com.aliyun.core.annotation.NameInMap("DeployTime")
private Long deployTime;
@com.aliyun.core.annotation.NameInMap("DisplayName")
private String displayName;
@com.aliyun.core.annotation.NameInMap("HoneyPotProbeScanPort")
private HoneyPotProbeScanPort honeyPotProbeScanPort;
@com.aliyun.core.annotation.NameInMap("HoneypotProbeBindList")
private java.util.List<HoneypotProbeBindList> honeypotProbeBindList;
@com.aliyun.core.annotation.NameInMap("HostIp")
private String hostIp;
@com.aliyun.core.annotation.NameInMap("ListenIpList")
private java.util.List<String> listenIpList;
@com.aliyun.core.annotation.NameInMap("MemoryLoad")
private Double memoryLoad;
@com.aliyun.core.annotation.NameInMap("OsType")
private String osType;
@com.aliyun.core.annotation.NameInMap("Ping")
private Boolean ping;
@com.aliyun.core.annotation.NameInMap("ProbeId")
private String probeId;
@com.aliyun.core.annotation.NameInMap("ProbeType")
private String probeType;
@com.aliyun.core.annotation.NameInMap("ProbeVersion")
private String probeVersion;
@com.aliyun.core.annotation.NameInMap("ProxyIp")
private String proxyIp;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private Data(Builder builder) {
this.arp = builder.arp;
this.canListenIpList = builder.canListenIpList;
this.cidrList = builder.cidrList;
this.controlNode = builder.controlNode;
this.cpuLoad = builder.cpuLoad;
this.deployTime = builder.deployTime;
this.displayName = builder.displayName;
this.honeyPotProbeScanPort = builder.honeyPotProbeScanPort;
this.honeypotProbeBindList = builder.honeypotProbeBindList;
this.hostIp = builder.hostIp;
this.listenIpList = builder.listenIpList;
this.memoryLoad = builder.memoryLoad;
this.osType = builder.osType;
this.ping = builder.ping;
this.probeId = builder.probeId;
this.probeType = builder.probeType;
this.probeVersion = builder.probeVersion;
this.proxyIp = builder.proxyIp;
this.status = builder.status;
this.uuid = builder.uuid;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return arp
*/
public Boolean getArp() {
return this.arp;
}
/**
* @return canListenIpList
*/
public java.util.List<String> getCanListenIpList() {
return this.canListenIpList;
}
/**
* @return cidrList
*/
public java.util.List<String> getCidrList() {
return this.cidrList;
}
/**
* @return controlNode
*/
public ControlNode getControlNode() {
return this.controlNode;
}
/**
* @return cpuLoad
*/
public Double getCpuLoad() {
return this.cpuLoad;
}
/**
* @return deployTime
*/
public Long getDeployTime() {
return this.deployTime;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return honeyPotProbeScanPort
*/
public HoneyPotProbeScanPort getHoneyPotProbeScanPort() {
return this.honeyPotProbeScanPort;
}
/**
* @return honeypotProbeBindList
*/
public java.util.List<HoneypotProbeBindList> getHoneypotProbeBindList() {
return this.honeypotProbeBindList;
}
/**
* @return hostIp
*/
public String getHostIp() {
return this.hostIp;
}
/**
* @return listenIpList
*/
public java.util.List<String> getListenIpList() {
return this.listenIpList;
}
/**
* @return memoryLoad
*/
public Double getMemoryLoad() {
return this.memoryLoad;
}
/**
* @return osType
*/
public String getOsType() {
return this.osType;
}
/**
* @return ping
*/
public Boolean getPing() {
return this.ping;
}
/**
* @return probeId
*/
public String getProbeId() {
return this.probeId;
}
/**
* @return probeType
*/
public String getProbeType() {
return this.probeType;
}
/**
* @return probeVersion
*/
public String getProbeVersion() {
return this.probeVersion;
}
/**
* @return proxyIp
*/
public String getProxyIp() {
return this.proxyIp;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private Boolean arp;
private java.util.List<String> canListenIpList;
private java.util.List<String> cidrList;
private ControlNode controlNode;
private Double cpuLoad;
private Long deployTime;
private String displayName;
private HoneyPotProbeScanPort honeyPotProbeScanPort;
private java.util.List<HoneypotProbeBindList> honeypotProbeBindList;
private String hostIp;
private java.util.List<String> listenIpList;
private Double memoryLoad;
private String osType;
private Boolean ping;
private String probeId;
private String probeType;
private String probeVersion;
private String proxyIp;
private Integer status;
private String uuid;
private String vpcId;
private Builder() {
}
private Builder(Data model) {
this.arp = model.arp;
this.canListenIpList = model.canListenIpList;
this.cidrList = model.cidrList;
this.controlNode = model.controlNode;
this.cpuLoad = model.cpuLoad;
this.deployTime = model.deployTime;
this.displayName = model.displayName;
this.honeyPotProbeScanPort = model.honeyPotProbeScanPort;
this.honeypotProbeBindList = model.honeypotProbeBindList;
this.hostIp = model.hostIp;
this.listenIpList = model.listenIpList;
this.memoryLoad = model.memoryLoad;
this.osType = model.osType;
this.ping = model.ping;
this.probeId = model.probeId;
this.probeType = model.probeType;
this.probeVersion = model.probeVersion;
this.proxyIp = model.proxyIp;
this.status = model.status;
this.uuid = model.uuid;
this.vpcId = model.vpcId;
}
/**
* <p>Indicates whether address resolution protocol (ARP) is enabled for the check type.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder arp(Boolean arp) {
this.arp = arp;
return this;
}
/**
* <p>An array consisting of the IP addresses that can be monitored.</p>
*/
public Builder canListenIpList(java.util.List<String> canListenIpList) {
this.canListenIpList = canListenIpList;
return this;
}
/**
* <p>The CIDR blocks of the probe deployed in a virtual private cloud (VPC).</p>
*/
public Builder cidrList(java.util.List<String> cidrList) {
this.cidrList = cidrList;
return this;
}
/**
* <p>The information about the management node.</p>
*/
public Builder controlNode(ControlNode controlNode) {
this.controlNode = controlNode;
return this;
}
/**
* <p>The CPU utilization.</p>
*
* <strong>example:</strong>
* <p>0.51</p>
*/
public Builder cpuLoad(Double cpuLoad) {
this.cpuLoad = cpuLoad;
return this;
}
/**
* <p>The time when the probe was deployed.</p>
*
* <strong>example:</strong>
* <p>1669363825000</p>
*/
public Builder deployTime(Long deployTime) {
this.deployTime = deployTime;
return this;
}
/**
* <p>The name of the probe.</p>
*
* <strong>example:</strong>
* <p>test-probe</p>
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* <p>The ports that the honeypot monitors.</p>
*/
public Builder honeyPotProbeScanPort(HoneyPotProbeScanPort honeyPotProbeScanPort) {
this.honeyPotProbeScanPort = honeyPotProbeScanPort;
return this;
}
/**
* <p>The honeypots that are bound to the probe.</p>
*/
public Builder honeypotProbeBindList(java.util.List<HoneypotProbeBindList> honeypotProbeBindList) {
this.honeypotProbeBindList = honeypotProbeBindList;
return this;
}
/**
* <p>The IP address of the server on which the probe is deployed.</p>
*
* <strong>example:</strong>
* <p>33.53.XX.XX</p>
*/
public Builder hostIp(String hostIp) {
this.hostIp = hostIp;
return this;
}
/**
* <p>An array consisting of the IP addresses that can be monitored.</p>
*/
public Builder listenIpList(java.util.List<String> listenIpList) {
this.listenIpList = listenIpList;
return this;
}
/**
* <p>The memory usage.</p>
*
* <strong>example:</strong>
* <p>1.94</p>
*/
public Builder memoryLoad(Double memoryLoad) {
this.memoryLoad = memoryLoad;
return this;
}
/**
* <p>The operating system of the server on which the probe is deployed. Valid values:</p>
* <ul>
* <li>windows</li>
* <li>linux</li>
* </ul>
*
* <strong>example:</strong>
* <p>windows</p>
*/
public Builder osType(String osType) {
this.osType = osType;
return this;
}
/**
* <p>Indicates whether ping is enabled for the check type.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder ping(Boolean ping) {
this.ping = ping;
return this;
}
/**
* <p>The ID of the probe.</p>
*
* <strong>example:</strong>
* <p>40f6501d-45ec-4bf0-b813-0072ceb4****</p>
*/
public Builder probeId(String probeId) {
this.probeId = probeId;
return this;
}
/**
* <p>The type of the probe. Valid values:</p>
* <ul>
* <li><strong>host_probe</strong>: host probe</li>
* <li><strong>vpc_black_hole_probe</strong>: virtual private cloud (VPC) probe</li>
* </ul>
*
* <strong>example:</strong>
* <p>host_probe</p>
*/
public Builder probeType(String probeType) {
this.probeType = probeType;
return this;
}
/**
* <p>The version of the probe.</p>
*
* <strong>example:</strong>
* <p>18060096</p>
*/
public Builder probeVersion(String probeVersion) {
this.probeVersion = probeVersion;
return this;
}
/**
* <p>The IP address of the proxy server.</p>
*
* <strong>example:</strong>
* <p>47.108.XX.XX</p>
*/
public Builder proxyIp(String proxyIp) {
this.proxyIp = proxyIp;
return this;
}
/**
* <p>The status of the probe. Valid values:</p>
* <ul>
* <li><strong>installed</strong>: installed</li>
* <li><strong>install_failed</strong>: installation failed</li>
* <li><strong>online</strong>: online</li>
* <li><strong>offline</strong>: offline</li>
* <li><strong>unnormal</strong>: abnormal</li>
* <li><strong>unprobe</strong>: unauthorized</li>
* <li><strong>uninstalling</strong>: being uninstalled</li>
* <li><strong>uninstalled</strong>: uninstalled</li>
* <li><strong>uninstall_failed</strong>: uninstallation failed</li>
* <li><strong>not_exist</strong>: not installed</li>
* </ul>
*
* <strong>example:</strong>
* <p>online</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The UUID of the asset on which the host probe is deployed.</p>
*
* <strong>example:</strong>
* <p>6690a46c-0edb-4663-a641-3629d1a9****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The ID of the VPC in which the probe is deployed.</p>
*
* <strong>example:</strong>
* <p>vpc-2vchkxmf2j9yjt3x2****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
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/GetHoneypotStatisticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotStatisticsRequest} extends {@link RequestModel}
*
* <p>GetHoneypotStatisticsRequest</p>
*/
public class GetHoneypotStatisticsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private GetHoneypotStatisticsRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotStatisticsRequest 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<GetHoneypotStatisticsRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(GetHoneypotStatisticsRequest request) {
super(request);
this.lang = request.lang;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese.</li>
* <li><strong>en</strong>: English.</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public GetHoneypotStatisticsRequest build() {
return new GetHoneypotStatisticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotStatisticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotStatisticsResponse} extends {@link TeaModel}
*
* <p>GetHoneypotStatisticsResponse</p>
*/
public class GetHoneypotStatisticsResponse 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 GetHoneypotStatisticsResponseBody body;
private GetHoneypotStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetHoneypotStatisticsResponse 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 GetHoneypotStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetHoneypotStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetHoneypotStatisticsResponseBody body);
@Override
GetHoneypotStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetHoneypotStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetHoneypotStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetHoneypotStatisticsResponse 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(GetHoneypotStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetHoneypotStatisticsResponse build() {
return new GetHoneypotStatisticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetHoneypotStatisticsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetHoneypotStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotStatisticsResponseBody</p>
*/
public class GetHoneypotStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetHoneypotStatisticsResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetHoneypotStatisticsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetHoneypotStatisticsResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code that is returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The honeypot usage statistics.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>EB7181CB-32F3-5189-A935-4E24DD1A****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetHoneypotStatisticsResponseBody build() {
return new GetHoneypotStatisticsResponseBody(this);
}
}
/**
*
* {@link GetHoneypotStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetHoneypotStatisticsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TotalHoneypotCount")
private Integer totalHoneypotCount;
@com.aliyun.core.annotation.NameInMap("TotalNodeStatus")
private Integer totalNodeStatus;
@com.aliyun.core.annotation.NameInMap("TotalProbeCount")
private Integer totalProbeCount;
@com.aliyun.core.annotation.NameInMap("UsedHoneypotCount")
private Integer usedHoneypotCount;
@com.aliyun.core.annotation.NameInMap("UsedHostProbeCount")
private Integer usedHostProbeCount;
@com.aliyun.core.annotation.NameInMap("UsedProbeCount")
private Integer usedProbeCount;
@com.aliyun.core.annotation.NameInMap("UsedVpcProbeCount")
private Integer usedVpcProbeCount;
private Data(Builder builder) {
this.totalHoneypotCount = builder.totalHoneypotCount;
this.totalNodeStatus = builder.totalNodeStatus;
this.totalProbeCount = builder.totalProbeCount;
this.usedHoneypotCount = builder.usedHoneypotCount;
this.usedHostProbeCount = builder.usedHostProbeCount;
this.usedProbeCount = builder.usedProbeCount;
this.usedVpcProbeCount = builder.usedVpcProbeCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return totalHoneypotCount
*/
public Integer getTotalHoneypotCount() {
return this.totalHoneypotCount;
}
/**
* @return totalNodeStatus
*/
public Integer getTotalNodeStatus() {
return this.totalNodeStatus;
}
/**
* @return totalProbeCount
*/
public Integer getTotalProbeCount() {
return this.totalProbeCount;
}
/**
* @return usedHoneypotCount
*/
public Integer getUsedHoneypotCount() {
return this.usedHoneypotCount;
}
/**
* @return usedHostProbeCount
*/
public Integer getUsedHostProbeCount() {
return this.usedHostProbeCount;
}
/**
* @return usedProbeCount
*/
public Integer getUsedProbeCount() {
return this.usedProbeCount;
}
/**
* @return usedVpcProbeCount
*/
public Integer getUsedVpcProbeCount() {
return this.usedVpcProbeCount;
}
public static final class Builder {
private Integer totalHoneypotCount;
private Integer totalNodeStatus;
private Integer totalProbeCount;
private Integer usedHoneypotCount;
private Integer usedHostProbeCount;
private Integer usedProbeCount;
private Integer usedVpcProbeCount;
private Builder() {
}
private Builder(Data model) {
this.totalHoneypotCount = model.totalHoneypotCount;
this.totalNodeStatus = model.totalNodeStatus;
this.totalProbeCount = model.totalProbeCount;
this.usedHoneypotCount = model.usedHoneypotCount;
this.usedHostProbeCount = model.usedHostProbeCount;
this.usedProbeCount = model.usedProbeCount;
this.usedVpcProbeCount = model.usedVpcProbeCount;
}
/**
* <p>The total number of honeypots.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder totalHoneypotCount(Integer totalHoneypotCount) {
this.totalHoneypotCount = totalHoneypotCount;
return this;
}
/**
* <p>The health status of the management node. Valid values:</p>
* <ul>
* <li>1: normal</li>
* <li>2: abnormal</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalNodeStatus(Integer totalNodeStatus) {
this.totalNodeStatus = totalNodeStatus;
return this;
}
/**
* <p>The total number of authorized probes.</p>
*
* <strong>example:</strong>
* <p>40</p>
*/
public Builder totalProbeCount(Integer totalProbeCount) {
this.totalProbeCount = totalProbeCount;
return this;
}
/**
* <p>The number of deployed honeypots.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder usedHoneypotCount(Integer usedHoneypotCount) {
this.usedHoneypotCount = usedHoneypotCount;
return this;
}
/**
* <p>The number of deployed host probes.</p>
*
* <strong>example:</strong>
* <p>9</p>
*/
public Builder usedHostProbeCount(Integer usedHostProbeCount) {
this.usedHostProbeCount = usedHostProbeCount;
return this;
}
/**
* <p>The number of deployed probes.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder usedProbeCount(Integer usedProbeCount) {
this.usedProbeCount = usedProbeCount;
return this;
}
/**
* <p>The number of deployed VPC probes.</p>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder usedVpcProbeCount(Integer usedVpcProbeCount) {
this.usedVpcProbeCount = usedVpcProbeCount;
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/GetImageEventOperationRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetImageEventOperationRequest} extends {@link RequestModel}
*
* <p>GetImageEventOperationRequest</p>
*/
public class GetImageEventOperationRequest extends Request {
@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;
private GetImageEventOperationRequest(Builder builder) {
super(builder);
this.id = builder.id;
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static GetImageEventOperationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<GetImageEventOperationRequest, Builder> {
private Long id;
private String lang;
private Builder() {
super();
}
private Builder(GetImageEventOperationRequest request) {
super(request);
this.id = request.id;
this.lang = request.lang;
}
/**
* <p>The primary key of the alert handling rule.</p>
*
* <strong>example:</strong>
* <p>814163</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. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public GetImageEventOperationRequest build() {
return new GetImageEventOperationRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetImageEventOperationResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetImageEventOperationResponse} extends {@link TeaModel}
*
* <p>GetImageEventOperationResponse</p>
*/
public class GetImageEventOperationResponse 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 GetImageEventOperationResponseBody body;
private GetImageEventOperationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetImageEventOperationResponse 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 GetImageEventOperationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetImageEventOperationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetImageEventOperationResponseBody body);
@Override
GetImageEventOperationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetImageEventOperationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetImageEventOperationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetImageEventOperationResponse 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(GetImageEventOperationResponseBody body) {
this.body = body;
return this;
}
@Override
public GetImageEventOperationResponse build() {
return new GetImageEventOperationResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetImageEventOperationResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetImageEventOperationResponseBody} extends {@link TeaModel}
*
* <p>GetImageEventOperationResponseBody</p>
*/
public class GetImageEventOperationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetImageEventOperationResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetImageEventOperationResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetImageEventOperationResponseBody model) {
this.code = model.code;
this.data = model.data;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The HTTP status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>5861EE3E-F0B3-48B8-A5DC-A5080BFB****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetImageEventOperationResponseBody build() {
return new GetImageEventOperationResponseBody(this);
}
}
/**
*
* {@link GetImageEventOperationResponseBody} extends {@link TeaModel}
*
* <p>GetImageEventOperationResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Conditions")
private String conditions;
@com.aliyun.core.annotation.NameInMap("EventKey")
private String eventKey;
@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 Long id;
@com.aliyun.core.annotation.NameInMap("Note")
private String note;
@com.aliyun.core.annotation.NameInMap("OperationCode")
private String operationCode;
@com.aliyun.core.annotation.NameInMap("Scenarios")
private String scenarios;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
private Data(Builder builder) {
this.conditions = builder.conditions;
this.eventKey = builder.eventKey;
this.eventName = builder.eventName;
this.eventType = builder.eventType;
this.id = builder.id;
this.note = builder.note;
this.operationCode = builder.operationCode;
this.scenarios = builder.scenarios;
this.source = builder.source;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return conditions
*/
public String getConditions() {
return this.conditions;
}
/**
* @return eventKey
*/
public String getEventKey() {
return this.eventKey;
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return eventType
*/
public String getEventType() {
return this.eventType;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return note
*/
public String getNote() {
return this.note;
}
/**
* @return operationCode
*/
public String getOperationCode() {
return this.operationCode;
}
/**
* @return scenarios
*/
public String getScenarios() {
return this.scenarios;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
public static final class Builder {
private String conditions;
private String eventKey;
private String eventName;
private String eventType;
private Long id;
private String note;
private String operationCode;
private String scenarios;
private String source;
private Builder() {
}
private Builder(Data model) {
this.conditions = model.conditions;
this.eventKey = model.eventKey;
this.eventName = model.eventName;
this.eventType = model.eventType;
this.id = model.id;
this.note = model.note;
this.operationCode = model.operationCode;
this.scenarios = model.scenarios;
this.source = model.source;
}
/**
* <p>The rule conditions. The value is in the JSON format. Valid values of keys:</p>
* <ul>
* <li><strong>condition</strong>: the matching condition.</li>
* <li><strong>type</strong>: the matching type.</li>
* <li><strong>value</strong>: the matching value.</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"condition": "MD5", "type": "equals", "value": "0083a31cc0083a31ccf7c10367a6e783e"}]</p>
*/
public Builder conditions(String conditions) {
this.conditions = conditions;
return this;
}
/**
* <p>The keyword of the alert item.</p>
*
* <strong>example:</strong>
* <p>PEM</p>
*/
public Builder eventKey(String eventKey) {
this.eventKey = eventKey;
return this;
}
/**
* <p>The name of the alert item.</p>
*
* <strong>example:</strong>
* <p>PEM</p>
*/
public Builder eventName(String eventName) {
this.eventName = eventName;
return this;
}
/**
* <p>The alert type. Valid values:</p>
* <ul>
* <li><strong>sensitiveFile</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>sensitiveFile</p>
*/
public Builder eventType(String eventType) {
this.eventType = eventType;
return this;
}
/**
* <p>The primary key of the alert handling rule.</p>
*
* <strong>example:</strong>
* <p>443496</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The remarks.</p>
*
* <strong>example:</strong>
* <p>No warning.</p>
*/
public Builder note(String note) {
this.note = note;
return this;
}
/**
* <p>The operation code. Valid values:</p>
* <ul>
* <li><strong>whitelist</strong>: added to the whitelist.</li>
* </ul>
*
* <strong>example:</strong>
* <p>whitelist</p>
*/
public Builder operationCode(String operationCode) {
this.operationCode = operationCode;
return this;
}
/**
* <p>The application scope of the rule. The value is in the JSON format. Valid values of keys:</p>
* <ul>
* <li><strong>type</strong></li>
* <li><strong>value</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>{"type": "repo", "value": "test-aaa/shenzhen-repo-01"}</p>
*/
public Builder scenarios(String scenarios) {
this.scenarios = scenarios;
return this;
}
/**
* <p>The source of the whitelist. Valid values:</p>
* <ul>
* <li><strong>default</strong>: image</li>
* <li><strong>agentless</strong>: agentless detection</li>
* </ul>
*
* <strong>example:</strong>
* <p>agentless</p>
*/
public Builder source(String source) {
this.source = source;
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/GetImageScanNumInPeriodRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetImageScanNumInPeriodRequest} extends {@link RequestModel}
*
* <p>GetImageScanNumInPeriodRequest</p>
*/
public class GetImageScanNumInPeriodRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PastDay")
@com.aliyun.core.annotation.Validation(required = true)
private String pastDay;
private GetImageScanNumInPeriodRequest(Builder builder) {
super(builder);
this.pastDay = builder.pastDay;
}
public static Builder builder() {
return new Builder();
}
public static GetImageScanNumInPeriodRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pastDay
*/
public String getPastDay() {
return this.pastDay;
}
public static final class Builder extends Request.Builder<GetImageScanNumInPeriodRequest, Builder> {
private String pastDay;
private Builder() {
super();
}
private Builder(GetImageScanNumInPeriodRequest request) {
super(request);
this.pastDay = request.pastDay;
}
/**
* <p>The number of days.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder pastDay(String pastDay) {
this.putQueryParameter("PastDay", pastDay);
this.pastDay = pastDay;
return this;
}
@Override
public GetImageScanNumInPeriodRequest build() {
return new GetImageScanNumInPeriodRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetImageScanNumInPeriodResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetImageScanNumInPeriodResponse} extends {@link TeaModel}
*
* <p>GetImageScanNumInPeriodResponse</p>
*/
public class GetImageScanNumInPeriodResponse 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 GetImageScanNumInPeriodResponseBody body;
private GetImageScanNumInPeriodResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetImageScanNumInPeriodResponse 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 GetImageScanNumInPeriodResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetImageScanNumInPeriodResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetImageScanNumInPeriodResponseBody body);
@Override
GetImageScanNumInPeriodResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetImageScanNumInPeriodResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetImageScanNumInPeriodResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetImageScanNumInPeriodResponse 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(GetImageScanNumInPeriodResponseBody body) {
this.body = body;
return this;
}
@Override
public GetImageScanNumInPeriodResponse build() {
return new GetImageScanNumInPeriodResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetImageScanNumInPeriodResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetImageScanNumInPeriodResponseBody} extends {@link TeaModel}
*
* <p>GetImageScanNumInPeriodResponseBody</p>
*/
public class GetImageScanNumInPeriodResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ImageScanData")
private ImageScanData imageScanData;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetImageScanNumInPeriodResponseBody(Builder builder) {
this.imageScanData = builder.imageScanData;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetImageScanNumInPeriodResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return imageScanData
*/
public ImageScanData getImageScanData() {
return this.imageScanData;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private ImageScanData imageScanData;
private String requestId;
private Builder() {
}
private Builder(GetImageScanNumInPeriodResponseBody model) {
this.imageScanData = model.imageScanData;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder imageScanData(ImageScanData imageScanData) {
this.imageScanData = imageScanData;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>7E0618A9-D5EF-4220-9471-C42B5E92****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetImageScanNumInPeriodResponseBody build() {
return new GetImageScanNumInPeriodResponseBody(this);
}
}
/**
*
* {@link GetImageScanNumInPeriodResponseBody} extends {@link TeaModel}
*
* <p>GetImageScanNumInPeriodResponseBody</p>
*/
public static class ImageScanData extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ImageScanCount")
private Integer imageScanCount;
private ImageScanData(Builder builder) {
this.imageScanCount = builder.imageScanCount;
}
public static Builder builder() {
return new Builder();
}
public static ImageScanData create() {
return builder().build();
}
/**
* @return imageScanCount
*/
public Integer getImageScanCount() {
return this.imageScanCount;
}
public static final class Builder {
private Integer imageScanCount;
private Builder() {
}
private Builder(ImageScanData model) {
this.imageScanCount = model.imageScanCount;
}
/**
* <p>The number of image scans.</p>
*
* <strong>example:</strong>
* <p>150</p>
*/
public Builder imageScanCount(Integer imageScanCount) {
this.imageScanCount = imageScanCount;
return this;
}
public ImageScanData build() {
return new ImageScanData(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetInstallCodeForUuidRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetInstallCodeForUuidRequest} extends {@link RequestModel}
*
* <p>GetInstallCodeForUuidRequest</p>
*/
public class GetInstallCodeForUuidRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
@com.aliyun.core.annotation.Validation(required = true)
private String uuid;
private GetInstallCodeForUuidRequest(Builder builder) {
super(builder);
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static GetInstallCodeForUuidRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<GetInstallCodeForUuidRequest, Builder> {
private String uuid;
private Builder() {
super();
}
private Builder(GetInstallCodeForUuidRequest request) {
super(request);
this.uuid = request.uuid;
}
/**
* <p>The UUID of the server for which the client installation code is to be queried.</p>
* <blockquote>
* <p>Call the <a href="~~DescribeCloudCenterInstances~~">DescribeCloudCenterInstances</a> API to obtain this parameter.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eae0b46e-2155-422e-9565-ecc52c69****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public GetInstallCodeForUuidRequest build() {
return new GetInstallCodeForUuidRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetInstallCodeForUuidResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetInstallCodeForUuidResponse} extends {@link TeaModel}
*
* <p>GetInstallCodeForUuidResponse</p>
*/
public class GetInstallCodeForUuidResponse 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 GetInstallCodeForUuidResponseBody body;
private GetInstallCodeForUuidResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetInstallCodeForUuidResponse 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 GetInstallCodeForUuidResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetInstallCodeForUuidResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetInstallCodeForUuidResponseBody body);
@Override
GetInstallCodeForUuidResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetInstallCodeForUuidResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetInstallCodeForUuidResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetInstallCodeForUuidResponse 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(GetInstallCodeForUuidResponseBody body) {
this.body = body;
return this;
}
@Override
public GetInstallCodeForUuidResponse build() {
return new GetInstallCodeForUuidResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetInstallCodeForUuidResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetInstallCodeForUuidResponseBody} extends {@link TeaModel}
*
* <p>GetInstallCodeForUuidResponseBody</p>
*/
public class GetInstallCodeForUuidResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Long httpStatusCode;
@com.aliyun.core.annotation.NameInMap("InstallCode")
private InstallCode installCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private GetInstallCodeForUuidResponseBody(Builder builder) {
this.code = builder.code;
this.httpStatusCode = builder.httpStatusCode;
this.installCode = builder.installCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static GetInstallCodeForUuidResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @return httpStatusCode
*/
public Long getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return installCode
*/
public InstallCode getInstallCode() {
return this.installCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private Integer code;
private Long httpStatusCode;
private InstallCode installCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(GetInstallCodeForUuidResponseBody model) {
this.code = model.code;
this.httpStatusCode = model.httpStatusCode;
this.installCode = model.installCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>API status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* <p>HTTP status code</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Long httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>Client installation code.</p>
*/
public Builder installCode(InstallCode installCode) {
this.installCode = installCode;
return this;
}
/**
* <p>Response message from the request.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the current request, a unique identifier generated by Alibaba Cloud for troubleshooting and issue localization.</p>
*
* <strong>example:</strong>
* <p>7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The status of the returned query result. Values: - <strong>true</strong>: Success - <strong>false</strong>: Failure</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public GetInstallCodeForUuidResponseBody build() {
return new GetInstallCodeForUuidResponseBody(this);
}
}
/**
*
* {@link GetInstallCodeForUuidResponseBody} extends {@link TeaModel}
*
* <p>GetInstallCodeForUuidResponseBody</p>
*/
public static class InstallCode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CaptchaCode")
private String captchaCode;
@com.aliyun.core.annotation.NameInMap("ExpiredDate")
private Long expiredDate;
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
@com.aliyun.core.annotation.NameInMap("GroupName")
private String groupName;
@com.aliyun.core.annotation.NameInMap("Os")
private String os;
@com.aliyun.core.annotation.NameInMap("VendorName")
private String vendorName;
private InstallCode(Builder builder) {
this.captchaCode = builder.captchaCode;
this.expiredDate = builder.expiredDate;
this.groupId = builder.groupId;
this.groupName = builder.groupName;
this.os = builder.os;
this.vendorName = builder.vendorName;
}
public static Builder builder() {
return new Builder();
}
public static InstallCode create() {
return builder().build();
}
/**
* @return captchaCode
*/
public String getCaptchaCode() {
return this.captchaCode;
}
/**
* @return expiredDate
*/
public Long getExpiredDate() {
return this.expiredDate;
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return groupName
*/
public String getGroupName() {
return this.groupName;
}
/**
* @return os
*/
public String getOs() {
return this.os;
}
/**
* @return vendorName
*/
public String getVendorName() {
return this.vendorName;
}
public static final class Builder {
private String captchaCode;
private Long expiredDate;
private Long groupId;
private String groupName;
private String os;
private String vendorName;
private Builder() {
}
private Builder(InstallCode model) {
this.captchaCode = model.captchaCode;
this.expiredDate = model.expiredDate;
this.groupId = model.groupId;
this.groupName = model.groupName;
this.os = model.os;
this.vendorName = model.vendorName;
}
/**
* <p>Installation verification code for manually installing the Cloud Security Center client.</p>
*
* <strong>example:</strong>
* <p>AK1W**</p>
*/
public Builder captchaCode(String captchaCode) {
this.captchaCode = captchaCode;
return this;
}
/**
* <p>Expiration date of the installation verification code. The format is a 13-digit timestamp.</p>
* <blockquote>
* <p>The installation verification code can only be used within its validity period. Expired codes cannot be used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1723860871689</p>
*/
public Builder expiredDate(Long expiredDate) {
this.expiredDate = expiredDate;
return this;
}
/**
* <p>Server group ID.</p>
*
* <strong>example:</strong>
* <p>342710</p>
*/
public Builder groupId(Long groupId) {
this.groupId = groupId;
return this;
}
/**
* <p>Server group name.</p>
*
* <strong>example:</strong>
* <p>TestGroup</p>
*/
public Builder groupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* <p>Operating system of the server. Values:</p>
* <ul>
* <li><p><strong>linux</strong>: Linux</p>
* </li>
* <li><p><strong>windows</strong>: Windows</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder os(String os) {
this.os = os;
return this;
}
/**
* <p>Name of the server vendor.</p>
*
* <strong>example:</strong>
* <p>ALIYUN</p>
*/
public Builder vendorName(String vendorName) {
this.vendorName = vendorName;
return this;
}
public InstallCode build() {
return new InstallCode(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetInstanceAlarmStatisticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetInstanceAlarmStatisticsRequest} extends {@link RequestModel}
*
* <p>GetInstanceAlarmStatisticsRequest</p>
*/
public class GetInstanceAlarmStatisticsRequest 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("Uuid")
private String uuid;
private GetInstanceAlarmStatisticsRequest(Builder builder) {
super(builder);
this.from = builder.from;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static GetInstanceAlarmStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return from
*/
public String getFrom() {
return this.from;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<GetInstanceAlarmStatisticsRequest, Builder> {
private String from;
private String uuid;
private Builder() {
super();
}
private Builder(GetInstanceAlarmStatisticsRequest request) {
super(request);
this.from = request.from;
this.uuid = request.uuid;
}
/**
* <p>The data source for statistics on instance alarms, with a default value of aqs:</p>
* <ul>
* <li><em>sas</em>: Situation Awareness data source</li>
* <li><em>aqs</em>: Alarm event data</li>
* <li><em>honeypot</em>: Honeypot</li>
* </ul>
*
* <strong>example:</strong>
* <p>sas</p>
*/
public Builder from(String from) {
this.putQueryParameter("From", from);
this.from = from;
return this;
}
/**
* <p>The UUID of the server to be queried.</p>
* <blockquote>
* <p>Call the <a href="~~DescribeCloudCenterInstances~~">DescribeCloudCenterInstances</a> API to obtain this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>00fea5a1-9792-4373-ab1e-bb6536ba****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public GetInstanceAlarmStatisticsRequest build() {
return new GetInstanceAlarmStatisticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetInstanceAlarmStatisticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetInstanceAlarmStatisticsResponse} extends {@link TeaModel}
*
* <p>GetInstanceAlarmStatisticsResponse</p>
*/
public class GetInstanceAlarmStatisticsResponse 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 GetInstanceAlarmStatisticsResponseBody body;
private GetInstanceAlarmStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetInstanceAlarmStatisticsResponse 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 GetInstanceAlarmStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetInstanceAlarmStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetInstanceAlarmStatisticsResponseBody body);
@Override
GetInstanceAlarmStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetInstanceAlarmStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetInstanceAlarmStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetInstanceAlarmStatisticsResponse 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(GetInstanceAlarmStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetInstanceAlarmStatisticsResponse build() {
return new GetInstanceAlarmStatisticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/GetInstanceAlarmStatisticsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetInstanceAlarmStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetInstanceAlarmStatisticsResponseBody</p>
*/
public class GetInstanceAlarmStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetInstanceAlarmStatisticsResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetInstanceAlarmStatisticsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetInstanceAlarmStatisticsResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>Data structure.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The unique identifier generated by Alibaba Cloud for this request.</p>
*
* <strong>example:</strong>
* <p>09969D2C-4FAD-429E-BFBF-9A60DEF8B****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetInstanceAlarmStatisticsResponseBody build() {
return new GetInstanceAlarmStatisticsResponseBody(this);
}
}
/**
*
* {@link GetInstanceAlarmStatisticsResponseBody} extends {@link TeaModel}
*
* <p>GetInstanceAlarmStatisticsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RemindCount")
private Integer remindCount;
@com.aliyun.core.annotation.NameInMap("SeriousCount")
private Integer seriousCount;
@com.aliyun.core.annotation.NameInMap("SuspiciousCount")
private Integer suspiciousCount;
private Data(Builder builder) {
this.remindCount = builder.remindCount;
this.seriousCount = builder.seriousCount;
this.suspiciousCount = builder.suspiciousCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return remindCount
*/
public Integer getRemindCount() {
return this.remindCount;
}
/**
* @return seriousCount
*/
public Integer getSeriousCount() {
return this.seriousCount;
}
/**
* @return suspiciousCount
*/
public Integer getSuspiciousCount() {
return this.suspiciousCount;
}
public static final class Builder {
private Integer remindCount;
private Integer seriousCount;
private Integer suspiciousCount;
private Builder() {
}
private Builder(Data model) {
this.remindCount = model.remindCount;
this.seriousCount = model.seriousCount;
this.suspiciousCount = model.suspiciousCount;
}
/**
* <p>Reminder alarm count.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder remindCount(Integer remindCount) {
this.remindCount = remindCount;
return this;
}
/**
* <p>Critical alarm count.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder seriousCount(Integer seriousCount) {
this.seriousCount = seriousCount;
return this;
}
/**
* <p>Suspicious alarm count.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder suspiciousCount(Integer suspiciousCount) {
this.suspiciousCount = suspiciousCount;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.