com.aliyun.sdk.service.cloud_siem20220616.models.DeleteDataSourceLogRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-cloud_siem20220616 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloud_siem20220616.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DeleteDataSourceLogRequest} extends {@link RequestModel}
*
* DeleteDataSourceLogRequest
*/
public class DeleteDataSourceLogRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AccountId")
@com.aliyun.core.annotation.Validation(required = true)
private String accountId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("CloudCode")
@com.aliyun.core.annotation.Validation(required = true)
private String cloudCode;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("DataSourceInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String dataSourceInstanceId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("LogInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String logInstanceId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private DeleteDataSourceLogRequest(Builder builder) {
super(builder);
this.accountId = builder.accountId;
this.cloudCode = builder.cloudCode;
this.dataSourceInstanceId = builder.dataSourceInstanceId;
this.logInstanceId = builder.logInstanceId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteDataSourceLogRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
/**
* @return cloudCode
*/
public String getCloudCode() {
return this.cloudCode;
}
/**
* @return dataSourceInstanceId
*/
public String getDataSourceInstanceId() {
return this.dataSourceInstanceId;
}
/**
* @return logInstanceId
*/
public String getLogInstanceId() {
return this.logInstanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder {
private String accountId;
private String cloudCode;
private String dataSourceInstanceId;
private String logInstanceId;
private String regionId;
private Builder() {
super();
}
private Builder(DeleteDataSourceLogRequest request) {
super(request);
this.accountId = request.accountId;
this.cloudCode = request.cloudCode;
this.dataSourceInstanceId = request.dataSourceInstanceId;
this.logInstanceId = request.logInstanceId;
this.regionId = request.regionId;
}
/**
* The ID of the cloud account.
*/
public Builder accountId(String accountId) {
this.putBodyParameter("AccountId", accountId);
this.accountId = accountId;
return this;
}
/**
* The code of the cloud service provider. Valid values:
*
*
* * qcloud: Tencent Cloud
* * aliyun: Alibaba Cloud
* * hcloud: Huawei Cloud
*/
public Builder cloudCode(String cloudCode) {
this.putBodyParameter("CloudCode", cloudCode);
this.cloudCode = cloudCode;
return this;
}
/**
* The ID of the data source. The ID is an MD5 hash value that is calculated by the threat analysis feature based on specific parameters. You can call the [ListDataSourceLogs](https://api.aliyun-inc.com/#/publishment/document/cloud-siem/863fdf54478f4cc5877e27c2a5fe9e44?tenantUuid=f382fccd88b94c5c8c864def6815b854\&activeTabKey=api%7CListDataSourceLogs) operation to query the IDs of data sources.
*/
public Builder dataSourceInstanceId(String dataSourceInstanceId) {
this.putBodyParameter("DataSourceInstanceId", dataSourceInstanceId);
this.dataSourceInstanceId = dataSourceInstanceId;
return this;
}
/**
* The ID of the log. The ID is an MD5 hash value that is calculated by the threat analysis feature based on specific parameters. You can call the [ListDataSourceLogs](https://api.aliyun-inc.com/#/publishment/document/cloud-siem/863fdf54478f4cc5877e27c2a5fe9e44?tenantUuid=f382fccd88b94c5c8c864def6815b854\&activeTabKey=api%7CListDataSourceLogs) operation to query the IDs of logs.
*/
public Builder logInstanceId(String logInstanceId) {
this.putBodyParameter("LogInstanceId", logInstanceId);
this.logInstanceId = logInstanceId;
return this;
}
/**
* The region in which the data management center of the threat analysis feature resides. Specify this parameter based on the regions in which your assets reside. Valid values:
*
*
* * cn-hangzhou: Your assets reside in regions in China.
* * ap-southeast-1: Your assets reside in regions outside China.
*/
public Builder regionId(String regionId) {
this.putBodyParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public DeleteDataSourceLogRequest build() {
return new DeleteDataSourceLogRequest(this);
}
}
}