All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.cloud_siem20220616.models.AddDataSourceLogRequest Maven / Gradle / Ivy

The newest version!
// 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 AddDataSourceLogRequest} extends {@link RequestModel}
 *
 * 

AddDataSourceLogRequest

*/ public class AddDataSourceLogRequest 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("DataSourceInstanceLogs") @com.aliyun.core.annotation.Validation(required = true) private String dataSourceInstanceLogs; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("LogCode") private String logCode; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private AddDataSourceLogRequest(Builder builder) { super(builder); this.accountId = builder.accountId; this.cloudCode = builder.cloudCode; this.dataSourceInstanceId = builder.dataSourceInstanceId; this.dataSourceInstanceLogs = builder.dataSourceInstanceLogs; this.logCode = builder.logCode; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static AddDataSourceLogRequest 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 dataSourceInstanceLogs */ public String getDataSourceInstanceLogs() { return this.dataSourceInstanceLogs; } /** * @return logCode */ public String getLogCode() { return this.logCode; } /** * @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 dataSourceInstanceLogs; private String logCode; private String regionId; private Builder() { super(); } private Builder(AddDataSourceLogRequest request) { super(request); this.accountId = request.accountId; this.cloudCode = request.cloudCode; this.dataSourceInstanceId = request.dataSourceInstanceId; this.dataSourceInstanceLogs = request.dataSourceInstanceLogs; this.logCode = request.logCode; 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 parameters of the data source. Set this parameter to a JSON array. */ public Builder dataSourceInstanceLogs(String dataSourceInstanceLogs) { this.putBodyParameter("DataSourceInstanceLogs", dataSourceInstanceLogs); this.dataSourceInstanceLogs = dataSourceInstanceLogs; return this; } /** * The log code. */ public Builder logCode(String logCode) { this.putBodyParameter("LogCode", logCode); this.logCode = logCode; 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 AddDataSourceLogRequest build() { return new AddDataSourceLogRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy