index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/OperateRerunJobResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateRerunJobResponse} extends {@link TeaModel}
*
* <p>OperateRerunJobResponse</p>
*/
public class OperateRerunJobResponse 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 OperateRerunJobResponseBody body;
private OperateRerunJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static OperateRerunJobResponse 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 OperateRerunJobResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<OperateRerunJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(OperateRerunJobResponseBody body);
@Override
OperateRerunJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<OperateRerunJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private OperateRerunJobResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(OperateRerunJobResponse 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(OperateRerunJobResponseBody body) {
this.body = body;
return this;
}
@Override
public OperateRerunJobResponse build() {
return new OperateRerunJobResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/OperateRerunJobResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateRerunJobResponseBody} extends {@link TeaModel}
*
* <p>OperateRerunJobResponseBody</p>
*/
public class OperateRerunJobResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@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 OperateRerunJobResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static OperateRerunJobResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @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 String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(OperateRerunJobResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* Code.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public OperateRerunJobResponseBody build() {
return new OperateRerunJobResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/OperateRetryJobExecutionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateRetryJobExecutionRequest} extends {@link RequestModel}
*
* <p>OperateRetryJobExecutionRequest</p>
*/
public class OperateRetryJobExecutionRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true)
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobExecutionId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobExecutionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskList")
private java.util.List<String> taskList;
private OperateRetryJobExecutionRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.appName = builder.appName;
this.clusterId = builder.clusterId;
this.jobExecutionId = builder.jobExecutionId;
this.taskList = builder.taskList;
}
public static Builder builder() {
return new Builder();
}
public static OperateRetryJobExecutionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return jobExecutionId
*/
public String getJobExecutionId() {
return this.jobExecutionId;
}
/**
* @return taskList
*/
public java.util.List<String> getTaskList() {
return this.taskList;
}
public static final class Builder extends Request.Builder<OperateRetryJobExecutionRequest, Builder> {
private String regionId;
private String appName;
private String clusterId;
private String jobExecutionId;
private java.util.List<String> taskList;
private Builder() {
super();
}
private Builder(OperateRetryJobExecutionRequest request) {
super(request);
this.regionId = request.regionId;
this.appName = request.appName;
this.clusterId = request.clusterId;
this.jobExecutionId = request.jobExecutionId;
this.taskList = request.taskList;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-app</p>
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>xxljob-b6ec1xxxx</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1310630367761285120</p>
*/
public Builder jobExecutionId(String jobExecutionId) {
this.putQueryParameter("JobExecutionId", jobExecutionId);
this.jobExecutionId = jobExecutionId;
return this;
}
/**
* TaskList.
*/
public Builder taskList(java.util.List<String> taskList) {
String taskListShrink = shrink(taskList, "TaskList", "json");
this.putQueryParameter("TaskList", taskListShrink);
this.taskList = taskList;
return this;
}
@Override
public OperateRetryJobExecutionRequest build() {
return new OperateRetryJobExecutionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/OperateRetryJobExecutionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateRetryJobExecutionResponse} extends {@link TeaModel}
*
* <p>OperateRetryJobExecutionResponse</p>
*/
public class OperateRetryJobExecutionResponse 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 OperateRetryJobExecutionResponseBody body;
private OperateRetryJobExecutionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static OperateRetryJobExecutionResponse 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 OperateRetryJobExecutionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<OperateRetryJobExecutionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(OperateRetryJobExecutionResponseBody body);
@Override
OperateRetryJobExecutionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<OperateRetryJobExecutionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private OperateRetryJobExecutionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(OperateRetryJobExecutionResponse 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(OperateRetryJobExecutionResponseBody body) {
this.body = body;
return this;
}
@Override
public OperateRetryJobExecutionResponse build() {
return new OperateRetryJobExecutionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/OperateRetryJobExecutionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateRetryJobExecutionResponseBody} extends {@link TeaModel}
*
* <p>OperateRetryJobExecutionResponseBody</p>
*/
public class OperateRetryJobExecutionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@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 OperateRetryJobExecutionResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static OperateRetryJobExecutionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @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 String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(OperateRetryJobExecutionResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* Code.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public OperateRetryJobExecutionResponseBody build() {
return new OperateRetryJobExecutionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/OperateStopJobExecutionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateStopJobExecutionRequest} extends {@link RequestModel}
*
* <p>OperateStopJobExecutionRequest</p>
*/
public class OperateStopJobExecutionRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true)
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobExecutionId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobExecutionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskList")
private java.util.List<String> taskList;
private OperateStopJobExecutionRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.appName = builder.appName;
this.clusterId = builder.clusterId;
this.jobExecutionId = builder.jobExecutionId;
this.taskList = builder.taskList;
}
public static Builder builder() {
return new Builder();
}
public static OperateStopJobExecutionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return jobExecutionId
*/
public String getJobExecutionId() {
return this.jobExecutionId;
}
/**
* @return taskList
*/
public java.util.List<String> getTaskList() {
return this.taskList;
}
public static final class Builder extends Request.Builder<OperateStopJobExecutionRequest, Builder> {
private String regionId;
private String appName;
private String clusterId;
private String jobExecutionId;
private java.util.List<String> taskList;
private Builder() {
super();
}
private Builder(OperateStopJobExecutionRequest request) {
super(request);
this.regionId = request.regionId;
this.appName = request.appName;
this.clusterId = request.clusterId;
this.jobExecutionId = request.jobExecutionId;
this.taskList = request.taskList;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-app</p>
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>xxljob-b6ec1xxxx</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1310630367761285120</p>
*/
public Builder jobExecutionId(String jobExecutionId) {
this.putQueryParameter("JobExecutionId", jobExecutionId);
this.jobExecutionId = jobExecutionId;
return this;
}
/**
* TaskList.
*/
public Builder taskList(java.util.List<String> taskList) {
String taskListShrink = shrink(taskList, "TaskList", "json");
this.putQueryParameter("TaskList", taskListShrink);
this.taskList = taskList;
return this;
}
@Override
public OperateStopJobExecutionRequest build() {
return new OperateStopJobExecutionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/OperateStopJobExecutionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateStopJobExecutionResponse} extends {@link TeaModel}
*
* <p>OperateStopJobExecutionResponse</p>
*/
public class OperateStopJobExecutionResponse 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 OperateStopJobExecutionResponseBody body;
private OperateStopJobExecutionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static OperateStopJobExecutionResponse 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 OperateStopJobExecutionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<OperateStopJobExecutionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(OperateStopJobExecutionResponseBody body);
@Override
OperateStopJobExecutionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<OperateStopJobExecutionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private OperateStopJobExecutionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(OperateStopJobExecutionResponse 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(OperateStopJobExecutionResponseBody body) {
this.body = body;
return this;
}
@Override
public OperateStopJobExecutionResponse build() {
return new OperateStopJobExecutionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/OperateStopJobExecutionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateStopJobExecutionResponseBody} extends {@link TeaModel}
*
* <p>OperateStopJobExecutionResponseBody</p>
*/
public class OperateStopJobExecutionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@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 OperateStopJobExecutionResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static OperateStopJobExecutionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @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 String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(OperateStopJobExecutionResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* Code.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public OperateStopJobExecutionResponseBody build() {
return new OperateStopJobExecutionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateAppRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateAppRequest} extends {@link RequestModel}
*
* <p>UpdateAppRequest</p>
*/
public class UpdateAppRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AccessToken")
@com.aliyun.core.annotation.Validation(maxLength = 32, minLength = 6)
private String accessToken;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 64, minLength = 1)
private String appName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("EnableLog")
private Boolean enableLog;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("LabelRouteStrategy")
private Integer labelRouteStrategy;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("MaxConcurrency")
private Integer maxConcurrency;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Title")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 64, minLength = 1)
private String title;
private UpdateAppRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.accessToken = builder.accessToken;
this.appName = builder.appName;
this.clusterId = builder.clusterId;
this.enableLog = builder.enableLog;
this.labelRouteStrategy = builder.labelRouteStrategy;
this.maxConcurrency = builder.maxConcurrency;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static UpdateAppRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return accessToken
*/
public String getAccessToken() {
return this.accessToken;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return enableLog
*/
public Boolean getEnableLog() {
return this.enableLog;
}
/**
* @return labelRouteStrategy
*/
public Integer getLabelRouteStrategy() {
return this.labelRouteStrategy;
}
/**
* @return maxConcurrency
*/
public Integer getMaxConcurrency() {
return this.maxConcurrency;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder extends Request.Builder<UpdateAppRequest, Builder> {
private String regionId;
private String accessToken;
private String appName;
private String clusterId;
private Boolean enableLog;
private Integer labelRouteStrategy;
private Integer maxConcurrency;
private String title;
private Builder() {
super();
}
private Builder(UpdateAppRequest request) {
super(request);
this.regionId = request.regionId;
this.accessToken = request.accessToken;
this.appName = request.appName;
this.clusterId = request.clusterId;
this.enableLog = request.enableLog;
this.labelRouteStrategy = request.labelRouteStrategy;
this.maxConcurrency = request.maxConcurrency;
this.title = request.title;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* AccessToken.
*/
public Builder accessToken(String accessToken) {
this.putBodyParameter("AccessToken", accessToken);
this.accessToken = accessToken;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-app</p>
*/
public Builder appName(String appName) {
this.putBodyParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>xxljob-b6ec1xxxx</p>
*/
public Builder clusterId(String clusterId) {
this.putBodyParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* EnableLog.
*/
public Builder enableLog(Boolean enableLog) {
this.putBodyParameter("EnableLog", enableLog);
this.enableLog = enableLog;
return this;
}
/**
* LabelRouteStrategy.
*/
public Builder labelRouteStrategy(Integer labelRouteStrategy) {
this.putBodyParameter("LabelRouteStrategy", labelRouteStrategy);
this.labelRouteStrategy = labelRouteStrategy;
return this;
}
/**
* MaxConcurrency.
*/
public Builder maxConcurrency(Integer maxConcurrency) {
this.putBodyParameter("MaxConcurrency", maxConcurrency);
this.maxConcurrency = maxConcurrency;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder title(String title) {
this.putBodyParameter("Title", title);
this.title = title;
return this;
}
@Override
public UpdateAppRequest build() {
return new UpdateAppRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateAppResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateAppResponse} extends {@link TeaModel}
*
* <p>UpdateAppResponse</p>
*/
public class UpdateAppResponse 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 UpdateAppResponseBody body;
private UpdateAppResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static UpdateAppResponse 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 UpdateAppResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<UpdateAppResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(UpdateAppResponseBody body);
@Override
UpdateAppResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<UpdateAppResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private UpdateAppResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(UpdateAppResponse 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(UpdateAppResponseBody body) {
this.body = body;
return this;
}
@Override
public UpdateAppResponse build() {
return new UpdateAppResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateAppResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateAppResponseBody} extends {@link TeaModel}
*
* <p>UpdateAppResponseBody</p>
*/
public class UpdateAppResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@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 UpdateAppResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static UpdateAppResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @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 String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(UpdateAppResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* Code.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public UpdateAppResponseBody build() {
return new UpdateAppResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateClusterRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateClusterRequest} extends {@link RequestModel}
*
* <p>UpdateClusterRequest</p>
*/
public class UpdateClusterRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterName")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 64, minLength = 1)
private String clusterName;
private UpdateClusterRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
}
public static Builder builder() {
return new Builder();
}
public static UpdateClusterRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
public static final class Builder extends Request.Builder<UpdateClusterRequest, Builder> {
private String regionId;
private String clusterId;
private String clusterName;
private Builder() {
super();
}
private Builder(UpdateClusterRequest request) {
super(request);
this.regionId = request.regionId;
this.clusterId = request.clusterId;
this.clusterName = request.clusterName;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>xxljob-c20f7ec9a78</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>xx-test-1107</p>
*/
public Builder clusterName(String clusterName) {
this.putQueryParameter("ClusterName", clusterName);
this.clusterName = clusterName;
return this;
}
@Override
public UpdateClusterRequest build() {
return new UpdateClusterRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateClusterResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateClusterResponse} extends {@link TeaModel}
*
* <p>UpdateClusterResponse</p>
*/
public class UpdateClusterResponse 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 UpdateClusterResponseBody body;
private UpdateClusterResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static UpdateClusterResponse 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 UpdateClusterResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<UpdateClusterResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(UpdateClusterResponseBody body);
@Override
UpdateClusterResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<UpdateClusterResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private UpdateClusterResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(UpdateClusterResponse 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(UpdateClusterResponseBody body) {
this.body = body;
return this;
}
@Override
public UpdateClusterResponse build() {
return new UpdateClusterResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateClusterResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateClusterResponseBody} extends {@link TeaModel}
*
* <p>UpdateClusterResponseBody</p>
*/
public class UpdateClusterResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@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 UpdateClusterResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static UpdateClusterResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @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 String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(UpdateClusterResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* Code.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public UpdateClusterResponseBody build() {
return new UpdateClusterResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateJobRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateJobRequest} extends {@link RequestModel}
*
* <p>UpdateJobRequest</p>
*/
public class UpdateJobRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true)
private String appName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AttemptInterval")
private Integer attemptInterval;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Calendar")
private String calendar;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ChildJobId")
private String childJobId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Description")
@com.aliyun.core.annotation.Validation(maxLength = 300)
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ExecutorBlockStrategy")
private Integer executorBlockStrategy;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("JobHandler")
@com.aliyun.core.annotation.Validation(maxLength = 200)
private String jobHandler;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private Long jobId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("MaxAttempt")
private Integer maxAttempt;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("MaxConcurrency")
@com.aliyun.core.annotation.Validation(maximum = 200, minimum = 1)
private Integer maxConcurrency;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(maxLength = 200)
private String name;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("NoticeConfig")
private NoticeConfig noticeConfig;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("NoticeContacts")
private java.util.List<NoticeContacts> noticeContacts;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Parameters")
@com.aliyun.core.annotation.Validation(maxLength = 2000)
private String parameters;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("RouteStrategy")
@com.aliyun.core.annotation.Validation(maximum = 9, minimum = 1)
private Integer routeStrategy;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Script")
private String script;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("TimeExpression")
private String timeExpression;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("TimeType")
private Integer timeType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Timezone")
private String timezone;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Weight")
private Integer weight;
private UpdateJobRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.appName = builder.appName;
this.attemptInterval = builder.attemptInterval;
this.calendar = builder.calendar;
this.childJobId = builder.childJobId;
this.clusterId = builder.clusterId;
this.description = builder.description;
this.executorBlockStrategy = builder.executorBlockStrategy;
this.jobHandler = builder.jobHandler;
this.jobId = builder.jobId;
this.maxAttempt = builder.maxAttempt;
this.maxConcurrency = builder.maxConcurrency;
this.name = builder.name;
this.noticeConfig = builder.noticeConfig;
this.noticeContacts = builder.noticeContacts;
this.parameters = builder.parameters;
this.priority = builder.priority;
this.routeStrategy = builder.routeStrategy;
this.script = builder.script;
this.startTime = builder.startTime;
this.timeExpression = builder.timeExpression;
this.timeType = builder.timeType;
this.timezone = builder.timezone;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static UpdateJobRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return attemptInterval
*/
public Integer getAttemptInterval() {
return this.attemptInterval;
}
/**
* @return calendar
*/
public String getCalendar() {
return this.calendar;
}
/**
* @return childJobId
*/
public String getChildJobId() {
return this.childJobId;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return executorBlockStrategy
*/
public Integer getExecutorBlockStrategy() {
return this.executorBlockStrategy;
}
/**
* @return jobHandler
*/
public String getJobHandler() {
return this.jobHandler;
}
/**
* @return jobId
*/
public Long getJobId() {
return this.jobId;
}
/**
* @return maxAttempt
*/
public Integer getMaxAttempt() {
return this.maxAttempt;
}
/**
* @return maxConcurrency
*/
public Integer getMaxConcurrency() {
return this.maxConcurrency;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return noticeConfig
*/
public NoticeConfig getNoticeConfig() {
return this.noticeConfig;
}
/**
* @return noticeContacts
*/
public java.util.List<NoticeContacts> getNoticeContacts() {
return this.noticeContacts;
}
/**
* @return parameters
*/
public String getParameters() {
return this.parameters;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return routeStrategy
*/
public Integer getRouteStrategy() {
return this.routeStrategy;
}
/**
* @return script
*/
public String getScript() {
return this.script;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return timeExpression
*/
public String getTimeExpression() {
return this.timeExpression;
}
/**
* @return timeType
*/
public Integer getTimeType() {
return this.timeType;
}
/**
* @return timezone
*/
public String getTimezone() {
return this.timezone;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder extends Request.Builder<UpdateJobRequest, Builder> {
private String regionId;
private String appName;
private Integer attemptInterval;
private String calendar;
private String childJobId;
private String clusterId;
private String description;
private Integer executorBlockStrategy;
private String jobHandler;
private Long jobId;
private Integer maxAttempt;
private Integer maxConcurrency;
private String name;
private NoticeConfig noticeConfig;
private java.util.List<NoticeContacts> noticeContacts;
private String parameters;
private Integer priority;
private Integer routeStrategy;
private String script;
private Long startTime;
private String timeExpression;
private Integer timeType;
private String timezone;
private Integer weight;
private Builder() {
super();
}
private Builder(UpdateJobRequest request) {
super(request);
this.regionId = request.regionId;
this.appName = request.appName;
this.attemptInterval = request.attemptInterval;
this.calendar = request.calendar;
this.childJobId = request.childJobId;
this.clusterId = request.clusterId;
this.description = request.description;
this.executorBlockStrategy = request.executorBlockStrategy;
this.jobHandler = request.jobHandler;
this.jobId = request.jobId;
this.maxAttempt = request.maxAttempt;
this.maxConcurrency = request.maxConcurrency;
this.name = request.name;
this.noticeConfig = request.noticeConfig;
this.noticeContacts = request.noticeContacts;
this.parameters = request.parameters;
this.priority = request.priority;
this.routeStrategy = request.routeStrategy;
this.script = request.script;
this.startTime = request.startTime;
this.timeExpression = request.timeExpression;
this.timeType = request.timeType;
this.timezone = request.timezone;
this.weight = request.weight;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-app</p>
*/
public Builder appName(String appName) {
this.putBodyParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* AttemptInterval.
*/
public Builder attemptInterval(Integer attemptInterval) {
this.putBodyParameter("AttemptInterval", attemptInterval);
this.attemptInterval = attemptInterval;
return this;
}
/**
* Calendar.
*/
public Builder calendar(String calendar) {
this.putBodyParameter("Calendar", calendar);
this.calendar = calendar;
return this;
}
/**
* ChildJobId.
*/
public Builder childJobId(String childJobId) {
this.putBodyParameter("ChildJobId", childJobId);
this.childJobId = childJobId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>xxljob-b6ec1xxxx</p>
*/
public Builder clusterId(String clusterId) {
this.putBodyParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.putBodyParameter("Description", description);
this.description = description;
return this;
}
/**
* ExecutorBlockStrategy.
*/
public Builder executorBlockStrategy(Integer executorBlockStrategy) {
this.putBodyParameter("ExecutorBlockStrategy", executorBlockStrategy);
this.executorBlockStrategy = executorBlockStrategy;
return this;
}
/**
* JobHandler.
*/
public Builder jobHandler(String jobHandler) {
this.putBodyParameter("JobHandler", jobHandler);
this.jobHandler = jobHandler;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>74</p>
*/
public Builder jobId(Long jobId) {
this.putBodyParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
/**
* MaxAttempt.
*/
public Builder maxAttempt(Integer maxAttempt) {
this.putBodyParameter("MaxAttempt", maxAttempt);
this.maxAttempt = maxAttempt;
return this;
}
/**
* MaxConcurrency.
*/
public Builder maxConcurrency(Integer maxConcurrency) {
this.putBodyParameter("MaxConcurrency", maxConcurrency);
this.maxConcurrency = maxConcurrency;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.putBodyParameter("Name", name);
this.name = name;
return this;
}
/**
* NoticeConfig.
*/
public Builder noticeConfig(NoticeConfig noticeConfig) {
String noticeConfigShrink = shrink(noticeConfig, "NoticeConfig", "json");
this.putBodyParameter("NoticeConfig", noticeConfigShrink);
this.noticeConfig = noticeConfig;
return this;
}
/**
* NoticeContacts.
*/
public Builder noticeContacts(java.util.List<NoticeContacts> noticeContacts) {
String noticeContactsShrink = shrink(noticeContacts, "NoticeContacts", "json");
this.putBodyParameter("NoticeContacts", noticeContactsShrink);
this.noticeContacts = noticeContacts;
return this;
}
/**
* Parameters.
*/
public Builder parameters(String parameters) {
this.putBodyParameter("Parameters", parameters);
this.parameters = parameters;
return this;
}
/**
* Priority.
*/
public Builder priority(Integer priority) {
this.putBodyParameter("Priority", priority);
this.priority = priority;
return this;
}
/**
* RouteStrategy.
*/
public Builder routeStrategy(Integer routeStrategy) {
this.putBodyParameter("RouteStrategy", routeStrategy);
this.routeStrategy = routeStrategy;
return this;
}
/**
* Script.
*/
public Builder script(String script) {
this.putBodyParameter("Script", script);
this.script = script;
return this;
}
/**
* StartTime.
*/
public Builder startTime(Long startTime) {
this.putBodyParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* TimeExpression.
*/
public Builder timeExpression(String timeExpression) {
this.putBodyParameter("TimeExpression", timeExpression);
this.timeExpression = timeExpression;
return this;
}
/**
* TimeType.
*/
public Builder timeType(Integer timeType) {
this.putBodyParameter("TimeType", timeType);
this.timeType = timeType;
return this;
}
/**
* Timezone.
*/
public Builder timezone(String timezone) {
this.putBodyParameter("Timezone", timezone);
this.timezone = timezone;
return this;
}
/**
* Weight.
*/
public Builder weight(Integer weight) {
this.putBodyParameter("Weight", weight);
this.weight = weight;
return this;
}
@Override
public UpdateJobRequest build() {
return new UpdateJobRequest(this);
}
}
/**
*
* {@link UpdateJobRequest} extends {@link TeaModel}
*
* <p>UpdateJobRequest</p>
*/
public static class NoticeConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FailEnable")
private Boolean failEnable;
@com.aliyun.core.annotation.NameInMap("FailLimitTimes")
private Integer failLimitTimes;
@com.aliyun.core.annotation.NameInMap("MissWorkerEnable")
private Boolean missWorkerEnable;
@com.aliyun.core.annotation.NameInMap("SendChannel")
private String sendChannel;
@com.aliyun.core.annotation.NameInMap("SuccessNotice")
private Boolean successNotice;
@com.aliyun.core.annotation.NameInMap("Timeout")
private Long timeout;
@com.aliyun.core.annotation.NameInMap("TimeoutEnable")
private Boolean timeoutEnable;
@com.aliyun.core.annotation.NameInMap("TimeoutKillEnable")
private Boolean timeoutKillEnable;
private NoticeConfig(Builder builder) {
this.failEnable = builder.failEnable;
this.failLimitTimes = builder.failLimitTimes;
this.missWorkerEnable = builder.missWorkerEnable;
this.sendChannel = builder.sendChannel;
this.successNotice = builder.successNotice;
this.timeout = builder.timeout;
this.timeoutEnable = builder.timeoutEnable;
this.timeoutKillEnable = builder.timeoutKillEnable;
}
public static Builder builder() {
return new Builder();
}
public static NoticeConfig create() {
return builder().build();
}
/**
* @return failEnable
*/
public Boolean getFailEnable() {
return this.failEnable;
}
/**
* @return failLimitTimes
*/
public Integer getFailLimitTimes() {
return this.failLimitTimes;
}
/**
* @return missWorkerEnable
*/
public Boolean getMissWorkerEnable() {
return this.missWorkerEnable;
}
/**
* @return sendChannel
*/
public String getSendChannel() {
return this.sendChannel;
}
/**
* @return successNotice
*/
public Boolean getSuccessNotice() {
return this.successNotice;
}
/**
* @return timeout
*/
public Long getTimeout() {
return this.timeout;
}
/**
* @return timeoutEnable
*/
public Boolean getTimeoutEnable() {
return this.timeoutEnable;
}
/**
* @return timeoutKillEnable
*/
public Boolean getTimeoutKillEnable() {
return this.timeoutKillEnable;
}
public static final class Builder {
private Boolean failEnable;
private Integer failLimitTimes;
private Boolean missWorkerEnable;
private String sendChannel;
private Boolean successNotice;
private Long timeout;
private Boolean timeoutEnable;
private Boolean timeoutKillEnable;
private Builder() {
}
private Builder(NoticeConfig model) {
this.failEnable = model.failEnable;
this.failLimitTimes = model.failLimitTimes;
this.missWorkerEnable = model.missWorkerEnable;
this.sendChannel = model.sendChannel;
this.successNotice = model.successNotice;
this.timeout = model.timeout;
this.timeoutEnable = model.timeoutEnable;
this.timeoutKillEnable = model.timeoutKillEnable;
}
/**
* FailEnable.
*/
public Builder failEnable(Boolean failEnable) {
this.failEnable = failEnable;
return this;
}
/**
* FailLimitTimes.
*/
public Builder failLimitTimes(Integer failLimitTimes) {
this.failLimitTimes = failLimitTimes;
return this;
}
/**
* MissWorkerEnable.
*/
public Builder missWorkerEnable(Boolean missWorkerEnable) {
this.missWorkerEnable = missWorkerEnable;
return this;
}
/**
* SendChannel.
*/
public Builder sendChannel(String sendChannel) {
this.sendChannel = sendChannel;
return this;
}
/**
* SuccessNotice.
*/
public Builder successNotice(Boolean successNotice) {
this.successNotice = successNotice;
return this;
}
/**
* Timeout.
*/
public Builder timeout(Long timeout) {
this.timeout = timeout;
return this;
}
/**
* TimeoutEnable.
*/
public Builder timeoutEnable(Boolean timeoutEnable) {
this.timeoutEnable = timeoutEnable;
return this;
}
/**
* TimeoutKillEnable.
*/
public Builder timeoutKillEnable(Boolean timeoutKillEnable) {
this.timeoutKillEnable = timeoutKillEnable;
return this;
}
public NoticeConfig build() {
return new NoticeConfig(this);
}
}
}
/**
*
* {@link UpdateJobRequest} extends {@link TeaModel}
*
* <p>UpdateJobRequest</p>
*/
public static class NoticeContacts extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ContactType")
private Integer contactType;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private NoticeContacts(Builder builder) {
this.contactType = builder.contactType;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static NoticeContacts create() {
return builder().build();
}
/**
* @return contactType
*/
public Integer getContactType() {
return this.contactType;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Integer contactType;
private String name;
private Builder() {
}
private Builder(NoticeContacts model) {
this.contactType = model.contactType;
this.name = model.name;
}
/**
* ContactType.
*/
public Builder contactType(Integer contactType) {
this.contactType = contactType;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
public NoticeContacts build() {
return new NoticeContacts(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateJobResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateJobResponse} extends {@link TeaModel}
*
* <p>UpdateJobResponse</p>
*/
public class UpdateJobResponse 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 UpdateJobResponseBody body;
private UpdateJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static UpdateJobResponse 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 UpdateJobResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<UpdateJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(UpdateJobResponseBody body);
@Override
UpdateJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<UpdateJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private UpdateJobResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(UpdateJobResponse 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(UpdateJobResponseBody body) {
this.body = body;
return this;
}
@Override
public UpdateJobResponse build() {
return new UpdateJobResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateJobResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateJobResponseBody} extends {@link TeaModel}
*
* <p>UpdateJobResponseBody</p>
*/
public class UpdateJobResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@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 UpdateJobResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static UpdateJobResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @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 String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(UpdateJobResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* Code.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public UpdateJobResponseBody build() {
return new UpdateJobResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateJobScriptRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateJobScriptRequest} extends {@link RequestModel}
*
* <p>UpdateJobScriptRequest</p>
*/
public class UpdateJobScriptRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true)
private String appName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private Long jobId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ScriptContent")
private String scriptContent;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("VersionDescription")
@com.aliyun.core.annotation.Validation(required = true)
private String versionDescription;
private UpdateJobScriptRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.appName = builder.appName;
this.clusterId = builder.clusterId;
this.jobId = builder.jobId;
this.scriptContent = builder.scriptContent;
this.versionDescription = builder.versionDescription;
}
public static Builder builder() {
return new Builder();
}
public static UpdateJobScriptRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return jobId
*/
public Long getJobId() {
return this.jobId;
}
/**
* @return scriptContent
*/
public String getScriptContent() {
return this.scriptContent;
}
/**
* @return versionDescription
*/
public String getVersionDescription() {
return this.versionDescription;
}
public static final class Builder extends Request.Builder<UpdateJobScriptRequest, Builder> {
private String regionId;
private String appName;
private String clusterId;
private Long jobId;
private String scriptContent;
private String versionDescription;
private Builder() {
super();
}
private Builder(UpdateJobScriptRequest request) {
super(request);
this.regionId = request.regionId;
this.appName = request.appName;
this.clusterId = request.clusterId;
this.jobId = request.jobId;
this.scriptContent = request.scriptContent;
this.versionDescription = request.versionDescription;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-app</p>
*/
public Builder appName(String appName) {
this.putBodyParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>xxljob-b6ec1xxxx</p>
*/
public Builder clusterId(String clusterId) {
this.putBodyParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>74</p>
*/
public Builder jobId(Long jobId) {
this.putBodyParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
/**
* ScriptContent.
*/
public Builder scriptContent(String scriptContent) {
this.putBodyParameter("ScriptContent", scriptContent);
this.scriptContent = scriptContent;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>init version</p>
*/
public Builder versionDescription(String versionDescription) {
this.putBodyParameter("VersionDescription", versionDescription);
this.versionDescription = versionDescription;
return this;
}
@Override
public UpdateJobScriptRequest build() {
return new UpdateJobScriptRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateJobScriptResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateJobScriptResponse} extends {@link TeaModel}
*
* <p>UpdateJobScriptResponse</p>
*/
public class UpdateJobScriptResponse 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 UpdateJobScriptResponseBody body;
private UpdateJobScriptResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static UpdateJobScriptResponse 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 UpdateJobScriptResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<UpdateJobScriptResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(UpdateJobScriptResponseBody body);
@Override
UpdateJobScriptResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<UpdateJobScriptResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private UpdateJobScriptResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(UpdateJobScriptResponse 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(UpdateJobScriptResponseBody body) {
this.body = body;
return this;
}
@Override
public UpdateJobScriptResponse build() {
return new UpdateJobScriptResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624 | java-sources/com/aliyun/alibabacloud-schedulerx320240624/1.0.10/com/aliyun/sdk/service/schedulerx320240624/models/UpdateJobScriptResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.schedulerx320240624.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateJobScriptResponseBody} extends {@link TeaModel}
*
* <p>UpdateJobScriptResponseBody</p>
*/
public class UpdateJobScriptResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@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 UpdateJobScriptResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static UpdateJobScriptResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @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 String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(UpdateJobScriptResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* Code.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public UpdateJobScriptResponseBody build() {
return new UpdateJobScriptResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/AsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.sddp20190103.models.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import java.util.concurrent.CompletableFuture;
public interface AsyncClient extends SdkAutoCloseable {
static DefaultAsyncClientBuilder builder() {
return new DefaultAsyncClientBuilder();
}
static AsyncClient create() {
return builder().build();
}
/**
* <b>description</b> :
* <p>You can call this operation to create or restore configurations based on the codes of common configuration items. This allows you to manage the configurations of common configuration items.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of CreateConfig CreateConfigRequest
* @return CreateConfigResponse
*/
CompletableFuture<CreateConfigResponse> createConfig(CreateConfigRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to authorize DSC to scan data assets to ensure the security of the data assets.</p>
*
* @param request the request parameters of CreateDataLimit CreateDataLimitRequest
* @return CreateDataLimitResponse
*/
CompletableFuture<CreateDataLimitResponse> createDataLimit(CreateDataLimitRequest request);
/**
* @param request the request parameters of CreateRule CreateRuleRequest
* @return CreateRuleResponse
*/
CompletableFuture<CreateRuleResponse> createRule(CreateRuleRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to create a custom scan task for authorized data assets. You can customize the interval between two consecutive scan tasks and the time when the scan task is executed next time.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of CreateScanTask CreateScanTaskRequest
* @return CreateScanTaskResponse
*/
CompletableFuture<CreateScanTaskResponse> createScanTask(CreateScanTaskRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to allow DSC to access the data assets in services such as Object Storage Service (OSS), ApsaraDB RDS, and MaxCompute. After you call this operation, the system automatically creates a service-linked role named AliyunServiceRoleForSDDP and attaches the AliyunServiceRolePolicyForSDDP policy to the role.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of CreateSlrRole CreateSlrRoleRequest
* @return CreateSlrRoleResponse
*/
CompletableFuture<CreateSlrRoleResponse> createSlrRole(CreateSlrRoleRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to revoke the permissions on a data asset from Data Security Center (DSC).</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DeleteDataLimit DeleteDataLimitRequest
* @return DeleteDataLimitResponse
*/
CompletableFuture<DeleteDataLimitResponse> deleteDataLimit(DeleteDataLimitRequest request);
/**
* @param request the request parameters of DeleteRule DeleteRuleRequest
* @return DeleteRuleResponse
*/
CompletableFuture<DeleteRuleResponse> deleteRule(DeleteRuleRequest request);
/**
* @param request the request parameters of DescribeAuditLogs DescribeAuditLogsRequest
* @return DescribeAuditLogsResponse
*/
CompletableFuture<DescribeAuditLogsResponse> describeAuditLogs(DescribeAuditLogsRequest request);
/**
* @param request the request parameters of DescribeCategoryTemplateList DescribeCategoryTemplateListRequest
* @return DescribeCategoryTemplateListResponse
*/
CompletableFuture<DescribeCategoryTemplateListResponse> describeCategoryTemplateList(DescribeCategoryTemplateListRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query rules in a classification template.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeCategoryTemplateRuleList DescribeCategoryTemplateRuleListRequest
* @return DescribeCategoryTemplateRuleListResponse
*/
CompletableFuture<DescribeCategoryTemplateRuleListResponse> describeCategoryTemplateRuleList(DescribeCategoryTemplateRuleListRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query the data in columns of a table that may contain sensitive data. This helps you analyze sensitive data.</p>
* <h2><a href="#"></a>Precautions</h2>
* <p>The DescribeColumns operation is changed to DescribeColumnsV2. We recommend that you call the DescribeColumnsV2 operation when you develop your applications.</p>
* <h2><a href="#qps"></a>Limits</h2>
* <p>Each Alibaba Cloud account can call this operation up to 10 times per second. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeColumns DescribeColumnsRequest
* @return DescribeColumnsResponse
*/
CompletableFuture<DescribeColumnsResponse> describeColumns(DescribeColumnsRequest request);
/**
* @param request the request parameters of DescribeColumnsV2 DescribeColumnsV2Request
* @return DescribeColumnsV2Response
*/
CompletableFuture<DescribeColumnsV2Response> describeColumnsV2(DescribeColumnsV2Request request);
/**
* @param request the request parameters of DescribeConfigs DescribeConfigsRequest
* @return DescribeConfigsResponse
*/
CompletableFuture<DescribeConfigsResponse> describeConfigs(DescribeConfigsRequest request);
/**
* @param request the request parameters of DescribeDataAssets DescribeDataAssetsRequest
* @return DescribeDataAssetsResponse
*/
CompletableFuture<DescribeDataAssetsResponse> describeDataAssets(DescribeDataAssetsRequest request);
/**
* @param request the request parameters of DescribeDataLimitDetail DescribeDataLimitDetailRequest
* @return DescribeDataLimitDetailResponse
*/
CompletableFuture<DescribeDataLimitDetailResponse> describeDataLimitDetail(DescribeDataLimitDetailRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query the data assets that are authorized to be scanned. This facilitates resource search and aggregation.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeDataLimitSet DescribeDataLimitSetRequest
* @return DescribeDataLimitSetResponse
*/
CompletableFuture<DescribeDataLimitSetResponse> describeDataLimitSet(DescribeDataLimitSetRequest request);
/**
* @param request the request parameters of DescribeDataLimits DescribeDataLimitsRequest
* @return DescribeDataLimitsResponse
*/
CompletableFuture<DescribeDataLimitsResponse> describeDataLimits(DescribeDataLimitsRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query the execution information of a static de-identification task, including the status and progress.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeDataMaskingRunHistory DescribeDataMaskingRunHistoryRequest
* @return DescribeDataMaskingRunHistoryResponse
*/
CompletableFuture<DescribeDataMaskingRunHistoryResponse> describeDataMaskingRunHistory(DescribeDataMaskingRunHistoryRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query static de-identification tasks. This facilitates task queries and management.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeDataMaskingTasks DescribeDataMaskingTasksRequest
* @return DescribeDataMaskingTasksResponse
*/
CompletableFuture<DescribeDataMaskingTasksResponse> describeDataMaskingTasks(DescribeDataMaskingTasksRequest request);
/**
* <b>description</b> :
* <h2>Notes</h2>
* <p>The DescribeDataObjectColumnDetail interface has been revised to DescribeDataObjectColumnDetailV2. It is recommended that you use the newer version, DescribeDataObjectColumnDetailV2, when developing your application.</p>
*
* @param request the request parameters of DescribeDataObjectColumnDetail DescribeDataObjectColumnDetailRequest
* @return DescribeDataObjectColumnDetailResponse
*/
CompletableFuture<DescribeDataObjectColumnDetailResponse> describeDataObjectColumnDetail(DescribeDataObjectColumnDetailRequest request);
/**
* @param request the request parameters of DescribeDataObjectColumnDetailV2 DescribeDataObjectColumnDetailV2Request
* @return DescribeDataObjectColumnDetailV2Response
*/
CompletableFuture<DescribeDataObjectColumnDetailV2Response> describeDataObjectColumnDetailV2(DescribeDataObjectColumnDetailV2Request request);
/**
* @param request the request parameters of DescribeDataObjects DescribeDataObjectsRequest
* @return DescribeDataObjectsResponse
*/
CompletableFuture<DescribeDataObjectsResponse> describeDataObjects(DescribeDataObjectsRequest request);
/**
* @param request the request parameters of DescribeDocTypes DescribeDocTypesRequest
* @return DescribeDocTypesResponse
*/
CompletableFuture<DescribeDocTypesResponse> describeDocTypes(DescribeDocTypesRequest request);
/**
* @param request the request parameters of DescribeEventDetail DescribeEventDetailRequest
* @return DescribeEventDetailResponse
*/
CompletableFuture<DescribeEventDetailResponse> describeEventDetail(DescribeEventDetailRequest request);
/**
* @param request the request parameters of DescribeEventTypes DescribeEventTypesRequest
* @return DescribeEventTypesResponse
*/
CompletableFuture<DescribeEventTypesResponse> describeEventTypes(DescribeEventTypesRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query anomalous events that may involve data leaks. This helps you search for and handle anomalous events.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeEvents DescribeEventsRequest
* @return DescribeEventsResponse
*/
CompletableFuture<DescribeEventsResponse> describeEvents(DescribeEventsRequest request);
/**
* <b>description</b> :
* <h2>QPS Limit</h2>
* <p>The QPS limit for this interface per user is 10 times/second. Exceeding the limit will result in API calls being rate-limited, which may affect your business. Please call it reasonably.</p>
*
* @param request the request parameters of DescribeIdentifyTaskStatus DescribeIdentifyTaskStatusRequest
* @return DescribeIdentifyTaskStatusResponse
*/
CompletableFuture<DescribeIdentifyTaskStatusResponse> describeIdentifyTaskStatus(DescribeIdentifyTaskStatusRequest request);
/**
* <b>description</b> :
* <p>You can query a list of unauthorized or authorized data assets based on the value of AuthStatus.
* This operation is no longer used for the KMS console of the new version.</p>
*
* @param request the request parameters of DescribeInstanceSources DescribeInstanceSourcesRequest
* @return DescribeInstanceSourcesResponse
*/
CompletableFuture<DescribeInstanceSourcesResponse> describeInstanceSources(DescribeInstanceSourcesRequest request);
/**
* <b>description</b> :
* <p>When you call the DescribeInstances operation, you can specify parameters such as Name and RiskLevelId to query data assets that meet filter conditions.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeInstances DescribeInstancesRequest
* @return DescribeInstancesResponse
*/
CompletableFuture<DescribeInstancesResponse> describeInstances(DescribeInstancesRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query the details of an Object Storage Service (OSS) object. This helps you locate sensitive data detected in OSS.</p>
* <h2><a href="#"></a>Precautions</h2>
* <p>The DescribeOssObjectDetail operation is chagned to DescribeOssObjectDetailV2. We recommend that you call the DescribeOssObjectDetailV2 operation when you develop your applications.</p>
* <h2><a href="#qps"></a>Limits</h2>
* <p>Each Alibaba Cloud account can call this operation up to 10 times per second. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeOssObjectDetail DescribeOssObjectDetailRequest
* @return DescribeOssObjectDetailResponse
*/
CompletableFuture<DescribeOssObjectDetailResponse> describeOssObjectDetail(DescribeOssObjectDetailRequest request);
/**
* <b>description</b> :
* <p>This interface is generally used to query the detailed information of OSS storage objects, which facilitates the accurate positioning of sensitive OSS assets.</p>
*
* @param request the request parameters of DescribeOssObjectDetailV2 DescribeOssObjectDetailV2Request
* @return DescribeOssObjectDetailV2Response
*/
CompletableFuture<DescribeOssObjectDetailV2Response> describeOssObjectDetailV2(DescribeOssObjectDetailV2Request request);
/**
* @param request the request parameters of DescribeOssObjects DescribeOssObjectsRequest
* @return DescribeOssObjectsResponse
*/
CompletableFuture<DescribeOssObjectsResponse> describeOssObjects(DescribeOssObjectsRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query MaxCompute packages that are scanned by DSC. This helps you search for MaxCompute packages and view the summary of MaxCompute packages.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribePackages DescribePackagesRequest
* @return DescribePackagesResponse
*/
CompletableFuture<DescribePackagesResponse> describePackages(DescribePackagesRequest request);
/**
* @param request the request parameters of DescribeParentInstance DescribeParentInstanceRequest
* @return DescribeParentInstanceResponse
*/
CompletableFuture<DescribeParentInstanceResponse> describeParentInstance(DescribeParentInstanceRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query the sensitivity levels that are defined in the current rule template provided by DSC. This helps you learn about the number of times that each sensitivity level is referenced in the rule template and the highest sensitivity level.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeRiskLevels DescribeRiskLevelsRequest
* @return DescribeRiskLevelsResponse
*/
CompletableFuture<DescribeRiskLevelsResponse> describeRiskLevels(DescribeRiskLevelsRequest request);
/**
* @param request the request parameters of DescribeRules DescribeRulesRequest
* @return DescribeRulesResponse
*/
CompletableFuture<DescribeRulesResponse> describeRules(DescribeRulesRequest request);
/**
* <b>description</b> :
* <p>When you call the DescribeTables operation to query tables, you can specify parameters such as Name and RiskLevelId to filter tables.</p>
* <h1>Limits</h1>
* <p>You can send up to 10 requests per second to call this operation by using your Alibaba Cloud account. If you send excessive requests, throttling is implemented, and your business may be affected.</p>
*
* @param request the request parameters of DescribeTables DescribeTablesRequest
* @return DescribeTablesResponse
*/
CompletableFuture<DescribeTablesResponse> describeTables(DescribeTablesRequest request);
/**
* @param request the request parameters of DescribeTemplateAllRules DescribeTemplateAllRulesRequest
* @return DescribeTemplateAllRulesResponse
*/
CompletableFuture<DescribeTemplateAllRulesResponse> describeTemplateAllRules(DescribeTemplateAllRulesRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query the information about the current account. This helps you get familiar with your account that accesses Data Security Center (DSC).</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeUserStatus DescribeUserStatusRequest
* @return DescribeUserStatusResponse
*/
CompletableFuture<DescribeUserStatusResponse> describeUserStatus(DescribeUserStatusRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to disable a configuration item based on the code of the configuration item. This helps you modify configurations at the earliest opportunity.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DisableUserConfig DisableUserConfigRequest
* @return DisableUserConfigResponse
*/
CompletableFuture<DisableUserConfigResponse> disableUserConfig(DisableUserConfigRequest request);
/**
* @param request the request parameters of ExecDatamask ExecDatamaskRequest
* @return ExecDatamaskResponse
*/
CompletableFuture<ExecDatamaskResponse> execDatamask(ExecDatamaskRequest request);
/**
* @param request the request parameters of ManualTriggerMaskingProcess ManualTriggerMaskingProcessRequest
* @return ManualTriggerMaskingProcessResponse
*/
CompletableFuture<ManualTriggerMaskingProcessResponse> manualTriggerMaskingProcess(ManualTriggerMaskingProcessRequest request);
/**
* @param request the request parameters of ModifyDataLimit ModifyDataLimitRequest
* @return ModifyDataLimitResponse
*/
CompletableFuture<ModifyDataLimitResponse> modifyDataLimit(ModifyDataLimitRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to modify the sensitivity levels of data. This helps you manage the sensitivity levels.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of ModifyDefaultLevel ModifyDefaultLevelRequest
* @return ModifyDefaultLevelResponse
*/
CompletableFuture<ModifyDefaultLevelResponse> modifyDefaultLevel(ModifyDefaultLevelRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to handle anomalous events that involve data leaks. This helps protect your data assets at the earliest opportunity.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of ModifyEventStatus ModifyEventStatusRequest
* @return ModifyEventStatusResponse
*/
CompletableFuture<ModifyEventStatusResponse> modifyEventStatus(ModifyEventStatusRequest request);
/**
* @param request the request parameters of ModifyEventTypeStatus ModifyEventTypeStatusRequest
* @return ModifyEventTypeStatusResponse
*/
CompletableFuture<ModifyEventTypeStatusResponse> modifyEventTypeStatus(ModifyEventTypeStatusRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to enable or disable the report task. After you activate Data Security Center (DSC), the report task is enabled by default. After you disable the report task, you cannot view statistics that are newly generated in the Report Center module, on the Overview page of the Cloud Native Data Audit module, and in the Data security lab module. Existing statistics are not affected.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of ModifyReportTaskStatus ModifyReportTaskStatusRequest
* @return ModifyReportTaskStatusResponse
*/
CompletableFuture<ModifyReportTaskStatusResponse> modifyReportTaskStatus(ModifyReportTaskStatusRequest request);
/**
* <b>description</b> :
* <p>When you call this operation, you must configure request parameters to specify the rule name, rule ID, and rule content.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of ModifyRule ModifyRuleRequest
* @return ModifyRuleResponse
*/
CompletableFuture<ModifyRuleResponse> modifyRule(ModifyRuleRequest request);
/**
* @param request the request parameters of ModifyRuleStatus ModifyRuleStatusRequest
* @return ModifyRuleStatusResponse
*/
CompletableFuture<ModifyRuleStatusResponse> modifyRuleStatus(ModifyRuleStatusRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Prerequisites</h3>
* <p>To call this operation, make sure that asset authorization for your OSS bucket is complete and the bucket is connected. If the authorization is not complete, the bucket_not_authorized error code is returned when you call the operation.</p>
* <h3><a href="#qps-"></a>Limits</h3>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
* <h3><a href="#"></a>Additional information</h3>
* <p>After you call this operation, you can obtain the task ID. You can specify the task ID in the DescribeIdentifyTaskDetail operation to query the state of the task.
* After the task is complete, you can call the DescribeOssObjectDetailV2 operation to query the identification results of sensitive data in the related OSS objects. When you call the DescribeOssObjectDetailV2 operation, you must specify BucketName, ServiceRegionId, and ObjectKey.</p>
*
* @param request the request parameters of ScanOssObjectV1 ScanOssObjectV1Request
* @return ScanOssObjectV1Response
*/
CompletableFuture<ScanOssObjectV1Response> scanOssObjectV1(ScanOssObjectV1Request request);
/**
* <b>description</b> :
* <p>You can call this operation to stop a de-identification task that is running. For example, you can stop a de-identification task that is used to de-identify specific data.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of StopMaskingProcess StopMaskingProcessRequest
* @return StopMaskingProcessResponse
*/
CompletableFuture<StopMaskingProcessResponse> stopMaskingProcess(StopMaskingProcessRequest request);
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/DefaultAsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103;
import com.aliyun.core.http.*;
import com.aliyun.sdk.service.sddp20190103.models.*;
import darabonba.core.utils.*;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import java.util.concurrent.CompletableFuture;
/**
* <p>Main client.</p>
*/
public final class DefaultAsyncClient implements AsyncClient {
protected final String product;
protected final String version;
protected final String endpointRule;
protected final java.util.Map<String, String> endpointMap;
protected final TeaRequest REQUEST;
protected final TeaAsyncHandler handler;
protected DefaultAsyncClient(ClientConfiguration configuration) {
this.handler = new TeaAsyncHandler(configuration);
this.product = "Sddp";
this.version = "2019-01-03";
this.endpointRule = "regional";
this.endpointMap = CommonUtil.buildMap(
new TeaPair("cn-hongkong", "sddp-api.cn-hongkong.aliyuncs.com")
);
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
}
@Override
public void close() {
this.handler.close();
}
/**
* <b>description</b> :
* <p>You can call this operation to create or restore configurations based on the codes of common configuration items. This allows you to manage the configurations of common configuration items.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of CreateConfig CreateConfigRequest
* @return CreateConfigResponse
*/
@Override
public CompletableFuture<CreateConfigResponse> createConfig(CreateConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateConfig").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to authorize DSC to scan data assets to ensure the security of the data assets.</p>
*
* @param request the request parameters of CreateDataLimit CreateDataLimitRequest
* @return CreateDataLimitResponse
*/
@Override
public CompletableFuture<CreateDataLimitResponse> createDataLimit(CreateDataLimitRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateDataLimit").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateDataLimitResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateDataLimitResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateRule CreateRuleRequest
* @return CreateRuleResponse
*/
@Override
public CompletableFuture<CreateRuleResponse> createRule(CreateRuleRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateRule").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateRuleResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateRuleResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to create a custom scan task for authorized data assets. You can customize the interval between two consecutive scan tasks and the time when the scan task is executed next time.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of CreateScanTask CreateScanTaskRequest
* @return CreateScanTaskResponse
*/
@Override
public CompletableFuture<CreateScanTaskResponse> createScanTask(CreateScanTaskRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateScanTask").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateScanTaskResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateScanTaskResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to allow DSC to access the data assets in services such as Object Storage Service (OSS), ApsaraDB RDS, and MaxCompute. After you call this operation, the system automatically creates a service-linked role named AliyunServiceRoleForSDDP and attaches the AliyunServiceRolePolicyForSDDP policy to the role.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of CreateSlrRole CreateSlrRoleRequest
* @return CreateSlrRoleResponse
*/
@Override
public CompletableFuture<CreateSlrRoleResponse> createSlrRole(CreateSlrRoleRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateSlrRole").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateSlrRoleResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateSlrRoleResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to revoke the permissions on a data asset from Data Security Center (DSC).</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DeleteDataLimit DeleteDataLimitRequest
* @return DeleteDataLimitResponse
*/
@Override
public CompletableFuture<DeleteDataLimitResponse> deleteDataLimit(DeleteDataLimitRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteDataLimit").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteDataLimitResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteDataLimitResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteRule DeleteRuleRequest
* @return DeleteRuleResponse
*/
@Override
public CompletableFuture<DeleteRuleResponse> deleteRule(DeleteRuleRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteRule").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteRuleResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteRuleResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeAuditLogs DescribeAuditLogsRequest
* @return DescribeAuditLogsResponse
*/
@Override
public CompletableFuture<DescribeAuditLogsResponse> describeAuditLogs(DescribeAuditLogsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeAuditLogs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeAuditLogsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeAuditLogsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeCategoryTemplateList DescribeCategoryTemplateListRequest
* @return DescribeCategoryTemplateListResponse
*/
@Override
public CompletableFuture<DescribeCategoryTemplateListResponse> describeCategoryTemplateList(DescribeCategoryTemplateListRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeCategoryTemplateList").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeCategoryTemplateListResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeCategoryTemplateListResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query rules in a classification template.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeCategoryTemplateRuleList DescribeCategoryTemplateRuleListRequest
* @return DescribeCategoryTemplateRuleListResponse
*/
@Override
public CompletableFuture<DescribeCategoryTemplateRuleListResponse> describeCategoryTemplateRuleList(DescribeCategoryTemplateRuleListRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeCategoryTemplateRuleList").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeCategoryTemplateRuleListResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeCategoryTemplateRuleListResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query the data in columns of a table that may contain sensitive data. This helps you analyze sensitive data.</p>
* <h2><a href="#"></a>Precautions</h2>
* <p>The DescribeColumns operation is changed to DescribeColumnsV2. We recommend that you call the DescribeColumnsV2 operation when you develop your applications.</p>
* <h2><a href="#qps"></a>Limits</h2>
* <p>Each Alibaba Cloud account can call this operation up to 10 times per second. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeColumns DescribeColumnsRequest
* @return DescribeColumnsResponse
*/
@Override
public CompletableFuture<DescribeColumnsResponse> describeColumns(DescribeColumnsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeColumns").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeColumnsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeColumnsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeColumnsV2 DescribeColumnsV2Request
* @return DescribeColumnsV2Response
*/
@Override
public CompletableFuture<DescribeColumnsV2Response> describeColumnsV2(DescribeColumnsV2Request request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeColumnsV2").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeColumnsV2Response.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeColumnsV2Response> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeConfigs DescribeConfigsRequest
* @return DescribeConfigsResponse
*/
@Override
public CompletableFuture<DescribeConfigsResponse> describeConfigs(DescribeConfigsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeConfigs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeConfigsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeConfigsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeDataAssets DescribeDataAssetsRequest
* @return DescribeDataAssetsResponse
*/
@Override
public CompletableFuture<DescribeDataAssetsResponse> describeDataAssets(DescribeDataAssetsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataAssets").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataAssetsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataAssetsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeDataLimitDetail DescribeDataLimitDetailRequest
* @return DescribeDataLimitDetailResponse
*/
@Override
public CompletableFuture<DescribeDataLimitDetailResponse> describeDataLimitDetail(DescribeDataLimitDetailRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataLimitDetail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataLimitDetailResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataLimitDetailResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query the data assets that are authorized to be scanned. This facilitates resource search and aggregation.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeDataLimitSet DescribeDataLimitSetRequest
* @return DescribeDataLimitSetResponse
*/
@Override
public CompletableFuture<DescribeDataLimitSetResponse> describeDataLimitSet(DescribeDataLimitSetRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataLimitSet").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataLimitSetResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataLimitSetResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeDataLimits DescribeDataLimitsRequest
* @return DescribeDataLimitsResponse
*/
@Override
public CompletableFuture<DescribeDataLimitsResponse> describeDataLimits(DescribeDataLimitsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataLimits").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataLimitsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataLimitsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query the execution information of a static de-identification task, including the status and progress.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeDataMaskingRunHistory DescribeDataMaskingRunHistoryRequest
* @return DescribeDataMaskingRunHistoryResponse
*/
@Override
public CompletableFuture<DescribeDataMaskingRunHistoryResponse> describeDataMaskingRunHistory(DescribeDataMaskingRunHistoryRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataMaskingRunHistory").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataMaskingRunHistoryResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataMaskingRunHistoryResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query static de-identification tasks. This facilitates task queries and management.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeDataMaskingTasks DescribeDataMaskingTasksRequest
* @return DescribeDataMaskingTasksResponse
*/
@Override
public CompletableFuture<DescribeDataMaskingTasksResponse> describeDataMaskingTasks(DescribeDataMaskingTasksRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataMaskingTasks").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataMaskingTasksResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataMaskingTasksResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h2>Notes</h2>
* <p>The DescribeDataObjectColumnDetail interface has been revised to DescribeDataObjectColumnDetailV2. It is recommended that you use the newer version, DescribeDataObjectColumnDetailV2, when developing your application.</p>
*
* @param request the request parameters of DescribeDataObjectColumnDetail DescribeDataObjectColumnDetailRequest
* @return DescribeDataObjectColumnDetailResponse
*/
@Override
public CompletableFuture<DescribeDataObjectColumnDetailResponse> describeDataObjectColumnDetail(DescribeDataObjectColumnDetailRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataObjectColumnDetail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataObjectColumnDetailResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataObjectColumnDetailResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeDataObjectColumnDetailV2 DescribeDataObjectColumnDetailV2Request
* @return DescribeDataObjectColumnDetailV2Response
*/
@Override
public CompletableFuture<DescribeDataObjectColumnDetailV2Response> describeDataObjectColumnDetailV2(DescribeDataObjectColumnDetailV2Request request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataObjectColumnDetailV2").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataObjectColumnDetailV2Response.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataObjectColumnDetailV2Response> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeDataObjects DescribeDataObjectsRequest
* @return DescribeDataObjectsResponse
*/
@Override
public CompletableFuture<DescribeDataObjectsResponse> describeDataObjects(DescribeDataObjectsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDataObjects").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDataObjectsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDataObjectsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeDocTypes DescribeDocTypesRequest
* @return DescribeDocTypesResponse
*/
@Override
public CompletableFuture<DescribeDocTypesResponse> describeDocTypes(DescribeDocTypesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDocTypes").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDocTypesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeDocTypesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeEventDetail DescribeEventDetailRequest
* @return DescribeEventDetailResponse
*/
@Override
public CompletableFuture<DescribeEventDetailResponse> describeEventDetail(DescribeEventDetailRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeEventDetail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeEventDetailResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeEventDetailResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeEventTypes DescribeEventTypesRequest
* @return DescribeEventTypesResponse
*/
@Override
public CompletableFuture<DescribeEventTypesResponse> describeEventTypes(DescribeEventTypesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeEventTypes").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeEventTypesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeEventTypesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query anomalous events that may involve data leaks. This helps you search for and handle anomalous events.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeEvents DescribeEventsRequest
* @return DescribeEventsResponse
*/
@Override
public CompletableFuture<DescribeEventsResponse> describeEvents(DescribeEventsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeEvents").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeEventsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeEventsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h2>QPS Limit</h2>
* <p>The QPS limit for this interface per user is 10 times/second. Exceeding the limit will result in API calls being rate-limited, which may affect your business. Please call it reasonably.</p>
*
* @param request the request parameters of DescribeIdentifyTaskStatus DescribeIdentifyTaskStatusRequest
* @return DescribeIdentifyTaskStatusResponse
*/
@Override
public CompletableFuture<DescribeIdentifyTaskStatusResponse> describeIdentifyTaskStatus(DescribeIdentifyTaskStatusRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeIdentifyTaskStatus").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeIdentifyTaskStatusResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeIdentifyTaskStatusResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can query a list of unauthorized or authorized data assets based on the value of AuthStatus.
* This operation is no longer used for the KMS console of the new version.</p>
*
* @param request the request parameters of DescribeInstanceSources DescribeInstanceSourcesRequest
* @return DescribeInstanceSourcesResponse
*/
@Override
public CompletableFuture<DescribeInstanceSourcesResponse> describeInstanceSources(DescribeInstanceSourcesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeInstanceSources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeInstanceSourcesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeInstanceSourcesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>When you call the DescribeInstances operation, you can specify parameters such as Name and RiskLevelId to query data assets that meet filter conditions.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeInstances DescribeInstancesRequest
* @return DescribeInstancesResponse
*/
@Override
public CompletableFuture<DescribeInstancesResponse> describeInstances(DescribeInstancesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeInstancesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeInstancesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query the details of an Object Storage Service (OSS) object. This helps you locate sensitive data detected in OSS.</p>
* <h2><a href="#"></a>Precautions</h2>
* <p>The DescribeOssObjectDetail operation is chagned to DescribeOssObjectDetailV2. We recommend that you call the DescribeOssObjectDetailV2 operation when you develop your applications.</p>
* <h2><a href="#qps"></a>Limits</h2>
* <p>Each Alibaba Cloud account can call this operation up to 10 times per second. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeOssObjectDetail DescribeOssObjectDetailRequest
* @return DescribeOssObjectDetailResponse
*/
@Override
public CompletableFuture<DescribeOssObjectDetailResponse> describeOssObjectDetail(DescribeOssObjectDetailRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeOssObjectDetail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeOssObjectDetailResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeOssObjectDetailResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This interface is generally used to query the detailed information of OSS storage objects, which facilitates the accurate positioning of sensitive OSS assets.</p>
*
* @param request the request parameters of DescribeOssObjectDetailV2 DescribeOssObjectDetailV2Request
* @return DescribeOssObjectDetailV2Response
*/
@Override
public CompletableFuture<DescribeOssObjectDetailV2Response> describeOssObjectDetailV2(DescribeOssObjectDetailV2Request request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeOssObjectDetailV2").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeOssObjectDetailV2Response.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeOssObjectDetailV2Response> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeOssObjects DescribeOssObjectsRequest
* @return DescribeOssObjectsResponse
*/
@Override
public CompletableFuture<DescribeOssObjectsResponse> describeOssObjects(DescribeOssObjectsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeOssObjects").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeOssObjectsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeOssObjectsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query MaxCompute packages that are scanned by DSC. This helps you search for MaxCompute packages and view the summary of MaxCompute packages.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribePackages DescribePackagesRequest
* @return DescribePackagesResponse
*/
@Override
public CompletableFuture<DescribePackagesResponse> describePackages(DescribePackagesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePackages").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePackagesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribePackagesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeParentInstance DescribeParentInstanceRequest
* @return DescribeParentInstanceResponse
*/
@Override
public CompletableFuture<DescribeParentInstanceResponse> describeParentInstance(DescribeParentInstanceRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeParentInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeParentInstanceResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeParentInstanceResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query the sensitivity levels that are defined in the current rule template provided by DSC. This helps you learn about the number of times that each sensitivity level is referenced in the rule template and the highest sensitivity level.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeRiskLevels DescribeRiskLevelsRequest
* @return DescribeRiskLevelsResponse
*/
@Override
public CompletableFuture<DescribeRiskLevelsResponse> describeRiskLevels(DescribeRiskLevelsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeRiskLevels").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeRiskLevelsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeRiskLevelsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeRules DescribeRulesRequest
* @return DescribeRulesResponse
*/
@Override
public CompletableFuture<DescribeRulesResponse> describeRules(DescribeRulesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeRules").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeRulesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeRulesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>When you call the DescribeTables operation to query tables, you can specify parameters such as Name and RiskLevelId to filter tables.</p>
* <h1>Limits</h1>
* <p>You can send up to 10 requests per second to call this operation by using your Alibaba Cloud account. If you send excessive requests, throttling is implemented, and your business may be affected.</p>
*
* @param request the request parameters of DescribeTables DescribeTablesRequest
* @return DescribeTablesResponse
*/
@Override
public CompletableFuture<DescribeTablesResponse> describeTables(DescribeTablesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeTables").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeTablesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeTablesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeTemplateAllRules DescribeTemplateAllRulesRequest
* @return DescribeTemplateAllRulesResponse
*/
@Override
public CompletableFuture<DescribeTemplateAllRulesResponse> describeTemplateAllRules(DescribeTemplateAllRulesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeTemplateAllRules").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeTemplateAllRulesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeTemplateAllRulesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query the information about the current account. This helps you get familiar with your account that accesses Data Security Center (DSC).</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DescribeUserStatus DescribeUserStatusRequest
* @return DescribeUserStatusResponse
*/
@Override
public CompletableFuture<DescribeUserStatusResponse> describeUserStatus(DescribeUserStatusRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeUserStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeUserStatusResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeUserStatusResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to disable a configuration item based on the code of the configuration item. This helps you modify configurations at the earliest opportunity.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of DisableUserConfig DisableUserConfigRequest
* @return DisableUserConfigResponse
*/
@Override
public CompletableFuture<DisableUserConfigResponse> disableUserConfig(DisableUserConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DisableUserConfig").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DisableUserConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DisableUserConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ExecDatamask ExecDatamaskRequest
* @return ExecDatamaskResponse
*/
@Override
public CompletableFuture<ExecDatamaskResponse> execDatamask(ExecDatamaskRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ExecDatamask").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ExecDatamaskResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ExecDatamaskResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ManualTriggerMaskingProcess ManualTriggerMaskingProcessRequest
* @return ManualTriggerMaskingProcessResponse
*/
@Override
public CompletableFuture<ManualTriggerMaskingProcessResponse> manualTriggerMaskingProcess(ManualTriggerMaskingProcessRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ManualTriggerMaskingProcess").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ManualTriggerMaskingProcessResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ManualTriggerMaskingProcessResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ModifyDataLimit ModifyDataLimitRequest
* @return ModifyDataLimitResponse
*/
@Override
public CompletableFuture<ModifyDataLimitResponse> modifyDataLimit(ModifyDataLimitRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyDataLimit").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyDataLimitResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ModifyDataLimitResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to modify the sensitivity levels of data. This helps you manage the sensitivity levels.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of ModifyDefaultLevel ModifyDefaultLevelRequest
* @return ModifyDefaultLevelResponse
*/
@Override
public CompletableFuture<ModifyDefaultLevelResponse> modifyDefaultLevel(ModifyDefaultLevelRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyDefaultLevel").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyDefaultLevelResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ModifyDefaultLevelResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to handle anomalous events that involve data leaks. This helps protect your data assets at the earliest opportunity.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of ModifyEventStatus ModifyEventStatusRequest
* @return ModifyEventStatusResponse
*/
@Override
public CompletableFuture<ModifyEventStatusResponse> modifyEventStatus(ModifyEventStatusRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyEventStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyEventStatusResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ModifyEventStatusResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ModifyEventTypeStatus ModifyEventTypeStatusRequest
* @return ModifyEventTypeStatusResponse
*/
@Override
public CompletableFuture<ModifyEventTypeStatusResponse> modifyEventTypeStatus(ModifyEventTypeStatusRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyEventTypeStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyEventTypeStatusResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ModifyEventTypeStatusResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to enable or disable the report task. After you activate Data Security Center (DSC), the report task is enabled by default. After you disable the report task, you cannot view statistics that are newly generated in the Report Center module, on the Overview page of the Cloud Native Data Audit module, and in the Data security lab module. Existing statistics are not affected.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of ModifyReportTaskStatus ModifyReportTaskStatusRequest
* @return ModifyReportTaskStatusResponse
*/
@Override
public CompletableFuture<ModifyReportTaskStatusResponse> modifyReportTaskStatus(ModifyReportTaskStatusRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyReportTaskStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyReportTaskStatusResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ModifyReportTaskStatusResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>When you call this operation, you must configure request parameters to specify the rule name, rule ID, and rule content.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of ModifyRule ModifyRuleRequest
* @return ModifyRuleResponse
*/
@Override
public CompletableFuture<ModifyRuleResponse> modifyRule(ModifyRuleRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyRule").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyRuleResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ModifyRuleResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ModifyRuleStatus ModifyRuleStatusRequest
* @return ModifyRuleStatusResponse
*/
@Override
public CompletableFuture<ModifyRuleStatusResponse> modifyRuleStatus(ModifyRuleStatusRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyRuleStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyRuleStatusResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ModifyRuleStatusResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Prerequisites</h3>
* <p>To call this operation, make sure that asset authorization for your OSS bucket is complete and the bucket is connected. If the authorization is not complete, the bucket_not_authorized error code is returned when you call the operation.</p>
* <h3><a href="#qps-"></a>Limits</h3>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
* <h3><a href="#"></a>Additional information</h3>
* <p>After you call this operation, you can obtain the task ID. You can specify the task ID in the DescribeIdentifyTaskDetail operation to query the state of the task.
* After the task is complete, you can call the DescribeOssObjectDetailV2 operation to query the identification results of sensitive data in the related OSS objects. When you call the DescribeOssObjectDetailV2 operation, you must specify BucketName, ServiceRegionId, and ObjectKey.</p>
*
* @param request the request parameters of ScanOssObjectV1 ScanOssObjectV1Request
* @return ScanOssObjectV1Response
*/
@Override
public CompletableFuture<ScanOssObjectV1Response> scanOssObjectV1(ScanOssObjectV1Request request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ScanOssObjectV1").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ScanOssObjectV1Response.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ScanOssObjectV1Response> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to stop a de-identification task that is running. For example, you can stop a de-identification task that is used to de-identify specific data.</p>
* <h1>Limits</h1>
* <p>You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>
*
* @param request the request parameters of StopMaskingProcess StopMaskingProcessRequest
* @return StopMaskingProcessResponse
*/
@Override
public CompletableFuture<StopMaskingProcessResponse> stopMaskingProcess(StopMaskingProcessRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StopMaskingProcess").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopMaskingProcessResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StopMaskingProcessResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/DefaultAsyncClientBuilder.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103;
import com.aliyun.sdk.gateway.pop.BaseClientBuilder;
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
@Override
protected String serviceName() {
return "sddp20190103";
}
@Override
protected final AsyncClient buildClient() {
return new DefaultAsyncClient(super.applyClientConfiguration());
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateConfigRequest} extends {@link RequestModel}
*
* <p>CreateConfigRequest</p>
*/
public class CreateConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private CreateConfigRequest(Builder builder) {
super(builder);
this.code = builder.code;
this.description = builder.description;
this.featureType = builder.featureType;
this.lang = builder.lang;
this.sourceIp = builder.sourceIp;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static CreateConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder extends Request.Builder<CreateConfigRequest, Builder> {
private String code;
private String description;
private Integer featureType;
private String lang;
private String sourceIp;
private String value;
private Builder() {
super();
}
private Builder(CreateConfigRequest request) {
super(request);
this.code = request.code;
this.description = request.description;
this.featureType = request.featureType;
this.lang = request.lang;
this.sourceIp = request.sourceIp;
this.value = request.value;
}
/**
* <p>The code of the common configuration item. Valid values:</p>
* <ul>
* <li><strong>access_failed_cnt</strong>: the maximum number of access attempts allowed when Data Security Center (DSC) fails to access an unauthorized resource.</li>
* <li><strong>access_permission_exprie_max_days</strong>: the maximum idle period allowed for access permissions before an alert is triggered.</li>
* <li><strong>log_datasize_avg_days</strong>: the minimum percentage of the volume of logs of a specific type generated on the current day to the average volume of logs generated in the previous 10 days before an alert is triggered.</li>
* </ul>
*
* <strong>example:</strong>
* <p>access_failed_cnt</p>
*/
public Builder code(String code) {
this.putQueryParameter("Code", code);
this.code = code;
return this;
}
/**
* <p>The description of the common configuration item.</p>
*
* <strong>example:</strong>
* <p>Maximum number of access attempts allowed when DSC fails to access an unauthorized resource: 10</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>39.170.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The value of the common configuration item. The meaning of this parameter varies with the value of the Code parameter.</p>
* <ul>
* <li>If you set the Code parameter to <strong>access_failed_cnt</strong>, the Value parameter specifies the maximum number of access attempts allowed when DSC fails to access an unauthorized resource.</li>
* <li>If you set the Code parameter to <strong>access_permission_exprie_max_days</strong>, the Value parameter specifies the maximum idle period allowed for access permissions before an alert is triggered.</li>
* <li>If you set the Code parameter to <strong>log_datasize_avg_days</strong>, the Value parameter specifies the minimum percentage of the volume of logs of a specific type generated on the current day to the average amount of logs generated in the previous 10 days before an alert is triggered.</li>
* </ul>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder value(String value) {
this.putQueryParameter("Value", value);
this.value = value;
return this;
}
@Override
public CreateConfigRequest build() {
return new CreateConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateConfigResponse} extends {@link TeaModel}
*
* <p>CreateConfigResponse</p>
*/
public class CreateConfigResponse 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 CreateConfigResponseBody body;
private CreateConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateConfigResponse 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 CreateConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateConfigResponseBody body);
@Override
CreateConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateConfigResponse 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(CreateConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateConfigResponse build() {
return new CreateConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateConfigResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateConfigResponseBody} extends {@link TeaModel}
*
* <p>CreateConfigResponseBody</p>
*/
public class CreateConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateConfigResponseBody(Builder builder) {
this.id = builder.id;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Long id;
private String requestId;
private Builder() {
}
private Builder(CreateConfigResponseBody model) {
this.id = model.id;
this.requestId = model.requestId;
}
/**
* <p>The ID of the common alert configuration.</p>
*
* <strong>example:</strong>
* <p>12300</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>208B016D-4CB9-4A85-96A5-0B8ED1EBF271</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateConfigResponseBody build() {
return new CreateConfigResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateDataLimitRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDataLimitRequest} extends {@link RequestModel}
*
* <p>CreateDataLimitRequest</p>
*/
public class CreateDataLimitRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuditStatus")
private Integer auditStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoScan")
private Integer autoScan;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CertificatePermission")
private String certificatePermission;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Enable")
private Integer enable;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EngineType")
private String engineType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EventStatus")
private Integer eventStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstantlyScan")
private Boolean instantlyScan;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LogStoreDay")
private Integer logStoreDay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OcrStatus")
private Integer ocrStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParentId")
private String parentId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Password")
private String password;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
@com.aliyun.core.annotation.Validation(required = true)
private Integer resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SamplingSize")
private Integer samplingSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceRegionId")
private String serviceRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
private CreateDataLimitRequest(Builder builder) {
super(builder);
this.auditStatus = builder.auditStatus;
this.autoScan = builder.autoScan;
this.certificatePermission = builder.certificatePermission;
this.enable = builder.enable;
this.engineType = builder.engineType;
this.eventStatus = builder.eventStatus;
this.featureType = builder.featureType;
this.instantlyScan = builder.instantlyScan;
this.lang = builder.lang;
this.logStoreDay = builder.logStoreDay;
this.ocrStatus = builder.ocrStatus;
this.parentId = builder.parentId;
this.password = builder.password;
this.port = builder.port;
this.resourceType = builder.resourceType;
this.samplingSize = builder.samplingSize;
this.serviceRegionId = builder.serviceRegionId;
this.sourceIp = builder.sourceIp;
this.userName = builder.userName;
}
public static Builder builder() {
return new Builder();
}
public static CreateDataLimitRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return auditStatus
*/
public Integer getAuditStatus() {
return this.auditStatus;
}
/**
* @return autoScan
*/
public Integer getAutoScan() {
return this.autoScan;
}
/**
* @return certificatePermission
*/
public String getCertificatePermission() {
return this.certificatePermission;
}
/**
* @return enable
*/
public Integer getEnable() {
return this.enable;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return eventStatus
*/
public Integer getEventStatus() {
return this.eventStatus;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return instantlyScan
*/
public Boolean getInstantlyScan() {
return this.instantlyScan;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return logStoreDay
*/
public Integer getLogStoreDay() {
return this.logStoreDay;
}
/**
* @return ocrStatus
*/
public Integer getOcrStatus() {
return this.ocrStatus;
}
/**
* @return parentId
*/
public String getParentId() {
return this.parentId;
}
/**
* @return password
*/
public String getPassword() {
return this.password;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return resourceType
*/
public Integer getResourceType() {
return this.resourceType;
}
/**
* @return samplingSize
*/
public Integer getSamplingSize() {
return this.samplingSize;
}
/**
* @return serviceRegionId
*/
public String getServiceRegionId() {
return this.serviceRegionId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
public static final class Builder extends Request.Builder<CreateDataLimitRequest, Builder> {
private Integer auditStatus;
private Integer autoScan;
private String certificatePermission;
private Integer enable;
private String engineType;
private Integer eventStatus;
private Integer featureType;
private Boolean instantlyScan;
private String lang;
private Integer logStoreDay;
private Integer ocrStatus;
private String parentId;
private String password;
private Integer port;
private Integer resourceType;
private Integer samplingSize;
private String serviceRegionId;
private String sourceIp;
private String userName;
private Builder() {
super();
}
private Builder(CreateDataLimitRequest request) {
super(request);
this.auditStatus = request.auditStatus;
this.autoScan = request.autoScan;
this.certificatePermission = request.certificatePermission;
this.enable = request.enable;
this.engineType = request.engineType;
this.eventStatus = request.eventStatus;
this.featureType = request.featureType;
this.instantlyScan = request.instantlyScan;
this.lang = request.lang;
this.logStoreDay = request.logStoreDay;
this.ocrStatus = request.ocrStatus;
this.parentId = request.parentId;
this.password = request.password;
this.port = request.port;
this.resourceType = request.resourceType;
this.samplingSize = request.samplingSize;
this.serviceRegionId = request.serviceRegionId;
this.sourceIp = request.sourceIp;
this.userName = request.userName;
}
/**
* <p>Specifies whether to enable the security audit feature. 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 auditStatus(Integer auditStatus) {
this.putQueryParameter("AuditStatus", auditStatus);
this.auditStatus = auditStatus;
return this;
}
/**
* <p>Specifies whether to automatically trigger a re-scan after a rule is modified. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
* <blockquote>
* <p>When a re-scan is triggered, DSC scans all data in your data asset.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder autoScan(Integer autoScan) {
this.putQueryParameter("AutoScan", autoScan);
this.autoScan = autoScan;
return this;
}
/**
* <p>The permissions. Valid values:</p>
* <ul>
* <li><strong>ReadOnly</strong>: read-only permissions</li>
* <li><strong>ReadWrite</strong>: read and write permissions</li>
* </ul>
*
* <strong>example:</strong>
* <p>ReadOnly</p>
*/
public Builder certificatePermission(String certificatePermission) {
this.putQueryParameter("CertificatePermission", certificatePermission);
this.certificatePermission = certificatePermission;
return this;
}
/**
* <p>Specifies whether to enable sensitive data detection. Valid values:</p>
* <ul>
* <li><strong>1</strong>: yes</li>
* <li><strong>0</strong>: no</li>
* </ul>
* <blockquote>
* <p>If this is your first time to authorize DSC to access the data asset, the default value is 1. If this is not your first time to authorize DSC to access the data asset, the default value is the same as that used in the last authorization operation. Both 1 and 0 are possible.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder enable(Integer enable) {
this.putQueryParameter("Enable", enable);
this.enable = enable;
return this;
}
/**
* <p>The database engine that is run by the instance. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.putQueryParameter("EngineType", engineType);
this.engineType = engineType;
return this;
}
/**
* <p>Specifies whether to enable anomalous event detection. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder eventStatus(Integer eventStatus) {
this.putQueryParameter("EventStatus", eventStatus);
this.eventStatus = eventStatus;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>Specifies whether to immediately scan the authorized asset. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder instantlyScan(Boolean instantlyScan) {
this.putQueryParameter("InstantlyScan", instantlyScan);
this.instantlyScan = instantlyScan;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The retention period of raw logs after you enable the security audit feature. Unit: days. Valid values:</p>
* <ul>
* <li><strong>30</strong></li>
* <li><strong>90</strong></li>
* <li><strong>180</strong></li>
* <li><strong>365</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder logStoreDay(Integer logStoreDay) {
this.putQueryParameter("LogStoreDay", logStoreDay);
this.logStoreDay = logStoreDay;
return this;
}
/**
* <p>Specifies whether to enable optical character recognition (OCR). Valid values:</p>
* <ul>
* <li><strong>1</strong>: yes</li>
* <li><strong>0</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder ocrStatus(Integer ocrStatus) {
this.putQueryParameter("OcrStatus", ocrStatus);
this.ocrStatus = ocrStatus;
return this;
}
/**
* <p>The name of the asset. The value is a connection string. It consists of an instance ID and a database name, which are separated by a comma (,). This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-11**</p>
*/
public Builder parentId(String parentId) {
this.putQueryParameter("ParentId", parentId);
this.parentId = parentId;
return this;
}
/**
* <p>The password that is used to access the database.</p>
*
* <strong>example:</strong>
* <p>passwd</p>
*/
public Builder password(String password) {
this.putQueryParameter("Password", password);
this.password = password;
return this;
}
/**
* <p>The port that is used to connect to the database.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(Integer port) {
this.putQueryParameter("Port", port);
this.port = port;
return this;
}
/**
* <p>The type of service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong> :MaxCompute</li>
* <li><strong>2</strong>: Object Storage Service (OSS)</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong> :Tablestore</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder resourceType(Integer resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The number of sensitive data samples that are collected after sensitive data detection is enabled. Valid values:</p>
* <ul>
* <li><strong>0</strong></li>
* <li><strong>5</strong></li>
* <li><strong>10</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder samplingSize(Integer samplingSize) {
this.putQueryParameter("SamplingSize", samplingSize);
this.samplingSize = samplingSize;
return this;
}
/**
* <p>The region in which the data asset resides. Valid values:</p>
* <ul>
* <li><strong>cn-beijing</strong>: China (Beijing).</li>
* <li><strong>cn-zhangjiakou</strong>: China (Zhangjiakou)</li>
* <li><strong>cn-huhehaote</strong>: China (Hohhot)</li>
* <li><strong>cn-hangzhou</strong>: China (Hangzhou)</li>
* <li><strong>cn-shanghai</strong>: China (Shanghai)</li>
* <li><strong>cn-shenzhen</strong>: China (Shenzhen)</li>
* <li><strong>cn-hongkong</strong>: China (Hong Kong)</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder serviceRegionId(String serviceRegionId) {
this.putQueryParameter("ServiceRegionId", serviceRegionId);
this.serviceRegionId = serviceRegionId;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>39.170.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The username that is used to access the database.</p>
*
* <strong>example:</strong>
* <p>yhm</p>
*/
public Builder userName(String userName) {
this.putQueryParameter("UserName", userName);
this.userName = userName;
return this;
}
@Override
public CreateDataLimitRequest build() {
return new CreateDataLimitRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateDataLimitResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDataLimitResponse} extends {@link TeaModel}
*
* <p>CreateDataLimitResponse</p>
*/
public class CreateDataLimitResponse 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 CreateDataLimitResponseBody body;
private CreateDataLimitResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDataLimitResponse 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 CreateDataLimitResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDataLimitResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDataLimitResponseBody body);
@Override
CreateDataLimitResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDataLimitResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDataLimitResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDataLimitResponse 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(CreateDataLimitResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDataLimitResponse build() {
return new CreateDataLimitResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateDataLimitResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDataLimitResponseBody} extends {@link TeaModel}
*
* <p>CreateDataLimitResponseBody</p>
*/
public class CreateDataLimitResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Integer id;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateDataLimitResponseBody(Builder builder) {
this.id = builder.id;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDataLimitResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Integer getId() {
return this.id;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer id;
private String requestId;
private Builder() {
}
private Builder(CreateDataLimitResponseBody model) {
this.id = model.id;
this.requestId = model.requestId;
}
/**
* <p>The ID of the data asset.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Integer id) {
this.id = id;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7C3AC882-E5A8-4855-BE77-B6837B695EF1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateDataLimitResponseBody build() {
return new CreateDataLimitResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateRuleRequest} extends {@link RequestModel}
*
* <p>CreateRuleRequest</p>
*/
public class CreateRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Category")
private Integer category;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Content")
@com.aliyun.core.annotation.Validation(required = true)
private String content;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContentCategory")
private Integer contentCategory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MatchType")
private Integer matchType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ModelRuleIds")
private String modelRuleIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleType")
private Integer ruleType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatExpress")
private String statExpress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SupportForm")
private Integer supportForm;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Target")
private String target;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateRuleIds")
private String templateRuleIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WarnLevel")
private Integer warnLevel;
private CreateRuleRequest(Builder builder) {
super(builder);
this.category = builder.category;
this.content = builder.content;
this.contentCategory = builder.contentCategory;
this.description = builder.description;
this.lang = builder.lang;
this.matchType = builder.matchType;
this.modelRuleIds = builder.modelRuleIds;
this.name = builder.name;
this.productCode = builder.productCode;
this.productId = builder.productId;
this.riskLevelId = builder.riskLevelId;
this.ruleType = builder.ruleType;
this.sourceIp = builder.sourceIp;
this.statExpress = builder.statExpress;
this.status = builder.status;
this.supportForm = builder.supportForm;
this.target = builder.target;
this.templateRuleIds = builder.templateRuleIds;
this.warnLevel = builder.warnLevel;
}
public static Builder builder() {
return new Builder();
}
public static CreateRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return category
*/
public Integer getCategory() {
return this.category;
}
/**
* @return content
*/
public String getContent() {
return this.content;
}
/**
* @return contentCategory
*/
public Integer getContentCategory() {
return this.contentCategory;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return matchType
*/
public Integer getMatchType() {
return this.matchType;
}
/**
* @return modelRuleIds
*/
public String getModelRuleIds() {
return this.modelRuleIds;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return ruleType
*/
public Integer getRuleType() {
return this.ruleType;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return statExpress
*/
public String getStatExpress() {
return this.statExpress;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return supportForm
*/
public Integer getSupportForm() {
return this.supportForm;
}
/**
* @return target
*/
public String getTarget() {
return this.target;
}
/**
* @return templateRuleIds
*/
public String getTemplateRuleIds() {
return this.templateRuleIds;
}
/**
* @return warnLevel
*/
public Integer getWarnLevel() {
return this.warnLevel;
}
public static final class Builder extends Request.Builder<CreateRuleRequest, Builder> {
private Integer category;
private String content;
private Integer contentCategory;
private String description;
private String lang;
private Integer matchType;
private String modelRuleIds;
private String name;
private String productCode;
private Long productId;
private Long riskLevelId;
private Integer ruleType;
private String sourceIp;
private String statExpress;
private Integer status;
private Integer supportForm;
private String target;
private String templateRuleIds;
private Integer warnLevel;
private Builder() {
super();
}
private Builder(CreateRuleRequest request) {
super(request);
this.category = request.category;
this.content = request.content;
this.contentCategory = request.contentCategory;
this.description = request.description;
this.lang = request.lang;
this.matchType = request.matchType;
this.modelRuleIds = request.modelRuleIds;
this.name = request.name;
this.productCode = request.productCode;
this.productId = request.productId;
this.riskLevelId = request.riskLevelId;
this.ruleType = request.ruleType;
this.sourceIp = request.sourceIp;
this.statExpress = request.statExpress;
this.status = request.status;
this.supportForm = request.supportForm;
this.target = request.target;
this.templateRuleIds = request.templateRuleIds;
this.warnLevel = request.warnLevel;
}
/**
* <p>The content type of the sensitive data detection rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: keyword</li>
* <li><strong>2</strong>: regular expression</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder category(Integer category) {
this.putQueryParameter("Category", category);
this.category = category;
return this;
}
/**
* <p>The content of the sensitive data detection rule. You can specify a regular expression or keywords that are used to match sensitive fields or text.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>(?:\D|^)((?:(?:25[0-4]|2[0-4]\d|1\d{2}|[1-9]\d{1})\.)(?:(?:25[0-5]|2[0-4]\d|[01]?\d?\d)\.){2}(?:25[0-5]|2[0-4]\d|1[0-9]\d|[1-9]\d|[1-9]))(?:\D|$)</p>
*/
public Builder content(String content) {
this.putQueryParameter("Content", content);
this.content = content;
return this;
}
/**
* <p>The type of the content in the sensitive data detection rule. Valid values include <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates attempts to exploit SQL injections. The value 2 indicates bypass by using SQL injections. The value 3 indicates abuse of stored procedures. The value 4 indicates buffer overflow. The value 5 indicates SQL injections based on errors.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder contentCategory(Integer contentCategory) {
this.putQueryParameter("ContentCategory", contentCategory);
this.contentCategory = contentCategory;
return this;
}
/**
* <p>The description of the rule.</p>
*
* <strong>example:</strong>
* <p>ID card</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
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 match type. Valid values:</p>
* <ul>
* <li><strong>1</strong>: rule-based match</li>
* <li><strong>2</strong>: dictionary-based match</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder matchType(Integer matchType) {
this.putQueryParameter("MatchType", matchType);
this.matchType = matchType;
return this;
}
/**
* <p>The IDs of the models for sensitive data audit.</p>
*
* <strong>example:</strong>
* <p>1452</p>
*/
public Builder modelRuleIds(String modelRuleIds) {
this.putQueryParameter("ModelRuleIds", modelRuleIds);
this.modelRuleIds = modelRuleIds;
return this;
}
/**
* <p>The name of the sensitive data detection rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rule-tst</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The name of the service to which data in the column of the table belongs. Valid values include <strong>MaxCompute</strong>, <strong>OSS</strong>, <strong>ADS</strong>, <strong>OTS</strong>, and <strong>RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder productCode(String productCode) {
this.putQueryParameter("ProductCode", productCode);
this.productCode = productCode;
return this;
}
/**
* <p>The ID of the service to which the data asset belongs. Valid values include <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates Object Storage Service (OSS). The value 3 indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder productId(Long productId) {
this.putQueryParameter("ProductId", productId);
this.productId = productId;
return this;
}
/**
* <p>The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: N/A, which indicates that no sensitive data is detected.</li>
* <li><strong>2</strong>: S1, which indicates the low sensitivity level.</li>
* <li><strong>3</strong>: S2, which indicates the medium sensitivity level.</li>
* <li><strong>4</strong>: S3, which indicates the high sensitivity level.</li>
* <li><strong>5</strong>: S4, which indicates the highest sensitivity level.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.putQueryParameter("RiskLevelId", riskLevelId);
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>The type of the sensitive data detection rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: sensitive data detection rule</li>
* <li><strong>2</strong>: audit rule</li>
* <li><strong>3</strong>: anomalous event detection rule</li>
* <li><strong>99</strong>: custom rule</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ruleType(Integer ruleType) {
this.putQueryParameter("RuleType", ruleType);
this.ruleType = ruleType;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>39.170.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The statistical expression.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder statExpress(String statExpress) {
this.putQueryParameter("StatExpress", statExpress);
this.statExpress = statExpress;
return this;
}
/**
* <p>Specifies whether to enable the sensitive data detection rule. 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 status(Integer status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The type of the data asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: all data assets</li>
* <li><strong>1</strong>: structured data asset</li>
* <li><strong>2</strong>: unstructured data asset</li>
* </ul>
* <blockquote>
* <p>If you set the parameter to 1 or 2, rules that support all data assets and rules that support the queried data asset type are returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder supportForm(Integer supportForm) {
this.putQueryParameter("SupportForm", supportForm);
this.supportForm = supportForm;
return this;
}
/**
* <p>The code of the service to which the sensitive data detection rule is applied. Valid values include <strong>MaxCompute</strong>, <strong>OSS</strong>, <strong>ADS</strong>, <strong>OTS</strong>, and <strong>RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>MaxCompute</p>
*/
public Builder target(String target) {
this.putQueryParameter("Target", target);
this.target = target;
return this;
}
/**
* <p>The IDs of the templates that are used to audit sensitive data.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder templateRuleIds(String templateRuleIds) {
this.putQueryParameter("TemplateRuleIds", templateRuleIds);
this.templateRuleIds = templateRuleIds;
return this;
}
/**
* <p>The risk level of the alert that is triggered. Valid values:</p>
* <ul>
* <li><strong>1</strong>: low</li>
* <li><strong>2</strong>: medium</li>
* <li><strong>3</strong>: high</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder warnLevel(Integer warnLevel) {
this.putQueryParameter("WarnLevel", warnLevel);
this.warnLevel = warnLevel;
return this;
}
@Override
public CreateRuleRequest build() {
return new CreateRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateRuleResponse} extends {@link TeaModel}
*
* <p>CreateRuleResponse</p>
*/
public class CreateRuleResponse 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 CreateRuleResponseBody body;
private CreateRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateRuleResponse 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 CreateRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateRuleResponseBody body);
@Override
CreateRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateRuleResponse 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(CreateRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateRuleResponse build() {
return new CreateRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateRuleResponseBody</p>
*/
public class CreateRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Integer id;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateRuleResponseBody(Builder builder) {
this.id = builder.id;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Integer getId() {
return this.id;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer id;
private String requestId;
private Builder() {
}
private Builder(CreateRuleResponseBody model) {
this.id = model.id;
this.requestId = model.requestId;
}
/**
* <p>The unique ID of the sensitive data detection rule.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Integer id) {
this.id = id;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>208B016D-4CB9-4A85-96A5-0B8ED1EBF271</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateRuleResponseBody build() {
return new CreateRuleResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateScanTaskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateScanTaskRequest} extends {@link RequestModel}
*
* <p>CreateScanTaskRequest</p>
*/
public class CreateScanTaskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DataLimitId")
@com.aliyun.core.annotation.Validation(required = true)
private Long dataLimitId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IntervalDay")
@com.aliyun.core.annotation.Validation(required = true)
private Integer intervalDay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OssScanPath")
private String ossScanPath;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
@com.aliyun.core.annotation.Validation(required = true)
private Long resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RunHour")
@com.aliyun.core.annotation.Validation(required = true)
private Integer runHour;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RunMinute")
@com.aliyun.core.annotation.Validation(required = true)
private Integer runMinute;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScanRange")
@com.aliyun.core.annotation.Validation(required = true)
private Integer scanRange;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScanRangeContent")
@com.aliyun.core.annotation.Validation(required = true)
private String scanRangeContent;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskName")
@com.aliyun.core.annotation.Validation(required = true)
private String taskName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskUserName")
private String taskUserName;
private CreateScanTaskRequest(Builder builder) {
super(builder);
this.dataLimitId = builder.dataLimitId;
this.featureType = builder.featureType;
this.intervalDay = builder.intervalDay;
this.lang = builder.lang;
this.ossScanPath = builder.ossScanPath;
this.resourceType = builder.resourceType;
this.runHour = builder.runHour;
this.runMinute = builder.runMinute;
this.scanRange = builder.scanRange;
this.scanRangeContent = builder.scanRangeContent;
this.sourceIp = builder.sourceIp;
this.taskName = builder.taskName;
this.taskUserName = builder.taskUserName;
}
public static Builder builder() {
return new Builder();
}
public static CreateScanTaskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dataLimitId
*/
public Long getDataLimitId() {
return this.dataLimitId;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return intervalDay
*/
public Integer getIntervalDay() {
return this.intervalDay;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return ossScanPath
*/
public String getOssScanPath() {
return this.ossScanPath;
}
/**
* @return resourceType
*/
public Long getResourceType() {
return this.resourceType;
}
/**
* @return runHour
*/
public Integer getRunHour() {
return this.runHour;
}
/**
* @return runMinute
*/
public Integer getRunMinute() {
return this.runMinute;
}
/**
* @return scanRange
*/
public Integer getScanRange() {
return this.scanRange;
}
/**
* @return scanRangeContent
*/
public String getScanRangeContent() {
return this.scanRangeContent;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
/**
* @return taskUserName
*/
public String getTaskUserName() {
return this.taskUserName;
}
public static final class Builder extends Request.Builder<CreateScanTaskRequest, Builder> {
private Long dataLimitId;
private Integer featureType;
private Integer intervalDay;
private String lang;
private String ossScanPath;
private Long resourceType;
private Integer runHour;
private Integer runMinute;
private Integer scanRange;
private String scanRangeContent;
private String sourceIp;
private String taskName;
private String taskUserName;
private Builder() {
super();
}
private Builder(CreateScanTaskRequest request) {
super(request);
this.dataLimitId = request.dataLimitId;
this.featureType = request.featureType;
this.intervalDay = request.intervalDay;
this.lang = request.lang;
this.ossScanPath = request.ossScanPath;
this.resourceType = request.resourceType;
this.runHour = request.runHour;
this.runMinute = request.runMinute;
this.scanRange = request.scanRange;
this.scanRangeContent = request.scanRangeContent;
this.sourceIp = request.sourceIp;
this.taskName = request.taskName;
this.taskUserName = request.taskUserName;
}
/**
* <p>The unique ID of the data asset, such as an instance, a database, and a bucket. You can call the <a href="~~DescribeDataLimits~~">DescribeDataLimits</a> operation to query the unique ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder dataLimitId(Long dataLimitId) {
this.putQueryParameter("DataLimitId", dataLimitId);
this.dataLimitId = dataLimitId;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>The interval between two consecutive custom scan tasks. Unit: days. Valid values: 1 to 2147483648.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder intervalDay(Integer intervalDay) {
this.putQueryParameter("IntervalDay", intervalDay);
this.intervalDay = intervalDay;
return this;
}
/**
* <p>The language of the content within the request and response.</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 data to be scanned in the Object Storage Service (OSS) bucket. Prefix match, suffix match, and regular expression match are supported.</p>
*
* <strong>example:</strong>
* <p>/test/test</p>
*/
public Builder ossScanPath(String ossScanPath) {
this.putQueryParameter("OssScanPath", ossScanPath);
this.ossScanPath = ossScanPath;
return this;
}
/**
* <p>The type of the service to which the data assets to be scanned belong. Valid values include <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates OSS. The value 3 indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder resourceType(Long resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The time when the scan task is executed next time. Unit: hours.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder runHour(Integer runHour) {
this.putQueryParameter("RunHour", runHour);
this.runHour = runHour;
return this;
}
/**
* <p>The time when the scan task is executed next time. Unit: minutes.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder runMinute(Integer runMinute) {
this.putQueryParameter("RunMinute", runMinute);
this.runMinute = runMinute;
return this;
}
/**
* <p>The matching rule that specifies the scan scope of the custom scan task. This parameter takes effect only if you set the <strong>ScanRangeContent</strong> parameter. Valid values:</p>
* <ul>
* <li><strong>0</strong>: exact match</li>
* <li><strong>1</strong>: prefix match</li>
* <li><strong>2</strong>: suffix match</li>
* <li><strong>3</strong>: regular expression match</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder scanRange(Integer scanRange) {
this.putQueryParameter("ScanRange", scanRange);
this.scanRange = scanRange;
return this;
}
/**
* <p>The data to be scanned in a structured data asset. Prefix match, suffix match, and regular expression match are supported.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>datamask/</p>
*/
public Builder scanRangeContent(String scanRangeContent) {
this.putQueryParameter("ScanRangeContent", scanRangeContent);
this.scanRangeContent = scanRangeContent;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>39.170.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The name of the scan task.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>scan-test-sample****</p>
*/
public Builder taskName(String taskName) {
this.putQueryParameter("TaskName", taskName);
this.taskName = taskName;
return this;
}
/**
* <p>The account that is used to create the scan task.</p>
*
* <strong>example:</strong>
* <p>demo</p>
*/
public Builder taskUserName(String taskUserName) {
this.putQueryParameter("TaskUserName", taskUserName);
this.taskUserName = taskUserName;
return this;
}
@Override
public CreateScanTaskRequest build() {
return new CreateScanTaskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateScanTaskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateScanTaskResponse} extends {@link TeaModel}
*
* <p>CreateScanTaskResponse</p>
*/
public class CreateScanTaskResponse 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 CreateScanTaskResponseBody body;
private CreateScanTaskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateScanTaskResponse 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 CreateScanTaskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateScanTaskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateScanTaskResponseBody body);
@Override
CreateScanTaskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateScanTaskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateScanTaskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateScanTaskResponse 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(CreateScanTaskResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateScanTaskResponse build() {
return new CreateScanTaskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateScanTaskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateScanTaskResponseBody} extends {@link TeaModel}
*
* <p>CreateScanTaskResponseBody</p>
*/
public class CreateScanTaskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Integer id;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateScanTaskResponseBody(Builder builder) {
this.id = builder.id;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateScanTaskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return id
*/
public Integer getId() {
return this.id;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer id;
private String requestId;
private Builder() {
}
private Builder(CreateScanTaskResponseBody model) {
this.id = model.id;
this.requestId = model.requestId;
}
/**
* <p>The ID of the custom scan task.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder id(Integer id) {
this.id = id;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>B1F2BB1F-04EC-5D36-B136-B4DE17FD8DE0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateScanTaskResponseBody build() {
return new CreateScanTaskResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateSlrRoleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateSlrRoleRequest} extends {@link RequestModel}
*
* <p>CreateSlrRoleRequest</p>
*/
public class CreateSlrRoleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private CreateSlrRoleRequest(Builder builder) {
super(builder);
this.featureType = builder.featureType;
this.lang = builder.lang;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static CreateSlrRoleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<CreateSlrRoleRequest, Builder> {
private Integer featureType;
private String lang;
private String sourceIp;
private Builder() {
super();
}
private Builder(CreateSlrRoleRequest request) {
super(request);
this.featureType = request.featureType;
this.lang = request.lang;
this.sourceIp = request.sourceIp;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Simplified Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>39.170.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public CreateSlrRoleRequest build() {
return new CreateSlrRoleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateSlrRoleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateSlrRoleResponse} extends {@link TeaModel}
*
* <p>CreateSlrRoleResponse</p>
*/
public class CreateSlrRoleResponse 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 CreateSlrRoleResponseBody body;
private CreateSlrRoleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateSlrRoleResponse 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 CreateSlrRoleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateSlrRoleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateSlrRoleResponseBody body);
@Override
CreateSlrRoleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSlrRoleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateSlrRoleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSlrRoleResponse 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(CreateSlrRoleResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateSlrRoleResponse build() {
return new CreateSlrRoleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/CreateSlrRoleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateSlrRoleResponseBody} extends {@link TeaModel}
*
* <p>CreateSlrRoleResponseBody</p>
*/
public class CreateSlrRoleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HasPermission")
private Boolean hasPermission;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateSlrRoleResponseBody(Builder builder) {
this.hasPermission = builder.hasPermission;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateSlrRoleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hasPermission
*/
public Boolean getHasPermission() {
return this.hasPermission;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Boolean hasPermission;
private String requestId;
private Builder() {
}
private Builder(CreateSlrRoleResponseBody model) {
this.hasPermission = model.hasPermission;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the service-linked role was created. 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 hasPermission(Boolean hasPermission) {
this.hasPermission = hasPermission;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>208B016D-4CB9-4A85-96A5-0B8ED1EBF271</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateSlrRoleResponseBody build() {
return new CreateSlrRoleResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DeleteDataLimitRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteDataLimitRequest} extends {@link RequestModel}
*
* <p>DeleteDataLimitRequest</p>
*/
public class DeleteDataLimitRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private Long id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DeleteDataLimitRequest(Builder builder) {
super(builder);
this.featureType = builder.featureType;
this.id = builder.id;
this.lang = builder.lang;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DeleteDataLimitRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DeleteDataLimitRequest, Builder> {
private Integer featureType;
private Long id;
private String lang;
private String sourceIp;
private Builder() {
super();
}
private Builder(DeleteDataLimitRequest request) {
super(request);
this.featureType = request.featureType;
this.id = request.id;
this.lang = request.lang;
this.sourceIp = request.sourceIp;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>The ID of the data asset.</p>
* <p>You can call the DescribeDataLimits operation to query the IDs of data assets. The value of the Id response parameter indicates the ID of a data asset.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>12033</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>39.170.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DeleteDataLimitRequest build() {
return new DeleteDataLimitRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DeleteDataLimitResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteDataLimitResponse} extends {@link TeaModel}
*
* <p>DeleteDataLimitResponse</p>
*/
public class DeleteDataLimitResponse 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 DeleteDataLimitResponseBody body;
private DeleteDataLimitResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteDataLimitResponse 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 DeleteDataLimitResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteDataLimitResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteDataLimitResponseBody body);
@Override
DeleteDataLimitResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteDataLimitResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteDataLimitResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteDataLimitResponse 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(DeleteDataLimitResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteDataLimitResponse build() {
return new DeleteDataLimitResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DeleteDataLimitResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteDataLimitResponseBody} extends {@link TeaModel}
*
* <p>DeleteDataLimitResponseBody</p>
*/
public class DeleteDataLimitResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteDataLimitResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteDataLimitResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(DeleteDataLimitResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7C3AC882-E5A8-4855-BE77-B6837B695EF1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteDataLimitResponseBody build() {
return new DeleteDataLimitResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DeleteRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRuleRequest} extends {@link RequestModel}
*
* <p>DeleteRuleRequest</p>
*/
public class DeleteRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private Long id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DeleteRuleRequest(Builder builder) {
super(builder);
this.featureType = builder.featureType;
this.id = builder.id;
this.lang = builder.lang;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DeleteRuleRequest, Builder> {
private Integer featureType;
private Long id;
private String lang;
private String sourceIp;
private Builder() {
super();
}
private Builder(DeleteRuleRequest request) {
super(request);
this.featureType = request.featureType;
this.id = request.id;
this.lang = request.lang;
this.sourceIp = request.sourceIp;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>The ID of the sensitive data detection rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>122300</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: <strong>zh</strong> and <strong>en</strong>. The value zh indicates Chinese, and the value en indicates English.</p>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>39.170.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DeleteRuleRequest build() {
return new DeleteRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DeleteRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRuleResponse} extends {@link TeaModel}
*
* <p>DeleteRuleResponse</p>
*/
public class DeleteRuleResponse 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 DeleteRuleResponseBody body;
private DeleteRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteRuleResponse 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 DeleteRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteRuleResponseBody body);
@Override
DeleteRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteRuleResponse 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(DeleteRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteRuleResponse build() {
return new DeleteRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DeleteRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRuleResponseBody} extends {@link TeaModel}
*
* <p>DeleteRuleResponseBody</p>
*/
public class DeleteRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteRuleResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(DeleteRuleResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7C3AC882-E5A8-4855-BE77-B6837B6*****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteRuleResponseBody build() {
return new DeleteRuleResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeAuditLogsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeAuditLogsRequest} extends {@link RequestModel}
*
* <p>DescribeAuditLogsRequest</p>
*/
public class DescribeAuditLogsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AsyncRequestId")
private String asyncRequestId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientIp")
private String clientIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientUa")
private String clientUa;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseName")
private String databaseName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EffectRowRange")
private String effectRowRange;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ExecuteTimeRange")
private String executeTimeRange;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpType")
private String ipType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadWhiteList")
private Boolean loadWhiteList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MemberAccount")
private String memberAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OperateType")
private String operateType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OssObjectKey")
private String ossObjectKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleCategory")
private String ruleCategory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleID")
private String ruleID;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SqlText")
private String sqlText;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
private DescribeAuditLogsRequest(Builder builder) {
super(builder);
this.asyncRequestId = builder.asyncRequestId;
this.clientIp = builder.clientIp;
this.clientUa = builder.clientUa;
this.currentPage = builder.currentPage;
this.databaseName = builder.databaseName;
this.effectRowRange = builder.effectRowRange;
this.endTime = builder.endTime;
this.executeTimeRange = builder.executeTimeRange;
this.instanceName = builder.instanceName;
this.ipType = builder.ipType;
this.lang = builder.lang;
this.loadWhiteList = builder.loadWhiteList;
this.memberAccount = builder.memberAccount;
this.message = builder.message;
this.operateType = builder.operateType;
this.ossObjectKey = builder.ossObjectKey;
this.pageSize = builder.pageSize;
this.productCode = builder.productCode;
this.productId = builder.productId;
this.ruleCategory = builder.ruleCategory;
this.ruleID = builder.ruleID;
this.ruleName = builder.ruleName;
this.sqlText = builder.sqlText;
this.startTime = builder.startTime;
this.userName = builder.userName;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAuditLogsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return asyncRequestId
*/
public String getAsyncRequestId() {
return this.asyncRequestId;
}
/**
* @return clientIp
*/
public String getClientIp() {
return this.clientIp;
}
/**
* @return clientUa
*/
public String getClientUa() {
return this.clientUa;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return databaseName
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
* @return effectRowRange
*/
public String getEffectRowRange() {
return this.effectRowRange;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return executeTimeRange
*/
public String getExecuteTimeRange() {
return this.executeTimeRange;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return ipType
*/
public String getIpType() {
return this.ipType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return loadWhiteList
*/
public Boolean getLoadWhiteList() {
return this.loadWhiteList;
}
/**
* @return memberAccount
*/
public String getMemberAccount() {
return this.memberAccount;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return operateType
*/
public String getOperateType() {
return this.operateType;
}
/**
* @return ossObjectKey
*/
public String getOssObjectKey() {
return this.ossObjectKey;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return ruleCategory
*/
public String getRuleCategory() {
return this.ruleCategory;
}
/**
* @return ruleID
*/
public String getRuleID() {
return this.ruleID;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return sqlText
*/
public String getSqlText() {
return this.sqlText;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
public static final class Builder extends Request.Builder<DescribeAuditLogsRequest, Builder> {
private String asyncRequestId;
private String clientIp;
private String clientUa;
private Integer currentPage;
private String databaseName;
private String effectRowRange;
private Long endTime;
private String executeTimeRange;
private String instanceName;
private String ipType;
private String lang;
private Boolean loadWhiteList;
private String memberAccount;
private String message;
private String operateType;
private String ossObjectKey;
private Integer pageSize;
private String productCode;
private Long productId;
private String ruleCategory;
private String ruleID;
private String ruleName;
private String sqlText;
private Long startTime;
private String userName;
private Builder() {
super();
}
private Builder(DescribeAuditLogsRequest request) {
super(request);
this.asyncRequestId = request.asyncRequestId;
this.clientIp = request.clientIp;
this.clientUa = request.clientUa;
this.currentPage = request.currentPage;
this.databaseName = request.databaseName;
this.effectRowRange = request.effectRowRange;
this.endTime = request.endTime;
this.executeTimeRange = request.executeTimeRange;
this.instanceName = request.instanceName;
this.ipType = request.ipType;
this.lang = request.lang;
this.loadWhiteList = request.loadWhiteList;
this.memberAccount = request.memberAccount;
this.message = request.message;
this.operateType = request.operateType;
this.ossObjectKey = request.ossObjectKey;
this.pageSize = request.pageSize;
this.productCode = request.productCode;
this.productId = request.productId;
this.ruleCategory = request.ruleCategory;
this.ruleID = request.ruleID;
this.ruleName = request.ruleName;
this.sqlText = request.sqlText;
this.startTime = request.startTime;
this.userName = request.userName;
}
/**
* AsyncRequestId.
*/
public Builder asyncRequestId(String asyncRequestId) {
this.putQueryParameter("AsyncRequestId", asyncRequestId);
this.asyncRequestId = asyncRequestId;
return this;
}
/**
* ClientIp.
*/
public Builder clientIp(String clientIp) {
this.putQueryParameter("ClientIp", clientIp);
this.clientIp = clientIp;
return this;
}
/**
* ClientUa.
*/
public Builder clientUa(String clientUa) {
this.putQueryParameter("ClientUa", clientUa);
this.clientUa = clientUa;
return this;
}
/**
* CurrentPage.
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* DatabaseName.
*/
public Builder databaseName(String databaseName) {
this.putQueryParameter("DatabaseName", databaseName);
this.databaseName = databaseName;
return this;
}
/**
* EffectRowRange.
*/
public Builder effectRowRange(String effectRowRange) {
this.putQueryParameter("EffectRowRange", effectRowRange);
this.effectRowRange = effectRowRange;
return this;
}
/**
* EndTime.
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* ExecuteTimeRange.
*/
public Builder executeTimeRange(String executeTimeRange) {
this.putQueryParameter("ExecuteTimeRange", executeTimeRange);
this.executeTimeRange = executeTimeRange;
return this;
}
/**
* InstanceName.
*/
public Builder instanceName(String instanceName) {
this.putQueryParameter("InstanceName", instanceName);
this.instanceName = instanceName;
return this;
}
/**
* IpType.
*/
public Builder ipType(String ipType) {
this.putQueryParameter("IpType", ipType);
this.ipType = ipType;
return this;
}
/**
* Lang.
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* LoadWhiteList.
*/
public Builder loadWhiteList(Boolean loadWhiteList) {
this.putQueryParameter("LoadWhiteList", loadWhiteList);
this.loadWhiteList = loadWhiteList;
return this;
}
/**
* MemberAccount.
*/
public Builder memberAccount(String memberAccount) {
this.putQueryParameter("MemberAccount", memberAccount);
this.memberAccount = memberAccount;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.putQueryParameter("Message", message);
this.message = message;
return this;
}
/**
* OperateType.
*/
public Builder operateType(String operateType) {
this.putQueryParameter("OperateType", operateType);
this.operateType = operateType;
return this;
}
/**
* OssObjectKey.
*/
public Builder ossObjectKey(String ossObjectKey) {
this.putQueryParameter("OssObjectKey", ossObjectKey);
this.ossObjectKey = ossObjectKey;
return this;
}
/**
* PageSize.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ProductCode.
*/
public Builder productCode(String productCode) {
this.putQueryParameter("ProductCode", productCode);
this.productCode = productCode;
return this;
}
/**
* ProductId.
*/
public Builder productId(Long productId) {
this.putQueryParameter("ProductId", productId);
this.productId = productId;
return this;
}
/**
* RuleCategory.
*/
public Builder ruleCategory(String ruleCategory) {
this.putQueryParameter("RuleCategory", ruleCategory);
this.ruleCategory = ruleCategory;
return this;
}
/**
* RuleID.
*/
public Builder ruleID(String ruleID) {
this.putQueryParameter("RuleID", ruleID);
this.ruleID = ruleID;
return this;
}
/**
* RuleName.
*/
public Builder ruleName(String ruleName) {
this.putQueryParameter("RuleName", ruleName);
this.ruleName = ruleName;
return this;
}
/**
* SqlText.
*/
public Builder sqlText(String sqlText) {
this.putQueryParameter("SqlText", sqlText);
this.sqlText = sqlText;
return this;
}
/**
* StartTime.
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* UserName.
*/
public Builder userName(String userName) {
this.putQueryParameter("UserName", userName);
this.userName = userName;
return this;
}
@Override
public DescribeAuditLogsRequest build() {
return new DescribeAuditLogsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeAuditLogsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeAuditLogsResponse} extends {@link TeaModel}
*
* <p>DescribeAuditLogsResponse</p>
*/
public class DescribeAuditLogsResponse 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 DescribeAuditLogsResponseBody body;
private DescribeAuditLogsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAuditLogsResponse 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 DescribeAuditLogsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAuditLogsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAuditLogsResponseBody body);
@Override
DescribeAuditLogsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAuditLogsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAuditLogsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAuditLogsResponse 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(DescribeAuditLogsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAuditLogsResponse build() {
return new DescribeAuditLogsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeAuditLogsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeAuditLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAuditLogsResponseBody</p>
*/
public class DescribeAuditLogsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AsyncRequestId")
private String asyncRequestId;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeAuditLogsResponseBody(Builder builder) {
this.asyncRequestId = builder.asyncRequestId;
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAuditLogsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return asyncRequestId
*/
public String getAsyncRequestId() {
return this.asyncRequestId;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private String asyncRequestId;
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeAuditLogsResponseBody model) {
this.asyncRequestId = model.asyncRequestId;
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* AsyncRequestId.
*/
public Builder asyncRequestId(String asyncRequestId) {
this.asyncRequestId = asyncRequestId;
return this;
}
/**
* CurrentPage.
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* Items.
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* PageSize.
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* TotalCount.
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeAuditLogsResponseBody build() {
return new DescribeAuditLogsResponseBody(this);
}
}
/**
*
* {@link DescribeAuditLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAuditLogsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClientIp")
private String clientIp;
@com.aliyun.core.annotation.NameInMap("ClientPort")
private String clientPort;
@com.aliyun.core.annotation.NameInMap("ClientUa")
private String clientUa;
@com.aliyun.core.annotation.NameInMap("ColumnName")
private String columnName;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private Long creationTime;
@com.aliyun.core.annotation.NameInMap("DataSet")
private String dataSet;
@com.aliyun.core.annotation.NameInMap("DatabaseName")
private String databaseName;
@com.aliyun.core.annotation.NameInMap("DbType")
private String dbType;
@com.aliyun.core.annotation.NameInMap("EffectRow")
private Long effectRow;
@com.aliyun.core.annotation.NameInMap("ExecuteStatus")
private Integer executeStatus;
@com.aliyun.core.annotation.NameInMap("ExecuteTime")
private Long executeTime;
@com.aliyun.core.annotation.NameInMap("InWhiteList")
private Boolean inWhiteList;
@com.aliyun.core.annotation.NameInMap("InstanceDescription")
private String instanceDescription;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("IpType")
private String ipType;
@com.aliyun.core.annotation.NameInMap("LogTime")
private Long logTime;
@com.aliyun.core.annotation.NameInMap("MemberAccount")
private String memberAccount;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("ModelName")
private String modelName;
@com.aliyun.core.annotation.NameInMap("OperateType")
private String operateType;
@com.aliyun.core.annotation.NameInMap("OssObjectKey")
private String ossObjectKey;
@com.aliyun.core.annotation.NameInMap("PackageName")
private String packageName;
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.NameInMap("RuleCategory")
private String ruleCategory;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("SqlText")
private String sqlText;
@com.aliyun.core.annotation.NameInMap("TableName")
private String tableName;
@com.aliyun.core.annotation.NameInMap("UserId")
private String userId;
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
@com.aliyun.core.annotation.NameInMap("WarnLevel")
private String warnLevel;
@com.aliyun.core.annotation.NameInMap("WarnLevelName")
private String warnLevelName;
private Items(Builder builder) {
this.clientIp = builder.clientIp;
this.clientPort = builder.clientPort;
this.clientUa = builder.clientUa;
this.columnName = builder.columnName;
this.creationTime = builder.creationTime;
this.dataSet = builder.dataSet;
this.databaseName = builder.databaseName;
this.dbType = builder.dbType;
this.effectRow = builder.effectRow;
this.executeStatus = builder.executeStatus;
this.executeTime = builder.executeTime;
this.inWhiteList = builder.inWhiteList;
this.instanceDescription = builder.instanceDescription;
this.instanceName = builder.instanceName;
this.ipType = builder.ipType;
this.logTime = builder.logTime;
this.memberAccount = builder.memberAccount;
this.message = builder.message;
this.modelName = builder.modelName;
this.operateType = builder.operateType;
this.ossObjectKey = builder.ossObjectKey;
this.packageName = builder.packageName;
this.productCode = builder.productCode;
this.productId = builder.productId;
this.ruleCategory = builder.ruleCategory;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.sqlText = builder.sqlText;
this.tableName = builder.tableName;
this.userId = builder.userId;
this.userName = builder.userName;
this.warnLevel = builder.warnLevel;
this.warnLevelName = builder.warnLevelName;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return clientIp
*/
public String getClientIp() {
return this.clientIp;
}
/**
* @return clientPort
*/
public String getClientPort() {
return this.clientPort;
}
/**
* @return clientUa
*/
public String getClientUa() {
return this.clientUa;
}
/**
* @return columnName
*/
public String getColumnName() {
return this.columnName;
}
/**
* @return creationTime
*/
public Long getCreationTime() {
return this.creationTime;
}
/**
* @return dataSet
*/
public String getDataSet() {
return this.dataSet;
}
/**
* @return databaseName
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
* @return dbType
*/
public String getDbType() {
return this.dbType;
}
/**
* @return effectRow
*/
public Long getEffectRow() {
return this.effectRow;
}
/**
* @return executeStatus
*/
public Integer getExecuteStatus() {
return this.executeStatus;
}
/**
* @return executeTime
*/
public Long getExecuteTime() {
return this.executeTime;
}
/**
* @return inWhiteList
*/
public Boolean getInWhiteList() {
return this.inWhiteList;
}
/**
* @return instanceDescription
*/
public String getInstanceDescription() {
return this.instanceDescription;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return ipType
*/
public String getIpType() {
return this.ipType;
}
/**
* @return logTime
*/
public Long getLogTime() {
return this.logTime;
}
/**
* @return memberAccount
*/
public String getMemberAccount() {
return this.memberAccount;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return modelName
*/
public String getModelName() {
return this.modelName;
}
/**
* @return operateType
*/
public String getOperateType() {
return this.operateType;
}
/**
* @return ossObjectKey
*/
public String getOssObjectKey() {
return this.ossObjectKey;
}
/**
* @return packageName
*/
public String getPackageName() {
return this.packageName;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return ruleCategory
*/
public String getRuleCategory() {
return this.ruleCategory;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return sqlText
*/
public String getSqlText() {
return this.sqlText;
}
/**
* @return tableName
*/
public String getTableName() {
return this.tableName;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
/**
* @return warnLevel
*/
public String getWarnLevel() {
return this.warnLevel;
}
/**
* @return warnLevelName
*/
public String getWarnLevelName() {
return this.warnLevelName;
}
public static final class Builder {
private String clientIp;
private String clientPort;
private String clientUa;
private String columnName;
private Long creationTime;
private String dataSet;
private String databaseName;
private String dbType;
private Long effectRow;
private Integer executeStatus;
private Long executeTime;
private Boolean inWhiteList;
private String instanceDescription;
private String instanceName;
private String ipType;
private Long logTime;
private String memberAccount;
private String message;
private String modelName;
private String operateType;
private String ossObjectKey;
private String packageName;
private String productCode;
private Long productId;
private String ruleCategory;
private String ruleId;
private String ruleName;
private String sqlText;
private String tableName;
private String userId;
private String userName;
private String warnLevel;
private String warnLevelName;
private Builder() {
}
private Builder(Items model) {
this.clientIp = model.clientIp;
this.clientPort = model.clientPort;
this.clientUa = model.clientUa;
this.columnName = model.columnName;
this.creationTime = model.creationTime;
this.dataSet = model.dataSet;
this.databaseName = model.databaseName;
this.dbType = model.dbType;
this.effectRow = model.effectRow;
this.executeStatus = model.executeStatus;
this.executeTime = model.executeTime;
this.inWhiteList = model.inWhiteList;
this.instanceDescription = model.instanceDescription;
this.instanceName = model.instanceName;
this.ipType = model.ipType;
this.logTime = model.logTime;
this.memberAccount = model.memberAccount;
this.message = model.message;
this.modelName = model.modelName;
this.operateType = model.operateType;
this.ossObjectKey = model.ossObjectKey;
this.packageName = model.packageName;
this.productCode = model.productCode;
this.productId = model.productId;
this.ruleCategory = model.ruleCategory;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.sqlText = model.sqlText;
this.tableName = model.tableName;
this.userId = model.userId;
this.userName = model.userName;
this.warnLevel = model.warnLevel;
this.warnLevelName = model.warnLevelName;
}
/**
* ClientIp.
*/
public Builder clientIp(String clientIp) {
this.clientIp = clientIp;
return this;
}
/**
* ClientPort.
*/
public Builder clientPort(String clientPort) {
this.clientPort = clientPort;
return this;
}
/**
* ClientUa.
*/
public Builder clientUa(String clientUa) {
this.clientUa = clientUa;
return this;
}
/**
* ColumnName.
*/
public Builder columnName(String columnName) {
this.columnName = columnName;
return this;
}
/**
* CreationTime.
*/
public Builder creationTime(Long creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* DataSet.
*/
public Builder dataSet(String dataSet) {
this.dataSet = dataSet;
return this;
}
/**
* DatabaseName.
*/
public Builder databaseName(String databaseName) {
this.databaseName = databaseName;
return this;
}
/**
* DbType.
*/
public Builder dbType(String dbType) {
this.dbType = dbType;
return this;
}
/**
* EffectRow.
*/
public Builder effectRow(Long effectRow) {
this.effectRow = effectRow;
return this;
}
/**
* ExecuteStatus.
*/
public Builder executeStatus(Integer executeStatus) {
this.executeStatus = executeStatus;
return this;
}
/**
* ExecuteTime.
*/
public Builder executeTime(Long executeTime) {
this.executeTime = executeTime;
return this;
}
/**
* InWhiteList.
*/
public Builder inWhiteList(Boolean inWhiteList) {
this.inWhiteList = inWhiteList;
return this;
}
/**
* InstanceDescription.
*/
public Builder instanceDescription(String instanceDescription) {
this.instanceDescription = instanceDescription;
return this;
}
/**
* InstanceName.
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* IpType.
*/
public Builder ipType(String ipType) {
this.ipType = ipType;
return this;
}
/**
* LogTime.
*/
public Builder logTime(Long logTime) {
this.logTime = logTime;
return this;
}
/**
* MemberAccount.
*/
public Builder memberAccount(String memberAccount) {
this.memberAccount = memberAccount;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* ModelName.
*/
public Builder modelName(String modelName) {
this.modelName = modelName;
return this;
}
/**
* OperateType.
*/
public Builder operateType(String operateType) {
this.operateType = operateType;
return this;
}
/**
* OssObjectKey.
*/
public Builder ossObjectKey(String ossObjectKey) {
this.ossObjectKey = ossObjectKey;
return this;
}
/**
* PackageName.
*/
public Builder packageName(String packageName) {
this.packageName = packageName;
return this;
}
/**
* ProductCode.
*/
public Builder productCode(String productCode) {
this.productCode = productCode;
return this;
}
/**
* ProductId.
*/
public Builder productId(Long productId) {
this.productId = productId;
return this;
}
/**
* RuleCategory.
*/
public Builder ruleCategory(String ruleCategory) {
this.ruleCategory = ruleCategory;
return this;
}
/**
* RuleId.
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* RuleName.
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* SqlText.
*/
public Builder sqlText(String sqlText) {
this.sqlText = sqlText;
return this;
}
/**
* TableName.
*/
public Builder tableName(String tableName) {
this.tableName = tableName;
return this;
}
/**
* UserId.
*/
public Builder userId(String userId) {
this.userId = userId;
return this;
}
/**
* UserName.
*/
public Builder userName(String userName) {
this.userName = userName;
return this;
}
/**
* WarnLevel.
*/
public Builder warnLevel(String warnLevel) {
this.warnLevel = warnLevel;
return this;
}
/**
* WarnLevelName.
*/
public Builder warnLevelName(String warnLevelName) {
this.warnLevelName = warnLevelName;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeCategoryTemplateListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCategoryTemplateListRequest} extends {@link RequestModel}
*
* <p>DescribeCategoryTemplateListRequest</p>
*/
public class DescribeCategoryTemplateListRequest 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("FeatureType")
private Integer featureType;
@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("UsageScenario")
private Integer usageScenario;
private DescribeCategoryTemplateListRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.featureType = builder.featureType;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.usageScenario = builder.usageScenario;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCategoryTemplateListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return usageScenario
*/
public Integer getUsageScenario() {
return this.usageScenario;
}
public static final class Builder extends Request.Builder<DescribeCategoryTemplateListRequest, Builder> {
private Integer currentPage;
private Integer featureType;
private String lang;
private Integer pageSize;
private Integer usageScenario;
private Builder() {
super();
}
private Builder(DescribeCategoryTemplateListRequest request) {
super(request);
this.currentPage = request.currentPage;
this.featureType = request.featureType;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.usageScenario = request.usageScenario;
}
/**
* <p>Page number for paginated queries. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>Set the language type for the request and response messages, default is <strong>zh_cn</strong>.
* Values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese (Simplified)</li>
* <li><strong>en_us</strong>: English (United States)</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>When performing a paginated query, set the number of items per page. Default value is <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>API call scenario, default is <strong>null</strong>.
* Values:</p>
* <ul>
* <li><strong>null</strong>: Old version</li>
* <li><strong>0</strong>: Old version</li>
* <li><strong>1</strong>: New version</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder usageScenario(Integer usageScenario) {
this.putQueryParameter("UsageScenario", usageScenario);
this.usageScenario = usageScenario;
return this;
}
@Override
public DescribeCategoryTemplateListRequest build() {
return new DescribeCategoryTemplateListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeCategoryTemplateListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCategoryTemplateListResponse} extends {@link TeaModel}
*
* <p>DescribeCategoryTemplateListResponse</p>
*/
public class DescribeCategoryTemplateListResponse 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 DescribeCategoryTemplateListResponseBody body;
private DescribeCategoryTemplateListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCategoryTemplateListResponse 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 DescribeCategoryTemplateListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCategoryTemplateListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCategoryTemplateListResponseBody body);
@Override
DescribeCategoryTemplateListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCategoryTemplateListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCategoryTemplateListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCategoryTemplateListResponse 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(DescribeCategoryTemplateListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCategoryTemplateListResponse build() {
return new DescribeCategoryTemplateListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeCategoryTemplateListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCategoryTemplateListResponseBody} extends {@link TeaModel}
*
* <p>DescribeCategoryTemplateListResponseBody</p>
*/
public class DescribeCategoryTemplateListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeCategoryTemplateListResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCategoryTemplateListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeCategoryTemplateListResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>Page number for paginated queries. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>List of industry templates.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>Number of items per page in a paginated query. Default value: 10.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The unique identifier generated by Alibaba Cloud for this request.</p>
*
* <strong>example:</strong>
* <p>8491DBFD-48C0-4E11-B6FC-6F38921244A9</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Total number of data items returned.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeCategoryTemplateListResponseBody build() {
return new DescribeCategoryTemplateListResponseBody(this);
}
}
/**
*
* {@link DescribeCategoryTemplateListResponseBody} extends {@link TeaModel}
*
* <p>DescribeCategoryTemplateListResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentRiskLevel")
private Integer currentRiskLevel;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private Long gmtModified;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("MaxCategoryLevel")
private Integer maxCategoryLevel;
@com.aliyun.core.annotation.NameInMap("MaxRiskLevel")
private Integer maxRiskLevel;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("SupportEdit")
private Integer supportEdit;
@com.aliyun.core.annotation.NameInMap("Type")
private Integer type;
private Items(Builder builder) {
this.currentRiskLevel = builder.currentRiskLevel;
this.description = builder.description;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.id = builder.id;
this.maxCategoryLevel = builder.maxCategoryLevel;
this.maxRiskLevel = builder.maxRiskLevel;
this.name = builder.name;
this.status = builder.status;
this.supportEdit = builder.supportEdit;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return currentRiskLevel
*/
public Integer getCurrentRiskLevel() {
return this.currentRiskLevel;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public Long getGmtModified() {
return this.gmtModified;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return maxCategoryLevel
*/
public Integer getMaxCategoryLevel() {
return this.maxCategoryLevel;
}
/**
* @return maxRiskLevel
*/
public Integer getMaxRiskLevel() {
return this.maxRiskLevel;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return supportEdit
*/
public Integer getSupportEdit() {
return this.supportEdit;
}
/**
* @return type
*/
public Integer getType() {
return this.type;
}
public static final class Builder {
private Integer currentRiskLevel;
private String description;
private Long gmtCreate;
private Long gmtModified;
private Long id;
private Integer maxCategoryLevel;
private Integer maxRiskLevel;
private String name;
private Integer status;
private Integer supportEdit;
private Integer type;
private Builder() {
}
private Builder(Items model) {
this.currentRiskLevel = model.currentRiskLevel;
this.description = model.description;
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.id = model.id;
this.maxCategoryLevel = model.maxCategoryLevel;
this.maxRiskLevel = model.maxRiskLevel;
this.name = model.name;
this.status = model.status;
this.supportEdit = model.supportEdit;
this.type = model.type;
}
/**
* <p>Current risk level ID.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder currentRiskLevel(Integer currentRiskLevel) {
this.currentRiskLevel = currentRiskLevel;
return this;
}
/**
* <p>Description information of the industry template.</p>
*
* <strong>example:</strong>
* <p>description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Industry template creation time.</p>
*
* <strong>example:</strong>
* <p>1582992000000</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>Industry template modification time.</p>
*
* <strong>example:</strong>
* <p>1545277010000</p>
*/
public Builder gmtModified(Long gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>Unique identifier ID of the industry template.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>Maximum category level.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder maxCategoryLevel(Integer maxCategoryLevel) {
this.maxCategoryLevel = maxCategoryLevel;
return this;
}
/**
* <p>Maximum risk level ID.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder maxRiskLevel(Integer maxRiskLevel) {
this.maxRiskLevel = maxRiskLevel;
return this;
}
/**
* <p>Name of the industry template.</p>
*
* <strong>example:</strong>
* <p>built-in template</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>Status of the industry template. Values:</p>
* <ul>
* <li><strong>0</strong>: Closed status.</li>
* <li><strong>1</strong>: Enabled status, user"s current main template.</li>
* <li><strong>2</strong>: Active status, both enabled and active templates can be applied to recognition tasks.</li>
* <li><strong>3</strong>: General recognition model template status.</li>
* </ul>
* <blockquote>
* <p>Templates in enabled and active status can be used as the industry template ID parameter for <a href="https://help.aliyun.com/document_detail/2399253.html">DescribeDataObjects</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>Whether the industry template supports editing. Values:</p>
* <ul>
* <li><strong>0</strong>: Not supported.</li>
* <li><strong>1</strong>: Supported.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder supportEdit(Integer supportEdit) {
this.supportEdit = supportEdit;
return this;
}
/**
* <p>Type of the industry template.</p>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder type(Integer type) {
this.type = type;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeCategoryTemplateRuleListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCategoryTemplateRuleListRequest} extends {@link RequestModel}
*
* <p>DescribeCategoryTemplateRuleListRequest</p>
*/
public class DescribeCategoryTemplateRuleListRequest 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("FeatureType")
private Integer featureType;
@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("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private DescribeCategoryTemplateRuleListRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.featureType = builder.featureType;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.riskLevelId = builder.riskLevelId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCategoryTemplateRuleListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeCategoryTemplateRuleListRequest, Builder> {
private Integer currentPage;
private Integer featureType;
private String lang;
private Integer pageSize;
private Long riskLevelId;
private Integer status;
private Builder() {
super();
}
private Builder(DescribeCategoryTemplateRuleListRequest request) {
super(request);
this.currentPage = request.currentPage;
this.featureType = request.featureType;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.riskLevelId = request.riskLevelId;
this.status = request.status;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Simplified Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The sensitivity level of the data that is not compliant with the rule. Valid values: <strong>1</strong> to <strong>11</strong>. Default value: <strong>null</strong>.</p>
* <ul>
* <li><strong>1</strong>: No sensitive data is detected.</li>
* <li><strong>2</strong>: specifies the S1 sensitivity level.</li>
* <li><strong>3</strong>: specifies the S2 sensitivity level.</li>
* <li><strong>4</strong>: specifies the S3 sensitivity level.</li>
* <li><strong>5</strong>: specifies the S4 sensitivity level.</li>
* <li><strong>6</strong>: specifies the S5 sensitivity level.</li>
* <li><strong>7</strong>: specifies the S6 sensitivity level.</li>
* <li><strong>8</strong>: specifies the S7 sensitivity level.</li>
* <li><strong>9</strong>: specifies the S8 sensitivity level.</li>
* <li><strong>10</strong>: specifies the S9 sensitivity level.</li>
* <li><strong>11</strong>: specifies the S10 sensitivity level.</li>
* <li><strong>null</strong>: specifies all preceding sensitivity levels.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.putQueryParameter("RiskLevelId", riskLevelId);
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>The status of the rule. Default value: <strong>null</strong>. Valid values:</p>
* <ul>
* <li><strong>0</strong>: disabled</li>
* <li><strong>1</strong>: enabled</li>
* <li><strong>null</strong>: all states</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeCategoryTemplateRuleListRequest build() {
return new DescribeCategoryTemplateRuleListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeCategoryTemplateRuleListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCategoryTemplateRuleListResponse} extends {@link TeaModel}
*
* <p>DescribeCategoryTemplateRuleListResponse</p>
*/
public class DescribeCategoryTemplateRuleListResponse 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 DescribeCategoryTemplateRuleListResponseBody body;
private DescribeCategoryTemplateRuleListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCategoryTemplateRuleListResponse 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 DescribeCategoryTemplateRuleListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCategoryTemplateRuleListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCategoryTemplateRuleListResponseBody body);
@Override
DescribeCategoryTemplateRuleListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCategoryTemplateRuleListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCategoryTemplateRuleListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCategoryTemplateRuleListResponse 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(DescribeCategoryTemplateRuleListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCategoryTemplateRuleListResponse build() {
return new DescribeCategoryTemplateRuleListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeCategoryTemplateRuleListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCategoryTemplateRuleListResponseBody} extends {@link TeaModel}
*
* <p>DescribeCategoryTemplateRuleListResponseBody</p>
*/
public class DescribeCategoryTemplateRuleListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeCategoryTemplateRuleListResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCategoryTemplateRuleListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeCategoryTemplateRuleListResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The list of rules.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>136082B3-B21F-5E9D-B68E-991FFD205D24</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of rules in the template.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeCategoryTemplateRuleListResponseBody build() {
return new DescribeCategoryTemplateRuleListResponseBody(this);
}
}
/**
*
* {@link DescribeCategoryTemplateRuleListResponseBody} extends {@link TeaModel}
*
* <p>DescribeCategoryTemplateRuleListResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("IdentificationRuleIds")
private String identificationRuleIds;
@com.aliyun.core.annotation.NameInMap("IdentificationScope")
private String identificationScope;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private Items(Builder builder) {
this.description = builder.description;
this.id = builder.id;
this.identificationRuleIds = builder.identificationRuleIds;
this.identificationScope = builder.identificationScope;
this.name = builder.name;
this.riskLevelId = builder.riskLevelId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return identificationRuleIds
*/
public String getIdentificationRuleIds() {
return this.identificationRuleIds;
}
/**
* @return identificationScope
*/
public String getIdentificationScope() {
return this.identificationScope;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder {
private String description;
private Long id;
private String identificationRuleIds;
private String identificationScope;
private String name;
private Long riskLevelId;
private Integer status;
private Builder() {
}
private Builder(Items model) {
this.description = model.description;
this.id = model.id;
this.identificationRuleIds = model.identificationRuleIds;
this.identificationScope = model.identificationScope;
this.name = model.name;
this.riskLevelId = model.riskLevelId;
this.status = model.status;
}
/**
* <p>The description of the rule.</p>
*
* <strong>example:</strong>
* <p>Rule for identifying ID card numbers</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The unique ID of the rule.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The IDs of sensitive data types. Multiple IDs are separated by commas (,).</p>
*
* <strong>example:</strong>
* <p>1001,1002</p>
*/
public Builder identificationRuleIds(String identificationRuleIds) {
this.identificationRuleIds = identificationRuleIds;
return this;
}
/**
* <p>The scan scope of the rule. The value is a JSON array of the STRING type. Each element in a JSON array indicates a scan scope that contains the following fields:</p>
* <ul>
* <li><p><strong>Asset</strong>: the data asset type. Valid values: RDS, DRDS, PolarDB, OTS, ADB, and OceanBase. The value is of the STRING type.</p>
* </li>
* <li><p><strong>Content</strong>: the scan scope. The value is of the STRING type. Each element in a JSON array indicates a scan scope that contains the following fields:</p>
* <ul>
* <li><strong>Range</strong>: the matching condition. Valid values: Instance, database, table, column, project, bucket, and object. The value project is valid only for data assets in MaxCompute. The values bucket and object are valid only for data assets in Object Storage Service (OSS). The value of this parameter is of the STRING type.</li>
* <li><strong>Operator</strong>: the operator. Valid values: equals, regex, prefix, and suffix. The operator equals indicates a full match. The operator regex indicates a match by regular expression. The operator prefix indicates a match by prefix. The operator suffix indicates a match by suffix.</li>
* <li><strong>Value</strong>: the matching content. The value is of the STRING type.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"Asset":"RDS","Content":[{"Range":"database","Operator":"regex","Value":"register"}]},{"Asset":"RDS","Content":[{"Range":"table","Operator":"regex","Value":"register"}]},{"Asset":"RDS","Content":[{"Range":"column","Operator":"regex","Value":"register"}]},{"Asset":"ODPS","Content":[{"Range":"project","Operator":"regex","Value":"register"}]},{"Asset":"ODPS","Content":[{"Range":"table","Operator":"regex","Value":"register"}]},{"Asset":"ODPS","Content":[{"Range":"column","Operator":"regex","Value":"register"}]}]</p>
*/
public Builder identificationScope(String identificationScope) {
this.identificationScope = identificationScope;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>ID card number</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The sensitivity level of the data that is not compliant with the rule. Valid values: <strong>1</strong> to <strong>11</strong>.</p>
* <ul>
* <li><strong>1</strong>: No sensitive data is detected.</li>
* <li><strong>2</strong>: indicates the S1 sensitivity level.</li>
* <li><strong>3</strong>: indicates the S2 sensitivity level.</li>
* <li><strong>4</strong>: indicates the S3 sensitivity level.</li>
* <li><strong>5</strong>: indicates the S4 sensitivity level.</li>
* <li><strong>6</strong>: indicates the S5 sensitivity level.</li>
* <li><strong>7</strong>: indicates the S6 sensitivity level.</li>
* <li><strong>8</strong>: indicates the S7 sensitivity level.</li>
* <li><strong>9</strong>: indicates the S8 sensitivity level.</li>
* <li><strong>10</strong>: indicates the S9 sensitivity level.</li>
* <li><strong>11</strong>: indicates the S10 sensitivity level.</li>
* <li><strong>null</strong>: indicates all preceding sensitivity levels.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>The status of the rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: disabled</li>
* <li><strong>1</strong>: enabled</li>
* <li><strong>null</strong>: all states</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeColumnsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeColumnsRequest} extends {@link RequestModel}
*
* <p>DescribeColumnsRequest</p>
*/
public class DescribeColumnsRequest 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("EngineType")
private String engineType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private Long instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ModelTagId")
private String modelTagId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductId")
private String productId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SensLevelName")
private String sensLevelName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TableId")
private Long tableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TableName")
private String tableName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateRuleId")
private String templateRuleId;
private DescribeColumnsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.engineType = builder.engineType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.lang = builder.lang;
this.modelTagId = builder.modelTagId;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.productCode = builder.productCode;
this.productId = builder.productId;
this.riskLevelId = builder.riskLevelId;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.sensLevelName = builder.sensLevelName;
this.tableId = builder.tableId;
this.tableName = builder.tableName;
this.templateId = builder.templateId;
this.templateRuleId = builder.templateRuleId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeColumnsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return instanceId
*/
public Long getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return modelTagId
*/
public String getModelTagId() {
return this.modelTagId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return productId
*/
public String getProductId() {
return this.productId;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return sensLevelName
*/
public String getSensLevelName() {
return this.sensLevelName;
}
/**
* @return tableId
*/
public Long getTableId() {
return this.tableId;
}
/**
* @return tableName
*/
public String getTableName() {
return this.tableName;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
/**
* @return templateRuleId
*/
public String getTemplateRuleId() {
return this.templateRuleId;
}
public static final class Builder extends Request.Builder<DescribeColumnsRequest, Builder> {
private Integer currentPage;
private String engineType;
private Long instanceId;
private String instanceName;
private String lang;
private String modelTagId;
private String name;
private Integer pageSize;
private String productCode;
private String productId;
private Long riskLevelId;
private Long ruleId;
private String ruleName;
private String sensLevelName;
private Long tableId;
private String tableName;
private String templateId;
private String templateRuleId;
private Builder() {
super();
}
private Builder(DescribeColumnsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.engineType = request.engineType;
this.instanceId = request.instanceId;
this.instanceName = request.instanceName;
this.lang = request.lang;
this.modelTagId = request.modelTagId;
this.name = request.name;
this.pageSize = request.pageSize;
this.productCode = request.productCode;
this.productId = request.productId;
this.riskLevelId = request.riskLevelId;
this.ruleId = request.ruleId;
this.ruleName = request.ruleName;
this.sensLevelName = request.sensLevelName;
this.tableId = request.tableId;
this.tableName = request.tableName;
this.templateId = request.templateId;
this.templateRuleId = request.templateRuleId;
}
/**
* <p>The page number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The engine type. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>MariaDB</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.putQueryParameter("EngineType", engineType);
this.engineType = engineType;
return this;
}
/**
* <p>The ID of the instance to which data in the column of the table belongs.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeRules~~">DescribeInstances</a> operation to query the IDs of instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder instanceId(Long instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the instance to which data in the column of the table belongs.</p>
*
* <strong>example:</strong>
* <p>rm-bp17t1htja573l5i8****</p>
*/
public Builder instanceName(String instanceName) {
this.putQueryParameter("InstanceName", instanceName);
this.instanceName = instanceName;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The data tag.</p>
* <ul>
* <li>101: personal sensitive information</li>
* <li>102: personal information</li>
* </ul>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder modelTagId(String modelTagId) {
this.putQueryParameter("ModelTagId", modelTagId);
this.modelTagId = modelTagId;
return this;
}
/**
* <p>The search keyword. Fuzzy match is supported.</p>
* <p>For example, if you enter <strong>test</strong>, all columns whose names contain <strong>test</strong> are retrieved.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The name of the service to which data in the column of the table belongs. Valid values include <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>MaxCompute</p>
*/
public Builder productCode(String productCode) {
this.putQueryParameter("ProductCode", productCode);
this.productCode = productCode;
return this;
}
/**
* <p>The ID of the service to which the data object belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: Object Storage Service (OSS)</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore (OTS)</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* <li><strong>6</strong>: self-managed database</li>
* <li><strong>7</strong>: PolarDB for Xscale (PolarDB-X)</li>
* <li><strong>8</strong>: PolarDB</li>
* <li><strong>9</strong>: AnalyticDB for PostgreSQL</li>
* <li><strong>10</strong>: ApsaraDB for OceanBase</li>
* <li><strong>11</strong>: ApsaraDB for MongoDB</li>
* <li><strong>25</strong>: ApsaraDB for Redis</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(String productId) {
this.putQueryParameter("ProductId", productId);
this.productId = productId;
return this;
}
/**
* <p>The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: N/A</li>
* <li><strong>2</strong>: S1</li>
* <li><strong>3</strong>: S2</li>
* <li><strong>4</strong>: S3</li>
* <li><strong>5</strong>: S4</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.putQueryParameter("RiskLevelId", riskLevelId);
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>The ID of the sensitive data detection rule that data in the column of the table hits.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeRules~~">DescribeRules</a> operation to query the IDs of sensitive data detection rules.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>11111</p>
*/
public Builder ruleId(Long ruleId) {
this.putQueryParameter("RuleId", ruleId);
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the sensitive data detection rule that data in the column of the table hits.</p>
*
* <strong>example:</strong>
* <p>ID card number (the Chinese mainland)</p>
*/
public Builder ruleName(String ruleName) {
this.putQueryParameter("RuleName", ruleName);
this.ruleName = ruleName;
return this;
}
/**
* <p>The name of the sensitivity level of the data that hits the sensitive data detection rule. Valid values:</p>
* <ul>
* <li><strong>N/A</strong>: No sensitive data is detected.</li>
* <li><strong>S1</strong>: indicates the low sensitivity level.</li>
* <li><strong>S2</strong>: indicates the medium sensitivity level.</li>
* <li><strong>S3</strong>: indicates the high sensitivity level.</li>
* <li><strong>S4</strong>: indicates the highest sensitivity level.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S2</p>
*/
public Builder sensLevelName(String sensLevelName) {
this.putQueryParameter("SensLevelName", sensLevelName);
this.sensLevelName = sensLevelName;
return this;
}
/**
* <p>The ID of the table to which the column belongs.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeTables~~">DescribeTables</a> operation to query the IDs of tables.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>11132334</p>
*/
public Builder tableId(Long tableId) {
this.putQueryParameter("TableId", tableId);
this.tableId = tableId;
return this;
}
/**
* <p>The name of the table.</p>
*
* <strong>example:</strong>
* <p>it_table</p>
*/
public Builder tableName(String tableName) {
this.putQueryParameter("TableName", tableName);
this.tableName = tableName;
return this;
}
/**
* <p>The ID of the industry-specific classification template.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/2399296.html">DescribeCategoryTemplateList</a> operation to obtain the IDs of industry-specific classification templates.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder templateId(String templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
/**
* <p>The ID of the template rule that is hit.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/410143.html">DescribeCategoryTemplateRuleList</a> operation to obtain the IDs of hit template rules.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1542</p>
*/
public Builder templateRuleId(String templateRuleId) {
this.putQueryParameter("TemplateRuleId", templateRuleId);
this.templateRuleId = templateRuleId;
return this;
}
@Override
public DescribeColumnsRequest build() {
return new DescribeColumnsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeColumnsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeColumnsResponse} extends {@link TeaModel}
*
* <p>DescribeColumnsResponse</p>
*/
public class DescribeColumnsResponse 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 DescribeColumnsResponseBody body;
private DescribeColumnsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeColumnsResponse 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 DescribeColumnsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeColumnsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeColumnsResponseBody body);
@Override
DescribeColumnsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeColumnsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeColumnsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeColumnsResponse 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(DescribeColumnsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeColumnsResponse build() {
return new DescribeColumnsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeColumnsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeColumnsResponseBody} extends {@link TeaModel}
*
* <p>DescribeColumnsResponseBody</p>
*/
public class DescribeColumnsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeColumnsResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeColumnsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeColumnsResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The data in the columns of the table.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-4******</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeColumnsResponseBody build() {
return new DescribeColumnsResponseBody(this);
}
}
/**
*
* {@link DescribeColumnsResponseBody} extends {@link TeaModel}
*
* <p>DescribeColumnsResponseBody</p>
*/
public static class ModelTags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private ModelTags(Builder builder) {
this.id = builder.id;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static ModelTags create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Long id;
private String name;
private Builder() {
}
private Builder(ModelTags model) {
this.id = model.id;
this.name = model.name;
}
/**
* <p>The tag ID.</p>
* <ul>
* <li><strong>101</strong>: sensitive personal information</li>
* <li><strong>102</strong>: personal information</li>
* <li><strong>103</strong>: important information</li>
* </ul>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The tag name.</p>
* <ul>
* <li>Sensitive personal information</li>
* <li>Personal information</li>
* <li>Important information</li>
* </ul>
*
* <strong>example:</strong>
* <p>personal sensitive data</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public ModelTags build() {
return new ModelTags(this);
}
}
}
/**
*
* {@link DescribeColumnsResponseBody} extends {@link TeaModel}
*
* <p>DescribeColumnsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private Long creationTime;
@com.aliyun.core.annotation.NameInMap("DataType")
private String dataType;
@com.aliyun.core.annotation.NameInMap("EngineType")
private String engineType;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private Long instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("MaskingStatus")
private Integer maskingStatus;
@com.aliyun.core.annotation.NameInMap("ModelTags")
private java.util.List<ModelTags> modelTags;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("OdpsRiskLevelName")
private String odpsRiskLevelName;
@com.aliyun.core.annotation.NameInMap("OdpsRiskLevelValue")
private Integer odpsRiskLevelValue;
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RevisionId")
private Long revisionId;
@com.aliyun.core.annotation.NameInMap("RevisionStatus")
private Long revisionStatus;
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.NameInMap("RiskLevelName")
private String riskLevelName;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("SensLevelName")
private String sensLevelName;
@com.aliyun.core.annotation.NameInMap("Sensitive")
private Boolean sensitive;
@com.aliyun.core.annotation.NameInMap("TableId")
private Long tableId;
@com.aliyun.core.annotation.NameInMap("TableName")
private String tableName;
private Items(Builder builder) {
this.creationTime = builder.creationTime;
this.dataType = builder.dataType;
this.engineType = builder.engineType;
this.id = builder.id;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.maskingStatus = builder.maskingStatus;
this.modelTags = builder.modelTags;
this.name = builder.name;
this.odpsRiskLevelName = builder.odpsRiskLevelName;
this.odpsRiskLevelValue = builder.odpsRiskLevelValue;
this.productCode = builder.productCode;
this.productId = builder.productId;
this.regionId = builder.regionId;
this.revisionId = builder.revisionId;
this.revisionStatus = builder.revisionStatus;
this.riskLevelId = builder.riskLevelId;
this.riskLevelName = builder.riskLevelName;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.sensLevelName = builder.sensLevelName;
this.sensitive = builder.sensitive;
this.tableId = builder.tableId;
this.tableName = builder.tableName;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return creationTime
*/
public Long getCreationTime() {
return this.creationTime;
}
/**
* @return dataType
*/
public String getDataType() {
return this.dataType;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return instanceId
*/
public Long getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return maskingStatus
*/
public Integer getMaskingStatus() {
return this.maskingStatus;
}
/**
* @return modelTags
*/
public java.util.List<ModelTags> getModelTags() {
return this.modelTags;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return odpsRiskLevelName
*/
public String getOdpsRiskLevelName() {
return this.odpsRiskLevelName;
}
/**
* @return odpsRiskLevelValue
*/
public Integer getOdpsRiskLevelValue() {
return this.odpsRiskLevelValue;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return revisionId
*/
public Long getRevisionId() {
return this.revisionId;
}
/**
* @return revisionStatus
*/
public Long getRevisionStatus() {
return this.revisionStatus;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return riskLevelName
*/
public String getRiskLevelName() {
return this.riskLevelName;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return sensLevelName
*/
public String getSensLevelName() {
return this.sensLevelName;
}
/**
* @return sensitive
*/
public Boolean getSensitive() {
return this.sensitive;
}
/**
* @return tableId
*/
public Long getTableId() {
return this.tableId;
}
/**
* @return tableName
*/
public String getTableName() {
return this.tableName;
}
public static final class Builder {
private Long creationTime;
private String dataType;
private String engineType;
private String id;
private Long instanceId;
private String instanceName;
private Integer maskingStatus;
private java.util.List<ModelTags> modelTags;
private String name;
private String odpsRiskLevelName;
private Integer odpsRiskLevelValue;
private String productCode;
private Long productId;
private String regionId;
private Long revisionId;
private Long revisionStatus;
private Long riskLevelId;
private String riskLevelName;
private Long ruleId;
private String ruleName;
private String sensLevelName;
private Boolean sensitive;
private Long tableId;
private String tableName;
private Builder() {
}
private Builder(Items model) {
this.creationTime = model.creationTime;
this.dataType = model.dataType;
this.engineType = model.engineType;
this.id = model.id;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.maskingStatus = model.maskingStatus;
this.modelTags = model.modelTags;
this.name = model.name;
this.odpsRiskLevelName = model.odpsRiskLevelName;
this.odpsRiskLevelValue = model.odpsRiskLevelValue;
this.productCode = model.productCode;
this.productId = model.productId;
this.regionId = model.regionId;
this.revisionId = model.revisionId;
this.revisionStatus = model.revisionStatus;
this.riskLevelId = model.riskLevelId;
this.riskLevelName = model.riskLevelName;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.sensLevelName = model.sensLevelName;
this.sensitive = model.sensitive;
this.tableId = model.tableId;
this.tableName = model.tableName;
}
/**
* <p>The time when the data in the column of the table is created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1536751124000</p>
*/
public Builder creationTime(Long creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The type of data in the column of the table.</p>
*
* <strong>example:</strong>
* <p>String</p>
*/
public Builder dataType(String dataType) {
this.dataType = dataType;
return this;
}
/**
* <p>The type of the database engine.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.engineType = engineType;
return this;
}
/**
* <p>The ID of the column of the table.</p>
*
* <strong>example:</strong>
* <p>268</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>The ID of the instance to which data in the column of the table belongs.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder instanceId(Long instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the instance to which data in the column of the table belongs.</p>
*
* <strong>example:</strong>
* <p>rm-bp17t1htja573l5i8****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The column encryption status. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: unencrypted</li>
* <li><strong>1</strong>: encrypted</li>
* <li><strong>2</strong>: encryption failed</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder maskingStatus(Integer maskingStatus) {
this.maskingStatus = maskingStatus;
return this;
}
/**
* <p>A list of tags for data that hits the recognition model.</p>
*/
public Builder modelTags(java.util.List<ModelTags> modelTags) {
this.modelTags = modelTags;
return this;
}
/**
* <p>The name of the column of the table.</p>
*
* <strong>example:</strong>
* <p>gxdata</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The name of the sensitivity level for asset. Valid values:</p>
* <ul>
* <li><strong>N/A</strong>: indicates that no sensitive data is detected.</li>
* <li><strong>S1</strong>: indicates the low sensitivity level.</li>
* <li><strong>S2</strong>: indicates the medium sensitivity level.</li>
* <li><strong>S3</strong>: indicates the high sensitivity level.</li>
* <li><strong>S4</strong>: indicates the highest sensitivity level.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S3</p>
*/
public Builder odpsRiskLevelName(String odpsRiskLevelName) {
this.odpsRiskLevelName = odpsRiskLevelName;
return this;
}
/**
* <p>The ID of the sensitivity level of the asset. Valid values:</p>
* <ul>
* <li><strong>1</strong>: N/A</li>
* <li><strong>2</strong>: S1</li>
* <li><strong>3</strong>: S2</li>
* <li><strong>4</strong>: S3</li>
* <li><strong>5</strong>: S4</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder odpsRiskLevelValue(Integer odpsRiskLevelValue) {
this.odpsRiskLevelValue = odpsRiskLevelValue;
return this;
}
/**
* <p>The name of the service to which data in the column of the table belongs. Valid values include <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>MaxCompute</p>
*/
public Builder productCode(String productCode) {
this.productCode = productCode;
return this;
}
/**
* <p>The ID of the service to which the data object belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: Object Storage Service (OSS)</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore (OTS)</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* <li><strong>6</strong>: self-managed database</li>
* <li><strong>7</strong>: PolarDB for Xscale (PolarDB-X)</li>
* <li><strong>8</strong>: PolarDB</li>
* <li><strong>9</strong>: AnalyticDB for PostgreSQL</li>
* <li><strong>10</strong>: ApsaraDB for OceanBase</li>
* <li><strong>11</strong>: ApsaraDB for MongoDB</li>
* <li><strong>25</strong>: ApsaraDB for Redis</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(Long productId) {
this.productId = productId;
return this;
}
/**
* <p>The region in which the asset resides.</p>
*
* <strong>example:</strong>
* <p>cn-***</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the revision record.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder revisionId(Long revisionId) {
this.revisionId = revisionId;
return this;
}
/**
* <p>Indicates whether the column is revised. Valid values:</p>
* <ul>
* <li>1: yes</li>
* <li>0: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder revisionStatus(Long revisionStatus) {
this.revisionStatus = revisionStatus;
return this;
}
/**
* <p>The ID of the sensitivity level of data in the column of the table. Valid values:</p>
* <ul>
* <li><strong>1</strong>: N/A</li>
* <li><strong>2</strong>: S1</li>
* <li><strong>3</strong>: S2</li>
* <li><strong>4</strong>: S3</li>
* <li><strong>5</strong>: S4</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>The name of the sensitivity level for data in the column of the table. Valid values:</p>
* <ul>
* <li><strong>N/A</strong>: indicates that no sensitive data is detected.</li>
* <li><strong>S1</strong>: indicates the low sensitivity level.</li>
* <li><strong>S2</strong>: indicates the medium sensitivity level.</li>
* <li><strong>S3</strong>: indicates the high sensitivity level.</li>
* <li><strong>S4</strong>: indicates the highest sensitivity level.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S2</p>
*/
public Builder riskLevelName(String riskLevelName) {
this.riskLevelName = riskLevelName;
return this;
}
/**
* <p>The ID of the sensitive data detection rule that data in the column of the table hits.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the sensitive data detection rule that data in the column of the table hits.</p>
*
* <strong>example:</strong>
* <p>** rule</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The name of the sensitivity level. Valid values:</p>
* <ul>
* <li><strong>N/A</strong>: indicates that no sensitive data is detected.</li>
* <li><strong>S1</strong>: indicates the low sensitivity level.</li>
* <li><strong>S2</strong>: indicates the medium sensitivity level.</li>
* <li><strong>S3</strong>: indicates the high sensitivity level.</li>
* <li><strong>S4</strong>: indicates the highest sensitivity level.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S2</p>
*/
public Builder sensLevelName(String sensLevelName) {
this.sensLevelName = sensLevelName;
return this;
}
/**
* <p>Indicates whether the column contains sensitive data. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder sensitive(Boolean sensitive) {
this.sensitive = sensitive;
return this;
}
/**
* <p>The ID of the table.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder tableId(Long tableId) {
this.tableId = tableId;
return this;
}
/**
* <p>The name of the table to which the revised column belongs.</p>
*
* <strong>example:</strong>
* <p>it_table</p>
*/
public Builder tableName(String tableName) {
this.tableName = tableName;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeColumnsV2Request.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeColumnsV2Request} extends {@link RequestModel}
*
* <p>DescribeColumnsV2Request</p>
*/
public class DescribeColumnsV2Request 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("EngineType")
private String engineType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private Long instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SensLevelName")
private String sensLevelName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TableId")
private String tableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TableName")
private String tableName;
private DescribeColumnsV2Request(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.engineType = builder.engineType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.lang = builder.lang;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.productCode = builder.productCode;
this.riskLevelId = builder.riskLevelId;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.sensLevelName = builder.sensLevelName;
this.tableId = builder.tableId;
this.tableName = builder.tableName;
}
public static Builder builder() {
return new Builder();
}
public static DescribeColumnsV2Request create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return instanceId
*/
public Long getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return sensLevelName
*/
public String getSensLevelName() {
return this.sensLevelName;
}
/**
* @return tableId
*/
public String getTableId() {
return this.tableId;
}
/**
* @return tableName
*/
public String getTableName() {
return this.tableName;
}
public static final class Builder extends Request.Builder<DescribeColumnsV2Request, Builder> {
private Integer currentPage;
private String engineType;
private Long instanceId;
private String instanceName;
private String lang;
private String name;
private Integer pageSize;
private String productCode;
private Long riskLevelId;
private Long ruleId;
private String ruleName;
private String sensLevelName;
private String tableId;
private String tableName;
private Builder() {
super();
}
private Builder(DescribeColumnsV2Request request) {
super(request);
this.currentPage = request.currentPage;
this.engineType = request.engineType;
this.instanceId = request.instanceId;
this.instanceName = request.instanceName;
this.lang = request.lang;
this.name = request.name;
this.pageSize = request.pageSize;
this.productCode = request.productCode;
this.riskLevelId = request.riskLevelId;
this.ruleId = request.ruleId;
this.ruleName = request.ruleName;
this.sensLevelName = request.sensLevelName;
this.tableId = request.tableId;
this.tableName = request.tableName;
}
/**
* <p>When performing a paginated query, sets the current page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Engine type. Values:</p>
* <ul>
* <li><strong>MySQL</strong>.</li>
* <li><strong>MariaDB</strong>.</li>
* <li><strong>Oracle</strong>.</li>
* <li><strong>PostgreSQL</strong>.</li>
* <li><strong>SQLServer</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.putQueryParameter("EngineType", engineType);
this.engineType = engineType;
return this;
}
/**
* <p>ID of the asset instance to which the column data in the data asset table belongs.</p>
* <blockquote>
* <p>Query the data in the columns of the data assets authorized by the Data Security Center based on the ID of the asset instance to which the column data in the data asset table belongs. The asset instance ID can be obtained by calling the <a href="https://help.aliyun.com/document_detail/141708.html">DescribeInstances</a> interface.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder instanceId(Long instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>Name of the asset instance to which the column data in the data asset table belongs.</p>
*
* <strong>example:</strong>
* <p>rm-bp17t1htja573l5i8****</p>
*/
public Builder instanceName(String instanceName) {
this.putQueryParameter("InstanceName", instanceName);
this.instanceName = instanceName;
return this;
}
/**
* <p>Sets the language type for requests and received messages, default is <strong>zh_cn</strong>.
* Values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Simplified Chinese</li>
* <li><strong>en_us</strong>: English (United States)</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>Search keyword, supports fuzzy matching.</p>
* <p>For example, entering <strong>test</strong> will search for all data information containing <strong>test</strong> in the search items.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>When performing a paginated query, sets the maximum number of data asset instances displayed per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>Product name to which the column data in the data asset table belongs. Values: <strong>MaxCompute, OSS, ADS, OTS, RDS</strong>, etc.</p>
*
* <strong>example:</strong>
* <p>MaxCompute</p>
*/
public Builder productCode(String productCode) {
this.putQueryParameter("ProductCode", productCode);
this.productCode = productCode;
return this;
}
/**
* <p>Risk level ID of the sensitive data recognition rule. Values:</p>
* <ul>
* <li><strong>1</strong>: N/A.</li>
* <li><strong>2</strong>: S1.</li>
* <li><strong>3</strong>: S2.</li>
* <li><strong>4</strong>: S3.</li>
* <li><strong>5</strong>: S4.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.putQueryParameter("RiskLevelId", riskLevelId);
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>Unique identifier ID of the sensitive data recognition rule hit by the column data in the asset table.</p>
* <blockquote>
* <p>Query the data in the columns of the data assets authorized by the Data Security Center based on the ID of the sensitive data recognition rule hit by the column data in the asset table. The sensitive data recognition rule ID can be obtained by calling the <a href="https://help.aliyun.com/document_detail/141389.html">DescribeRules</a> interface.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>11122200</p>
*/
public Builder ruleId(Long ruleId) {
this.putQueryParameter("RuleId", ruleId);
this.ruleId = ruleId;
return this;
}
/**
* <p>Name of the sensitive data recognition rule hit by the column data in the data asset table.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder ruleName(String ruleName) {
this.putQueryParameter("RuleName", ruleName);
this.ruleName = ruleName;
return this;
}
/**
* <p>Sensitive level name. Values:</p>
* <ul>
* <li><strong>N/A</strong>: No sensitive data detected.</li>
* <li><strong>S1</strong>: Level 1 sensitive data.</li>
* <li><strong>S2</strong>: Level 2 sensitive data.</li>
* <li><strong>S3</strong>: Level 3 sensitive data.</li>
* <li><strong>S4</strong>: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S2</p>
*/
public Builder sensLevelName(String sensLevelName) {
this.putQueryParameter("SensLevelName", sensLevelName);
this.sensLevelName = sensLevelName;
return this;
}
/**
* <p>Unique identifier ID of the asset table to which the column in MaxCompute, RDS, etc., belongs.</p>
* <blockquote>
* <p>Query the data in the columns of the data assets authorized by the Data Security Center based on the ID of the asset table. The asset table ID can be obtained by calling the <a href="https://help.aliyun.com/document_detail/141709.html">DescribeTables</a> interface.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>11132334</p>
*/
public Builder tableId(String tableId) {
this.putQueryParameter("TableId", tableId);
this.tableId = tableId;
return this;
}
/**
* <p>Name of the data asset table.</p>
*
* <strong>example:</strong>
* <p>it_table</p>
*/
public Builder tableName(String tableName) {
this.putQueryParameter("TableName", tableName);
this.tableName = tableName;
return this;
}
@Override
public DescribeColumnsV2Request build() {
return new DescribeColumnsV2Request(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeColumnsV2Response.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeColumnsV2Response} extends {@link TeaModel}
*
* <p>DescribeColumnsV2Response</p>
*/
public class DescribeColumnsV2Response 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 DescribeColumnsV2ResponseBody body;
private DescribeColumnsV2Response(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeColumnsV2Response 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 DescribeColumnsV2ResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeColumnsV2Response, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeColumnsV2ResponseBody body);
@Override
DescribeColumnsV2Response build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeColumnsV2Response, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeColumnsV2ResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeColumnsV2Response 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(DescribeColumnsV2ResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeColumnsV2Response build() {
return new DescribeColumnsV2Response(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeColumnsV2ResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeColumnsV2ResponseBody} extends {@link TeaModel}
*
* <p>DescribeColumnsV2ResponseBody</p>
*/
public class DescribeColumnsV2ResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeColumnsV2ResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeColumnsV2ResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeColumnsV2ResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>When performing a paginated query, sets the current page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>List of recognition results for the columns in the data table.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>When performing a paginated query, sets the maximum number of data asset instances displayed per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The unique identifier generated by Alibaba Cloud for this request.</p>
*
* <strong>example:</strong>
* <p>B1F2BB1F-04EC-5D36-B136-B4DE17FD8DE0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Total number of data entries in the result.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeColumnsV2ResponseBody build() {
return new DescribeColumnsV2ResponseBody(this);
}
}
/**
*
* {@link DescribeColumnsV2ResponseBody} extends {@link TeaModel}
*
* <p>DescribeColumnsV2ResponseBody</p>
*/
public static class ModelTags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private ModelTags(Builder builder) {
this.id = builder.id;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static ModelTags create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Long id;
private String name;
private Builder() {
}
private Builder(ModelTags model) {
this.id = model.id;
this.name = model.name;
}
/**
* <p>Data tag ID. Values:</p>
* <ul>
* <li><strong>101</strong>: Personal sensitive information</li>
* <li><strong>102</strong>: Personal information</li>
* <li><strong>107</strong>: General information</li>
* </ul>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>Data tag name. Values:</p>
* <ul>
* <li>Personal sensitive information</li>
* <li>Personal information</li>
* <li>General information</li>
* </ul>
*
* <strong>example:</strong>
* <p>personal sensitive information</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public ModelTags build() {
return new ModelTags(this);
}
}
}
/**
*
* {@link DescribeColumnsV2ResponseBody} extends {@link TeaModel}
*
* <p>DescribeColumnsV2ResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private Long creationTime;
@com.aliyun.core.annotation.NameInMap("DataType")
private String dataType;
@com.aliyun.core.annotation.NameInMap("EngineType")
private String engineType;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private Long instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("MaskingStatus")
private Integer maskingStatus;
@com.aliyun.core.annotation.NameInMap("ModelTags")
private java.util.List<ModelTags> modelTags;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("OdpsRiskLevelName")
private String odpsRiskLevelName;
@com.aliyun.core.annotation.NameInMap("OdpsRiskLevelValue")
private Integer odpsRiskLevelValue;
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RevisionId")
private Long revisionId;
@com.aliyun.core.annotation.NameInMap("RevisionStatus")
private Long revisionStatus;
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.NameInMap("RiskLevelName")
private String riskLevelName;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("SensLevelName")
private String sensLevelName;
@com.aliyun.core.annotation.NameInMap("Sensitive")
private Boolean sensitive;
@com.aliyun.core.annotation.NameInMap("TableId")
private Long tableId;
@com.aliyun.core.annotation.NameInMap("TableName")
private String tableName;
private Items(Builder builder) {
this.creationTime = builder.creationTime;
this.dataType = builder.dataType;
this.engineType = builder.engineType;
this.id = builder.id;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.maskingStatus = builder.maskingStatus;
this.modelTags = builder.modelTags;
this.name = builder.name;
this.odpsRiskLevelName = builder.odpsRiskLevelName;
this.odpsRiskLevelValue = builder.odpsRiskLevelValue;
this.productCode = builder.productCode;
this.productId = builder.productId;
this.regionId = builder.regionId;
this.revisionId = builder.revisionId;
this.revisionStatus = builder.revisionStatus;
this.riskLevelId = builder.riskLevelId;
this.riskLevelName = builder.riskLevelName;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.sensLevelName = builder.sensLevelName;
this.sensitive = builder.sensitive;
this.tableId = builder.tableId;
this.tableName = builder.tableName;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return creationTime
*/
public Long getCreationTime() {
return this.creationTime;
}
/**
* @return dataType
*/
public String getDataType() {
return this.dataType;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return instanceId
*/
public Long getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return maskingStatus
*/
public Integer getMaskingStatus() {
return this.maskingStatus;
}
/**
* @return modelTags
*/
public java.util.List<ModelTags> getModelTags() {
return this.modelTags;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return odpsRiskLevelName
*/
public String getOdpsRiskLevelName() {
return this.odpsRiskLevelName;
}
/**
* @return odpsRiskLevelValue
*/
public Integer getOdpsRiskLevelValue() {
return this.odpsRiskLevelValue;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return revisionId
*/
public Long getRevisionId() {
return this.revisionId;
}
/**
* @return revisionStatus
*/
public Long getRevisionStatus() {
return this.revisionStatus;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return riskLevelName
*/
public String getRiskLevelName() {
return this.riskLevelName;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return sensLevelName
*/
public String getSensLevelName() {
return this.sensLevelName;
}
/**
* @return sensitive
*/
public Boolean getSensitive() {
return this.sensitive;
}
/**
* @return tableId
*/
public Long getTableId() {
return this.tableId;
}
/**
* @return tableName
*/
public String getTableName() {
return this.tableName;
}
public static final class Builder {
private Long creationTime;
private String dataType;
private String engineType;
private String id;
private Long instanceId;
private String instanceName;
private Integer maskingStatus;
private java.util.List<ModelTags> modelTags;
private String name;
private String odpsRiskLevelName;
private Integer odpsRiskLevelValue;
private String productCode;
private Long productId;
private String regionId;
private Long revisionId;
private Long revisionStatus;
private Long riskLevelId;
private String riskLevelName;
private Long ruleId;
private String ruleName;
private String sensLevelName;
private Boolean sensitive;
private Long tableId;
private String tableName;
private Builder() {
}
private Builder(Items model) {
this.creationTime = model.creationTime;
this.dataType = model.dataType;
this.engineType = model.engineType;
this.id = model.id;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.maskingStatus = model.maskingStatus;
this.modelTags = model.modelTags;
this.name = model.name;
this.odpsRiskLevelName = model.odpsRiskLevelName;
this.odpsRiskLevelValue = model.odpsRiskLevelValue;
this.productCode = model.productCode;
this.productId = model.productId;
this.regionId = model.regionId;
this.revisionId = model.revisionId;
this.revisionStatus = model.revisionStatus;
this.riskLevelId = model.riskLevelId;
this.riskLevelName = model.riskLevelName;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.sensLevelName = model.sensLevelName;
this.sensitive = model.sensitive;
this.tableId = model.tableId;
this.tableName = model.tableName;
}
/**
* <p>The creation time of the column data in the data asset table, in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1536751124000</p>
*/
public Builder creationTime(Long creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The data type of the column data in the data asset table.</p>
*
* <strong>example:</strong>
* <p>varchar</p>
*/
public Builder dataType(String dataType) {
this.dataType = dataType;
return this;
}
/**
* <p>Engine type. Values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>MariaDB</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.engineType = engineType;
return this;
}
/**
* <p>The unique identifier ID of the column in the data asset table.</p>
*
* <strong>example:</strong>
* <p>111111</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>The ID of the asset instance to which the column data in the data asset table belongs.</p>
*
* <strong>example:</strong>
* <p>1232122</p>
*/
public Builder instanceId(Long instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the asset instance to which the column data in the data asset table belongs.</p>
*
* <strong>example:</strong>
* <p>rm-1234</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>Column encryption status. Values:</p>
* <ul>
* <li><p><strong>-1</strong>: Not encrypted</p>
* </li>
* <li><p><strong>1</strong>: Encryption successful</p>
* </li>
* <li><p><strong>2</strong>: Encryption failed</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder maskingStatus(Integer maskingStatus) {
this.maskingStatus = maskingStatus;
return this;
}
/**
* <p>Data tag list.</p>
*/
public Builder modelTags(java.util.List<ModelTags> modelTags) {
this.modelTags = modelTags;
return this;
}
/**
* <p>The name of the column in the data asset table.</p>
*
* <strong>example:</strong>
* <p>obj_id</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The risk level name of the asset. Values:</p>
* <ul>
* <li><strong>N/A</strong>: No sensitive data detected.</li>
* <li><strong>S1</strong>: Level 1 sensitive data.</li>
* <li><strong>S2</strong>: Level 2 sensitive data.</li>
* <li><strong>S3</strong>: Level 3 sensitive data.</li>
* <li><strong>S4</strong>: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S4</p>
*/
public Builder odpsRiskLevelName(String odpsRiskLevelName) {
this.odpsRiskLevelName = odpsRiskLevelName;
return this;
}
/**
* <p>The risk level code of the asset. Values:</p>
* <ul>
* <li><strong>1</strong>: N/A.</li>
* <li><strong>2</strong>: S1.</li>
* <li><strong>3</strong>: S2.</li>
* <li><strong>4</strong>: S3.</li>
* <li><strong>5</strong>: S4.</li>
* </ul>
* <blockquote>
* <p>A return value <= 1 represents N/A.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder odpsRiskLevelValue(Integer odpsRiskLevelValue) {
this.odpsRiskLevelValue = odpsRiskLevelValue;
return this;
}
/**
* <p>The product name to which the column data in the data asset table belongs. Values: <strong>MaxCompute, OSS, ADS, OTS, RDS</strong>, etc.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder productCode(String productCode) {
this.productCode = productCode;
return this;
}
/**
* <p>The ID corresponding to the product name of the data asset. Values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: ADS</li>
* <li><strong>4</strong>: OTS</li>
* <li><strong>5</strong>: RDS</li>
* <li><strong>6</strong>: SELF_DB</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(Long productId) {
this.productId = productId;
return this;
}
/**
* <p>The region where the asset is located.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Correction record ID.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder revisionId(Long revisionId) {
this.revisionId = revisionId;
return this;
}
/**
* <p>Correction status. Values:</p>
* <ul>
* <li>1: Corrected.</li>
* <li>0: Not corrected.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder revisionStatus(Long revisionStatus) {
this.revisionStatus = revisionStatus;
return this;
}
/**
* <p>The risk level ID of the column data in the data asset table. Values:</p>
* <ul>
* <li><strong>1</strong>: N/A.</li>
* <li><strong>2</strong>: S1.</li>
* <li><strong>3</strong>: S2.</li>
* <li><strong>4</strong>: S3.</li>
* <li><strong>5</strong>: S4.</li>
* </ul>
* <blockquote>
* <p>A return value <= 1 represents N/A.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>The risk level name of the column data in the data asset table. Values:</p>
* <ul>
* <li><strong>N/A</strong>: No sensitive data detected.</li>
* <li><strong>S1</strong>: Level 1 sensitive data.</li>
* <li><strong>S2</strong>: Level 2 sensitive data.</li>
* <li><strong>S3</strong>: Level 3 sensitive data.</li>
* <li><strong>S4</strong>: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S1</p>
*/
public Builder riskLevelName(String riskLevelName) {
this.riskLevelName = riskLevelName;
return this;
}
/**
* <p>The ID of the sensitive data recognition rule that the column data in the data asset table hits.</p>
*
* <strong>example:</strong>
* <p>1004</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the sensitive data recognition rule that the column data in the data asset table hits.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The sensitivity level name. Values:</p>
* <ul>
* <li><strong>N/A</strong>: No sensitive data detected.</li>
* <li><strong>S1</strong>: Level 1 sensitive data.</li>
* <li><strong>S2</strong>: Level 2 sensitive data.</li>
* <li><strong>S3</strong>: Level 3 sensitive data.</li>
* <li><strong>S4</strong>: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S2</p>
*/
public Builder sensLevelName(String sensLevelName) {
this.sensLevelName = sensLevelName;
return this;
}
/**
* <p>Whether the column data in the data asset table contains sensitive data. Values:</p>
* <ul>
* <li>true: The column data in the data asset table contains sensitive data.</li>
* <li>false: The column data in the data asset table does not contain sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder sensitive(Boolean sensitive) {
this.sensitive = sensitive;
return this;
}
/**
* <p>The ID of the asset table to which the column data in the data asset table belongs.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder tableId(Long tableId) {
this.tableId = tableId;
return this;
}
/**
* <p>The name of the table to which the target column for correction belongs.</p>
*
* <strong>example:</strong>
* <p>it_table</p>
*/
public Builder tableName(String tableName) {
this.tableName = tableName;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeConfigsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeConfigsRequest} extends {@link RequestModel}
*
* <p>DescribeConfigsRequest</p>
*/
public class DescribeConfigsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private DescribeConfigsRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static DescribeConfigsRequest 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<DescribeConfigsRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(DescribeConfigsRequest 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 DescribeConfigsRequest build() {
return new DescribeConfigsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeConfigsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeConfigsResponse} extends {@link TeaModel}
*
* <p>DescribeConfigsResponse</p>
*/
public class DescribeConfigsResponse 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 DescribeConfigsResponseBody body;
private DescribeConfigsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeConfigsResponse 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 DescribeConfigsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeConfigsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeConfigsResponseBody body);
@Override
DescribeConfigsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeConfigsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeConfigsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeConfigsResponse 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(DescribeConfigsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeConfigsResponse build() {
return new DescribeConfigsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeConfigsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeConfigsResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigsResponseBody</p>
*/
public class DescribeConfigsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigList")
private java.util.List<ConfigList> configList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeConfigsResponseBody(Builder builder) {
this.configList = builder.configList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeConfigsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return configList
*/
public java.util.List<ConfigList> getConfigList() {
return this.configList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<ConfigList> configList;
private String requestId;
private Builder() {
}
private Builder(DescribeConfigsResponseBody model) {
this.configList = model.configList;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of common configuration items for alerts.</p>
*/
public Builder configList(java.util.List<ConfigList> configList) {
this.configList = configList;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-42DF-9B72-7077A8989C13</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeConfigsResponseBody build() {
return new DescribeConfigsResponseBody(this);
}
}
/**
*
* {@link DescribeConfigsResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigsResponseBody</p>
*/
public static class ConfigList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("DefaultValue")
private String defaultValue;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private ConfigList(Builder builder) {
this.code = builder.code;
this.defaultValue = builder.defaultValue;
this.description = builder.description;
this.id = builder.id;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static ConfigList create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return defaultValue
*/
public String getDefaultValue() {
return this.defaultValue;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String code;
private String defaultValue;
private String description;
private Long id;
private String value;
private Builder() {
}
private Builder(ConfigList model) {
this.code = model.code;
this.defaultValue = model.defaultValue;
this.description = model.description;
this.id = model.id;
this.value = model.value;
}
/**
* <p>The code of the common configuration item.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The description of the default value for the common configuration item.</p>
*
* <strong>example:</strong>
* <p>The volume of logs of a specific type that are generated on the current day is less than 30% of the average volume of logs generated in the previous 10 days.</p>
*/
public Builder defaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
/**
* <p>The description of the common configuration item.</p>
*
* <strong>example:</strong>
* <p>Anomalous log output</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The unique ID of the common configuration item.</p>
*
* <strong>example:</strong>
* <p>2133</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The value of the common configuration item.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public ConfigList build() {
return new ConfigList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataAssetsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataAssetsRequest} extends {@link RequestModel}
*
* <p>DescribeDataAssetsRequest</p>
*/
public class DescribeDataAssetsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RangeId")
private Integer rangeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevels")
private String riskLevels;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
private DescribeDataAssetsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.rangeId = builder.rangeId;
this.riskLevels = builder.riskLevels;
this.ruleId = builder.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataAssetsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return rangeId
*/
public Integer getRangeId() {
return this.rangeId;
}
/**
* @return riskLevels
*/
public String getRiskLevels() {
return this.riskLevels;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
public static final class Builder extends Request.Builder<DescribeDataAssetsRequest, Builder> {
private Integer currentPage;
private String lang;
private String name;
private Integer pageSize;
private Integer rangeId;
private String riskLevels;
private Long ruleId;
private Builder() {
super();
}
private Builder(DescribeDataAssetsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.name = request.name;
this.pageSize = request.pageSize;
this.rangeId = request.rangeId;
this.riskLevels = request.riskLevels;
this.ruleId = request.ruleId;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Simplified Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The keyword that is used to search for data assets. Fuzzy search is supported.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The type of the data asset that you want to query. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute project</li>
* <li><strong>2</strong>: MaxCompute table</li>
* <li><strong>3</strong>: MaxCompute package</li>
* <li><strong>11</strong>: AnalyticDB for MySQL database</li>
* <li><strong>12</strong>: AnalyticDB for MySQL table</li>
* <li><strong>21</strong>: Object Storage Service (OSS) bucket</li>
* <li><strong>22</strong>: OSS object</li>
* <li><strong>31</strong>: Tablestore instance</li>
* <li><strong>32</strong>: Tablestore table</li>
* <li><strong>51</strong>: ApsaraDB RDS database</li>
* <li><strong>52</strong>: ApsaraDB RDS table</li>
* <li><strong>61</strong>: self-managed database hosted on an Elastic Compute Service (ECS) instance</li>
* <li><strong>62</strong>: self-managed table hosted on an ECS instance</li>
* <li><strong>71</strong>: PolarDB-X database</li>
* <li><strong>72</strong>: PolarDB-X table</li>
* <li><strong>81</strong>: PolarDB database</li>
* <li><strong>82</strong>: PolarDB table</li>
* <li><strong>91</strong>: AnalyticDB for PostgreSQL database</li>
* <li><strong>92</strong>: AnalyticDB for PostgreSQL table</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder rangeId(Integer rangeId) {
this.putQueryParameter("RangeId", rangeId);
this.rangeId = rangeId;
return this;
}
/**
* <p>The sensitivity level of the data asset. Separate multiple sensitivity levels with commas (,). Valid values:</p>
* <ul>
* <li><strong>2</strong>: S1, indicating the low sensitivity level</li>
* <li><strong>3</strong>: S2, indicating the medium sensitivity level</li>
* <li><strong>4</strong>: S3, indicating the high sensitivity level</li>
* <li><strong>5</strong>: S4, indicating the highest sensitivity level</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevels(String riskLevels) {
this.putQueryParameter("RiskLevels", riskLevels);
this.riskLevels = riskLevels;
return this;
}
/**
* <p>The unique ID of the sensitive data detection rule that the data assets to be queried hit.</p>
* <blockquote>
* <p>If you query sensitive data detection results based on the sensitive data detection rule that the data assets hit, you can call the <a href="~~DescribeRules~~">DescribeRules</a> operation to query the ID of the sensitive data detection rule.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>11122200</p>
*/
public Builder ruleId(Long ruleId) {
this.putQueryParameter("RuleId", ruleId);
this.ruleId = ruleId;
return this;
}
@Override
public DescribeDataAssetsRequest build() {
return new DescribeDataAssetsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataAssetsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataAssetsResponse} extends {@link TeaModel}
*
* <p>DescribeDataAssetsResponse</p>
*/
public class DescribeDataAssetsResponse 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 DescribeDataAssetsResponseBody body;
private DescribeDataAssetsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataAssetsResponse 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 DescribeDataAssetsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataAssetsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataAssetsResponseBody body);
@Override
DescribeDataAssetsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataAssetsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataAssetsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataAssetsResponse 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(DescribeDataAssetsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataAssetsResponse build() {
return new DescribeDataAssetsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataAssetsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataAssetsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataAssetsResponseBody</p>
*/
public class DescribeDataAssetsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeDataAssetsResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataAssetsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeDataAssetsResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>An array that consists of data assets.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>71064826-726F-4ADA-B879-05D8055476FB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of queried data assets that contain sensitive data.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDataAssetsResponseBody build() {
return new DescribeDataAssetsResponseBody(this);
}
}
/**
*
* {@link DescribeDataAssetsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataAssetsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Acl")
private String acl;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private Long creationTime;
@com.aliyun.core.annotation.NameInMap("DataType")
private String dataType;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("Labelsec")
private Boolean labelsec;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ObjectKey")
private String objectKey;
@com.aliyun.core.annotation.NameInMap("OdpsRiskLevelName")
private String odpsRiskLevelName;
@com.aliyun.core.annotation.NameInMap("Owner")
private String owner;
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.NameInMap("ProductId")
private String productId;
@com.aliyun.core.annotation.NameInMap("Protection")
private Boolean protection;
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.NameInMap("RiskLevelName")
private String riskLevelName;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Sensitive")
private Boolean sensitive;
@com.aliyun.core.annotation.NameInMap("SensitiveCount")
private Integer sensitiveCount;
@com.aliyun.core.annotation.NameInMap("SensitiveRatio")
private String sensitiveRatio;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private Items(Builder builder) {
this.acl = builder.acl;
this.creationTime = builder.creationTime;
this.dataType = builder.dataType;
this.id = builder.id;
this.labelsec = builder.labelsec;
this.name = builder.name;
this.objectKey = builder.objectKey;
this.odpsRiskLevelName = builder.odpsRiskLevelName;
this.owner = builder.owner;
this.productCode = builder.productCode;
this.productId = builder.productId;
this.protection = builder.protection;
this.riskLevelId = builder.riskLevelId;
this.riskLevelName = builder.riskLevelName;
this.ruleName = builder.ruleName;
this.sensitive = builder.sensitive;
this.sensitiveCount = builder.sensitiveCount;
this.sensitiveRatio = builder.sensitiveRatio;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return acl
*/
public String getAcl() {
return this.acl;
}
/**
* @return creationTime
*/
public Long getCreationTime() {
return this.creationTime;
}
/**
* @return dataType
*/
public String getDataType() {
return this.dataType;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return labelsec
*/
public Boolean getLabelsec() {
return this.labelsec;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return objectKey
*/
public String getObjectKey() {
return this.objectKey;
}
/**
* @return odpsRiskLevelName
*/
public String getOdpsRiskLevelName() {
return this.odpsRiskLevelName;
}
/**
* @return owner
*/
public String getOwner() {
return this.owner;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return productId
*/
public String getProductId() {
return this.productId;
}
/**
* @return protection
*/
public Boolean getProtection() {
return this.protection;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return riskLevelName
*/
public String getRiskLevelName() {
return this.riskLevelName;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return sensitive
*/
public Boolean getSensitive() {
return this.sensitive;
}
/**
* @return sensitiveCount
*/
public Integer getSensitiveCount() {
return this.sensitiveCount;
}
/**
* @return sensitiveRatio
*/
public String getSensitiveRatio() {
return this.sensitiveRatio;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private String acl;
private Long creationTime;
private String dataType;
private String id;
private Boolean labelsec;
private String name;
private String objectKey;
private String odpsRiskLevelName;
private String owner;
private String productCode;
private String productId;
private Boolean protection;
private Long riskLevelId;
private String riskLevelName;
private String ruleName;
private Boolean sensitive;
private Integer sensitiveCount;
private String sensitiveRatio;
private Integer totalCount;
private Builder() {
}
private Builder(Items model) {
this.acl = model.acl;
this.creationTime = model.creationTime;
this.dataType = model.dataType;
this.id = model.id;
this.labelsec = model.labelsec;
this.name = model.name;
this.objectKey = model.objectKey;
this.odpsRiskLevelName = model.odpsRiskLevelName;
this.owner = model.owner;
this.productCode = model.productCode;
this.productId = model.productId;
this.protection = model.protection;
this.riskLevelId = model.riskLevelId;
this.riskLevelName = model.riskLevelName;
this.ruleName = model.ruleName;
this.sensitive = model.sensitive;
this.sensitiveCount = model.sensitiveCount;
this.sensitiveRatio = model.sensitiveRatio;
this.totalCount = model.totalCount;
}
/**
* <p>The access control list (ACL) that controls the access permissions on the OSS bucket.</p>
* <blockquote>
* <p>This parameter is returned only when you set the parameter <strong>RangeId</strong> to <strong>21</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>private</p>
*/
public Builder acl(String acl) {
this.acl = acl;
return this;
}
/**
* <p>The time when the data asset was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1536751124000</p>
*/
public Builder creationTime(Long creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The data type of the data asset.</p>
*
* <strong>example:</strong>
* <p>OSS_BUCKET</p>
*/
public Builder dataType(String dataType) {
this.dataType = dataType;
return this;
}
/**
* <p>The ID of the data asset.</p>
*
* <strong>example:</strong>
* <p>268</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>The sensitivity tag of the data. The value is fixed as <strong>0</strong>. <strong>0</strong>, <strong>1</strong>, <strong>2</strong>, or <strong>3</strong> is returned for this parameter only when you set the parameter <strong>RangeId</strong> to <strong>1</strong>.</p>
* <ul>
* <li><strong>0</strong>: unclassified</li>
* <li><strong>1</strong>: confidential</li>
* <li><strong>2</strong>: sensitive</li>
* <li><strong>3</strong>: highly sensitive</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder labelsec(Boolean labelsec) {
this.labelsec = labelsec;
return this;
}
/**
* <p>The name of the data asset.</p>
*
* <strong>example:</strong>
* <p>gxdata</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The key value of the OSS object.</p>
* <blockquote>
* <p>This parameter is returned only when you set the parameter <strong>RangeId</strong> to <strong>22</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Internal</p>
*/
public Builder objectKey(String objectKey) {
this.objectKey = objectKey;
return this;
}
/**
* <p>The sensitivity level of the MaxCompute data asset. Valid values:</p>
* <ul>
* <li><strong>S1</strong>: low sensitivity level</li>
* <li><strong>S2</strong>: medium sensitivity level</li>
* <li><strong>S3</strong>: high sensitivity level</li>
* <li><strong>S4</strong>: highest sensitivity level</li>
* </ul>
* <blockquote>
* <p>This parameter is returned only when you set the parameter <strong>RangeId</strong> to <strong>1</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>S4</p>
*/
public Builder odpsRiskLevelName(String odpsRiskLevelName) {
this.odpsRiskLevelName = odpsRiskLevelName;
return this;
}
/**
* <p>The account that owns the data asset.</p>
*
* <strong>example:</strong>
* <p>dtdep-239-******</p>
*/
public Builder owner(String owner) {
this.owner = owner;
return this;
}
/**
* <p>The name of the service to which the data asset belongs.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder productCode(String productCode) {
this.productCode = productCode;
return this;
}
/**
* <p>The ID of the service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(String productId) {
this.productId = productId;
return this;
}
/**
* <p>Indicates whether the data protection mechanism is enabled for the data asset. The value is fixed as <strong>false</strong>. <strong>true</strong> or <strong>false</strong> is returned for this parameter only when you set the parameter <strong>RangeId</strong> to <strong>1</strong>.</p>
* <ul>
* <li><strong>false</strong>: The data protection mechanism is disabled.</li>
* <li><strong>true</strong>: The data protection mechanism is enabled. Only data inbound is supported. Data outbound is not supported.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder protection(Boolean protection) {
this.protection = protection;
return this;
}
/**
* <p>The sensitivity level of the data asset. A higher sensitivity level indicates that the identified data is more sensitive. Valid values:</p>
* <ul>
* <li><strong>1</strong>: No sensitive data is identified.</li>
* <li><strong>2</strong>: sensitive data at level 1.</li>
* <li><strong>3</strong>: sensitive data at level 2.</li>
* <li><strong>3</strong>: sensitive data at level 3.</li>
* <li><strong>5</strong>: sensitive data at level 4.</li>
* <li><strong>6</strong>: sensitive data at level 5.</li>
* <li><strong>7</strong>: sensitive data at level 6.</li>
* <li><strong>8</strong>: sensitive data at level 7.</li>
* <li><strong>9</strong>: sensitive data at level 8.</li>
* <li><strong>10</strong>: sensitive data at level 9.</li>
* <li><strong>11</strong>: sensitive data at level 10.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>The name of the sensitivity level for the data asset.</p>
*
* <strong>example:</strong>
* <p>Medium sensitivity level</p>
*/
public Builder riskLevelName(String riskLevelName) {
this.riskLevelName = riskLevelName;
return this;
}
/**
* <p>The name of the sensitive data detection rule that the data asset hits.</p>
*
* <strong>example:</strong>
* <p>*** rule</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>Indicates whether the data asset contains sensitive data. 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 sensitive(Boolean sensitive) {
this.sensitive = sensitive;
return this;
}
/**
* <p>The total number of sensitive data assets. For example, the value can be the total number of sensitive MaxCompute projects, packages, or tables, the total number of sensitive ApsaraDB RDS databases or tables, or the total number of sensitive OSS buckets or objects.</p>
*
* <strong>example:</strong>
* <p>24</p>
*/
public Builder sensitiveCount(Integer sensitiveCount) {
this.sensitiveCount = sensitiveCount;
return this;
}
/**
* <p>The percentage of sensitive data in all data assets.</p>
*
* <strong>example:</strong>
* <p>45%</p>
*/
public Builder sensitiveRatio(String sensitiveRatio) {
this.sensitiveRatio = sensitiveRatio;
return this;
}
/**
* <p>The total number of data assets. For example, the value can be the total number of MaxCompute projects, packages, or tables, the total number of ApsaraDB RDS databases or tables, or the total number of OSS buckets or objects.</p>
*
* <strong>example:</strong>
* <p>432</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitDetailRequest} extends {@link RequestModel}
*
* <p>DescribeDataLimitDetailRequest</p>
*/
public class DescribeDataLimitDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private Long id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkType")
private Integer networkType;
private DescribeDataLimitDetailRequest(Builder builder) {
super(builder);
this.featureType = builder.featureType;
this.id = builder.id;
this.lang = builder.lang;
this.networkType = builder.networkType;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataLimitDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return networkType
*/
public Integer getNetworkType() {
return this.networkType;
}
public static final class Builder extends Request.Builder<DescribeDataLimitDetailRequest, Builder> {
private Integer featureType;
private Long id;
private String lang;
private Integer networkType;
private Builder() {
super();
}
private Builder(DescribeDataLimitDetailRequest request) {
super(request);
this.featureType = request.featureType;
this.id = request.id;
this.lang = request.lang;
this.networkType = request.networkType;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>The unique ID of the data asset that you want to query.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeDataLimits~~">DescribeDataLimits</a> operation to query the ID of the data asset.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>12300</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>: Simplified 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 network type of the data asset that you want to query. Valid values:</p>
* <ul>
* <li><strong>1</strong>: virtual private cloud (VPC)</li>
* <li><strong>2</strong>: classic network</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder networkType(Integer networkType) {
this.putQueryParameter("NetworkType", networkType);
this.networkType = networkType;
return this;
}
@Override
public DescribeDataLimitDetailRequest build() {
return new DescribeDataLimitDetailRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitDetailResponse} extends {@link TeaModel}
*
* <p>DescribeDataLimitDetailResponse</p>
*/
public class DescribeDataLimitDetailResponse 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 DescribeDataLimitDetailResponseBody body;
private DescribeDataLimitDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataLimitDetailResponse 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 DescribeDataLimitDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataLimitDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataLimitDetailResponseBody body);
@Override
DescribeDataLimitDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataLimitDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataLimitDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataLimitDetailResponse 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(DescribeDataLimitDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataLimitDetailResponse build() {
return new DescribeDataLimitDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitDetailResponseBody</p>
*/
public class DescribeDataLimitDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DataLimit")
private DataLimit dataLimit;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDataLimitDetailResponseBody(Builder builder) {
this.dataLimit = builder.dataLimit;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataLimitDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dataLimit
*/
public DataLimit getDataLimit() {
return this.dataLimit;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private DataLimit dataLimit;
private String requestId;
private Builder() {
}
private Builder(DescribeDataLimitDetailResponseBody model) {
this.dataLimit = model.dataLimit;
this.requestId = model.requestId;
}
/**
* <p>The details of the data asset.</p>
*/
public Builder dataLimit(DataLimit dataLimit) {
this.dataLimit = dataLimit;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-42DF-9B72-7077A8989C13</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDataLimitDetailResponseBody build() {
return new DescribeDataLimitDetailResponseBody(this);
}
}
/**
*
* {@link DescribeDataLimitDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitDetailResponseBody</p>
*/
public static class DataLimit extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckStatus")
private Integer checkStatus;
@com.aliyun.core.annotation.NameInMap("CheckStatusName")
private String checkStatusName;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("ParentId")
private String parentId;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private Long resourceType;
@com.aliyun.core.annotation.NameInMap("ResourceTypeCode")
private String resourceTypeCode;
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
private DataLimit(Builder builder) {
this.checkStatus = builder.checkStatus;
this.checkStatusName = builder.checkStatusName;
this.gmtCreate = builder.gmtCreate;
this.id = builder.id;
this.localName = builder.localName;
this.parentId = builder.parentId;
this.port = builder.port;
this.regionId = builder.regionId;
this.resourceType = builder.resourceType;
this.resourceTypeCode = builder.resourceTypeCode;
this.userName = builder.userName;
}
public static Builder builder() {
return new Builder();
}
public static DataLimit create() {
return builder().build();
}
/**
* @return checkStatus
*/
public Integer getCheckStatus() {
return this.checkStatus;
}
/**
* @return checkStatusName
*/
public String getCheckStatusName() {
return this.checkStatusName;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return parentId
*/
public String getParentId() {
return this.parentId;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceType
*/
public Long getResourceType() {
return this.resourceType;
}
/**
* @return resourceTypeCode
*/
public String getResourceTypeCode() {
return this.resourceTypeCode;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
public static final class Builder {
private Integer checkStatus;
private String checkStatusName;
private Long gmtCreate;
private Long id;
private String localName;
private String parentId;
private Integer port;
private String regionId;
private Long resourceType;
private String resourceTypeCode;
private String userName;
private Builder() {
}
private Builder(DataLimit model) {
this.checkStatus = model.checkStatus;
this.checkStatusName = model.checkStatusName;
this.gmtCreate = model.gmtCreate;
this.id = model.id;
this.localName = model.localName;
this.parentId = model.parentId;
this.port = model.port;
this.regionId = model.regionId;
this.resourceType = model.resourceType;
this.resourceTypeCode = model.resourceTypeCode;
this.userName = model.userName;
}
/**
* <p>The status of the connectivity test between the data asset and DSC. Valid values:</p>
* <ul>
* <li><strong>2</strong>: indicates that the data asset was being connected.</li>
* <li><strong>3</strong>: indicates that the data asset was connected to DSC.</li>
* <li><strong>4</strong>: indicates that the data asset failed to be connected.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder checkStatus(Integer checkStatus) {
this.checkStatus = checkStatus;
return this;
}
/**
* <p>The result that indicates the status of the connectivity test between the data asset and DSC. Valid values:</p>
* <ul>
* <li><strong>Passed</strong></li>
* <li><strong>Failed</strong></li>
* <li><strong>Testing</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Passed</p>
*/
public Builder checkStatusName(String checkStatusName) {
this.checkStatusName = checkStatusName;
return this;
}
/**
* <p>The time when the data asset was connected to DSC. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>145600000</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The ID of the data asset.</p>
*
* <strong>example:</strong>
* <p>12300</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The region in which the data asset resides.</p>
*
* <strong>example:</strong>
* <p>China (Qingdao)</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The ID and name of the data asset in the service to which the data asset belongs.</p>
*
* <strong>example:</strong>
* <p>rm-m5eup49p6o274****.RDS_example</p>
*/
public Builder parentId(String parentId) {
this.parentId = parentId;
return this;
}
/**
* <p>The port number that is used to connect to the database.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The ID of the region in which the data asset resides.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The type of the service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder resourceType(Long resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>MaxCompute</strong></li>
* <li><strong>OSS</strong></li>
* <li><strong>ADS</strong></li>
* <li><strong>OTS</strong></li>
* <li><strong>RDS</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder resourceTypeCode(String resourceTypeCode) {
this.resourceTypeCode = resourceTypeCode;
return this;
}
/**
* <p>The account of the user who manages the data asset.</p>
*
* <strong>example:</strong>
* <p>User01</p>
*/
public Builder userName(String userName) {
this.userName = userName;
return this;
}
public DataLimit build() {
return new DataLimit(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitSetRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitSetRequest} extends {@link RequestModel}
*
* <p>DescribeDataLimitSetRequest</p>
*/
public class DescribeDataLimitSetRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParentId")
private String parentId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionType")
private String regionType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private Integer resourceType;
private DescribeDataLimitSetRequest(Builder builder) {
super(builder);
this.featureType = builder.featureType;
this.lang = builder.lang;
this.parentId = builder.parentId;
this.regionType = builder.regionType;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataLimitSetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return parentId
*/
public String getParentId() {
return this.parentId;
}
/**
* @return regionType
*/
public String getRegionType() {
return this.regionType;
}
/**
* @return resourceType
*/
public Integer getResourceType() {
return this.resourceType;
}
public static final class Builder extends Request.Builder<DescribeDataLimitSetRequest, Builder> {
private Integer featureType;
private String lang;
private String parentId;
private String regionType;
private Integer resourceType;
private Builder() {
super();
}
private Builder(DescribeDataLimitSetRequest request) {
super(request);
this.featureType = request.featureType;
this.lang = request.lang;
this.parentId = request.parentId;
this.regionType = request.regionType;
this.resourceType = request.resourceType;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Simplified Chinese (default)</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The parent asset ID of the data asset.</p>
* <p>You can call the <a href="~~DescribeDataLimitDetail~~">DescribeDataLimitDetail</a> or <a href="~~DescribeDataLimits~~">DescribeDataLimits</a> operation to obtain the parent asset ID of the data asset from the value of the <strong>ParentId</strong> parameter.</p>
*
* <strong>example:</strong>
* <p>db</p>
*/
public Builder parentId(String parentId) {
this.putQueryParameter("ParentId", parentId);
this.parentId = parentId;
return this;
}
/**
* RegionType.
*/
public Builder regionType(String regionType) {
this.putQueryParameter("RegionType", regionType);
this.regionType = regionType;
return this;
}
/**
* <p>The type of service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder resourceType(Integer resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
@Override
public DescribeDataLimitSetRequest build() {
return new DescribeDataLimitSetRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitSetResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitSetResponse} extends {@link TeaModel}
*
* <p>DescribeDataLimitSetResponse</p>
*/
public class DescribeDataLimitSetResponse 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 DescribeDataLimitSetResponseBody body;
private DescribeDataLimitSetResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataLimitSetResponse 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 DescribeDataLimitSetResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataLimitSetResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataLimitSetResponseBody body);
@Override
DescribeDataLimitSetResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataLimitSetResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataLimitSetResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataLimitSetResponse 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(DescribeDataLimitSetResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataLimitSetResponse build() {
return new DescribeDataLimitSetResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitSetResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitSetResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitSetResponseBody</p>
*/
public class DescribeDataLimitSetResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DataLimitSet")
private DataLimitSet dataLimitSet;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDataLimitSetResponseBody(Builder builder) {
this.dataLimitSet = builder.dataLimitSet;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataLimitSetResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dataLimitSet
*/
public DataLimitSet getDataLimitSet() {
return this.dataLimitSet;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private DataLimitSet dataLimitSet;
private String requestId;
private Builder() {
}
private Builder(DescribeDataLimitSetResponseBody model) {
this.dataLimitSet = model.dataLimitSet;
this.requestId = model.requestId;
}
/**
* <p>The information about the data asset.</p>
*/
public Builder dataLimitSet(DataLimitSet dataLimitSet) {
this.dataLimitSet = dataLimitSet;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-42DF-9B72-7077A8989C13</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDataLimitSetResponseBody build() {
return new DescribeDataLimitSetResponseBody(this);
}
}
/**
*
* {@link DescribeDataLimitSetResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitSetResponseBody</p>
*/
public static class DataLimitList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckStatus")
private Integer checkStatus;
@com.aliyun.core.annotation.NameInMap("CheckStatusName")
private String checkStatusName;
@com.aliyun.core.annotation.NameInMap("Connector")
private String connector;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("ParentId")
private String parentId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private Long resourceType;
@com.aliyun.core.annotation.NameInMap("ResourceTypeCode")
private String resourceTypeCode;
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
private DataLimitList(Builder builder) {
this.checkStatus = builder.checkStatus;
this.checkStatusName = builder.checkStatusName;
this.connector = builder.connector;
this.gmtCreate = builder.gmtCreate;
this.id = builder.id;
this.localName = builder.localName;
this.parentId = builder.parentId;
this.regionId = builder.regionId;
this.resourceType = builder.resourceType;
this.resourceTypeCode = builder.resourceTypeCode;
this.userName = builder.userName;
}
public static Builder builder() {
return new Builder();
}
public static DataLimitList create() {
return builder().build();
}
/**
* @return checkStatus
*/
public Integer getCheckStatus() {
return this.checkStatus;
}
/**
* @return checkStatusName
*/
public String getCheckStatusName() {
return this.checkStatusName;
}
/**
* @return connector
*/
public String getConnector() {
return this.connector;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return parentId
*/
public String getParentId() {
return this.parentId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceType
*/
public Long getResourceType() {
return this.resourceType;
}
/**
* @return resourceTypeCode
*/
public String getResourceTypeCode() {
return this.resourceTypeCode;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
public static final class Builder {
private Integer checkStatus;
private String checkStatusName;
private String connector;
private Long gmtCreate;
private Long id;
private String localName;
private String parentId;
private String regionId;
private Long resourceType;
private String resourceTypeCode;
private String userName;
private Builder() {
}
private Builder(DataLimitList model) {
this.checkStatus = model.checkStatus;
this.checkStatusName = model.checkStatusName;
this.connector = model.connector;
this.gmtCreate = model.gmtCreate;
this.id = model.id;
this.localName = model.localName;
this.parentId = model.parentId;
this.regionId = model.regionId;
this.resourceType = model.resourceType;
this.resourceTypeCode = model.resourceTypeCode;
this.userName = model.userName;
}
/**
* <p>Indicates whether the test of connectivity between DSC and the data asset is passed.</p>
* <ul>
* <li><strong>2</strong>: The connectivity test is in progress.</li>
* <li><strong>3</strong>: The connectivity test is passed.</li>
* <li><strong>4</strong>: The connectivity test failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder checkStatus(Integer checkStatus) {
this.checkStatus = checkStatus;
return this;
}
/**
* <p>The name of the data detection status.</p>
*
* <strong>example:</strong>
* <p>Connectivity test status</p>
*/
public Builder checkStatusName(String checkStatusName) {
this.checkStatusName = checkStatusName;
return this;
}
/**
* <p>The connection string that is used to access the data asset.</p>
*
* <strong>example:</strong>
* <p>Connection string</p>
*/
public Builder connector(String connector) {
this.connector = connector;
return this;
}
/**
* <p>The time when the data asset was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1625587423000</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The ID of the data asset.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The region in which the data asset resides.</p>
*
* <strong>example:</strong>
* <p>China (Hangzhou)</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The parent asset ID of the data asset.</p>
*
* <strong>example:</strong>
* <p>db</p>
*/
public Builder parentId(String parentId) {
this.parentId = parentId;
return this;
}
/**
* <p>The region in which the data asset resides.</p>
*
* <strong>example:</strong>
* <p>cn-****</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The type of service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder resourceType(Long resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The code of the service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>ODPS</strong></li>
* <li><strong>OSS</strong></li>
* <li><strong>ADS</strong></li>
* <li><strong>OTS</strong></li>
* <li><strong>RDS</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder resourceTypeCode(String resourceTypeCode) {
this.resourceTypeCode = resourceTypeCode;
return this;
}
/**
* <p>The username that is used to access the data asset.</p>
*
* <strong>example:</strong>
* <p>tsts</p>
*/
public Builder userName(String userName) {
this.userName = userName;
return this;
}
public DataLimitList build() {
return new DataLimitList(this);
}
}
}
/**
*
* {@link DescribeDataLimitSetResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitSetResponseBody</p>
*/
public static class OssBucketList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BucketName")
private String bucketName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private OssBucketList(Builder builder) {
this.bucketName = builder.bucketName;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static OssBucketList create() {
return builder().build();
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String bucketName;
private String regionId;
private Builder() {
}
private Builder(OssBucketList model) {
this.bucketName = model.bucketName;
this.regionId = model.regionId;
}
/**
* <p>The name of the OSS bucket to which the OSS object belongs.</p>
*
* <strong>example:</strong>
* <p>oss-bucket</p>
*/
public Builder bucketName(String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* <p>The region ID of the OSS object.</p>
*
* <strong>example:</strong>
* <p>cn-****</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public OssBucketList build() {
return new OssBucketList(this);
}
}
}
/**
*
* {@link DescribeDataLimitSetResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitSetResponseBody</p>
*/
public static class RegionList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private RegionList(Builder builder) {
this.localName = builder.localName;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static RegionList create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String localName;
private String regionId;
private Builder() {
}
private Builder(RegionList model) {
this.localName = model.localName;
this.regionId = model.regionId;
}
/**
* <p>The name of the region.</p>
*
* <strong>example:</strong>
* <p>China (Hangzhou)</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The ID of the region.</p>
*
* <strong>example:</strong>
* <p>cn-****</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public RegionList build() {
return new RegionList(this);
}
}
}
/**
*
* {@link DescribeDataLimitSetResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitSetResponseBody</p>
*/
public static class DataLimitSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DataLimitList")
private java.util.List<DataLimitList> dataLimitList;
@com.aliyun.core.annotation.NameInMap("OssBucketList")
private java.util.List<OssBucketList> ossBucketList;
@com.aliyun.core.annotation.NameInMap("RegionList")
private java.util.List<RegionList> regionList;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private Long resourceType;
@com.aliyun.core.annotation.NameInMap("ResourceTypeCode")
private String resourceTypeCode;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DataLimitSet(Builder builder) {
this.dataLimitList = builder.dataLimitList;
this.ossBucketList = builder.ossBucketList;
this.regionList = builder.regionList;
this.resourceType = builder.resourceType;
this.resourceTypeCode = builder.resourceTypeCode;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DataLimitSet create() {
return builder().build();
}
/**
* @return dataLimitList
*/
public java.util.List<DataLimitList> getDataLimitList() {
return this.dataLimitList;
}
/**
* @return ossBucketList
*/
public java.util.List<OssBucketList> getOssBucketList() {
return this.ossBucketList;
}
/**
* @return regionList
*/
public java.util.List<RegionList> getRegionList() {
return this.regionList;
}
/**
* @return resourceType
*/
public Long getResourceType() {
return this.resourceType;
}
/**
* @return resourceTypeCode
*/
public String getResourceTypeCode() {
return this.resourceTypeCode;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<DataLimitList> dataLimitList;
private java.util.List<OssBucketList> ossBucketList;
private java.util.List<RegionList> regionList;
private Long resourceType;
private String resourceTypeCode;
private Integer totalCount;
private Builder() {
}
private Builder(DataLimitSet model) {
this.dataLimitList = model.dataLimitList;
this.ossBucketList = model.ossBucketList;
this.regionList = model.regionList;
this.resourceType = model.resourceType;
this.resourceTypeCode = model.resourceTypeCode;
this.totalCount = model.totalCount;
}
/**
* <p>An array that consists of data assets that DSC is authorized to scan.</p>
*/
public Builder dataLimitList(java.util.List<DataLimitList> dataLimitList) {
this.dataLimitList = dataLimitList;
return this;
}
/**
* <p>An array consisting of the OSS objects that DSC is authorized to scan.</p>
*/
public Builder ossBucketList(java.util.List<OssBucketList> ossBucketList) {
this.ossBucketList = ossBucketList;
return this;
}
/**
* <p>An array consisting of the regions in which the data assets can be scanned.</p>
*/
public Builder regionList(java.util.List<RegionList> regionList) {
this.regionList = regionList;
return this;
}
/**
* <p>The type of service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder resourceType(Long resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>ODPS</strong></li>
* <li><strong>OSS</strong></li>
* <li><strong>ADS</strong></li>
* <li><strong>OTS</strong></li>
* <li><strong>RDS</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder resourceTypeCode(String resourceTypeCode) {
this.resourceTypeCode = resourceTypeCode;
return this;
}
/**
* <p>The total number of data objects in the data assets.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DataLimitSet build() {
return new DataLimitSet(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitsRequest} extends {@link RequestModel}
*
* <p>DescribeDataLimitsRequest</p>
*/
public class DescribeDataLimitsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuditStatus")
private Integer auditStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckStatus")
private Integer checkStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatamaskStatus")
private Integer datamaskStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Enable")
private Integer enable;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EngineType")
private String engineType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MemberAccount")
private Long memberAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParentId")
private String parentId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private Integer resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceRegionId")
private String serviceRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
private DescribeDataLimitsRequest(Builder builder) {
super(builder);
this.auditStatus = builder.auditStatus;
this.checkStatus = builder.checkStatus;
this.currentPage = builder.currentPage;
this.datamaskStatus = builder.datamaskStatus;
this.enable = builder.enable;
this.endTime = builder.endTime;
this.engineType = builder.engineType;
this.featureType = builder.featureType;
this.lang = builder.lang;
this.memberAccount = builder.memberAccount;
this.pageSize = builder.pageSize;
this.parentId = builder.parentId;
this.resourceType = builder.resourceType;
this.serviceRegionId = builder.serviceRegionId;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataLimitsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return auditStatus
*/
public Integer getAuditStatus() {
return this.auditStatus;
}
/**
* @return checkStatus
*/
public Integer getCheckStatus() {
return this.checkStatus;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return datamaskStatus
*/
public Integer getDatamaskStatus() {
return this.datamaskStatus;
}
/**
* @return enable
*/
public Integer getEnable() {
return this.enable;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return memberAccount
*/
public Long getMemberAccount() {
return this.memberAccount;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return parentId
*/
public String getParentId() {
return this.parentId;
}
/**
* @return resourceType
*/
public Integer getResourceType() {
return this.resourceType;
}
/**
* @return serviceRegionId
*/
public String getServiceRegionId() {
return this.serviceRegionId;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeDataLimitsRequest, Builder> {
private Integer auditStatus;
private Integer checkStatus;
private Integer currentPage;
private Integer datamaskStatus;
private Integer enable;
private Long endTime;
private String engineType;
private Integer featureType;
private String lang;
private Long memberAccount;
private Integer pageSize;
private String parentId;
private Integer resourceType;
private String serviceRegionId;
private Long startTime;
private Builder() {
super();
}
private Builder(DescribeDataLimitsRequest request) {
super(request);
this.auditStatus = request.auditStatus;
this.checkStatus = request.checkStatus;
this.currentPage = request.currentPage;
this.datamaskStatus = request.datamaskStatus;
this.enable = request.enable;
this.endTime = request.endTime;
this.engineType = request.engineType;
this.featureType = request.featureType;
this.lang = request.lang;
this.memberAccount = request.memberAccount;
this.pageSize = request.pageSize;
this.parentId = request.parentId;
this.resourceType = request.resourceType;
this.serviceRegionId = request.serviceRegionId;
this.startTime = request.startTime;
}
/**
* <p>Specifies whether to enable the security audit feature. 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 auditStatus(Integer auditStatus) {
this.putQueryParameter("AuditStatus", auditStatus);
this.auditStatus = auditStatus;
return this;
}
/**
* <p>The data detection status. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The data detection is ready.</li>
* <li><strong>1</strong>: The data detection is running.</li>
* <li><strong>2</strong>: The connectivity test is in progress.</li>
* <li><strong>3</strong>: The connectivity test passed.</li>
* <li><strong>4</strong>: The connectivity test failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder checkStatus(Integer checkStatus) {
this.putQueryParameter("CheckStatus", checkStatus);
this.checkStatus = checkStatus;
return this;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Specifies whether DSC has the data de-identification permissions on the data asset. 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 datamaskStatus(Integer datamaskStatus) {
this.putQueryParameter("DatamaskStatus", datamaskStatus);
this.datamaskStatus = datamaskStatus;
return this;
}
/**
* <p>Specifies whether DSC has the data detection permissions on the data asset. 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 enable(Integer enable) {
this.putQueryParameter("Enable", enable);
this.enable = enable;
return this;
}
/**
* <p>The end of the time range to query The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1616068534877</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The type of the database engine. Valid values include <strong>MySQL</strong>, <strong>SQLServer</strong>, <strong>Oracle</strong>, <strong>PostgreSQL</strong>, and <strong>MongoDB</strong>.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.putQueryParameter("EngineType", engineType);
this.engineType = engineType;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
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 ID of the member.</p>
*
* <strong>example:</strong>
* <p>**********8103</p>
*/
public Builder memberAccount(Long memberAccount) {
this.putQueryParameter("MemberAccount", memberAccount);
this.memberAccount = memberAccount;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The parent ID of the data asset to be queried. Valid values:</p>
* <ul>
* <li>The name or ID of the MaxCompute project.</li>
* <li>The name or ID of the OSS bucket.</li>
* <li>The name or ID of the ApsaraDB RDS instance or database.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1112</p>
*/
public Builder parentId(String parentId) {
this.putQueryParameter("ParentId", parentId);
this.parentId = parentId;
return this;
}
/**
* <p>The type of the service to which the data asset belongs. This parameter is required. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: Object Storage Service (OSS)</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* <li><strong>6</strong>: self-managed database</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder resourceType(Integer resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The region in which the data asset resides.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder serviceRegionId(String serviceRegionId) {
this.putQueryParameter("ServiceRegionId", serviceRegionId);
this.serviceRegionId = serviceRegionId;
return this;
}
/**
* <p>The beginning of the time range to query The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1616068534877</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeDataLimitsRequest build() {
return new DescribeDataLimitsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitsResponse} extends {@link TeaModel}
*
* <p>DescribeDataLimitsResponse</p>
*/
public class DescribeDataLimitsResponse 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 DescribeDataLimitsResponseBody body;
private DescribeDataLimitsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataLimitsResponse 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 DescribeDataLimitsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataLimitsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataLimitsResponseBody body);
@Override
DescribeDataLimitsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataLimitsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataLimitsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataLimitsResponse 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(DescribeDataLimitsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataLimitsResponse build() {
return new DescribeDataLimitsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataLimitsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataLimitsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitsResponseBody</p>
*/
public class DescribeDataLimitsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeDataLimitsResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataLimitsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeDataLimitsResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The data assets.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-42DF-9B72-7077A8989***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDataLimitsResponseBody build() {
return new DescribeDataLimitsResponseBody(this);
}
}
/**
*
* {@link DescribeDataLimitsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataLimitsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AuditStatus")
private Integer auditStatus;
@com.aliyun.core.annotation.NameInMap("AutoScan")
private Integer autoScan;
@com.aliyun.core.annotation.NameInMap("CheckStatus")
private Integer checkStatus;
@com.aliyun.core.annotation.NameInMap("CheckStatusName")
private String checkStatusName;
@com.aliyun.core.annotation.NameInMap("DatamaskStatus")
private Integer datamaskStatus;
@com.aliyun.core.annotation.NameInMap("DbVersion")
private String dbVersion;
@com.aliyun.core.annotation.NameInMap("Enable")
private Integer enable;
@com.aliyun.core.annotation.NameInMap("EngineType")
private String engineType;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("EventStatus")
private Integer eventStatus;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("InstanceDescription")
private String instanceDescription;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("LastFinishedTime")
private Long lastFinishedTime;
@com.aliyun.core.annotation.NameInMap("LastStartTime")
private Long lastStartTime;
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("LogStoreDay")
private Integer logStoreDay;
@com.aliyun.core.annotation.NameInMap("MemberAccount")
private Long memberAccount;
@com.aliyun.core.annotation.NameInMap("NextStartTime")
private Long nextStartTime;
@com.aliyun.core.annotation.NameInMap("OcrStatus")
private Integer ocrStatus;
@com.aliyun.core.annotation.NameInMap("ParentId")
private String parentId;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("ProcessStatus")
private Integer processStatus;
@com.aliyun.core.annotation.NameInMap("ProcessTotalCount")
private Integer processTotalCount;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private Long resourceType;
@com.aliyun.core.annotation.NameInMap("ResourceTypeCode")
private String resourceTypeCode;
@com.aliyun.core.annotation.NameInMap("SamplingSize")
private Integer samplingSize;
@com.aliyun.core.annotation.NameInMap("SecurityGroupIdList")
private java.util.List<String> securityGroupIdList;
@com.aliyun.core.annotation.NameInMap("SupportAudit")
private Boolean supportAudit;
@com.aliyun.core.annotation.NameInMap("SupportDatamask")
private Boolean supportDatamask;
@com.aliyun.core.annotation.NameInMap("SupportEvent")
private Boolean supportEvent;
@com.aliyun.core.annotation.NameInMap("SupportOcr")
private Boolean supportOcr;
@com.aliyun.core.annotation.NameInMap("SupportScan")
private Boolean supportScan;
@com.aliyun.core.annotation.NameInMap("TenantName")
private String tenantName;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
@com.aliyun.core.annotation.NameInMap("VSwitchIdList")
private java.util.List<String> vSwitchIdList;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private Items(Builder builder) {
this.auditStatus = builder.auditStatus;
this.autoScan = builder.autoScan;
this.checkStatus = builder.checkStatus;
this.checkStatusName = builder.checkStatusName;
this.datamaskStatus = builder.datamaskStatus;
this.dbVersion = builder.dbVersion;
this.enable = builder.enable;
this.engineType = builder.engineType;
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.eventStatus = builder.eventStatus;
this.gmtCreate = builder.gmtCreate;
this.id = builder.id;
this.instanceDescription = builder.instanceDescription;
this.instanceId = builder.instanceId;
this.lastFinishedTime = builder.lastFinishedTime;
this.lastStartTime = builder.lastStartTime;
this.localName = builder.localName;
this.logStoreDay = builder.logStoreDay;
this.memberAccount = builder.memberAccount;
this.nextStartTime = builder.nextStartTime;
this.ocrStatus = builder.ocrStatus;
this.parentId = builder.parentId;
this.port = builder.port;
this.processStatus = builder.processStatus;
this.processTotalCount = builder.processTotalCount;
this.regionId = builder.regionId;
this.resourceType = builder.resourceType;
this.resourceTypeCode = builder.resourceTypeCode;
this.samplingSize = builder.samplingSize;
this.securityGroupIdList = builder.securityGroupIdList;
this.supportAudit = builder.supportAudit;
this.supportDatamask = builder.supportDatamask;
this.supportEvent = builder.supportEvent;
this.supportOcr = builder.supportOcr;
this.supportScan = builder.supportScan;
this.tenantName = builder.tenantName;
this.totalCount = builder.totalCount;
this.userName = builder.userName;
this.vSwitchIdList = builder.vSwitchIdList;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return auditStatus
*/
public Integer getAuditStatus() {
return this.auditStatus;
}
/**
* @return autoScan
*/
public Integer getAutoScan() {
return this.autoScan;
}
/**
* @return checkStatus
*/
public Integer getCheckStatus() {
return this.checkStatus;
}
/**
* @return checkStatusName
*/
public String getCheckStatusName() {
return this.checkStatusName;
}
/**
* @return datamaskStatus
*/
public Integer getDatamaskStatus() {
return this.datamaskStatus;
}
/**
* @return dbVersion
*/
public String getDbVersion() {
return this.dbVersion;
}
/**
* @return enable
*/
public Integer getEnable() {
return this.enable;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return eventStatus
*/
public Integer getEventStatus() {
return this.eventStatus;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return instanceDescription
*/
public String getInstanceDescription() {
return this.instanceDescription;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return lastFinishedTime
*/
public Long getLastFinishedTime() {
return this.lastFinishedTime;
}
/**
* @return lastStartTime
*/
public Long getLastStartTime() {
return this.lastStartTime;
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return logStoreDay
*/
public Integer getLogStoreDay() {
return this.logStoreDay;
}
/**
* @return memberAccount
*/
public Long getMemberAccount() {
return this.memberAccount;
}
/**
* @return nextStartTime
*/
public Long getNextStartTime() {
return this.nextStartTime;
}
/**
* @return ocrStatus
*/
public Integer getOcrStatus() {
return this.ocrStatus;
}
/**
* @return parentId
*/
public String getParentId() {
return this.parentId;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return processStatus
*/
public Integer getProcessStatus() {
return this.processStatus;
}
/**
* @return processTotalCount
*/
public Integer getProcessTotalCount() {
return this.processTotalCount;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceType
*/
public Long getResourceType() {
return this.resourceType;
}
/**
* @return resourceTypeCode
*/
public String getResourceTypeCode() {
return this.resourceTypeCode;
}
/**
* @return samplingSize
*/
public Integer getSamplingSize() {
return this.samplingSize;
}
/**
* @return securityGroupIdList
*/
public java.util.List<String> getSecurityGroupIdList() {
return this.securityGroupIdList;
}
/**
* @return supportAudit
*/
public Boolean getSupportAudit() {
return this.supportAudit;
}
/**
* @return supportDatamask
*/
public Boolean getSupportDatamask() {
return this.supportDatamask;
}
/**
* @return supportEvent
*/
public Boolean getSupportEvent() {
return this.supportEvent;
}
/**
* @return supportOcr
*/
public Boolean getSupportOcr() {
return this.supportOcr;
}
/**
* @return supportScan
*/
public Boolean getSupportScan() {
return this.supportScan;
}
/**
* @return tenantName
*/
public String getTenantName() {
return this.tenantName;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
/**
* @return vSwitchIdList
*/
public java.util.List<String> getVSwitchIdList() {
return this.vSwitchIdList;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private Integer auditStatus;
private Integer autoScan;
private Integer checkStatus;
private String checkStatusName;
private Integer datamaskStatus;
private String dbVersion;
private Integer enable;
private String engineType;
private String errorCode;
private String errorMessage;
private Integer eventStatus;
private Long gmtCreate;
private Long id;
private String instanceDescription;
private String instanceId;
private Long lastFinishedTime;
private Long lastStartTime;
private String localName;
private Integer logStoreDay;
private Long memberAccount;
private Long nextStartTime;
private Integer ocrStatus;
private String parentId;
private Integer port;
private Integer processStatus;
private Integer processTotalCount;
private String regionId;
private Long resourceType;
private String resourceTypeCode;
private Integer samplingSize;
private java.util.List<String> securityGroupIdList;
private Boolean supportAudit;
private Boolean supportDatamask;
private Boolean supportEvent;
private Boolean supportOcr;
private Boolean supportScan;
private String tenantName;
private Integer totalCount;
private String userName;
private java.util.List<String> vSwitchIdList;
private String vpcId;
private Builder() {
}
private Builder(Items model) {
this.auditStatus = model.auditStatus;
this.autoScan = model.autoScan;
this.checkStatus = model.checkStatus;
this.checkStatusName = model.checkStatusName;
this.datamaskStatus = model.datamaskStatus;
this.dbVersion = model.dbVersion;
this.enable = model.enable;
this.engineType = model.engineType;
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.eventStatus = model.eventStatus;
this.gmtCreate = model.gmtCreate;
this.id = model.id;
this.instanceDescription = model.instanceDescription;
this.instanceId = model.instanceId;
this.lastFinishedTime = model.lastFinishedTime;
this.lastStartTime = model.lastStartTime;
this.localName = model.localName;
this.logStoreDay = model.logStoreDay;
this.memberAccount = model.memberAccount;
this.nextStartTime = model.nextStartTime;
this.ocrStatus = model.ocrStatus;
this.parentId = model.parentId;
this.port = model.port;
this.processStatus = model.processStatus;
this.processTotalCount = model.processTotalCount;
this.regionId = model.regionId;
this.resourceType = model.resourceType;
this.resourceTypeCode = model.resourceTypeCode;
this.samplingSize = model.samplingSize;
this.securityGroupIdList = model.securityGroupIdList;
this.supportAudit = model.supportAudit;
this.supportDatamask = model.supportDatamask;
this.supportEvent = model.supportEvent;
this.supportOcr = model.supportOcr;
this.supportScan = model.supportScan;
this.tenantName = model.tenantName;
this.totalCount = model.totalCount;
this.userName = model.userName;
this.vSwitchIdList = model.vSwitchIdList;
this.vpcId = model.vpcId;
}
/**
* <p>Indicates whether the security audit feature 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 auditStatus(Integer auditStatus) {
this.auditStatus = auditStatus;
return this;
}
/**
* <p>Indicates whether the data asset can be automatically scanned. 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 autoScan(Integer autoScan) {
this.autoScan = autoScan;
return this;
}
/**
* <p>The data detection status. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The data detection is ready.</li>
* <li><strong>1</strong>: The data detection is running.</li>
* <li><strong>2</strong>: The connectivity test is in progress.</li>
* <li><strong>3</strong>: The connectivity test is passed.</li>
* <li><strong>4</strong>: The connectivity test failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder checkStatus(Integer checkStatus) {
this.checkStatus = checkStatus;
return this;
}
/**
* <p>The name of the data detection status.</p>
*
* <strong>example:</strong>
* <p>Connectivity test status</p>
*/
public Builder checkStatusName(String checkStatusName) {
this.checkStatusName = checkStatusName;
return this;
}
/**
* <p>Indicates whether DSC has the data de-identification permissions on the data asset. 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 datamaskStatus(Integer datamaskStatus) {
this.datamaskStatus = datamaskStatus;
return this;
}
/**
* <p>The database engine version.</p>
*
* <strong>example:</strong>
* <p>2.0</p>
*/
public Builder dbVersion(String dbVersion) {
this.dbVersion = dbVersion;
return this;
}
/**
* <p>Indicates whether DSC has the data identification permissions on the data asset. 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 enable(Integer enable) {
this.enable = enable;
return this;
}
/**
* <p>The type of the database engine. Valid values include <strong>MySQL</strong>, <strong>SQLServer</strong>, <strong>Oracle</strong>, <strong>PostgreSQL</strong>, and <strong>MongoDB</strong>.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.engineType = engineType;
return this;
}
/**
* <p>The error code.</p>
*
* <strong>example:</strong>
* <p>connect_network_error</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The reason for the failure.</p>
*
* <strong>example:</strong>
* <p>The password is invalid.</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>Indicates whether the data leak prevention feature is enabled. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder eventStatus(Integer eventStatus) {
this.eventStatus = eventStatus;
return this;
}
/**
* <p>The time when the data asset was created. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>145600000</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The unique ID of the data asset.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The description of the instance.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder instanceDescription(String instanceDescription) {
this.instanceDescription = instanceDescription;
return this;
}
/**
* <p>The ID of the data asset to which the table belongs.</p>
*
* <strong>example:</strong>
* <p>12332</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The time when the last scan is performed.</p>
* <ul>
* <li>The value is a UNIX timestamp.</li>
* <li>Unit: milliseconds.</li>
* </ul>
*
* <strong>example:</strong>
* <p>145600000</p>
*/
public Builder lastFinishedTime(Long lastFinishedTime) {
this.lastFinishedTime = lastFinishedTime;
return this;
}
/**
* <p>The last scan start time of data assets, in milliseconds.</p>
*
* <strong>example:</strong>
* <p>145600000</p>
*/
public Builder lastStartTime(Long lastStartTime) {
this.lastStartTime = lastStartTime;
return this;
}
/**
* <p>The region in which the data asset resides.</p>
*
* <strong>example:</strong>
* <p>China (Hangzhou)</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The retention period of raw logs. Unit: days.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder logStoreDay(Integer logStoreDay) {
this.logStoreDay = logStoreDay;
return this;
}
/**
* <p>The ID of the member.</p>
*
* <strong>example:</strong>
* <p>**********8103</p>
*/
public Builder memberAccount(Long memberAccount) {
this.memberAccount = memberAccount;
return this;
}
/**
* <p>The next time when the data asset is scanned. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1676620236000</p>
*/
public Builder nextStartTime(Long nextStartTime) {
this.nextStartTime = nextStartTime;
return this;
}
/**
* <p>Indicates whether the optical character recognition (OCR) feature is enabled. 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 ocrStatus(Integer ocrStatus) {
this.ocrStatus = ocrStatus;
return this;
}
/**
* <p>The parent ID of the data asset that you want to query. Valid values include <strong>bucket, db, and project</strong>.</p>
*
* <strong>example:</strong>
* <p>project</p>
*/
public Builder parentId(String parentId) {
this.parentId = parentId;
return this;
}
/**
* <p>The port number of the self-managed database.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The status of the data asset scan. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: invalid</li>
* <li><strong>0</strong>: waiting</li>
* <li><strong>1</strong>: being scanned</li>
* <li><strong>2</strong>: suspended</li>
* <li><strong>3</strong>: completed</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder processStatus(Integer processStatus) {
this.processStatus = processStatus;
return this;
}
/**
* <p>The total number of data tables or files.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder processTotalCount(Integer processTotalCount) {
this.processTotalCount = processTotalCount;
return this;
}
/**
* <p>The region in which the asset resides.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The type of the service to which the data asset belongs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: AnalyticDB for MySQL</li>
* <li><strong>4</strong>: Tablestore</li>
* <li><strong>5</strong>: ApsaraDB RDS</li>
* <li><strong>6</strong>: self-managed database</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder resourceType(Long resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The code of the service to which the data asset belongs. Valid values: <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder resourceTypeCode(String resourceTypeCode) {
this.resourceTypeCode = resourceTypeCode;
return this;
}
/**
* <p>The number of sensitive data samples. Valid values: <strong>0</strong>, <strong>5</strong>, and <strong>10</strong>. Unit: data entries.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder samplingSize(Integer samplingSize) {
this.samplingSize = samplingSize;
return this;
}
/**
* <p>A list of the IDs of the security groups that are used by PrivateLink when you install the DSC agent.</p>
*/
public Builder securityGroupIdList(java.util.List<String> securityGroupIdList) {
this.securityGroupIdList = securityGroupIdList;
return this;
}
/**
* <p>Indicates whether the security audit feature is supported. 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 supportAudit(Boolean supportAudit) {
this.supportAudit = supportAudit;
return this;
}
/**
* <p>Indicates whether the data de-identification feature is supported. 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 supportDatamask(Boolean supportDatamask) {
this.supportDatamask = supportDatamask;
return this;
}
/**
* <p>Indicates whether anomalous event detection is supported. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder supportEvent(Boolean supportEvent) {
this.supportEvent = supportEvent;
return this;
}
/**
* <p>Indicates whether OCR is supported. 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 supportOcr(Boolean supportOcr) {
this.supportOcr = supportOcr;
return this;
}
/**
* <p>Indicates whether the data asset scan feature is supported. 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 supportScan(Boolean supportScan) {
this.supportScan = supportScan;
return this;
}
/**
* <p>The alias of the tenant.</p>
*
* <strong>example:</strong>
* <p>insta_gram</p>
*/
public Builder tenantName(String tenantName) {
this.tenantName = tenantName;
return this;
}
/**
* <p>The total number of fields in the table.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The username that is used to access the data asset.</p>
*
* <strong>example:</strong>
* <p>tsts</p>
*/
public Builder userName(String userName) {
this.userName = userName;
return this;
}
/**
* <p>A list of the IDs of the vSwitches that are used by PrivateLink when you install the DSC agent.</p>
*/
public Builder vSwitchIdList(java.util.List<String> vSwitchIdList) {
this.vSwitchIdList = vSwitchIdList;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) to which the data asset belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-2zevcqke6hh09c41****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataMaskingRunHistoryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataMaskingRunHistoryRequest} extends {@link RequestModel}
*
* <p>DescribeDataMaskingRunHistoryRequest</p>
*/
public class DescribeDataMaskingRunHistoryRequest 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("DstType")
private Integer dstType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MainProcessId")
private Long mainProcessId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SrcTableName")
private String srcTableName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SrcType")
private Integer srcType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private DescribeDataMaskingRunHistoryRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.dstType = builder.dstType;
this.endTime = builder.endTime;
this.lang = builder.lang;
this.mainProcessId = builder.mainProcessId;
this.pageSize = builder.pageSize;
this.srcTableName = builder.srcTableName;
this.srcType = builder.srcType;
this.startTime = builder.startTime;
this.status = builder.status;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataMaskingRunHistoryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return dstType
*/
public Integer getDstType() {
return this.dstType;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return mainProcessId
*/
public Long getMainProcessId() {
return this.mainProcessId;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return srcTableName
*/
public String getSrcTableName() {
return this.srcTableName;
}
/**
* @return srcType
*/
public Integer getSrcType() {
return this.srcType;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder<DescribeDataMaskingRunHistoryRequest, Builder> {
private Integer currentPage;
private Integer dstType;
private Long endTime;
private String lang;
private Long mainProcessId;
private Integer pageSize;
private String srcTableName;
private Integer srcType;
private Long startTime;
private Integer status;
private String taskId;
private Builder() {
super();
}
private Builder(DescribeDataMaskingRunHistoryRequest request) {
super(request);
this.currentPage = request.currentPage;
this.dstType = request.dstType;
this.endTime = request.endTime;
this.lang = request.lang;
this.mainProcessId = request.mainProcessId;
this.pageSize = request.pageSize;
this.srcTableName = request.srcTableName;
this.srcType = request.srcType;
this.startTime = request.startTime;
this.status = request.status;
this.taskId = request.taskId;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The type of the service to which the de-identified data belongs. Valid values: <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates OSS. The value indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder dstType(Integer dstType) {
this.putQueryParameter("DstType", dstType);
this.dstType = dstType;
return this;
}
/**
* <p>The end of the time range to query. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1583856000000</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The ID of the task.</p>
* <blockquote>
* <p>If a task has one or more subtasks, the value of the parameter must be the ID of the task. Otherwise, leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>366731</p>
*/
public Builder mainProcessId(Long mainProcessId) {
this.putQueryParameter("MainProcessId", mainProcessId);
this.mainProcessId = mainProcessId;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The name of the source table.</p>
*
* <strong>example:</strong>
* <p>add</p>
*/
public Builder srcTableName(String srcTableName) {
this.putQueryParameter("SrcTableName", srcTableName);
this.srcTableName = srcTableName;
return this;
}
/**
* <p>The type of the service to which the data to be de-identified belongs. Valid values: <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates Object Storage Service (OSS). The value indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder srcType(Integer srcType) {
this.putQueryParameter("SrcType", srcType);
this.srcType = srcType;
return this;
}
/**
* <p>The beginning of the time range to query. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1582992000000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The status of the de-identification task. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: waiting</li>
* <li><strong>0</strong>: being executed</li>
* <li><strong>1</strong>: executed</li>
* <li><strong>2</strong>: failed to be executed</li>
* <li><strong>3</strong>: terminated</li>
* <li><strong>4</strong>: partially failed</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder status(Integer status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The ID of the de-identification task.</p>
*
* <strong>example:</strong>
* <p>mt4HBgtw1B******</p>
*/
public Builder taskId(String taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public DescribeDataMaskingRunHistoryRequest build() {
return new DescribeDataMaskingRunHistoryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataMaskingRunHistoryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataMaskingRunHistoryResponse} extends {@link TeaModel}
*
* <p>DescribeDataMaskingRunHistoryResponse</p>
*/
public class DescribeDataMaskingRunHistoryResponse 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 DescribeDataMaskingRunHistoryResponseBody body;
private DescribeDataMaskingRunHistoryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataMaskingRunHistoryResponse 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 DescribeDataMaskingRunHistoryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataMaskingRunHistoryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataMaskingRunHistoryResponseBody body);
@Override
DescribeDataMaskingRunHistoryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataMaskingRunHistoryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataMaskingRunHistoryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataMaskingRunHistoryResponse 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(DescribeDataMaskingRunHistoryResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataMaskingRunHistoryResponse build() {
return new DescribeDataMaskingRunHistoryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataMaskingRunHistoryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataMaskingRunHistoryResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataMaskingRunHistoryResponseBody</p>
*/
public class DescribeDataMaskingRunHistoryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeDataMaskingRunHistoryResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataMaskingRunHistoryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeDataMaskingRunHistoryResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The execution information about the de-identification task.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-4******</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDataMaskingRunHistoryResponseBody build() {
return new DescribeDataMaskingRunHistoryResponseBody(this);
}
}
/**
*
* {@link DescribeDataMaskingRunHistoryResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataMaskingRunHistoryResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConflictCount")
private Long conflictCount;
@com.aliyun.core.annotation.NameInMap("DstType")
private Integer dstType;
@com.aliyun.core.annotation.NameInMap("DstTypeCode")
private String dstTypeCode;
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.NameInMap("FailCode")
private String failCode;
@com.aliyun.core.annotation.NameInMap("FailMsg")
private String failMsg;
@com.aliyun.core.annotation.NameInMap("HasDownloadFile")
private Integer hasDownloadFile;
@com.aliyun.core.annotation.NameInMap("HasSubProcess")
private Integer hasSubProcess;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("MaskingCount")
private Long maskingCount;
@com.aliyun.core.annotation.NameInMap("Percentage")
private Integer percentage;
@com.aliyun.core.annotation.NameInMap("RunIndex")
private Integer runIndex;
@com.aliyun.core.annotation.NameInMap("SrcTableName")
private String srcTableName;
@com.aliyun.core.annotation.NameInMap("SrcType")
private Integer srcType;
@com.aliyun.core.annotation.NameInMap("SrcTypeCode")
private String srcTypeCode;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
@com.aliyun.core.annotation.NameInMap("Type")
private Integer type;
private Items(Builder builder) {
this.conflictCount = builder.conflictCount;
this.dstType = builder.dstType;
this.dstTypeCode = builder.dstTypeCode;
this.endTime = builder.endTime;
this.failCode = builder.failCode;
this.failMsg = builder.failMsg;
this.hasDownloadFile = builder.hasDownloadFile;
this.hasSubProcess = builder.hasSubProcess;
this.id = builder.id;
this.maskingCount = builder.maskingCount;
this.percentage = builder.percentage;
this.runIndex = builder.runIndex;
this.srcTableName = builder.srcTableName;
this.srcType = builder.srcType;
this.srcTypeCode = builder.srcTypeCode;
this.startTime = builder.startTime;
this.status = builder.status;
this.taskId = builder.taskId;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return conflictCount
*/
public Long getConflictCount() {
return this.conflictCount;
}
/**
* @return dstType
*/
public Integer getDstType() {
return this.dstType;
}
/**
* @return dstTypeCode
*/
public String getDstTypeCode() {
return this.dstTypeCode;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return failCode
*/
public String getFailCode() {
return this.failCode;
}
/**
* @return failMsg
*/
public String getFailMsg() {
return this.failMsg;
}
/**
* @return hasDownloadFile
*/
public Integer getHasDownloadFile() {
return this.hasDownloadFile;
}
/**
* @return hasSubProcess
*/
public Integer getHasSubProcess() {
return this.hasSubProcess;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return maskingCount
*/
public Long getMaskingCount() {
return this.maskingCount;
}
/**
* @return percentage
*/
public Integer getPercentage() {
return this.percentage;
}
/**
* @return runIndex
*/
public Integer getRunIndex() {
return this.runIndex;
}
/**
* @return srcTableName
*/
public String getSrcTableName() {
return this.srcTableName;
}
/**
* @return srcType
*/
public Integer getSrcType() {
return this.srcType;
}
/**
* @return srcTypeCode
*/
public String getSrcTypeCode() {
return this.srcTypeCode;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
/**
* @return type
*/
public Integer getType() {
return this.type;
}
public static final class Builder {
private Long conflictCount;
private Integer dstType;
private String dstTypeCode;
private Long endTime;
private String failCode;
private String failMsg;
private Integer hasDownloadFile;
private Integer hasSubProcess;
private Long id;
private Long maskingCount;
private Integer percentage;
private Integer runIndex;
private String srcTableName;
private Integer srcType;
private String srcTypeCode;
private Long startTime;
private Integer status;
private String taskId;
private Integer type;
private Builder() {
}
private Builder(Items model) {
this.conflictCount = model.conflictCount;
this.dstType = model.dstType;
this.dstTypeCode = model.dstTypeCode;
this.endTime = model.endTime;
this.failCode = model.failCode;
this.failMsg = model.failMsg;
this.hasDownloadFile = model.hasDownloadFile;
this.hasSubProcess = model.hasSubProcess;
this.id = model.id;
this.maskingCount = model.maskingCount;
this.percentage = model.percentage;
this.runIndex = model.runIndex;
this.srcTableName = model.srcTableName;
this.srcType = model.srcType;
this.srcTypeCode = model.srcTypeCode;
this.startTime = model.startTime;
this.status = model.status;
this.taskId = model.taskId;
this.type = model.type;
}
/**
* <p>The number of rows that are in conflict with the data to be de-identified in the destination table to which the data to be de-identified is moved.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder conflictCount(Long conflictCount) {
this.conflictCount = conflictCount;
return this;
}
/**
* <p>The type of the service to which the de-identified data belongs. Valid values: <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates OSS. The value indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder dstType(Integer dstType) {
this.dstType = dstType;
return this;
}
/**
* <p>The service that stores the de-identified data. Valid values include <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder dstTypeCode(String dstTypeCode) {
this.dstTypeCode = dstTypeCode;
return this;
}
/**
* <p>The end time of the de-identification task.</p>
*
* <strong>example:</strong>
* <p>1582251233000</p>
*/
public Builder endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The error code that is returned when the de-identification task fails.</p>
*
* <strong>example:</strong>
* <p>masking_task_not_found</p>
*/
public Builder failCode(String failCode) {
this.failCode = failCode;
return this;
}
/**
* <p>The reason why the de-identification task fails.</p>
*
* <strong>example:</strong>
* <p>error</p>
*/
public Builder failMsg(String failMsg) {
this.failMsg = failMsg;
return this;
}
/**
* <p>Indicates whether a file is available for download.</p>
* <ul>
* <li><strong>1</strong>: yes</li>
* <li><strong>0</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hasDownloadFile(Integer hasDownloadFile) {
this.hasDownloadFile = hasDownloadFile;
return this;
}
/**
* <p>The number of created subtasks.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder hasSubProcess(Integer hasSubProcess) {
this.hasSubProcess = hasSubProcess;
return this;
}
/**
* <p>The ID of the task execution record.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The number of rows that are de-identified.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maskingCount(Long maskingCount) {
this.maskingCount = maskingCount;
return this;
}
/**
* <p>The progress of the de-identification task.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder percentage(Integer percentage) {
this.percentage = percentage;
return this;
}
/**
* <p>The number of times that the de-identification task is executed.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder runIndex(Integer runIndex) {
this.runIndex = runIndex;
return this;
}
/**
* <p>The name of the source table.</p>
*
* <strong>example:</strong>
* <p>add</p>
*/
public Builder srcTableName(String srcTableName) {
this.srcTableName = srcTableName;
return this;
}
/**
* <p>The type of the service to which the data to be de-identified belongs. Valid values: <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates OSS. The value indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder srcType(Integer srcType) {
this.srcType = srcType;
return this;
}
/**
* <p>The service to which the data to be de-identified belongs. Valid values include <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder srcTypeCode(String srcTypeCode) {
this.srcTypeCode = srcTypeCode;
return this;
}
/**
* <p>The time when the de-identification task was executed. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1582251233000</p>
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The status of the de-identification task. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: waiting</li>
* <li><strong>0</strong>: being executed</li>
* <li><strong>1</strong>: executed</li>
* <li><strong>2</strong>: failed to be executed</li>
* <li><strong>3</strong>: terminated</li>
* <li><strong>4</strong>: partially failed</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The ID of the identification task.</p>
*
* <strong>example:</strong>
* <p>mt4HBgtw1B******</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The mode in which the de-identification task is executed. Valid values:</p>
* <ul>
* <li><strong>1</strong>: manual</li>
* <li><strong>2</strong>: scheduled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder type(Integer type) {
this.type = type;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataMaskingTasksRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataMaskingTasksRequest} extends {@link RequestModel}
*
* <p>DescribeDataMaskingTasksRequest</p>
*/
public class DescribeDataMaskingTasksRequest 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("DstType")
private Integer dstType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SearchKey")
private String searchKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
private DescribeDataMaskingTasksRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.dstType = builder.dstType;
this.endTime = builder.endTime;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.searchKey = builder.searchKey;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataMaskingTasksRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return dstType
*/
public Integer getDstType() {
return this.dstType;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return searchKey
*/
public String getSearchKey() {
return this.searchKey;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeDataMaskingTasksRequest, Builder> {
private Integer currentPage;
private Integer dstType;
private Long endTime;
private String lang;
private Integer pageSize;
private String searchKey;
private Long startTime;
private Builder() {
super();
}
private Builder(DescribeDataMaskingTasksRequest request) {
super(request);
this.currentPage = request.currentPage;
this.dstType = request.dstType;
this.endTime = request.endTime;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.searchKey = request.searchKey;
this.startTime = request.startTime;
}
/**
* <p>The page number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The service to which the data to be de-identified belongs. Valid values include <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates Object Storage Service (OSS). The value 3 indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder dstType(Integer dstType) {
this.putQueryParameter("DstType", dstType);
this.dstType = dstType;
return this;
}
/**
* <p>The end of the time range during which the de-identification tasks to be queried are created. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1583856000000</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The keyword used to query the de-identification tasks, which can be the task name or ID.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder searchKey(String searchKey) {
this.putQueryParameter("SearchKey", searchKey);
this.searchKey = searchKey;
return this;
}
/**
* <p>The beginning of the time range during which the de-identification tasks to be queried are created. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1582992000000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeDataMaskingTasksRequest build() {
return new DescribeDataMaskingTasksRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataMaskingTasksResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataMaskingTasksResponse} extends {@link TeaModel}
*
* <p>DescribeDataMaskingTasksResponse</p>
*/
public class DescribeDataMaskingTasksResponse 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 DescribeDataMaskingTasksResponseBody body;
private DescribeDataMaskingTasksResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataMaskingTasksResponse 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 DescribeDataMaskingTasksResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataMaskingTasksResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataMaskingTasksResponseBody body);
@Override
DescribeDataMaskingTasksResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataMaskingTasksResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataMaskingTasksResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataMaskingTasksResponse 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(DescribeDataMaskingTasksResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataMaskingTasksResponse build() {
return new DescribeDataMaskingTasksResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataMaskingTasksResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataMaskingTasksResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataMaskingTasksResponseBody</p>
*/
public class DescribeDataMaskingTasksResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeDataMaskingTasksResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataMaskingTasksResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeDataMaskingTasksResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>A list of de-identification tasks.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-4******</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDataMaskingTasksResponseBody build() {
return new DescribeDataMaskingTasksResponseBody(this);
}
}
/**
*
* {@link DescribeDataMaskingTasksResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataMaskingTasksResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstMemberAccount")
private Long dstMemberAccount;
@com.aliyun.core.annotation.NameInMap("DstPath")
private String dstPath;
@com.aliyun.core.annotation.NameInMap("DstType")
private Integer dstType;
@com.aliyun.core.annotation.NameInMap("DstTypeCode")
private String dstTypeCode;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("HasUnfinishProcess")
private Boolean hasUnfinishProcess;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("OriginalTable")
private Boolean originalTable;
@com.aliyun.core.annotation.NameInMap("Owner")
private String owner;
@com.aliyun.core.annotation.NameInMap("RunCount")
private Integer runCount;
@com.aliyun.core.annotation.NameInMap("SrcMemberAccount")
private Long srcMemberAccount;
@com.aliyun.core.annotation.NameInMap("SrcPath")
private String srcPath;
@com.aliyun.core.annotation.NameInMap("SrcType")
private Integer srcType;
@com.aliyun.core.annotation.NameInMap("SrcTypeCode")
private String srcTypeCode;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
@com.aliyun.core.annotation.NameInMap("TriggerType")
private Integer triggerType;
private Items(Builder builder) {
this.dstMemberAccount = builder.dstMemberAccount;
this.dstPath = builder.dstPath;
this.dstType = builder.dstType;
this.dstTypeCode = builder.dstTypeCode;
this.gmtCreate = builder.gmtCreate;
this.hasUnfinishProcess = builder.hasUnfinishProcess;
this.id = builder.id;
this.originalTable = builder.originalTable;
this.owner = builder.owner;
this.runCount = builder.runCount;
this.srcMemberAccount = builder.srcMemberAccount;
this.srcPath = builder.srcPath;
this.srcType = builder.srcType;
this.srcTypeCode = builder.srcTypeCode;
this.status = builder.status;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
this.triggerType = builder.triggerType;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return dstMemberAccount
*/
public Long getDstMemberAccount() {
return this.dstMemberAccount;
}
/**
* @return dstPath
*/
public String getDstPath() {
return this.dstPath;
}
/**
* @return dstType
*/
public Integer getDstType() {
return this.dstType;
}
/**
* @return dstTypeCode
*/
public String getDstTypeCode() {
return this.dstTypeCode;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return hasUnfinishProcess
*/
public Boolean getHasUnfinishProcess() {
return this.hasUnfinishProcess;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return originalTable
*/
public Boolean getOriginalTable() {
return this.originalTable;
}
/**
* @return owner
*/
public String getOwner() {
return this.owner;
}
/**
* @return runCount
*/
public Integer getRunCount() {
return this.runCount;
}
/**
* @return srcMemberAccount
*/
public Long getSrcMemberAccount() {
return this.srcMemberAccount;
}
/**
* @return srcPath
*/
public String getSrcPath() {
return this.srcPath;
}
/**
* @return srcType
*/
public Integer getSrcType() {
return this.srcType;
}
/**
* @return srcTypeCode
*/
public String getSrcTypeCode() {
return this.srcTypeCode;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
/**
* @return triggerType
*/
public Integer getTriggerType() {
return this.triggerType;
}
public static final class Builder {
private Long dstMemberAccount;
private String dstPath;
private Integer dstType;
private String dstTypeCode;
private Long gmtCreate;
private Boolean hasUnfinishProcess;
private Long id;
private Boolean originalTable;
private String owner;
private Integer runCount;
private Long srcMemberAccount;
private String srcPath;
private Integer srcType;
private String srcTypeCode;
private Integer status;
private String taskId;
private String taskName;
private Integer triggerType;
private Builder() {
}
private Builder(Items model) {
this.dstMemberAccount = model.dstMemberAccount;
this.dstPath = model.dstPath;
this.dstType = model.dstType;
this.dstTypeCode = model.dstTypeCode;
this.gmtCreate = model.gmtCreate;
this.hasUnfinishProcess = model.hasUnfinishProcess;
this.id = model.id;
this.originalTable = model.originalTable;
this.owner = model.owner;
this.runCount = model.runCount;
this.srcMemberAccount = model.srcMemberAccount;
this.srcPath = model.srcPath;
this.srcType = model.srcType;
this.srcTypeCode = model.srcTypeCode;
this.status = model.status;
this.taskId = model.taskId;
this.taskName = model.taskName;
this.triggerType = model.triggerType;
}
/**
* <p>The member account to which the desensitization target belongs.</p>
*
* <strong>example:</strong>
* <p>192479427903xxxx</p>
*/
public Builder dstMemberAccount(Long dstMemberAccount) {
this.dstMemberAccount = dstMemberAccount;
return this;
}
/**
* <p>The destination path.</p>
*/
public Builder dstPath(String dstPath) {
this.dstPath = dstPath;
return this;
}
/**
* <p>The service to which the data to be de-identified belongs. Valid values: <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates OSS. The value 3 indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder dstType(Integer dstType) {
this.dstType = dstType;
return this;
}
/**
* <p>The type of the service to which the de-identified data belongs. Valid values: <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder dstTypeCode(String dstTypeCode) {
this.dstTypeCode = dstTypeCode;
return this;
}
/**
* <p>The time when the de-identification task is created. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1582992000000</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>Indicates whether the de-identification task is running.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder hasUnfinishProcess(Boolean hasUnfinishProcess) {
this.hasUnfinishProcess = hasUnfinishProcess;
return this;
}
/**
* <p>The task ID.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>Indicates whether the source table is de-identified.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder originalTable(Boolean originalTable) {
this.originalTable = originalTable;
return this;
}
/**
* <p>The user who created the de-identification task.</p>
*
* <strong>example:</strong>
* <p>owner</p>
*/
public Builder owner(String owner) {
this.owner = owner;
return this;
}
/**
* <p>The number of times that the de-identification task is run.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder runCount(Integer runCount) {
this.runCount = runCount;
return this;
}
/**
* <p>The member account to which the desensitization source belongs.</p>
*
* <strong>example:</strong>
* <p>192479427903xxxx</p>
*/
public Builder srcMemberAccount(Long srcMemberAccount) {
this.srcMemberAccount = srcMemberAccount;
return this;
}
/**
* <p>The source path.</p>
*/
public Builder srcPath(String srcPath) {
this.srcPath = srcPath;
return this;
}
/**
* <p>The type of the service to which the data to be de-identified belongs. Valid values: <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates OSS. The value 3 indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder srcType(Integer srcType) {
this.srcType = srcType;
return this;
}
/**
* <p>The type of the service to which the data to be de-identified belongs. Valid values: <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder srcTypeCode(String srcTypeCode) {
this.srcTypeCode = srcTypeCode;
return this;
}
/**
* <p>The status of the task. Valid values:</p>
* <ul>
* <li><strong>0</strong>: disabled</li>
* <li><strong>1</strong>: enabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>mt4HBgtw1B******</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The name of the task.</p>
*
* <strong>example:</strong>
* <p>Task name</p>
*/
public Builder taskName(String taskName) {
this.taskName = taskName;
return this;
}
/**
* <p>The mode in which the de-identification task is run. Valid values:</p>
* <ul>
* <li><strong>1</strong>: manual</li>
* <li><strong>2</strong>: scheduled</li>
* <li><strong>3</strong>: manual and scheduled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder triggerType(Integer triggerType) {
this.triggerType = triggerType;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectColumnDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectColumnDetailRequest} extends {@link RequestModel}
*
* <p>DescribeDataObjectColumnDetailRequest</p>
*/
public class DescribeDataObjectColumnDetailRequest 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("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
private Long templateId;
private DescribeDataObjectColumnDetailRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.featureType = builder.featureType;
this.id = builder.id;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.productId = builder.productId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataObjectColumnDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return templateId
*/
public Long getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<DescribeDataObjectColumnDetailRequest, Builder> {
private Integer currentPage;
private Integer featureType;
private Long id;
private String lang;
private Integer pageSize;
private Long productId;
private Long templateId;
private Builder() {
super();
}
private Builder(DescribeDataObjectColumnDetailRequest request) {
super(request);
this.currentPage = request.currentPage;
this.featureType = request.featureType;
this.id = request.id;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.productId = request.productId;
this.templateId = request.templateId;
}
/**
* <p>When performing a paginated query, set the current page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>Set the unique identifier ID of the data object to be queried.</p>
* <blockquote>
* <p>You can obtain the identifier ID by calling <a href="https://help.aliyun.com/document_detail/2399253.html">DescribeDataObjects</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>318248</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
/**
* <p>The language type for requests and responses. Default value: <strong>zh_cn</strong>. Values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese.</li>
* <li><strong>en_us</strong>: English.</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>When performing a paginated query, set the maximum number of data asset instances displayed per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID corresponding to the product name of the data object. Values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: ADB-MYSQL</li>
* <li><strong>4</strong>: TableStore</li>
* <li><strong>5</strong>: RDS</li>
* <li><strong>6</strong>: SELF_DB</li>
* <li><strong>7</strong>: PolarDB-X</li>
* <li><strong>8</strong>: PolarDB</li>
* <li><strong>9</strong>: ADB-PG</li>
* <li><strong>10</strong>: OceanBase</li>
* <li><strong>11</strong>: MongoDB</li>
* <li><strong>25</strong>: Redis</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(Long productId) {
this.putQueryParameter("ProductId", productId);
this.productId = productId;
return this;
}
/**
* <p>Industry template ID.</p>
* <blockquote>
* <p>You can obtain the industry template identifier ID by calling <a href="https://help.aliyun.com/document_detail/2399253.html">DescribeDataObjects</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder templateId(Long templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public DescribeDataObjectColumnDetailRequest build() {
return new DescribeDataObjectColumnDetailRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectColumnDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectColumnDetailResponse} extends {@link TeaModel}
*
* <p>DescribeDataObjectColumnDetailResponse</p>
*/
public class DescribeDataObjectColumnDetailResponse 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 DescribeDataObjectColumnDetailResponseBody body;
private DescribeDataObjectColumnDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataObjectColumnDetailResponse 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 DescribeDataObjectColumnDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataObjectColumnDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataObjectColumnDetailResponseBody body);
@Override
DescribeDataObjectColumnDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataObjectColumnDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataObjectColumnDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataObjectColumnDetailResponse 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(DescribeDataObjectColumnDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataObjectColumnDetailResponse build() {
return new DescribeDataObjectColumnDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectColumnDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectColumnDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectColumnDetailResponseBody</p>
*/
public class DescribeDataObjectColumnDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeDataObjectColumnDetailResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataObjectColumnDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeDataObjectColumnDetailResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>When performing a paginated query, set the current page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>List of identified results for the columns of the data table.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>When performing a paginated query, set the maximum number of data asset instances displayed per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request. It can be used for troubleshooting and problem localization.</p>
*
* <strong>example:</strong>
* <p>8C8036CC-961D-514E-88E8-3088B5A50CA9</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of data items in the result.</p>
*
* <strong>example:</strong>
* <p>61</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDataObjectColumnDetailResponseBody build() {
return new DescribeDataObjectColumnDetailResponseBody(this);
}
}
/**
*
* {@link DescribeDataObjectColumnDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectColumnDetailResponseBody</p>
*/
public static class ModelTags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private ModelTags(Builder builder) {
this.id = builder.id;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static ModelTags create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Long id;
private String name;
private Builder() {
}
private Builder(ModelTags model) {
this.id = model.id;
this.name = model.name;
}
/**
* <p>ID corresponding to the data tag name. Possible values:</p>
* <ul>
* <li><strong>101</strong>: Personal sensitive information.</li>
* <li><strong>102</strong>: Personal information.</li>
* <li><strong>107</strong>: General information.</li>
* </ul>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>Data tag name. Possible values:</p>
* <ul>
* <li><strong>101</strong>: Personal sensitive information.</li>
* <li><strong>102</strong>: Personal information.</li>
* <li><strong>107</strong>: General information.</li>
* </ul>
*
* <strong>example:</strong>
* <p>personal sensitive information</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public ModelTags build() {
return new ModelTags(this);
}
}
}
/**
*
* {@link DescribeDataObjectColumnDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectColumnDetailResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Categories")
private java.util.List<String> categories;
@com.aliyun.core.annotation.NameInMap("ColumnComment")
private String columnComment;
@com.aliyun.core.annotation.NameInMap("ColumnName")
private String columnName;
@com.aliyun.core.annotation.NameInMap("DataType")
private String dataType;
@com.aliyun.core.annotation.NameInMap("EngineType")
private String engineType;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("MaskingStatus")
private Integer maskingStatus;
@com.aliyun.core.annotation.NameInMap("ModelTags")
private java.util.List<ModelTags> modelTags;
@com.aliyun.core.annotation.NameInMap("PrimaryKey")
private Boolean primaryKey;
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.NameInMap("RiskLevelName")
private String riskLevelName;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("TableName")
private String tableName;
private Items(Builder builder) {
this.categories = builder.categories;
this.columnComment = builder.columnComment;
this.columnName = builder.columnName;
this.dataType = builder.dataType;
this.engineType = builder.engineType;
this.id = builder.id;
this.instanceName = builder.instanceName;
this.maskingStatus = builder.maskingStatus;
this.modelTags = builder.modelTags;
this.primaryKey = builder.primaryKey;
this.productId = builder.productId;
this.regionId = builder.regionId;
this.riskLevelId = builder.riskLevelId;
this.riskLevelName = builder.riskLevelName;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.tableName = builder.tableName;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return categories
*/
public java.util.List<String> getCategories() {
return this.categories;
}
/**
* @return columnComment
*/
public String getColumnComment() {
return this.columnComment;
}
/**
* @return columnName
*/
public String getColumnName() {
return this.columnName;
}
/**
* @return dataType
*/
public String getDataType() {
return this.dataType;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return maskingStatus
*/
public Integer getMaskingStatus() {
return this.maskingStatus;
}
/**
* @return modelTags
*/
public java.util.List<ModelTags> getModelTags() {
return this.modelTags;
}
/**
* @return primaryKey
*/
public Boolean getPrimaryKey() {
return this.primaryKey;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return riskLevelName
*/
public String getRiskLevelName() {
return this.riskLevelName;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return tableName
*/
public String getTableName() {
return this.tableName;
}
public static final class Builder {
private java.util.List<String> categories;
private String columnComment;
private String columnName;
private String dataType;
private String engineType;
private String id;
private String instanceName;
private Integer maskingStatus;
private java.util.List<ModelTags> modelTags;
private Boolean primaryKey;
private Long productId;
private String regionId;
private Long riskLevelId;
private String riskLevelName;
private Long ruleId;
private String ruleName;
private String tableName;
private Builder() {
}
private Builder(Items model) {
this.categories = model.categories;
this.columnComment = model.columnComment;
this.columnName = model.columnName;
this.dataType = model.dataType;
this.engineType = model.engineType;
this.id = model.id;
this.instanceName = model.instanceName;
this.maskingStatus = model.maskingStatus;
this.modelTags = model.modelTags;
this.primaryKey = model.primaryKey;
this.productId = model.productId;
this.regionId = model.regionId;
this.riskLevelId = model.riskLevelId;
this.riskLevelName = model.riskLevelName;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.tableName = model.tableName;
}
/**
* <p>List of industry categories for the sensitive data.</p>
*/
public Builder categories(java.util.List<String> categories) {
this.categories = categories;
return this;
}
/**
* <p>Comment on the column.</p>
*
* <strong>example:</strong>
* <p>column comment</p>
*/
public Builder columnComment(String columnComment) {
this.columnComment = columnComment;
return this;
}
/**
* <p>Column name.</p>
*
* <strong>example:</strong>
* <p>hide14</p>
*/
public Builder columnName(String columnName) {
this.columnName = columnName;
return this;
}
/**
* <p>Data type of the column.</p>
*
* <strong>example:</strong>
* <p>varchar</p>
*/
public Builder dataType(String dataType) {
this.dataType = dataType;
return this;
}
/**
* <p>Engine type. Possible values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>MariaDB</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.engineType = engineType;
return this;
}
/**
* <p>Unique identifier ID of the column object.</p>
*
* <strong>example:</strong>
* <p>1509415150052786176</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>Instance name of the data asset table.</p>
*
* <strong>example:</strong>
* <p>rm-1234</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>Column encryption status. Possible values:</p>
* <ul>
* <li><p><strong>-1</strong>: Not encrypted</p>
* </li>
* <li><p><strong>1</strong>: Encryption successful</p>
* </li>
* <li><p><strong>2</strong>: Encryption failed</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder maskingStatus(Integer maskingStatus) {
this.maskingStatus = maskingStatus;
return this;
}
/**
* <p>List of data tags.</p>
*/
public Builder modelTags(java.util.List<ModelTags> modelTags) {
this.modelTags = modelTags;
return this;
}
/**
* <p>Whether the column is a primary key. Values:</p>
* <ul>
* <li><strong>true</strong>: Primary key.</li>
* <li><strong>false</strong>: Not a primary key.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder primaryKey(Boolean primaryKey) {
this.primaryKey = primaryKey;
return this;
}
/**
* <p>ID corresponding to the product name of the data object. Possible values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: ADB-MYSQL</li>
* <li><strong>4</strong>: TableStore</li>
* <li><strong>5</strong>: RDS</li>
* <li><strong>6</strong>: SELF_DB</li>
* <li><strong>7</strong>: PolarDB-X</li>
* <li><strong>8</strong>: PolarDB</li>
* <li><strong>9</strong>: ADB-PG</li>
* <li><strong>10</strong>: OceanBase</li>
* <li><strong>11</strong>: MongoDB</li>
* <li><strong>25</strong>: Redis</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(Long productId) {
this.productId = productId;
return this;
}
/**
* <p>Region where the asset is located.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Risk level ID. Values:</p>
* <ul>
* <li><strong>1</strong>: N/A: No sensitive data detected.</li>
* <li><strong>2</strong>: S1: Level 1 sensitive data.</li>
* <li><strong>3</strong>: S2: Level 2 sensitive data.</li>
* <li><strong>4</strong>: S3: Level 3 sensitive data.</li>
* <li><strong>5</strong>: S4: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>Risk level name. Possible values:</p>
* <ul>
* <li><strong>N/A</strong>: No sensitive data detected.</li>
* <li><strong>S1</strong>: Level 1 sensitive data.</li>
* <li><strong>S2</strong>: Level 2 sensitive data.</li>
* <li><strong>S3</strong>: Level 3 sensitive data.</li>
* <li><strong>S4</strong>: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S1</p>
*/
public Builder riskLevelName(String riskLevelName) {
this.riskLevelName = riskLevelName;
return this;
}
/**
* <p>ID of the matched identification model.</p>
*
* <strong>example:</strong>
* <p>1004</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>Name of the matched identification model.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>Table name.</p>
*
* <strong>example:</strong>
* <p>it_table</p>
*/
public Builder tableName(String tableName) {
this.tableName = tableName;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectColumnDetailV2Request.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectColumnDetailV2Request} extends {@link RequestModel}
*
* <p>DescribeDataObjectColumnDetailV2Request</p>
*/
public class DescribeDataObjectColumnDetailV2Request 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("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private String id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private Long templateId;
private DescribeDataObjectColumnDetailV2Request(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.featureType = builder.featureType;
this.id = builder.id;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.productId = builder.productId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataObjectColumnDetailV2Request create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return templateId
*/
public Long getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<DescribeDataObjectColumnDetailV2Request, Builder> {
private Integer currentPage;
private Integer featureType;
private String id;
private String lang;
private Integer pageSize;
private Long productId;
private Long templateId;
private Builder() {
super();
}
private Builder(DescribeDataObjectColumnDetailV2Request request) {
super(request);
this.currentPage = request.currentPage;
this.featureType = request.featureType;
this.id = request.id;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.productId = request.productId;
this.templateId = request.templateId;
}
/**
* <p>When performing a paginated query, set the current page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>Set the unique identifier ID of the data object to be queried.</p>
* <blockquote>
* <p>You can obtain the identifier ID by calling <a href="https://help.aliyun.com/document_detail/2399253.html">DescribeDataObjects</a>.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>13456723343</p>
*/
public Builder id(String id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
/**
* <p>The language type for the request and response messages, default is <strong>zh_cn</strong>. Values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese.</li>
* <li><strong>en_us</strong>: English.</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>When performing a paginated query, set the maximum number of data asset instances to display per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID corresponding to the product name of the data object. Values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: ADB-MYSQL</li>
* <li><strong>4</strong>: TableStore</li>
* <li><strong>5</strong>: RDS</li>
* <li><strong>6</strong>: SELF_DB</li>
* <li><strong>7</strong>: PolarDB-X</li>
* <li><strong>8</strong>: PolarDB</li>
* <li><strong>9</strong>: ADB-PG</li>
* <li><strong>10</strong>: OceanBase</li>
* <li><strong>11</strong>: MongoDB</li>
* <li><strong>25</strong>: Redis</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(Long productId) {
this.putQueryParameter("ProductId", productId);
this.productId = productId;
return this;
}
/**
* <p>Industry template ID.</p>
* <blockquote>
* <p>You can obtain the industry template identifier ID by calling <a href="https://help.aliyun.com/document_detail/2399253.html">DescribeDataObjects</a>.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder templateId(Long templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public DescribeDataObjectColumnDetailV2Request build() {
return new DescribeDataObjectColumnDetailV2Request(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectColumnDetailV2Response.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectColumnDetailV2Response} extends {@link TeaModel}
*
* <p>DescribeDataObjectColumnDetailV2Response</p>
*/
public class DescribeDataObjectColumnDetailV2Response 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 DescribeDataObjectColumnDetailV2ResponseBody body;
private DescribeDataObjectColumnDetailV2Response(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataObjectColumnDetailV2Response 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 DescribeDataObjectColumnDetailV2ResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataObjectColumnDetailV2Response, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataObjectColumnDetailV2ResponseBody body);
@Override
DescribeDataObjectColumnDetailV2Response build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataObjectColumnDetailV2Response, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataObjectColumnDetailV2ResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataObjectColumnDetailV2Response 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(DescribeDataObjectColumnDetailV2ResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataObjectColumnDetailV2Response build() {
return new DescribeDataObjectColumnDetailV2Response(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectColumnDetailV2ResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectColumnDetailV2ResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectColumnDetailV2ResponseBody</p>
*/
public class DescribeDataObjectColumnDetailV2ResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeDataObjectColumnDetailV2ResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataObjectColumnDetailV2ResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeDataObjectColumnDetailV2ResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>Page number for paginated queries. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>List of recognition results for the columns in the data table.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>When performing a paginated query, set the maximum number of data asset instances to display per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The 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>769FB3C1-F4C9-42DF-9B72-7077A8989C13</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Total number of data entries.</p>
*
* <strong>example:</strong>
* <p>231</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDataObjectColumnDetailV2ResponseBody build() {
return new DescribeDataObjectColumnDetailV2ResponseBody(this);
}
}
/**
*
* {@link DescribeDataObjectColumnDetailV2ResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectColumnDetailV2ResponseBody</p>
*/
public static class ModelTags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private ModelTags(Builder builder) {
this.id = builder.id;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static ModelTags create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Long id;
private String name;
private Builder() {
}
private Builder(ModelTags model) {
this.id = model.id;
this.name = model.name;
}
/**
* <p>ID corresponding to the data tag name. Values:</p>
* <ul>
* <li><strong>101</strong>: Personal Sensitive Information.</li>
* <li><strong>102</strong>: Personal Information.</li>
* <li><strong>107</strong>: General Information.</li>
* </ul>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>Data tag name. Values:</p>
* <ul>
* <li>Personal Sensitive Information.</li>
* <li>Personal Information.</li>
* <li>General Information.</li>
* </ul>
*
* <strong>example:</strong>
* <p>personal sensitive information</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public ModelTags build() {
return new ModelTags(this);
}
}
}
/**
*
* {@link DescribeDataObjectColumnDetailV2ResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectColumnDetailV2ResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Categories")
private java.util.List<String> categories;
@com.aliyun.core.annotation.NameInMap("ColumnComment")
private String columnComment;
@com.aliyun.core.annotation.NameInMap("ColumnName")
private String columnName;
@com.aliyun.core.annotation.NameInMap("DataType")
private String dataType;
@com.aliyun.core.annotation.NameInMap("EngineType")
private String engineType;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("MaskingStatus")
private Integer maskingStatus;
@com.aliyun.core.annotation.NameInMap("ModelTags")
private java.util.List<ModelTags> modelTags;
@com.aliyun.core.annotation.NameInMap("PrimaryKey")
private Boolean primaryKey;
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.NameInMap("RiskLevelName")
private String riskLevelName;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("TableName")
private String tableName;
private Items(Builder builder) {
this.categories = builder.categories;
this.columnComment = builder.columnComment;
this.columnName = builder.columnName;
this.dataType = builder.dataType;
this.engineType = builder.engineType;
this.id = builder.id;
this.instanceName = builder.instanceName;
this.maskingStatus = builder.maskingStatus;
this.modelTags = builder.modelTags;
this.primaryKey = builder.primaryKey;
this.productId = builder.productId;
this.regionId = builder.regionId;
this.riskLevelId = builder.riskLevelId;
this.riskLevelName = builder.riskLevelName;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.tableName = builder.tableName;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return categories
*/
public java.util.List<String> getCategories() {
return this.categories;
}
/**
* @return columnComment
*/
public String getColumnComment() {
return this.columnComment;
}
/**
* @return columnName
*/
public String getColumnName() {
return this.columnName;
}
/**
* @return dataType
*/
public String getDataType() {
return this.dataType;
}
/**
* @return engineType
*/
public String getEngineType() {
return this.engineType;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return maskingStatus
*/
public Integer getMaskingStatus() {
return this.maskingStatus;
}
/**
* @return modelTags
*/
public java.util.List<ModelTags> getModelTags() {
return this.modelTags;
}
/**
* @return primaryKey
*/
public Boolean getPrimaryKey() {
return this.primaryKey;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return riskLevelName
*/
public String getRiskLevelName() {
return this.riskLevelName;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return tableName
*/
public String getTableName() {
return this.tableName;
}
public static final class Builder {
private java.util.List<String> categories;
private String columnComment;
private String columnName;
private String dataType;
private String engineType;
private String id;
private String instanceName;
private Integer maskingStatus;
private java.util.List<ModelTags> modelTags;
private Boolean primaryKey;
private Long productId;
private String regionId;
private Long riskLevelId;
private String riskLevelName;
private Long ruleId;
private String ruleName;
private String tableName;
private Builder() {
}
private Builder(Items model) {
this.categories = model.categories;
this.columnComment = model.columnComment;
this.columnName = model.columnName;
this.dataType = model.dataType;
this.engineType = model.engineType;
this.id = model.id;
this.instanceName = model.instanceName;
this.maskingStatus = model.maskingStatus;
this.modelTags = model.modelTags;
this.primaryKey = model.primaryKey;
this.productId = model.productId;
this.regionId = model.regionId;
this.riskLevelId = model.riskLevelId;
this.riskLevelName = model.riskLevelName;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.tableName = model.tableName;
}
/**
* <p>List of industry categories for sensitive data.</p>
*/
public Builder categories(java.util.List<String> categories) {
this.categories = categories;
return this;
}
/**
* <p>Comment for the column.</p>
*
* <strong>example:</strong>
* <p>column comment</p>
*/
public Builder columnComment(String columnComment) {
this.columnComment = columnComment;
return this;
}
/**
* <p>Column name.</p>
*
* <strong>example:</strong>
* <p>hide14</p>
*/
public Builder columnName(String columnName) {
this.columnName = columnName;
return this;
}
/**
* <p>Data type of the column.</p>
*
* <strong>example:</strong>
* <p>varchar</p>
*/
public Builder dataType(String dataType) {
this.dataType = dataType;
return this;
}
/**
* <p>Engine type. Values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>MariaDB</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engineType(String engineType) {
this.engineType = engineType;
return this;
}
/**
* <p>Unique identifier ID of the data object.</p>
*
* <strong>example:</strong>
* <p>1392973973691383808</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>Instance name of the data asset table.</p>
*
* <strong>example:</strong>
* <p>rm-bp17t1htja573l5i8****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>Column encryption status. Values:</p>
* <ul>
* <li><p><strong>-1</strong>: Not encrypted</p>
* </li>
* <li><p><strong>1</strong>: Encryption successful</p>
* </li>
* <li><p><strong>2</strong>: Encryption failed</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder maskingStatus(Integer maskingStatus) {
this.maskingStatus = maskingStatus;
return this;
}
/**
* <p>List of data tags.</p>
*/
public Builder modelTags(java.util.List<ModelTags> modelTags) {
this.modelTags = modelTags;
return this;
}
/**
* <p>Whether the column is a primary key. Value explanation:</p>
* <ul>
* <li><strong>true</strong>: Primary key.</li>
* <li><strong>false</strong>: Not a primary key.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder primaryKey(Boolean primaryKey) {
this.primaryKey = primaryKey;
return this;
}
/**
* <p>ID corresponding to the product name of the data object. Values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: ADB-MYSQL</li>
* <li><strong>4</strong>: TableStore</li>
* <li><strong>5</strong>: RDS</li>
* <li><strong>6</strong>: SELF_DB</li>
* <li><strong>7</strong>: PolarDB-X</li>
* <li><strong>8</strong>: PolarDB</li>
* <li><strong>9</strong>: ADB-PG</li>
* <li><strong>10</strong>: OceanBase</li>
* <li><strong>11</strong>: MongoDB</li>
* <li><strong>25</strong>: Redis</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(Long productId) {
this.productId = productId;
return this;
}
/**
* <p>Region where the asset is located.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Risk level ID. Values:</p>
* <ul>
* <li><strong>1</strong>: N/A: No sensitive data detected.</li>
* <li><strong>2</strong>: S1: Level 1 sensitive data.</li>
* <li><strong>3</strong>: S2: Level 2 sensitive data.</li>
* <li><strong>4</strong>: S3: Level 3 sensitive data.</li>
* <li><strong>5</strong>: S4: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>Risk level name. Values:</p>
* <ul>
* <li><strong>N/A</strong>: No sensitive data was identified.</li>
* <li><strong>S1</strong>: Level 1 sensitive data.</li>
* <li><strong>S2</strong>: Level 2 sensitive data.</li>
* <li><strong>S3</strong>: Level 3 sensitive data.</li>
* <li><strong>S4</strong>: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S1</p>
*/
public Builder riskLevelName(String riskLevelName) {
this.riskLevelName = riskLevelName;
return this;
}
/**
* <p>The ID of the matched recognition model.</p>
*
* <strong>example:</strong>
* <p>51</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the matched recognition model.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>Table name.</p>
*
* <strong>example:</strong>
* <p>it_table</p>
*/
public Builder tableName(String tableName) {
this.tableName = tableName;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectsRequest} extends {@link RequestModel}
*
* <p>DescribeDataObjectsRequest</p>
*/
public class DescribeDataObjectsRequest 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("DomainId")
private Long domainId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileCategoryCode")
private Long fileCategoryCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileType")
private Long fileType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MemberAccount")
private Long memberAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ModelIds")
private String modelIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ModelTagIds")
private String modelTagIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParentCategoryIds")
private String parentCategoryIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductIds")
private String productIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QueryName")
private String queryName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevels")
private String riskLevels;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceRegionId")
private String serviceRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private Long templateId;
private DescribeDataObjectsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.domainId = builder.domainId;
this.featureType = builder.featureType;
this.fileCategoryCode = builder.fileCategoryCode;
this.fileType = builder.fileType;
this.instanceId = builder.instanceId;
this.lang = builder.lang;
this.memberAccount = builder.memberAccount;
this.modelIds = builder.modelIds;
this.modelTagIds = builder.modelTagIds;
this.pageSize = builder.pageSize;
this.parentCategoryIds = builder.parentCategoryIds;
this.productIds = builder.productIds;
this.queryName = builder.queryName;
this.riskLevels = builder.riskLevels;
this.serviceRegionId = builder.serviceRegionId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataObjectsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return domainId
*/
public Long getDomainId() {
return this.domainId;
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return fileCategoryCode
*/
public Long getFileCategoryCode() {
return this.fileCategoryCode;
}
/**
* @return fileType
*/
public Long getFileType() {
return this.fileType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return memberAccount
*/
public Long getMemberAccount() {
return this.memberAccount;
}
/**
* @return modelIds
*/
public String getModelIds() {
return this.modelIds;
}
/**
* @return modelTagIds
*/
public String getModelTagIds() {
return this.modelTagIds;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return parentCategoryIds
*/
public String getParentCategoryIds() {
return this.parentCategoryIds;
}
/**
* @return productIds
*/
public String getProductIds() {
return this.productIds;
}
/**
* @return queryName
*/
public String getQueryName() {
return this.queryName;
}
/**
* @return riskLevels
*/
public String getRiskLevels() {
return this.riskLevels;
}
/**
* @return serviceRegionId
*/
public String getServiceRegionId() {
return this.serviceRegionId;
}
/**
* @return templateId
*/
public Long getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<DescribeDataObjectsRequest, Builder> {
private Integer currentPage;
private Long domainId;
private Integer featureType;
private Long fileCategoryCode;
private Long fileType;
private String instanceId;
private String lang;
private Long memberAccount;
private String modelIds;
private String modelTagIds;
private Integer pageSize;
private String parentCategoryIds;
private String productIds;
private String queryName;
private String riskLevels;
private String serviceRegionId;
private Long templateId;
private Builder() {
super();
}
private Builder(DescribeDataObjectsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.domainId = request.domainId;
this.featureType = request.featureType;
this.fileCategoryCode = request.fileCategoryCode;
this.fileType = request.fileType;
this.instanceId = request.instanceId;
this.lang = request.lang;
this.memberAccount = request.memberAccount;
this.modelIds = request.modelIds;
this.modelTagIds = request.modelTagIds;
this.pageSize = request.pageSize;
this.parentCategoryIds = request.parentCategoryIds;
this.productIds = request.productIds;
this.queryName = request.queryName;
this.riskLevels = request.riskLevels;
this.serviceRegionId = request.serviceRegionId;
this.templateId = request.templateId;
}
/**
* <p>Page number for the paginated query. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>ID of the data domain to which the data asset belongs.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder domainId(Long domainId) {
this.putQueryParameter("DomainId", domainId);
this.domainId = domainId;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
return this;
}
/**
* <p>File category code.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder fileCategoryCode(Long fileCategoryCode) {
this.putQueryParameter("FileCategoryCode", fileCategoryCode);
this.fileCategoryCode = fileCategoryCode;
return this;
}
/**
* <p>OSS file types that are supported for recognition.</p>
* <blockquote>
* <p>You can obtain the supported OSS file types by calling <a href="https://help.aliyun.com/document_detail/2536492.html">DescribeDocTypes</a>, using the Code field value from the response. This parameter is only valid for querying OSS-type assets.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>100001</p>
*/
public Builder fileType(Long fileType) {
this.putQueryParameter("FileType", fileType);
this.fileType = fileType;
return this;
}
/**
* <p>Keyword for the asset instance ID.</p>
*
* <strong>example:</strong>
* <p>8vb54hn2g9j191ddz</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The language type for request and response messages, default is <strong>zh_cn</strong>. Values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese.</li>
* <li><strong>en_us</strong>: English.</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>Member account ID.</p>
*
* <strong>example:</strong>
* <p>**********8103</p>
*/
public Builder memberAccount(Long memberAccount) {
this.putQueryParameter("MemberAccount", memberAccount);
this.memberAccount = memberAccount;
return this;
}
/**
* <p>Model IDs of the industry template, separated by commas.</p>
* <blockquote>
* <p>You can obtain the industry template model identifier ID by calling <a href="https://help.aliyun.com/document_detail/2536491.html">DescribeTemplateAllRules</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder modelIds(String modelIds) {
this.putQueryParameter("ModelIds", modelIds);
this.modelIds = modelIds;
return this;
}
/**
* <p>Data labels to be queried, separated by commas. Values:</p>
* <ul>
* <li><strong>101</strong>: Personal Sensitive Information.</li>
* <li><strong>102</strong>: Personal Information.</li>
* <li><strong>107</strong>: General Information.</li>
* </ul>
*
* <strong>example:</strong>
* <p>101,102</p>
*/
public Builder modelTagIds(String modelTagIds) {
this.putQueryParameter("ModelTagIds", modelTagIds);
this.modelTagIds = modelTagIds;
return this;
}
/**
* <p>When performing a paginated query, set the maximum number of data asset instances to display per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>List of parent category IDs for the template to be queried, separated by commas.</p>
*
* <strong>example:</strong>
* <p>234,236,238</p>
*/
public Builder parentCategoryIds(String parentCategoryIds) {
this.putQueryParameter("ParentCategoryIds", parentCategoryIds);
this.parentCategoryIds = parentCategoryIds;
return this;
}
/**
* <p>It is recommended to fill in the list of product IDs to be queried, separated by commas. Values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: ADB-MYSQL</li>
* <li><strong>4</strong>: TableStore</li>
* <li><strong>5</strong>: RDS</li>
* <li><strong>6</strong>: SELF_DB</li>
* <li><strong>7</strong>: PolarDB-X</li>
* <li><strong>8</strong>: PolarDB</li>
* <li><strong>9</strong>: ADB-PG</li>
* <li><strong>10</strong>: OceanBase</li>
* <li><strong>11</strong>: MongoDB</li>
* <li><strong>25</strong>: Redis</li>
* </ul>
* <blockquote>
* <p>OSS is mutually exclusive with other products, meaning if OSS is included in the query, no other products can be listed; by default, non-OSS products are queried.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1,5</p>
*/
public Builder productIds(String productIds) {
this.putQueryParameter("ProductIds", productIds);
this.productIds = productIds;
return this;
}
/**
* <p>Keyword for the data object to be queried.</p>
*
* <strong>example:</strong>
* <p>t_sddp_selfmysql_pers0</p>
*/
public Builder queryName(String queryName) {
this.putQueryParameter("QueryName", queryName);
this.queryName = queryName;
return this;
}
/**
* <p>Specify the risk levels of the data assets to be queried, separated by commas if multiple.</p>
* <ul>
* <li><strong>2</strong>: S1, low risk level.</li>
* <li><strong>3</strong>: S2, medium risk level.</li>
* <li><strong>4</strong>: S3, high risk level.</li>
* <li><strong>5</strong>: S4, highest risk level.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevels(String riskLevels) {
this.putQueryParameter("RiskLevels", riskLevels);
this.riskLevels = riskLevels;
return this;
}
/**
* <p>Region where the asset is located. Values:</p>
* <ul>
* <li><strong>cn-beijing</strong>: North China 2 (Beijing).</li>
* <li><strong>cn-zhangjiakou</strong>: North China 3 (Zhangjiakou).</li>
* <li><strong>cn-huhehaote</strong>: North China 5 (Hohhot).</li>
* <li><strong>cn-hangzhou</strong>: East China 1 (Hangzhou).</li>
* <li><strong>cn-shanghai</strong>: East China 2 (Shanghai).</li>
* <li><strong>cn-shenzhen</strong>: South China 1 (Shenzhen).</li>
* <li><strong>cn-hongkong</strong>: Hong Kong, China.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder serviceRegionId(String serviceRegionId) {
this.putQueryParameter("ServiceRegionId", serviceRegionId);
this.serviceRegionId = serviceRegionId;
return this;
}
/**
* <p>Industry template ID.</p>
* <blockquote>
* <p>You can obtain the industry template identifier ID by calling <a href="https://help.aliyun.com/document_detail/2399296.html">DescribeCategoryTemplateList</a>.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder templateId(Long templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public DescribeDataObjectsRequest build() {
return new DescribeDataObjectsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectsResponse} extends {@link TeaModel}
*
* <p>DescribeDataObjectsResponse</p>
*/
public class DescribeDataObjectsResponse 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 DescribeDataObjectsResponseBody body;
private DescribeDataObjectsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDataObjectsResponse 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 DescribeDataObjectsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDataObjectsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDataObjectsResponseBody body);
@Override
DescribeDataObjectsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDataObjectsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDataObjectsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDataObjectsResponse 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(DescribeDataObjectsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDataObjectsResponse build() {
return new DescribeDataObjectsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDataObjectsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDataObjectsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectsResponseBody</p>
*/
public class DescribeDataObjectsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeDataObjectsResponseBody(Builder builder) {
this.currentPage = builder.currentPage;
this.items = builder.items;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDataObjectsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Items> items;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeDataObjectsResponseBody model) {
this.currentPage = model.currentPage;
this.items = model.items;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>When performing a paginated query, set the current page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>List of data objects.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>When performing a paginated query, this sets the maximum number of data asset instances to display per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of this call request is a unique identifier generated by Alibaba Cloud for the request, which can be used to troubleshoot and locate issues.</p>
*
* <strong>example:</strong>
* <p>E6F6460E-4330-549A-BD89-C183FB17571E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of query results.</p>
*
* <strong>example:</strong>
* <p>21</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDataObjectsResponseBody build() {
return new DescribeDataObjectsResponseBody(this);
}
}
/**
*
* {@link DescribeDataObjectsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectsResponseBody</p>
*/
public static class ModelTags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private ModelTags(Builder builder) {
this.id = builder.id;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static ModelTags create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Long id;
private String name;
private Builder() {
}
private Builder(ModelTags model) {
this.id = model.id;
this.name = model.name;
}
/**
* <p>Data tag ID. Values:</p>
* <ul>
* <li><strong>101</strong>: Personal sensitive information.</li>
* <li><strong>102</strong>: Personal information.</li>
* <li><strong>107</strong>: General information.</li>
* </ul>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>Data tag name. Values:</p>
* <ul>
* <li><strong>Personal sensitive information.</strong></li>
* <li><strong>Personal information.</strong></li>
* <li><strong>General information.</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Personal sensitive information</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public ModelTags build() {
return new ModelTags(this);
}
}
}
/**
*
* {@link DescribeDataObjectsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectsResponseBody</p>
*/
public static class RuleList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RiskLevelId")
private Long riskLevelId;
@com.aliyun.core.annotation.NameInMap("RiskLevelName")
private String riskLevelName;
@com.aliyun.core.annotation.NameInMap("RuleCount")
private Integer ruleCount;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
private RuleList(Builder builder) {
this.riskLevelId = builder.riskLevelId;
this.riskLevelName = builder.riskLevelName;
this.ruleCount = builder.ruleCount;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
}
public static Builder builder() {
return new Builder();
}
public static RuleList create() {
return builder().build();
}
/**
* @return riskLevelId
*/
public Long getRiskLevelId() {
return this.riskLevelId;
}
/**
* @return riskLevelName
*/
public String getRiskLevelName() {
return this.riskLevelName;
}
/**
* @return ruleCount
*/
public Integer getRuleCount() {
return this.ruleCount;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
public static final class Builder {
private Long riskLevelId;
private String riskLevelName;
private Integer ruleCount;
private Long ruleId;
private String ruleName;
private Builder() {
}
private Builder(RuleList model) {
this.riskLevelId = model.riskLevelId;
this.riskLevelName = model.riskLevelName;
this.ruleCount = model.ruleCount;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
}
/**
* <p>Risk level ID for sensitive data identification rules. Values:</p>
* <ul>
* <li><strong>1</strong>: N/A: No sensitive data identified.</li>
* <li><strong>2</strong>: S1: Level 1 sensitive data.</li>
* <li><strong>3</strong>: S2: Level 2 sensitive data.</li>
* <li><strong>4</strong>: S3: Level 3 sensitive data.</li>
* <li><strong>5</strong>: S4: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevelId(Long riskLevelId) {
this.riskLevelId = riskLevelId;
return this;
}
/**
* <p>Risk level name for the data asset table. Values:</p>
* <ul>
* <li><strong>N/A</strong>: No sensitive data identified.</li>
* <li><strong>S1</strong>: Level 1 sensitive data.</li>
* <li><strong>S2</strong>: Level 2 sensitive data.</li>
* <li><strong>S3</strong>: Level 3 sensitive data.</li>
* <li><strong>S4</strong>: Level 4 sensitive data.</li>
* </ul>
*
* <strong>example:</strong>
* <p>S1</p>
*/
public Builder riskLevelName(String riskLevelName) {
this.riskLevelName = riskLevelName;
return this;
}
/**
* <p>Number of matched identification models.</p>
*
* <strong>example:</strong>
* <p>590</p>
*/
public Builder ruleCount(Integer ruleCount) {
this.ruleCount = ruleCount;
return this;
}
/**
* <p>Identification model ID.</p>
*
* <strong>example:</strong>
* <p>1080</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>Identification model name.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
public RuleList build() {
return new RuleList(this);
}
}
}
/**
*
* {@link DescribeDataObjectsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDataObjectsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Categories")
private java.util.List<String> categories;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("InstanceDescription")
private String instanceDescription;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("LastModifiedTime")
private Long lastModifiedTime;
@com.aliyun.core.annotation.NameInMap("LastScanTime")
private Long lastScanTime;
@com.aliyun.core.annotation.NameInMap("MemberAccount")
private Long memberAccount;
@com.aliyun.core.annotation.NameInMap("ModelTags")
private java.util.List<ModelTags> modelTags;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ObjectFileCategory")
private String objectFileCategory;
@com.aliyun.core.annotation.NameInMap("ObjectType")
private String objectType;
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.NameInMap("ProductId")
private Long productId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RegionName")
private String regionName;
@com.aliyun.core.annotation.NameInMap("RuleList")
private java.util.List<RuleList> ruleList;
@com.aliyun.core.annotation.NameInMap("SensitiveCount")
private Integer sensitiveCount;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private Long templateId;
private Items(Builder builder) {
this.categories = builder.categories;
this.id = builder.id;
this.instanceDescription = builder.instanceDescription;
this.instanceId = builder.instanceId;
this.lastModifiedTime = builder.lastModifiedTime;
this.lastScanTime = builder.lastScanTime;
this.memberAccount = builder.memberAccount;
this.modelTags = builder.modelTags;
this.name = builder.name;
this.objectFileCategory = builder.objectFileCategory;
this.objectType = builder.objectType;
this.path = builder.path;
this.productCode = builder.productCode;
this.productId = builder.productId;
this.regionId = builder.regionId;
this.regionName = builder.regionName;
this.ruleList = builder.ruleList;
this.sensitiveCount = builder.sensitiveCount;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return categories
*/
public java.util.List<String> getCategories() {
return this.categories;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return instanceDescription
*/
public String getInstanceDescription() {
return this.instanceDescription;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return lastModifiedTime
*/
public Long getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
* @return lastScanTime
*/
public Long getLastScanTime() {
return this.lastScanTime;
}
/**
* @return memberAccount
*/
public Long getMemberAccount() {
return this.memberAccount;
}
/**
* @return modelTags
*/
public java.util.List<ModelTags> getModelTags() {
return this.modelTags;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return objectFileCategory
*/
public String getObjectFileCategory() {
return this.objectFileCategory;
}
/**
* @return objectType
*/
public String getObjectType() {
return this.objectType;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return productId
*/
public Long getProductId() {
return this.productId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return regionName
*/
public String getRegionName() {
return this.regionName;
}
/**
* @return ruleList
*/
public java.util.List<RuleList> getRuleList() {
return this.ruleList;
}
/**
* @return sensitiveCount
*/
public Integer getSensitiveCount() {
return this.sensitiveCount;
}
/**
* @return templateId
*/
public Long getTemplateId() {
return this.templateId;
}
public static final class Builder {
private java.util.List<String> categories;
private String id;
private String instanceDescription;
private String instanceId;
private Long lastModifiedTime;
private Long lastScanTime;
private Long memberAccount;
private java.util.List<ModelTags> modelTags;
private String name;
private String objectFileCategory;
private String objectType;
private String path;
private String productCode;
private Long productId;
private String regionId;
private String regionName;
private java.util.List<RuleList> ruleList;
private Integer sensitiveCount;
private Long templateId;
private Builder() {
}
private Builder(Items model) {
this.categories = model.categories;
this.id = model.id;
this.instanceDescription = model.instanceDescription;
this.instanceId = model.instanceId;
this.lastModifiedTime = model.lastModifiedTime;
this.lastScanTime = model.lastScanTime;
this.memberAccount = model.memberAccount;
this.modelTags = model.modelTags;
this.name = model.name;
this.objectFileCategory = model.objectFileCategory;
this.objectType = model.objectType;
this.path = model.path;
this.productCode = model.productCode;
this.productId = model.productId;
this.regionId = model.regionId;
this.regionName = model.regionName;
this.ruleList = model.ruleList;
this.sensitiveCount = model.sensitiveCount;
this.templateId = model.templateId;
}
/**
* <p>List of industry categories for the sensitive data.</p>
*/
public Builder categories(java.util.List<String> categories) {
this.categories = categories;
return this;
}
/**
* <p>The unique identifier ID of the data object.</p>
*
* <strong>example:</strong>
* <p>20000</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>The instance description of the data object.</p>
*
* <strong>example:</strong>
* <p>instance description</p>
*/
public Builder instanceDescription(String instanceDescription) {
this.instanceDescription = instanceDescription;
return this;
}
/**
* <p>Data asset instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-12*****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>Latest file modification time, in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1687676649830</p>
*/
public Builder lastModifiedTime(Long lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
return this;
}
/**
* <p>The timestamp of the last scan, in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1687676649830</p>
*/
public Builder lastScanTime(Long lastScanTime) {
this.lastScanTime = lastScanTime;
return this;
}
/**
* <p>Member account ID.</p>
*
* <strong>example:</strong>
* <p>**********8103</p>
*/
public Builder memberAccount(Long memberAccount) {
this.memberAccount = memberAccount;
return this;
}
/**
* <p>List of data tags.</p>
*/
public Builder modelTags(java.util.List<ModelTags> modelTags) {
this.modelTags = modelTags;
return this;
}
/**
* <p>The name of the data object.</p>
*
* <strong>example:</strong>
* <p>t_sddp_selfmysql_pers0</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>File category name.</p>
*
* <strong>example:</strong>
* <p>text file</p>
*/
public Builder objectFileCategory(String objectFileCategory) {
this.objectFileCategory = objectFileCategory;
return this;
}
/**
* <p>The type of the data object.</p>
*
* <strong>example:</strong>
* <p>text type</p>
*/
public Builder objectType(String objectType) {
this.objectType = objectType;
return this;
}
/**
* <p>The path of the data object.</p>
*
* <strong>example:</strong>
* <p>rm-12**.db_***</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
/**
* <p>The product name that the data object belongs to. Values:</p>
* <ul>
* <li><strong>MaxCompute</strong></li>
* <li><strong>OSS</strong></li>
* <li><strong>ADB-MYSQL</strong></li>
* <li><strong>TableStore</strong></li>
* <li><strong>RDS</strong></li>
* <li><strong>SELF_DB</strong></li>
* <li><strong>PolarDB-X</strong></li>
* <li><strong>PolarDB</strong></li>
* <li><strong>ADB-PG</strong></li>
* <li><strong>OceanBase</strong></li>
* <li><strong>MongoDB</strong></li>
* <li><strong>Redis</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder productCode(String productCode) {
this.productCode = productCode;
return this;
}
/**
* <p>The ID corresponding to the product name that the data object belongs to. Values:</p>
* <ul>
* <li><strong>1</strong>: MaxCompute</li>
* <li><strong>2</strong>: OSS</li>
* <li><strong>3</strong>: ADB-MYSQL</li>
* <li><strong>4</strong>: TableStore</li>
* <li><strong>5</strong>: RDS</li>
* <li><strong>6</strong>: SELF_DB</li>
* <li><strong>7</strong>: PolarDB-X</li>
* <li><strong>8</strong>: PolarDB</li>
* <li><strong>9</strong>: ADB-PG</li>
* <li><strong>10</strong>: OceanBase</li>
* <li><strong>11</strong>: MongoDB</li>
* <li><strong>25</strong>: Redis</li>
* </ul>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder productId(Long productId) {
this.productId = productId;
return this;
}
/**
* <p>The region ID to which the OSS storage object belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Region name.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionName(String regionName) {
this.regionName = regionName;
return this;
}
/**
* <p>List of matched identification models.</p>
*/
public Builder ruleList(java.util.List<RuleList> ruleList) {
this.ruleList = ruleList;
return this;
}
/**
* <p>Number of sensitive data items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder sensitiveCount(Integer sensitiveCount) {
this.sensitiveCount = sensitiveCount;
return this;
}
/**
* <p>Industry template ID</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder templateId(Long templateId) {
this.templateId = templateId;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDocTypesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDocTypesRequest} extends {@link RequestModel}
*
* <p>DescribeDocTypesRequest</p>
*/
public class DescribeDocTypesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private DescribeDocTypesRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDocTypesRequest 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<DescribeDocTypesRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(DescribeDocTypesRequest request) {
super(request);
this.lang = request.lang;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public DescribeDocTypesRequest build() {
return new DescribeDocTypesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDocTypesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDocTypesResponse} extends {@link TeaModel}
*
* <p>DescribeDocTypesResponse</p>
*/
public class DescribeDocTypesResponse 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 DescribeDocTypesResponseBody body;
private DescribeDocTypesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDocTypesResponse 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 DescribeDocTypesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDocTypesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDocTypesResponseBody body);
@Override
DescribeDocTypesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDocTypesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDocTypesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDocTypesResponse 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(DescribeDocTypesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDocTypesResponse build() {
return new DescribeDocTypesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeDocTypesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDocTypesResponseBody} extends {@link TeaModel}
*
* <p>DescribeDocTypesResponseBody</p>
*/
public class DescribeDocTypesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DocTypeList")
private java.util.List<DocTypeList> docTypeList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDocTypesResponseBody(Builder builder) {
this.docTypeList = builder.docTypeList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDocTypesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return docTypeList
*/
public java.util.List<DocTypeList> getDocTypeList() {
return this.docTypeList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<DocTypeList> docTypeList;
private String requestId;
private Builder() {
}
private Builder(DescribeDocTypesResponseBody model) {
this.docTypeList = model.docTypeList;
this.requestId = model.requestId;
}
/**
* <p>A list of OSS object types.</p>
*/
public Builder docTypeList(java.util.List<DocTypeList> docTypeList) {
this.docTypeList = docTypeList;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-4******</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDocTypesResponseBody build() {
return new DescribeDocTypesResponseBody(this);
}
}
/**
*
* {@link DescribeDocTypesResponseBody} extends {@link TeaModel}
*
* <p>DescribeDocTypesResponseBody</p>
*/
public static class DocTypeList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Long code;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private DocTypeList(Builder builder) {
this.code = builder.code;
this.id = builder.id;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static DocTypeList create() {
return builder().build();
}
/**
* @return code
*/
public Long getCode() {
return this.code;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Long code;
private Long id;
private String name;
private Builder() {
}
private Builder(DocTypeList model) {
this.code = model.code;
this.id = model.id;
this.name = model.name;
}
/**
* <p>The code of the object type.</p>
*
* <strong>example:</strong>
* <p>100001</p>
*/
public Builder code(Long code) {
this.code = code;
return this;
}
/**
* <p>The ID of the object type.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the object type.</p>
*
* <strong>example:</strong>
* <p>C/C++ Source Code</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public DocTypeList build() {
return new DocTypeList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeEventDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEventDetailRequest} extends {@link RequestModel}
*
* <p>DescribeEventDetailRequest</p>
*/
public class DescribeEventDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private Long id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private DescribeEventDetailRequest(Builder builder) {
super(builder);
this.id = builder.id;
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEventDetailRequest 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<DescribeEventDetailRequest, Builder> {
private Long id;
private String lang;
private Builder() {
super();
}
private Builder(DescribeEventDetailRequest request) {
super(request);
this.id = request.id;
this.lang = request.lang;
}
/**
* <p>The ID of the anomalous event.</p>
* <blockquote>
* <p>You can call the <strong>DescribeEvents</strong> operation to query the ID of the anomalous event.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>13456723343</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 DescribeEventDetailRequest build() {
return new DescribeEventDetailRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeEventDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEventDetailResponse} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponse</p>
*/
public class DescribeEventDetailResponse 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 DescribeEventDetailResponseBody body;
private DescribeEventDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEventDetailResponse 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 DescribeEventDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEventDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEventDetailResponseBody body);
@Override
DescribeEventDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEventDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEventDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEventDetailResponse 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(DescribeEventDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEventDetailResponse build() {
return new DescribeEventDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeEventDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponseBody</p>
*/
public class DescribeEventDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Event")
private Event event;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeEventDetailResponseBody(Builder builder) {
this.event = builder.event;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEventDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return event
*/
public Event getEvent() {
return this.event;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Event event;
private String requestId;
private Builder() {
}
private Builder(DescribeEventDetailResponseBody model) {
this.event = model.event;
this.requestId = model.requestId;
}
/**
* <p>The details of the anomalous event.</p>
*/
public Builder event(Event event) {
this.event = event;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>69FB3C1-F4C9-42DF-9B72-7077A8989C13</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeEventDetailResponseBody build() {
return new DescribeEventDetailResponseBody(this);
}
}
/**
*
* {@link DescribeEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("X")
private java.util.List<String> x;
@com.aliyun.core.annotation.NameInMap("Y")
private java.util.List<String> y;
@com.aliyun.core.annotation.NameInMap("Z")
private java.util.List<String> z;
private Data(Builder builder) {
this.x = builder.x;
this.y = builder.y;
this.z = builder.z;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return x
*/
public java.util.List<String> getX() {
return this.x;
}
/**
* @return y
*/
public java.util.List<String> getY() {
return this.y;
}
/**
* @return z
*/
public java.util.List<String> getZ() {
return this.z;
}
public static final class Builder {
private java.util.List<String> x;
private java.util.List<String> y;
private java.util.List<String> z;
private Builder() {
}
private Builder(Data model) {
this.x = model.x;
this.y = model.y;
this.z = model.z;
}
/**
* <p>The value of the data item on the X axis.</p>
*
* <strong>example:</strong>
* <p>[test1,test2,...]</p>
*/
public Builder x(java.util.List<String> x) {
this.x = x;
return this;
}
/**
* <p>The value of the data item on the Y axis.</p>
*
* <strong>example:</strong>
* <p>[1,2,3,...]</p>
*/
public Builder y(java.util.List<String> y) {
this.y = y;
return this;
}
/**
* <p>The value of the data item for the Z axis.</p>
*/
public Builder z(java.util.List<String> z) {
this.z = z;
return this;
}
public Data build() {
return new Data(this);
}
}
}
/**
*
* {@link DescribeEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponseBody</p>
*/
public static class Chart extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ChatType")
private Integer chatType;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("XLabel")
private String xLabel;
@com.aliyun.core.annotation.NameInMap("YLabel")
private String yLabel;
@com.aliyun.core.annotation.NameInMap("ZLabel")
private String zLabel;
private Chart(Builder builder) {
this.chatType = builder.chatType;
this.data = builder.data;
this.label = builder.label;
this.name = builder.name;
this.type = builder.type;
this.xLabel = builder.xLabel;
this.yLabel = builder.yLabel;
this.zLabel = builder.zLabel;
}
public static Builder builder() {
return new Builder();
}
public static Chart create() {
return builder().build();
}
/**
* @return chatType
*/
public Integer getChatType() {
return this.chatType;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return xLabel
*/
public String getXLabel() {
return this.xLabel;
}
/**
* @return yLabel
*/
public String getYLabel() {
return this.yLabel;
}
/**
* @return zLabel
*/
public String getZLabel() {
return this.zLabel;
}
public static final class Builder {
private Integer chatType;
private Data data;
private String label;
private String name;
private String type;
private String xLabel;
private String yLabel;
private String zLabel;
private Builder() {
}
private Builder(Chart model) {
this.chatType = model.chatType;
this.data = model.data;
this.label = model.label;
this.name = model.name;
this.type = model.type;
this.xLabel = model.xLabel;
this.yLabel = model.yLabel;
this.zLabel = model.zLabel;
}
/**
* <p>The type of the chart. Valid values:</p>
* <ul>
* <li><strong>1</strong>: column chart</li>
* <li><strong>2</strong>: line chart</li>
* </ul>
* <blockquote>
* <p>This field will be returned only when NewAlarm is true.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder chatType(Integer chatType) {
this.chatType = chatType;
return this;
}
/**
* <p>The data in the baseline behavior profile of the anomalous event.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The name of the baseline behavior chart of the anomalous event.</p>
*
* <strong>example:</strong>
* <p>Baseline behavior chart</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>Icon title.</p>
* <blockquote>
* <p>This field will be returned only when NewAlarm is true.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>misskingm</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the chart. Valid values:</p>
* <ul>
* <li><strong>1</strong>: column chart</li>
* <li><strong>2</strong>: line chart</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The descriptive label of data items on the X axis.</p>
*
* <strong>example:</strong>
* <p>Number of days</p>
*/
public Builder xLabel(String xLabel) {
this.xLabel = xLabel;
return this;
}
/**
* <p>The descriptive label of data items on the Y axis.</p>
*
* <strong>example:</strong>
* <p>Value</p>
*/
public Builder yLabel(String yLabel) {
this.yLabel = yLabel;
return this;
}
/**
* <p>The descriptive label of data items on the Z axis.</p>
* <blockquote>
* <p>This field will be returned only when NewAlarm is true.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>chart description</p>
*/
public Builder zLabel(String zLabel) {
this.zLabel = zLabel;
return this;
}
public Chart build() {
return new Chart(this);
}
}
}
/**
*
* {@link DescribeEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponseBody</p>
*/
public static class Content extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Content(Builder builder) {
this.label = builder.label;
this.name = builder.name;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Content create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String label;
private String name;
private String value;
private Builder() {
}
private Builder(Content model) {
this.label = model.label;
this.name = model.name;
this.value = model.value;
}
/**
* <p>The title of the content in the anomalous event.</p>
*
* <strong>example:</strong>
* <p>Anomaly description</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>Exception event name.</p>
*
* <strong>example:</strong>
* <p>daliaoyuncom</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The description of the content in the anomalous event.</p>
*
* <strong>example:</strong>
* <p>The account was used to access OSS from an unusual terminal whose IP address is 1.2.3.4 from 00:06:45 on September 9, 2019 to 00:57:37 on September 9, 2019.</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Content build() {
return new Content(this);
}
}
}
/**
*
* {@link DescribeEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponseBody</p>
*/
public static class ResourceInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private ResourceInfo(Builder builder) {
this.label = builder.label;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static ResourceInfo create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String label;
private String value;
private Builder() {
}
private Builder(ResourceInfo model) {
this.label = model.label;
this.value = model.value;
}
/**
* <p>The source title.</p>
*
* <strong>example:</strong>
* <p>Risk</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The source description.</p>
*
* <strong>example:</strong>
* <p>Based on the record of authentication by using an unusual terminal, an attacker may have obtained the access permission of the account, or an employee accessed data from a personal terminal.</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public ResourceInfo build() {
return new ResourceInfo(this);
}
}
}
/**
*
* {@link DescribeEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponseBody</p>
*/
public static class Detail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Chart")
private java.util.List<Chart> chart;
@com.aliyun.core.annotation.NameInMap("Content")
private java.util.List<Content> content;
@com.aliyun.core.annotation.NameInMap("ResourceInfo")
private java.util.List<ResourceInfo> resourceInfo;
private Detail(Builder builder) {
this.chart = builder.chart;
this.content = builder.content;
this.resourceInfo = builder.resourceInfo;
}
public static Builder builder() {
return new Builder();
}
public static Detail create() {
return builder().build();
}
/**
* @return chart
*/
public java.util.List<Chart> getChart() {
return this.chart;
}
/**
* @return content
*/
public java.util.List<Content> getContent() {
return this.content;
}
/**
* @return resourceInfo
*/
public java.util.List<ResourceInfo> getResourceInfo() {
return this.resourceInfo;
}
public static final class Builder {
private java.util.List<Chart> chart;
private java.util.List<Content> content;
private java.util.List<ResourceInfo> resourceInfo;
private Builder() {
}
private Builder(Detail model) {
this.chart = model.chart;
this.content = model.content;
this.resourceInfo = model.resourceInfo;
}
/**
* <p>The baseline behavior chart of the anomalous event.</p>
*/
public Builder chart(java.util.List<Chart> chart) {
this.chart = chart;
return this;
}
/**
* <p>The content in the anomalous event.</p>
*/
public Builder content(java.util.List<Content> content) {
this.content = content;
return this;
}
/**
* <p>An array that consists of the source from which the information of the anomalous event is recorded.</p>
*/
public Builder resourceInfo(java.util.List<ResourceInfo> resourceInfo) {
this.resourceInfo = resourceInfo;
return this;
}
public Detail build() {
return new Detail(this);
}
}
}
/**
*
* {@link DescribeEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponseBody</p>
*/
public static class HandleInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentValue")
private String currentValue;
@com.aliyun.core.annotation.NameInMap("DisableTime")
private Long disableTime;
@com.aliyun.core.annotation.NameInMap("EnableTime")
private Long enableTime;
@com.aliyun.core.annotation.NameInMap("HandlerName")
private String handlerName;
@com.aliyun.core.annotation.NameInMap("HandlerType")
private String handlerType;
@com.aliyun.core.annotation.NameInMap("HandlerValue")
private Integer handlerValue;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private HandleInfoList(Builder builder) {
this.currentValue = builder.currentValue;
this.disableTime = builder.disableTime;
this.enableTime = builder.enableTime;
this.handlerName = builder.handlerName;
this.handlerType = builder.handlerType;
this.handlerValue = builder.handlerValue;
this.id = builder.id;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static HandleInfoList create() {
return builder().build();
}
/**
* @return currentValue
*/
public String getCurrentValue() {
return this.currentValue;
}
/**
* @return disableTime
*/
public Long getDisableTime() {
return this.disableTime;
}
/**
* @return enableTime
*/
public Long getEnableTime() {
return this.enableTime;
}
/**
* @return handlerName
*/
public String getHandlerName() {
return this.handlerName;
}
/**
* @return handlerType
*/
public String getHandlerType() {
return this.handlerType;
}
/**
* @return handlerValue
*/
public Integer getHandlerValue() {
return this.handlerValue;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder {
private String currentValue;
private Long disableTime;
private Long enableTime;
private String handlerName;
private String handlerType;
private Integer handlerValue;
private Long id;
private Integer status;
private Builder() {
}
private Builder(HandleInfoList model) {
this.currentValue = model.currentValue;
this.disableTime = model.disableTime;
this.enableTime = model.enableTime;
this.handlerName = model.handlerName;
this.handlerType = model.handlerType;
this.handlerValue = model.handlerValue;
this.id = model.id;
this.status = model.status;
}
/**
* <p>The account that is used to handle the anomalous event.</p>
*
* <strong>example:</strong>
* <p>sddp-test2</p>
*/
public Builder currentValue(String currentValue) {
this.currentValue = currentValue;
return this;
}
/**
* <p>The time when the account is disabled. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1611139155000</p>
*/
public Builder disableTime(Long disableTime) {
this.disableTime = disableTime;
return this;
}
/**
* <p>The time when the disabled account is enabled. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1611139155000</p>
*/
public Builder enableTime(Long enableTime) {
this.enableTime = enableTime;
return this;
}
/**
* <p>The handling method.</p>
*
* <strong>example:</strong>
* <p>Remove from the whitelist</p>
*/
public Builder handlerName(String handlerName) {
this.handlerName = handlerName;
return this;
}
/**
* <p>The type of the handling method.</p>
*
* <strong>example:</strong>
* <p>rds_security_ip</p>
*/
public Builder handlerType(String handlerType) {
this.handlerType = handlerType;
return this;
}
/**
* <p>The duration for which the handling operation takes effect. If you leave this parameter empty, the handling operation is permanently valid. Unit: minutes.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder handlerValue(Integer handlerValue) {
this.handlerValue = handlerValue;
return this;
}
/**
* <p>The ID of the handling rule.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The status of the account that triggered the anomalous event. Valid values:</p>
* <ul>
* <li><strong>0</strong>: disabled</li>
* <li><strong>1</strong>: enabled</li>
* <li><strong>-1</strong>: failed to disable the account</li>
* <li><strong>-2</strong>: failed to enable the account</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
public HandleInfoList build() {
return new HandleInfoList(this);
}
}
}
/**
*
* {@link DescribeEventDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventDetailResponseBody</p>
*/
public static class Event extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AlertTime")
private Long alertTime;
@com.aliyun.core.annotation.NameInMap("Backed")
private Boolean backed;
@com.aliyun.core.annotation.NameInMap("DataInstance")
private String dataInstance;
@com.aliyun.core.annotation.NameInMap("DealDisplayName")
private String dealDisplayName;
@com.aliyun.core.annotation.NameInMap("DealLoginName")
private String dealLoginName;
@com.aliyun.core.annotation.NameInMap("DealReason")
private String dealReason;
@com.aliyun.core.annotation.NameInMap("DealTime")
private Long dealTime;
@com.aliyun.core.annotation.NameInMap("DealUserId")
private Long dealUserId;
@com.aliyun.core.annotation.NameInMap("Detail")
private Detail detail;
@com.aliyun.core.annotation.NameInMap("DisplayName")
private String displayName;
@com.aliyun.core.annotation.NameInMap("EventTime")
private Long eventTime;
@com.aliyun.core.annotation.NameInMap("HandleInfoList")
private java.util.List<HandleInfoList> handleInfoList;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("LogDetail")
private String logDetail;
@com.aliyun.core.annotation.NameInMap("LoginName")
private String loginName;
@com.aliyun.core.annotation.NameInMap("NewAlarm")
private Boolean newAlarm;
@com.aliyun.core.annotation.NameInMap("ProductCode")
private String productCode;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("StatusName")
private String statusName;
@com.aliyun.core.annotation.NameInMap("SubTypeCode")
private String subTypeCode;
@com.aliyun.core.annotation.NameInMap("SubTypeName")
private String subTypeName;
@com.aliyun.core.annotation.NameInMap("TypeCode")
private String typeCode;
@com.aliyun.core.annotation.NameInMap("TypeName")
private String typeName;
@com.aliyun.core.annotation.NameInMap("UserId")
private Long userId;
private Event(Builder builder) {
this.alertTime = builder.alertTime;
this.backed = builder.backed;
this.dataInstance = builder.dataInstance;
this.dealDisplayName = builder.dealDisplayName;
this.dealLoginName = builder.dealLoginName;
this.dealReason = builder.dealReason;
this.dealTime = builder.dealTime;
this.dealUserId = builder.dealUserId;
this.detail = builder.detail;
this.displayName = builder.displayName;
this.eventTime = builder.eventTime;
this.handleInfoList = builder.handleInfoList;
this.id = builder.id;
this.logDetail = builder.logDetail;
this.loginName = builder.loginName;
this.newAlarm = builder.newAlarm;
this.productCode = builder.productCode;
this.status = builder.status;
this.statusName = builder.statusName;
this.subTypeCode = builder.subTypeCode;
this.subTypeName = builder.subTypeName;
this.typeCode = builder.typeCode;
this.typeName = builder.typeName;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static Event create() {
return builder().build();
}
/**
* @return alertTime
*/
public Long getAlertTime() {
return this.alertTime;
}
/**
* @return backed
*/
public Boolean getBacked() {
return this.backed;
}
/**
* @return dataInstance
*/
public String getDataInstance() {
return this.dataInstance;
}
/**
* @return dealDisplayName
*/
public String getDealDisplayName() {
return this.dealDisplayName;
}
/**
* @return dealLoginName
*/
public String getDealLoginName() {
return this.dealLoginName;
}
/**
* @return dealReason
*/
public String getDealReason() {
return this.dealReason;
}
/**
* @return dealTime
*/
public Long getDealTime() {
return this.dealTime;
}
/**
* @return dealUserId
*/
public Long getDealUserId() {
return this.dealUserId;
}
/**
* @return detail
*/
public Detail getDetail() {
return this.detail;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return eventTime
*/
public Long getEventTime() {
return this.eventTime;
}
/**
* @return handleInfoList
*/
public java.util.List<HandleInfoList> getHandleInfoList() {
return this.handleInfoList;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return logDetail
*/
public String getLogDetail() {
return this.logDetail;
}
/**
* @return loginName
*/
public String getLoginName() {
return this.loginName;
}
/**
* @return newAlarm
*/
public Boolean getNewAlarm() {
return this.newAlarm;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return statusName
*/
public String getStatusName() {
return this.statusName;
}
/**
* @return subTypeCode
*/
public String getSubTypeCode() {
return this.subTypeCode;
}
/**
* @return subTypeName
*/
public String getSubTypeName() {
return this.subTypeName;
}
/**
* @return typeCode
*/
public String getTypeCode() {
return this.typeCode;
}
/**
* @return typeName
*/
public String getTypeName() {
return this.typeName;
}
/**
* @return userId
*/
public Long getUserId() {
return this.userId;
}
public static final class Builder {
private Long alertTime;
private Boolean backed;
private String dataInstance;
private String dealDisplayName;
private String dealLoginName;
private String dealReason;
private Long dealTime;
private Long dealUserId;
private Detail detail;
private String displayName;
private Long eventTime;
private java.util.List<HandleInfoList> handleInfoList;
private Long id;
private String logDetail;
private String loginName;
private Boolean newAlarm;
private String productCode;
private Integer status;
private String statusName;
private String subTypeCode;
private String subTypeName;
private String typeCode;
private String typeName;
private Long userId;
private Builder() {
}
private Builder(Event model) {
this.alertTime = model.alertTime;
this.backed = model.backed;
this.dataInstance = model.dataInstance;
this.dealDisplayName = model.dealDisplayName;
this.dealLoginName = model.dealLoginName;
this.dealReason = model.dealReason;
this.dealTime = model.dealTime;
this.dealUserId = model.dealUserId;
this.detail = model.detail;
this.displayName = model.displayName;
this.eventTime = model.eventTime;
this.handleInfoList = model.handleInfoList;
this.id = model.id;
this.logDetail = model.logDetail;
this.loginName = model.loginName;
this.newAlarm = model.newAlarm;
this.productCode = model.productCode;
this.status = model.status;
this.statusName = model.statusName;
this.subTypeCode = model.subTypeCode;
this.subTypeName = model.subTypeName;
this.typeCode = model.typeCode;
this.typeName = model.typeName;
this.userId = model.userId;
}
/**
* <p>The time when the alert for the anomalous event was generated. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1545829129000</p>
*/
public Builder alertTime(Long alertTime) {
this.alertTime = alertTime;
return this;
}
/**
* <p>Indicates whether the handling result of the anomalous event is used to enhance the detection of anomalous events. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
* <blockquote>
* <p>If you enhance the detection of anomalous events, the detection accuracy and the rate of triggering alerts for anomalous events are improved.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder backed(Boolean backed) {
this.backed = backed;
return this;
}
/**
* <p>The instance name of the service in which the anomalous event was detected.</p>
*
* <strong>example:</strong>
* <p>in-222***</p>
*/
public Builder dataInstance(String dataInstance) {
this.dataInstance = dataInstance;
return this;
}
/**
* <p>The display name of the account that is used to handle the anomalous event.</p>
*
* <strong>example:</strong>
* <p>yundunsr</p>
*/
public Builder dealDisplayName(String dealDisplayName) {
this.dealDisplayName = dealDisplayName;
return this;
}
/**
* <p>The username of the account that is used to handle the anomalous event.</p>
*
* <strong>example:</strong>
* <p>det1111</p>
*/
public Builder dealLoginName(String dealLoginName) {
this.dealLoginName = dealLoginName;
return this;
}
/**
* <p>The reason why the anomalous event is handled.</p>
*
* <strong>example:</strong>
* <p>Anomaly confirmed</p>
*/
public Builder dealReason(String dealReason) {
this.dealReason = dealReason;
return this;
}
/**
* <p>The time when the anomalous event was handled. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1230000</p>
*/
public Builder dealTime(Long dealTime) {
this.dealTime = dealTime;
return this;
}
/**
* <p>The ID of the account that is used to handle the anomalous event.</p>
*
* <strong>example:</strong>
* <p>229157443385014***</p>
*/
public Builder dealUserId(Long dealUserId) {
this.dealUserId = dealUserId;
return this;
}
/**
* <p>The content in the details of the anomalous event.</p>
*/
public Builder detail(Detail detail) {
this.detail = detail;
return this;
}
/**
* <p>The display name of the account that triggered the anomalous event.</p>
*
* <strong>example:</strong>
* <p>yundunsr</p>
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* <p>The time when the anomalous event occurred. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1545829129000</p>
*/
public Builder eventTime(Long eventTime) {
this.eventTime = eventTime;
return this;
}
/**
* <p>An array that consists of the handling records of the anomalous event.</p>
*/
public Builder handleInfoList(java.util.List<HandleInfoList> handleInfoList) {
this.handleInfoList = handleInfoList;
return this;
}
/**
* <p>The unique ID of the anomalous event.</p>
*
* <strong>example:</strong>
* <p>52234</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The details of the alert logs.</p>
*
* <strong>example:</strong>
* <p>{"client_ip": ["106.11.XX.XX", "106.11.XX.XX", "106.11.XX.XX", "106.11.XX.XX", "106.11.XX.XX", "106.11.XX.XX", "106.11.XX.XX", "106.11.XX.XX", "106.11.XX.XX"], "start_time": "2020-05-10 00:00:01", "instance": ["omniscience-data", "punish-beaver-data"], "end_time": "2020-05-10 00:21:22", "client_ua": ["Java/1.8.0_152", "Java/1.8.0_92", "aliyun-sdk-java/2.0.0", "aliyun-sdk-java/2.8.0(Linux/4.9.151-015.ali3000.alios7.x86_64/amd64;1.8.0_152)"], "user_name": 1512222261295262}</p>
*/
public Builder logDetail(String logDetail) {
this.logDetail = logDetail;
return this;
}
/**
* <p>The username of the account that triggered the anomalous event.</p>
*
* <strong>example:</strong>
* <p>det1111</p>
*/
public Builder loginName(String loginName) {
this.loginName = loginName;
return this;
}
/**
* <p>Whether it is a new version of the alarm. Value:</p>
* <ul>
* <li><strong>true</strong>: Yes. </li>
* <li><strong>false</strong>: No.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder newAlarm(Boolean newAlarm) {
this.newAlarm = newAlarm;
return this;
}
/**
* <p>The name of the service in which the anomalous event was detected. Valid values include <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>MaxCompute</p>
*/
public Builder productCode(String productCode) {
this.productCode = productCode;
return this;
}
/**
* <p>The handling status for the anomalous event. Valid values:</p>
* <ul>
* <li><strong>0</strong>: unhandled</li>
* <li><strong>1</strong>: confirmed</li>
* <li><strong>2</strong>: marked as false positive</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The name of the handling status for the anomalous event.</p>
*
* <strong>example:</strong>
* <p>Pending</p>
*/
public Builder statusName(String statusName) {
this.statusName = statusName;
return this;
}
/**
* <p>The code of the anomalous event subtype.</p>
*
* <strong>example:</strong>
* <p>020008</p>
*/
public Builder subTypeCode(String subTypeCode) {
this.subTypeCode = subTypeCode;
return this;
}
/**
* <p>The name of the anomalous event subtype.</p>
*
* <strong>example:</strong>
* <p>Anomalous volume of downloaded data</p>
*/
public Builder subTypeName(String subTypeName) {
this.subTypeName = subTypeName;
return this;
}
/**
* <p>The code of the anomalous event type.</p>
*
* <strong>example:</strong>
* <p>02</p>
*/
public Builder typeCode(String typeCode) {
this.typeCode = typeCode;
return this;
}
/**
* <p>The name of the anomalous event type. Valid values:</p>
* <ul>
* <li><strong>01</strong>: anomalous permission usage</li>
* <li><strong>02</strong>: anomalous data flow</li>
* <li><strong>03</strong>: anomalous data operation</li>
* </ul>
*
* <strong>example:</strong>
* <p>Anomalous data flow</p>
*/
public Builder typeName(String typeName) {
this.typeName = typeName;
return this;
}
/**
* <p>The ID of the account that triggered the anomalous event.</p>
*
* <strong>example:</strong>
* <p>229157443385014***</p>
*/
public Builder userId(Long userId) {
this.userId = userId;
return this;
}
public Event build() {
return new Event(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeEventTypesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEventTypesRequest} extends {@link RequestModel}
*
* <p>DescribeEventTypesRequest</p>
*/
public class DescribeEventTypesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FeatureType")
private Integer featureType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParentTypeId")
private Long parentTypeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
private Integer resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private DescribeEventTypesRequest(Builder builder) {
super(builder);
this.featureType = builder.featureType;
this.lang = builder.lang;
this.parentTypeId = builder.parentTypeId;
this.resourceId = builder.resourceId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEventTypesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return featureType
*/
public Integer getFeatureType() {
return this.featureType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return parentTypeId
*/
public Long getParentTypeId() {
return this.parentTypeId;
}
/**
* @return resourceId
*/
public Integer getResourceId() {
return this.resourceId;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeEventTypesRequest, Builder> {
private Integer featureType;
private String lang;
private Long parentTypeId;
private Integer resourceId;
private Integer status;
private Builder() {
super();
}
private Builder(DescribeEventTypesRequest request) {
super(request);
this.featureType = request.featureType;
this.lang = request.lang;
this.parentTypeId = request.parentTypeId;
this.resourceId = request.resourceId;
this.status = request.status;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder featureType(Integer featureType) {
this.putQueryParameter("FeatureType", featureType);
this.featureType = featureType;
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 type of anomalous event for which you want to query the anomalous events of subtypes. Valid values:</p>
* <ul>
* <li><strong>01</strong>: anomalous permission usage</li>
* <li><strong>02</strong>: anomalous data flow</li>
* <li><strong>03</strong>: anomalous data operation</li>
* </ul>
*
* <strong>example:</strong>
* <p>01</p>
*/
public Builder parentTypeId(Long parentTypeId) {
this.putQueryParameter("ParentTypeId", parentTypeId);
this.parentTypeId = parentTypeId;
return this;
}
/**
* <p>The type of the resource. Valid values include <strong>1</strong>, <strong>2</strong>, <strong>3</strong>, <strong>4</strong>, and <strong>5</strong>. The value 1 indicates MaxCompute. The value 2 indicates Object Storage Service (OSS). The value 3 indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder resourceId(Integer resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The status of the anomalous event. Valid values:</p>
* <ul>
* <li><strong>1</strong>: enabled</li>
* <li><strong>2</strong>: disabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeEventTypesRequest build() {
return new DescribeEventTypesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeEventTypesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEventTypesResponse} extends {@link TeaModel}
*
* <p>DescribeEventTypesResponse</p>
*/
public class DescribeEventTypesResponse 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 DescribeEventTypesResponseBody body;
private DescribeEventTypesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEventTypesResponse 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 DescribeEventTypesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEventTypesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEventTypesResponseBody body);
@Override
DescribeEventTypesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEventTypesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEventTypesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEventTypesResponse 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(DescribeEventTypesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEventTypesResponse build() {
return new DescribeEventTypesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeEventTypesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEventTypesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventTypesResponseBody</p>
*/
public class DescribeEventTypesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EventTypeList")
private java.util.List<EventTypeList> eventTypeList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeEventTypesResponseBody(Builder builder) {
this.eventTypeList = builder.eventTypeList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEventTypesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return eventTypeList
*/
public java.util.List<EventTypeList> getEventTypeList() {
return this.eventTypeList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<EventTypeList> eventTypeList;
private String requestId;
private Builder() {
}
private Builder(DescribeEventTypesResponseBody model) {
this.eventTypeList = model.eventTypeList;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the types of anomalous events.</p>
* <blockquote>
* <p>If you leave the ParentTypeId parameter empty, anomalous event types are returned. If you set the ParentTypeId parameter, anomalous event subtypes under the specified anomalous event type are returned.</p>
* </blockquote>
*/
public Builder eventTypeList(java.util.List<EventTypeList> eventTypeList) {
this.eventTypeList = eventTypeList;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>769FB3C1-F4C9-42DF-9B72-7077A8989C13</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeEventTypesResponseBody build() {
return new DescribeEventTypesResponseBody(this);
}
}
/**
*
* {@link DescribeEventTypesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventTypesResponseBody</p>
*/
public static class SubTypeList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AdaptedProduct")
private String adaptedProduct;
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("ConfigCode")
private String configCode;
@com.aliyun.core.annotation.NameInMap("ConfigContentType")
private Integer configContentType;
@com.aliyun.core.annotation.NameInMap("ConfigDescription")
private String configDescription;
@com.aliyun.core.annotation.NameInMap("ConfigValue")
private String configValue;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EventHitCount")
private Integer eventHitCount;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
private SubTypeList(Builder builder) {
this.adaptedProduct = builder.adaptedProduct;
this.code = builder.code;
this.configCode = builder.configCode;
this.configContentType = builder.configContentType;
this.configDescription = builder.configDescription;
this.configValue = builder.configValue;
this.description = builder.description;
this.eventHitCount = builder.eventHitCount;
this.id = builder.id;
this.name = builder.name;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static SubTypeList create() {
return builder().build();
}
/**
* @return adaptedProduct
*/
public String getAdaptedProduct() {
return this.adaptedProduct;
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return configCode
*/
public String getConfigCode() {
return this.configCode;
}
/**
* @return configContentType
*/
public Integer getConfigContentType() {
return this.configContentType;
}
/**
* @return configDescription
*/
public String getConfigDescription() {
return this.configDescription;
}
/**
* @return configValue
*/
public String getConfigValue() {
return this.configValue;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return eventHitCount
*/
public Integer getEventHitCount() {
return this.eventHitCount;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
public static final class Builder {
private String adaptedProduct;
private String code;
private String configCode;
private Integer configContentType;
private String configDescription;
private String configValue;
private String description;
private Integer eventHitCount;
private Long id;
private String name;
private Integer status;
private Builder() {
}
private Builder(SubTypeList model) {
this.adaptedProduct = model.adaptedProduct;
this.code = model.code;
this.configCode = model.configCode;
this.configContentType = model.configContentType;
this.configDescription = model.configDescription;
this.configValue = model.configValue;
this.description = model.description;
this.eventHitCount = model.eventHitCount;
this.id = model.id;
this.name = model.name;
this.status = model.status;
}
/**
* <p>The service to which the anomalous event detection rule applies. Valid values include <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder adaptedProduct(String adaptedProduct) {
this.adaptedProduct = adaptedProduct;
return this;
}
/**
* <p>The code of the anomalous event subtype.</p>
*
* <strong>example:</strong>
* <p>020008</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The code of the configuration.</p>
*
* <strong>example:</strong>
* <p>0100**</p>
*/
public Builder configCode(String configCode) {
this.configCode = configCode;
return this;
}
/**
* <p>The content format of anomalous event detection rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: numeric values such as thresholds</li>
* <li><strong>1</strong>: text such as IP addresses</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configContentType(Integer configContentType) {
this.configContentType = configContentType;
return this;
}
/**
* <p>The description of the configuration.</p>
*
* <strong>example:</strong>
* <p>The period of time for which the permission is not used exceeds the threshold. The specified threshold is ${value} calendar days.</p>
*/
public Builder configDescription(String configDescription) {
this.configDescription = configDescription;
return this;
}
/**
* <p>The value of the configuration.</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder configValue(String configValue) {
this.configValue = configValue;
return this;
}
/**
* <p>The description of the anomalous event subtype.</p>
*
* <strong>example:</strong>
* <p>Inappropriate configuration-No protection for the MaxCompute sensitive project, ****</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The number of times that the anomalous event hits the anomalous event detection rule.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder eventHitCount(Integer eventHitCount) {
this.eventHitCount = eventHitCount;
return this;
}
/**
* <p>The ID of the anomalous event subtype.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the anomalous event subtype.</p>
*
* <strong>example:</strong>
* <p>Inappropriate configuration-No protection for the MaxCompute sensitive project</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>Indicates whether detection is enabled for the anomalous event subtype. 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 status(Integer status) {
this.status = status;
return this;
}
public SubTypeList build() {
return new SubTypeList(this);
}
}
}
/**
*
* {@link DescribeEventTypesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEventTypesResponseBody</p>
*/
public static class EventTypeList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("SubTypeList")
private java.util.List<SubTypeList> subTypeList;
private EventTypeList(Builder builder) {
this.code = builder.code;
this.description = builder.description;
this.id = builder.id;
this.name = builder.name;
this.subTypeList = builder.subTypeList;
}
public static Builder builder() {
return new Builder();
}
public static EventTypeList create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return subTypeList
*/
public java.util.List<SubTypeList> getSubTypeList() {
return this.subTypeList;
}
public static final class Builder {
private String code;
private String description;
private Long id;
private String name;
private java.util.List<SubTypeList> subTypeList;
private Builder() {
}
private Builder(EventTypeList model) {
this.code = model.code;
this.description = model.description;
this.id = model.id;
this.name = model.name;
this.subTypeList = model.subTypeList;
}
/**
* <p>The code of the anomalous event type.</p>
*
* <strong>example:</strong>
* <p>01</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The description of the anomalous event type.</p>
*
* <strong>example:</strong>
* <p>Anomalous permission usage,****</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the anomalous event type.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the anomalous event type.</p>
*
* <strong>example:</strong>
* <p>Anomalous permission usage</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>An array that consists of anomalous event subtypes.</p>
*/
public Builder subTypeList(java.util.List<SubTypeList> subTypeList) {
this.subTypeList = subTypeList;
return this;
}
public EventTypeList build() {
return new EventTypeList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeEventsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEventsRequest} extends {@link RequestModel}
*
* <p>DescribeEventsRequest</p>
*/
public class DescribeEventsRequest 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("DealUserId")
private String dealUserId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@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("ProductCode")
private String productCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SubTypeCode")
private String subTypeCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetProductCode")
private String targetProductCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TypeCode")
private String typeCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserId")
private Long userId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WarnLevel")
private Integer warnLevel;
private DescribeEventsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.dealUserId = builder.dealUserId;
this.endTime = builder.endTime;
this.id = builder.id;
this.instanceName = builder.instanceName;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.productCode = builder.productCode;
this.startTime = builder.startTime;
this.status = builder.status;
this.subTypeCode = builder.subTypeCode;
this.targetProductCode = builder.targetProductCode;
this.typeCode = builder.typeCode;
this.userId = builder.userId;
this.userName = builder.userName;
this.warnLevel = builder.warnLevel;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEventsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return dealUserId
*/
public String getDealUserId() {
return this.dealUserId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return subTypeCode
*/
public String getSubTypeCode() {
return this.subTypeCode;
}
/**
* @return targetProductCode
*/
public String getTargetProductCode() {
return this.targetProductCode;
}
/**
* @return typeCode
*/
public String getTypeCode() {
return this.typeCode;
}
/**
* @return userId
*/
public Long getUserId() {
return this.userId;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
/**
* @return warnLevel
*/
public Integer getWarnLevel() {
return this.warnLevel;
}
public static final class Builder extends Request.Builder<DescribeEventsRequest, Builder> {
private Integer currentPage;
private String dealUserId;
private String endTime;
private Long id;
private String instanceName;
private String lang;
private Integer pageSize;
private String productCode;
private String startTime;
private String status;
private String subTypeCode;
private String targetProductCode;
private String typeCode;
private Long userId;
private String userName;
private Integer warnLevel;
private Builder() {
super();
}
private Builder(DescribeEventsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.dealUserId = request.dealUserId;
this.endTime = request.endTime;
this.id = request.id;
this.instanceName = request.instanceName;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.productCode = request.productCode;
this.startTime = request.startTime;
this.status = request.status;
this.subTypeCode = request.subTypeCode;
this.targetProductCode = request.targetProductCode;
this.typeCode = request.typeCode;
this.userId = request.userId;
this.userName = request.userName;
this.warnLevel = request.warnLevel;
}
/**
* <p>The page number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The ID of the account that handles the anomalous event.</p>
*
* <strong>example:</strong>
* <p>yundun-***</p>
*/
public Builder dealUserId(String dealUserId) {
this.putQueryParameter("DealUserId", dealUserId);
this.dealUserId = dealUserId;
return this;
}
/**
* <p>The end of the time range during which the anomalous events are detected. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1698700000</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The unique ID of the anomalous event.</p>
*
* <strong>example:</strong>
* <p>789026</p>
*/
public Builder id(Long id) {
this.putQueryParameter("Id", id);
this.id = id;
return this;
}
/**
* <p>The name of the data asset.</p>
*
* <strong>example:</strong>
* <p>rm-uf6yzvbc2tg90iuxk.l****</p>
*/
public Builder instanceName(String instanceName) {
this.putQueryParameter("InstanceName", instanceName);
this.instanceName = instanceName;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh_cn</strong>. Valid values:</p>
* <ul>
* <li><strong>zh_cn</strong>: Chinese</li>
* <li><strong>en_us</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh_cn</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The name of the service to which the table belongs. Valid values include <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong>.</p>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder productCode(String productCode) {
this.putQueryParameter("ProductCode", productCode);
this.productCode = productCode;
return this;
}
/**
* <p>The beginning of the time range during which the anomalous events are detected. The value is a UNIX timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1657900000</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The handling status of the anomalous event. Valid values:</p>
* <ul>
* <li>0: unhandled</li>
* <li>1: confirmed</li>
* <li>2: marked as false positive</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The name of the anomalous event subtype.</p>
* <blockquote>
* <p>You can call the <strong>DescribeEventTypes</strong> operation to query the name of the anomalous event subtype.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Anomalous volume of downloaded data</p>
*/
public Builder subTypeCode(String subTypeCode) {
this.putQueryParameter("SubTypeCode", subTypeCode);
this.subTypeCode = subTypeCode;
return this;
}
/**
* <p>The name of the destination service in an anomalous data flow. Valid values include <strong>MaxCompute, OSS, ADS, OTS, and RDS</strong></p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder targetProductCode(String targetProductCode) {
this.putQueryParameter("TargetProductCode", targetProductCode);
this.targetProductCode = targetProductCode;
return this;
}
/**
* <p>The name of the anomalous event type. Valid values:</p>
* <ul>
* <li>01: anomalous permission usage</li>
* <li>02: anomalous data flow</li>
* <li>03: anomalous data operation</li>
* </ul>
*
* <strong>example:</strong>
* <p>02</p>
*/
public Builder typeCode(String typeCode) {
this.putQueryParameter("TypeCode", typeCode);
this.typeCode = typeCode;
return this;
}
/**
* <p>The ID of the account that triggered the anomalous event.</p>
*
* <strong>example:</strong>
* <p>1978132506596***</p>
*/
public Builder userId(Long userId) {
this.putQueryParameter("UserId", userId);
this.userId = userId;
return this;
}
/**
* <p>The username of the RAM user.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder userName(String userName) {
this.putQueryParameter("UserName", userName);
this.userName = userName;
return this;
}
/**
* <p>The risk level of the alert that is triggered. Valid values:</p>
* <ul>
* <li><strong>1</strong>: low</li>
* <li><strong>2</strong>: medium</li>
* <li><strong>3</strong>: high</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder warnLevel(Integer warnLevel) {
this.putQueryParameter("WarnLevel", warnLevel);
this.warnLevel = warnLevel;
return this;
}
@Override
public DescribeEventsRequest build() {
return new DescribeEventsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103 | java-sources/com/aliyun/alibabacloud-sddp20190103/1.0.20/com/aliyun/sdk/service/sddp20190103/models/DescribeEventsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sddp20190103.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEventsResponse} extends {@link TeaModel}
*
* <p>DescribeEventsResponse</p>
*/
public class DescribeEventsResponse 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 DescribeEventsResponseBody body;
private DescribeEventsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEventsResponse 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 DescribeEventsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEventsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEventsResponseBody body);
@Override
DescribeEventsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEventsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEventsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEventsResponse 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(DescribeEventsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEventsResponse build() {
return new DescribeEventsResponse(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.