index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/UploadServerCertificateResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UploadServerCertificateResponseBody} extends {@link TeaModel}
*
* <p>UploadServerCertificateResponseBody</p>
*/
public class UploadServerCertificateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliCloudCertificateId")
private String aliCloudCertificateId;
@com.aliyun.core.annotation.NameInMap("AliCloudCertificateName")
private String aliCloudCertificateName;
@com.aliyun.core.annotation.NameInMap("CommonName")
private String commonName;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CreateTimeStamp")
private Long createTimeStamp;
@com.aliyun.core.annotation.NameInMap("ExpireTime")
private String expireTime;
@com.aliyun.core.annotation.NameInMap("ExpireTimeStamp")
private Long expireTimeStamp;
@com.aliyun.core.annotation.NameInMap("Fingerprint")
private String fingerprint;
@com.aliyun.core.annotation.NameInMap("IsAliCloudCertificate")
private Integer isAliCloudCertificate;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("ServerCertificateId")
private String serverCertificateId;
@com.aliyun.core.annotation.NameInMap("ServerCertificateName")
private String serverCertificateName;
@com.aliyun.core.annotation.NameInMap("SubjectAlternativeNames")
private SubjectAlternativeNames subjectAlternativeNames;
private UploadServerCertificateResponseBody(Builder builder) {
this.aliCloudCertificateId = builder.aliCloudCertificateId;
this.aliCloudCertificateName = builder.aliCloudCertificateName;
this.commonName = builder.commonName;
this.createTime = builder.createTime;
this.createTimeStamp = builder.createTimeStamp;
this.expireTime = builder.expireTime;
this.expireTimeStamp = builder.expireTimeStamp;
this.fingerprint = builder.fingerprint;
this.isAliCloudCertificate = builder.isAliCloudCertificate;
this.regionId = builder.regionId;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.serverCertificateId = builder.serverCertificateId;
this.serverCertificateName = builder.serverCertificateName;
this.subjectAlternativeNames = builder.subjectAlternativeNames;
}
public static Builder builder() {
return new Builder();
}
public static UploadServerCertificateResponseBody create() {
return builder().build();
}
/**
* @return aliCloudCertificateId
*/
public String getAliCloudCertificateId() {
return this.aliCloudCertificateId;
}
/**
* @return aliCloudCertificateName
*/
public String getAliCloudCertificateName() {
return this.aliCloudCertificateName;
}
/**
* @return commonName
*/
public String getCommonName() {
return this.commonName;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return createTimeStamp
*/
public Long getCreateTimeStamp() {
return this.createTimeStamp;
}
/**
* @return expireTime
*/
public String getExpireTime() {
return this.expireTime;
}
/**
* @return expireTimeStamp
*/
public Long getExpireTimeStamp() {
return this.expireTimeStamp;
}
/**
* @return fingerprint
*/
public String getFingerprint() {
return this.fingerprint;
}
/**
* @return isAliCloudCertificate
*/
public Integer getIsAliCloudCertificate() {
return this.isAliCloudCertificate;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return serverCertificateId
*/
public String getServerCertificateId() {
return this.serverCertificateId;
}
/**
* @return serverCertificateName
*/
public String getServerCertificateName() {
return this.serverCertificateName;
}
/**
* @return subjectAlternativeNames
*/
public SubjectAlternativeNames getSubjectAlternativeNames() {
return this.subjectAlternativeNames;
}
public static final class Builder {
private String aliCloudCertificateId;
private String aliCloudCertificateName;
private String commonName;
private String createTime;
private Long createTimeStamp;
private String expireTime;
private Long expireTimeStamp;
private String fingerprint;
private Integer isAliCloudCertificate;
private String regionId;
private String requestId;
private String resourceGroupId;
private String serverCertificateId;
private String serverCertificateName;
private SubjectAlternativeNames subjectAlternativeNames;
/**
* <p>The AliCloud certificate ID.</p>
*
* <strong>example:</strong>
* <p>775****</p>
*/
public Builder aliCloudCertificateId(String aliCloudCertificateId) {
this.aliCloudCertificateId = aliCloudCertificateId;
return this;
}
/**
* <p>The AliCloud certificate name.</p>
*
* <strong>example:</strong>
* <p>cloudcertificate****</p>
*/
public Builder aliCloudCertificateName(String aliCloudCertificateName) {
this.aliCloudCertificateName = aliCloudCertificateName;
return this;
}
/**
* <p>The domain name of the CA certificate.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder commonName(String commonName) {
this.commonName = commonName;
return this;
}
/**
* <p>The time when the CA certificate is uploaded.</p>
*
* <strong>example:</strong>
* <p>2022-02-21T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The timestamp generated when the CA certificate is uploaded.</p>
*
* <strong>example:</strong>
* <p>1504147745000</p>
*/
public Builder createTimeStamp(Long createTimeStamp) {
this.createTimeStamp = createTimeStamp;
return this;
}
/**
* <p>The time when the CA certificate expires.</p>
*
* <strong>example:</strong>
* <p>2022-10-18T23:59:59Z</p>
*/
public Builder expireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* <p>The timestamp generated when the CA certificate expires.</p>
*
* <strong>example:</strong>
* <p>1504147745000</p>
*/
public Builder expireTimeStamp(Long expireTimeStamp) {
this.expireTimeStamp = expireTimeStamp;
return this;
}
/**
* <p>The fingerprint of the CA certificate.</p>
*
* <strong>example:</strong>
* <p>8f:7d:cb:e5:f8:c8:33:9c:17:65:c1:92:30:9e:45:55:9c:3a:85:60</p>
*/
public Builder fingerprint(String fingerprint) {
this.fingerprint = fingerprint;
return this;
}
/**
* <p>Indicates whether the certificate is provided by Alibaba Cloud Certificate Management Service. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The certificate is not provided by Alibaba Cloud Certificate Management Service.</li>
* <li><strong>1</strong>: The certificate is provided by Alibaba Cloud Certificate Management Service.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder isAliCloudCertificate(Integer isAliCloudCertificate) {
this.isAliCloudCertificate = isAliCloudCertificate;
return this;
}
/**
* <p>The ID of the region where the Classic Load Balancer (CLB) instance is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-atstuj3rt****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the server certificate.</p>
*
* <strong>example:</strong>
* <p>1321932713******<em>17f1b4b696b_1114720822</em>-1671******</p>
*/
public Builder serverCertificateId(String serverCertificateId) {
this.serverCertificateId = serverCertificateId;
return this;
}
/**
* <p>The name of the server certificate.</p>
* <p>The name must be 1 to 80 characters in length. It must start with an English letter. It can contain letters, numbers, periods (.), underscores (_), and hyphens (-).</p>
*
* <strong>example:</strong>
* <p>mycert01</p>
*/
public Builder serverCertificateName(String serverCertificateName) {
this.serverCertificateName = serverCertificateName;
return this;
}
/**
* <p>The subject alternative names.</p>
* <p>A domain name list is supported. A maximum of 10 domain names are supported.</p>
*/
public Builder subjectAlternativeNames(SubjectAlternativeNames subjectAlternativeNames) {
this.subjectAlternativeNames = subjectAlternativeNames;
return this;
}
public UploadServerCertificateResponseBody build() {
return new UploadServerCertificateResponseBody(this);
}
}
/**
*
* {@link UploadServerCertificateResponseBody} extends {@link TeaModel}
*
* <p>UploadServerCertificateResponseBody</p>
*/
public static class SubjectAlternativeNames extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SubjectAlternativeName")
private java.util.List<String> subjectAlternativeName;
private SubjectAlternativeNames(Builder builder) {
this.subjectAlternativeName = builder.subjectAlternativeName;
}
public static Builder builder() {
return new Builder();
}
public static SubjectAlternativeNames create() {
return builder().build();
}
/**
* @return subjectAlternativeName
*/
public java.util.List<String> getSubjectAlternativeName() {
return this.subjectAlternativeName;
}
public static final class Builder {
private java.util.List<String> subjectAlternativeName;
/**
* SubjectAlternativeName.
*/
public Builder subjectAlternativeName(java.util.List<String> subjectAlternativeName) {
this.subjectAlternativeName = subjectAlternativeName;
return this;
}
public SubjectAlternativeNames build() {
return new SubjectAlternativeNames(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/AsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.sls20201230.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>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ApplyConfigToMachineGroup ApplyConfigToMachineGroupRequest
* @return ApplyConfigToMachineGroupResponse
*/
CompletableFuture<ApplyConfigToMachineGroupResponse> applyConfigToMachineGroup(ApplyConfigToMachineGroupRequest request);
/**
* @param request the request parameters of CallAiTools CallAiToolsRequest
* @return CallAiToolsResponse
*/
CompletableFuture<CallAiToolsResponse> callAiTools(CallAiToolsRequest request);
/**
* @param request the request parameters of ChangeResourceGroup ChangeResourceGroupRequest
* @return ChangeResourceGroupResponse
*/
CompletableFuture<ChangeResourceGroupResponse> changeResourceGroup(ChangeResourceGroupRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>Connections between consumers and Simple Log Service are established by sending heartbeat messages at regular intervals. If Simple Log Service does not receive heartbeat messages from a consumer on schedule, Simple Log Service deletes the consumer.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>The name of the consumer group is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/74964.html">ListConsumerGroup</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:ConsumerGroupHeartBeat</code></td>
* <td align="left"><code>acs:log:${regionId}:${accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/{#ConsumerGroupName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of ConsumerGroupHeartBeat ConsumerGroupHeartBeatRequest
* @return ConsumerGroupHeartBeatResponse
*/
CompletableFuture<ConsumerGroupHeartBeatResponse> consumerGroupHeartBeat(ConsumerGroupHeartBeatRequest request);
/**
* <b>description</b> :
* <p> If you do not specify a consumer, you must set <strong>forceSuccess</strong> to <strong>true</strong>. Otherwise, the checkpoint cannot be updated.</p>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* </ul>
*
* @param request the request parameters of ConsumerGroupUpdateCheckPoint ConsumerGroupUpdateCheckPointRequest
* @return ConsumerGroupUpdateCheckPointResponse
*/
CompletableFuture<ConsumerGroupUpdateCheckPointResponse> consumerGroupUpdateCheckPoint(ConsumerGroupUpdateCheckPointRequest request);
/**
* @param request the request parameters of CreateAgentInstanceConfig CreateAgentInstanceConfigRequest
* @return CreateAgentInstanceConfigResponse
*/
CompletableFuture<CreateAgentInstanceConfigResponse> createAgentInstanceConfig(CreateAgentInstanceConfigRequest request);
/**
* @param request the request parameters of CreateAlert CreateAlertRequest
* @return CreateAlertResponse
*/
CompletableFuture<CreateAlertResponse> createAlert(CreateAlertRequest request);
/**
* @param request the request parameters of CreateAnnotationDataSet CreateAnnotationDataSetRequest
* @return CreateAnnotationDataSetResponse
*/
CompletableFuture<CreateAnnotationDataSetResponse> createAnnotationDataSet(CreateAnnotationDataSetRequest request);
/**
* @param request the request parameters of CreateAnnotationLabel CreateAnnotationLabelRequest
* @return CreateAnnotationLabelResponse
*/
CompletableFuture<CreateAnnotationLabelResponse> createAnnotationLabel(CreateAnnotationLabelRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 100 Logtail configurations in a project.</li>
* <li>The Logtail configuration is planned out. For more information, see <a href="https://help.aliyun.com/document_detail/29058.html">Logtail configurations</a>.</li>
* </ul>
*
* @param request the request parameters of CreateConfig CreateConfigRequest
* @return CreateConfigResponse
*/
CompletableFuture<CreateConfigResponse> createConfig(CreateConfigRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>You can create up to 30 consumer groups for a Logstore. The name of a consumer group must be unique in a project.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Simple Log Service provides examples of both regular log consumption and consumer group-based log consumption by using Simple Log Service SDK for Java. For more information, see <a href="https://help.aliyun.com/document_detail/120035.html">Consume log data</a> and <a href="https://help.aliyun.com/document_detail/28998.html">Use consumer groups to consume data</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:CreateConsumerGroup</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of CreateConsumerGroup CreateConsumerGroupRequest
* @return CreateConsumerGroupResponse
*/
CompletableFuture<CreateConsumerGroupResponse> createConsumerGroup(CreateConsumerGroupRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of CreateDashboard CreateDashboardRequest
* @return CreateDashboardResponse
*/
CompletableFuture<CreateDashboardResponse> createDashboard(CreateDashboardRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of CreateDomain CreateDomainRequest
* @return CreateDomainResponse
*/
CompletableFuture<CreateDomainResponse> createDomain(CreateDomainRequest request);
/**
* @param request the request parameters of CreateDownloadJob CreateDownloadJobRequest
* @return CreateDownloadJobResponse
*/
CompletableFuture<CreateDownloadJobResponse> createDownloadJob(CreateDownloadJobRequest request);
/**
* @param request the request parameters of CreateETL CreateETLRequest
* @return CreateETLResponse
*/
CompletableFuture<CreateETLResponse> createETL(CreateETLRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of CreateIndex CreateIndexRequest
* @return CreateIndexResponse
*/
CompletableFuture<CreateIndexResponse> createIndex(CreateIndexRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores in each project.</li>
* <li>If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:CreateLogStore</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of CreateLogStore CreateLogStoreRequest
* @return CreateLogStoreResponse
*/
CompletableFuture<CreateLogStoreResponse> createLogStore(CreateLogStoreRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of CreateLogging CreateLoggingRequest
* @return CreateLoggingResponse
*/
CompletableFuture<CreateLoggingResponse> createLogging(CreateLoggingRequest request);
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of CreateLogtailPipelineConfig CreateLogtailPipelineConfigRequest
* @return CreateLogtailPipelineConfigResponse
*/
CompletableFuture<CreateLogtailPipelineConfigResponse> createLogtailPipelineConfig(CreateLogtailPipelineConfigRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of CreateMachineGroup CreateMachineGroupRequest
* @return CreateMachineGroupResponse
*/
CompletableFuture<CreateMachineGroupResponse> createMachineGroup(CreateMachineGroupRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of CreateMaxComputeExport CreateMaxComputeExportRequest
* @return CreateMaxComputeExportResponse
*/
CompletableFuture<CreateMaxComputeExportResponse> createMaxComputeExport(CreateMaxComputeExportRequest request);
/**
* <b>description</b> :
* <p>Metricstores are used to store metric data. For more information, see <a href="https://help.aliyun.com/document_detail/174965.html">Metric data</a>.</p>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores or Metricstores in a project.</li>
* <li>Metric data is automatically deleted when the retention period of the metric data ends.</li>
* </ul>
*
* @param request the request parameters of CreateMetricStore CreateMetricStoreRequest
* @return CreateMetricStoreResponse
*/
CompletableFuture<CreateMetricStoreResponse> createMetricStore(CreateMetricStoreRequest request);
/**
* @param request the request parameters of CreateOSSExport CreateOSSExportRequest
* @return CreateOSSExportResponse
*/
CompletableFuture<CreateOSSExportResponse> createOSSExport(CreateOSSExportRequest request);
/**
* @param request the request parameters of CreateOSSHDFSExport CreateOSSHDFSExportRequest
* @return CreateOSSHDFSExportResponse
*/
CompletableFuture<CreateOSSHDFSExportResponse> createOSSHDFSExport(CreateOSSHDFSExportRequest request);
/**
* @param request the request parameters of CreateOSSIngestion CreateOSSIngestionRequest
* @return CreateOSSIngestionResponse
*/
CompletableFuture<CreateOSSIngestionResponse> createOSSIngestion(CreateOSSIngestionRequest request);
/**
* @param request the request parameters of CreateProject CreateProjectRequest
* @return CreateProjectResponse
*/
CompletableFuture<CreateProjectResponse> createProject(CreateProjectRequest request);
/**
* @param request the request parameters of CreateS3Ingestion CreateS3IngestionRequest
* @return CreateS3IngestionResponse
*/
CompletableFuture<CreateS3IngestionResponse> createS3Ingestion(CreateS3IngestionRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:CreateSavedSearch</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of CreateSavedSearch CreateSavedSearchRequest
* @return CreateSavedSearchResponse
*/
CompletableFuture<CreateSavedSearchResponse> createSavedSearch(CreateSavedSearchRequest request);
/**
* @param request the request parameters of CreateScheduledSQL CreateScheduledSQLRequest
* @return CreateScheduledSQLResponse
*/
CompletableFuture<CreateScheduledSQLResponse> createScheduledSQL(CreateScheduledSQLRequest request);
/**
* <b>description</b> :
* <p>*Before you call this operation, make sure that you fully understand the <a href="https://help.aliyun.com/document_detail/223777.html">billing</a> of Dedicated SQL.</p>
*
* @param request the request parameters of CreateSqlInstance CreateSqlInstanceRequest
* @return CreateSqlInstanceResponse
*/
CompletableFuture<CreateSqlInstanceResponse> createSqlInstance(CreateSqlInstanceRequest request);
/**
* @param request the request parameters of CreateStoreView CreateStoreViewRequest
* @return CreateStoreViewResponse
*/
CompletableFuture<CreateStoreViewResponse> createStoreView(CreateStoreViewRequest request);
/**
* @param request the request parameters of CreateTicket CreateTicketRequest
* @return CreateTicketResponse
*/
CompletableFuture<CreateTicketResponse> createTicket(CreateTicketRequest request);
/**
* @param request the request parameters of DeleteAgentInstanceConfig DeleteAgentInstanceConfigRequest
* @return DeleteAgentInstanceConfigResponse
*/
CompletableFuture<DeleteAgentInstanceConfigResponse> deleteAgentInstanceConfig(DeleteAgentInstanceConfigRequest request);
/**
* @param request the request parameters of DeleteAlert DeleteAlertRequest
* @return DeleteAlertResponse
*/
CompletableFuture<DeleteAlertResponse> deleteAlert(DeleteAlertRequest request);
/**
* @param request the request parameters of DeleteAnnotationData DeleteAnnotationDataRequest
* @return DeleteAnnotationDataResponse
*/
CompletableFuture<DeleteAnnotationDataResponse> deleteAnnotationData(DeleteAnnotationDataRequest request);
/**
* <b>description</b> :
* <p>You can delete a dataset only if no data exists in the dataset.</p>
*
* @param request the request parameters of DeleteAnnotationDataSet DeleteAnnotationDataSetRequest
* @return DeleteAnnotationDataSetResponse
*/
CompletableFuture<DeleteAnnotationDataSetResponse> deleteAnnotationDataSet(DeleteAnnotationDataSetRequest request);
/**
* <b>description</b> :
* <p>Only non-built-in tags can be deleted.</p>
*
* @param request the request parameters of DeleteAnnotationLabel DeleteAnnotationLabelRequest
* @return DeleteAnnotationLabelResponse
*/
CompletableFuture<DeleteAnnotationLabelResponse> deleteAnnotationLabel(DeleteAnnotationLabelRequest request);
/**
* <b>description</b> :
* <p>You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.</p>
*
* @param request the request parameters of DeleteCollectionPolicy DeleteCollectionPolicyRequest
* @return DeleteCollectionPolicyResponse
*/
CompletableFuture<DeleteCollectionPolicyResponse> deleteCollectionPolicy(DeleteCollectionPolicyRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>If a Logtail configuration is applied to a machine group, you cannot collect data from the machine group after you delete the Logtail configuration.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>The name of the required Logtail configuration is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29043.html">ListConfig</a>.</li>
* </ul>
*
* @param request the request parameters of DeleteConfig DeleteConfigRequest
* @return DeleteConfigResponse
*/
CompletableFuture<DeleteConfigResponse> deleteConfig(DeleteConfigRequest request);
/**
* @param request the request parameters of DeleteConsumeProcessor DeleteConsumeProcessorRequest
* @return DeleteConsumeProcessorResponse
*/
CompletableFuture<DeleteConsumeProcessorResponse> deleteConsumeProcessor(DeleteConsumeProcessorRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>The name of the consumer group is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/74964.html">ListConsumerGroup</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:DeleteConsumerGroup</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DeleteConsumerGroup DeleteConsumerGroupRequest
* @return DeleteConsumerGroupResponse
*/
CompletableFuture<DeleteConsumerGroupResponse> deleteConsumerGroup(DeleteConsumerGroupRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of DeleteDashboard DeleteDashboardRequest
* @return DeleteDashboardResponse
*/
CompletableFuture<DeleteDashboardResponse> deleteDashboard(DeleteDashboardRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of DeleteDomain DeleteDomainRequest
* @return DeleteDomainResponse
*/
CompletableFuture<DeleteDomainResponse> deleteDomain(DeleteDomainRequest request);
/**
* @param request the request parameters of DeleteDownloadJob DeleteDownloadJobRequest
* @return DeleteDownloadJobResponse
*/
CompletableFuture<DeleteDownloadJobResponse> deleteDownloadJob(DeleteDownloadJobRequest request);
/**
* @param request the request parameters of DeleteETL DeleteETLRequest
* @return DeleteETLResponse
*/
CompletableFuture<DeleteETLResponse> deleteETL(DeleteETLRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of DeleteIndex DeleteIndexRequest
* @return DeleteIndexResponse
*/
CompletableFuture<DeleteIndexResponse> deleteIndex(DeleteIndexRequest request);
/**
* @param request the request parameters of DeleteIngestProcessor DeleteIngestProcessorRequest
* @return DeleteIngestProcessorResponse
*/
CompletableFuture<DeleteIngestProcessorResponse> deleteIngestProcessor(DeleteIngestProcessorRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of DeleteLogStore DeleteLogStoreRequest
* @return DeleteLogStoreResponse
*/
CompletableFuture<DeleteLogStoreResponse> deleteLogStore(DeleteLogStoreRequest request);
/**
* @param request the request parameters of DeleteLogging DeleteLoggingRequest
* @return DeleteLoggingResponse
*/
CompletableFuture<DeleteLoggingResponse> deleteLogging(DeleteLoggingRequest request);
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of DeleteLogtailPipelineConfig DeleteLogtailPipelineConfigRequest
* @return DeleteLogtailPipelineConfigResponse
*/
CompletableFuture<DeleteLogtailPipelineConfigResponse> deleteLogtailPipelineConfig(DeleteLogtailPipelineConfigRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of DeleteMachineGroup DeleteMachineGroupRequest
* @return DeleteMachineGroupResponse
*/
CompletableFuture<DeleteMachineGroupResponse> deleteMachineGroup(DeleteMachineGroupRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of DeleteMaxComputeExport DeleteMaxComputeExportRequest
* @return DeleteMaxComputeExportResponse
*/
CompletableFuture<DeleteMaxComputeExportResponse> deleteMaxComputeExport(DeleteMaxComputeExportRequest request);
/**
* <b>description</b> :
* <p>Metricstores are used to store metric data. For more information, see <a href="https://help.aliyun.com/document_detail/174965.html">Metric data</a>.</p>
* <ul>
* <li>You must specify an existing Metricstore.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores or Metricstores in a project.</li>
* <li>Metric data is automatically deleted when the retention period of the metric data ends.</li>
* </ul>
*
* @param request the request parameters of DeleteMetricStore DeleteMetricStoreRequest
* @return DeleteMetricStoreResponse
*/
CompletableFuture<DeleteMetricStoreResponse> deleteMetricStore(DeleteMetricStoreRequest request);
/**
* @param request the request parameters of DeleteOSSExport DeleteOSSExportRequest
* @return DeleteOSSExportResponse
*/
CompletableFuture<DeleteOSSExportResponse> deleteOSSExport(DeleteOSSExportRequest request);
/**
* @param request the request parameters of DeleteOSSHDFSExport DeleteOSSHDFSExportRequest
* @return DeleteOSSHDFSExportResponse
*/
CompletableFuture<DeleteOSSHDFSExportResponse> deleteOSSHDFSExport(DeleteOSSHDFSExportRequest request);
/**
* @param request the request parameters of DeleteOSSIngestion DeleteOSSIngestionRequest
* @return DeleteOSSIngestionResponse
*/
CompletableFuture<DeleteOSSIngestionResponse> deleteOSSIngestion(DeleteOSSIngestionRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>After you delete a project, all logs stored in the project and the configurations of the project are deleted and cannot be restored. Proceed with caution.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:DeleteProject</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DeleteProject DeleteProjectRequest
* @return DeleteProjectResponse
*/
CompletableFuture<DeleteProjectResponse> deleteProject(DeleteProjectRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of DeleteProjectPolicy DeleteProjectPolicyRequest
* @return DeleteProjectPolicyResponse
*/
CompletableFuture<DeleteProjectPolicyResponse> deleteProjectPolicy(DeleteProjectPolicyRequest request);
/**
* @param request the request parameters of DeleteS3Ingestion DeleteS3IngestionRequest
* @return DeleteS3IngestionResponse
*/
CompletableFuture<DeleteS3IngestionResponse> deleteS3Ingestion(DeleteS3IngestionRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>After you delete a saved search, it cannot be restored. Proceed with caution.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:DeleteSavedSearch</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DeleteSavedSearch DeleteSavedSearchRequest
* @return DeleteSavedSearchResponse
*/
CompletableFuture<DeleteSavedSearchResponse> deleteSavedSearch(DeleteSavedSearchRequest request);
/**
* @param request the request parameters of DeleteScheduledSQL DeleteScheduledSQLRequest
* @return DeleteScheduledSQLResponse
*/
CompletableFuture<DeleteScheduledSQLResponse> deleteScheduledSQL(DeleteScheduledSQLRequest request);
/**
* @param request the request parameters of DeleteStoreView DeleteStoreViewRequest
* @return DeleteStoreViewResponse
*/
CompletableFuture<DeleteStoreViewResponse> deleteStoreView(DeleteStoreViewRequest request);
/**
* @param request the request parameters of DescribeRegions DescribeRegionsRequest
* @return DescribeRegionsResponse
*/
CompletableFuture<DescribeRegionsResponse> describeRegions(DescribeRegionsRequest request);
/**
* @param request the request parameters of DisableAlert DisableAlertRequest
* @return DisableAlertResponse
*/
CompletableFuture<DisableAlertResponse> disableAlert(DisableAlertRequest request);
/**
* @param request the request parameters of DisableScheduledSQL DisableScheduledSQLRequest
* @return DisableScheduledSQLResponse
*/
CompletableFuture<DisableScheduledSQLResponse> disableScheduledSQL(DisableScheduledSQLRequest request);
/**
* @param request the request parameters of EnableAlert EnableAlertRequest
* @return EnableAlertResponse
*/
CompletableFuture<EnableAlertResponse> enableAlert(EnableAlertRequest request);
/**
* @param request the request parameters of EnableScheduledSQL EnableScheduledSQLRequest
* @return EnableScheduledSQLResponse
*/
CompletableFuture<EnableScheduledSQLResponse> enableScheduledSQL(EnableScheduledSQLRequest request);
/**
* @param request the request parameters of GetAgentInstanceConfig GetAgentInstanceConfigRequest
* @return GetAgentInstanceConfigResponse
*/
CompletableFuture<GetAgentInstanceConfigResponse> getAgentInstanceConfig(GetAgentInstanceConfigRequest request);
/**
* @param request the request parameters of GetAlert GetAlertRequest
* @return GetAlertResponse
*/
CompletableFuture<GetAlertResponse> getAlert(GetAlertRequest request);
/**
* @param request the request parameters of GetAnnotationData GetAnnotationDataRequest
* @return GetAnnotationDataResponse
*/
CompletableFuture<GetAnnotationDataResponse> getAnnotationData(GetAnnotationDataRequest request);
/**
* @param request the request parameters of GetAnnotationDataSet GetAnnotationDataSetRequest
* @return GetAnnotationDataSetResponse
*/
CompletableFuture<GetAnnotationDataSetResponse> getAnnotationDataSet(GetAnnotationDataSetRequest request);
/**
* @param request the request parameters of GetAnnotationLabel GetAnnotationLabelRequest
* @return GetAnnotationLabelResponse
*/
CompletableFuture<GetAnnotationLabelResponse> getAnnotationLabel(GetAnnotationLabelRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetAppliedConfigs GetAppliedConfigsRequest
* @return GetAppliedConfigsResponse
*/
CompletableFuture<GetAppliedConfigsResponse> getAppliedConfigs(GetAppliedConfigsRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetAppliedMachineGroups GetAppliedMachineGroupsRequest
* @return GetAppliedMachineGroupsResponse
*/
CompletableFuture<GetAppliedMachineGroupsResponse> getAppliedMachineGroups(GetAppliedMachineGroupsRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetCheckPoint GetCheckPointRequest
* @return GetCheckPointResponse
*/
CompletableFuture<GetCheckPointResponse> getCheckPoint(GetCheckPointRequest request);
/**
* <b>description</b> :
* <p>You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.</p>
*
* @param request the request parameters of GetCollectionPolicy GetCollectionPolicyRequest
* @return GetCollectionPolicyResponse
*/
CompletableFuture<GetCollectionPolicyResponse> getCollectionPolicy(GetCollectionPolicyRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>The name of the required Logtail configuration is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29043.html">ListConfig</a>.</li>
* </ul>
*
* @param request the request parameters of GetConfig GetConfigRequest
* @return GetConfigResponse
*/
CompletableFuture<GetConfigResponse> getConfig(GetConfigRequest request);
/**
* @param request the request parameters of GetConsumeProcessor GetConsumeProcessorRequest
* @return GetConsumeProcessorResponse
*/
CompletableFuture<GetConsumeProcessorResponse> getConsumeProcessor(GetConsumeProcessorRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>You can specify a log as the start log. The time range of a contextual query is one day before and one day after the generation time of the start log.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Indexes are configured before you query logs. For more information, see <a href="https://help.aliyun.com/document_detail/90732.html">Create indexes</a>.</li>
* <li>The values of the pack_id and pack_meta fields are obtained before you query logs. The fields are internal fields, and you can obtain the values by using the debugging feature of your browser in the Simple Log Service console.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetLogStoreContextLogs</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetContextLogs GetContextLogsRequest
* @return GetContextLogsResponse
*/
CompletableFuture<GetContextLogsResponse> getContextLogs(GetContextLogsRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>The following content describes the relationships among a cursor, project, Logstore, and shard:<ul>
* <li>A project can have multiple Logstores.</li>
* <li>A Logstore can have multiple shards.</li>
* <li>You can use a cursor to obtain a log in a shard.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of GetCursor GetCursorRequest
* @return GetCursorResponse
*/
CompletableFuture<GetCursorResponse> getCursor(GetCursorRequest request);
/**
* @param request the request parameters of GetCursorTime GetCursorTimeRequest
* @return GetCursorTimeResponse
*/
CompletableFuture<GetCursorTimeResponse> getCursorTime(GetCursorTimeRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of GetDashboard GetDashboardRequest
* @return GetDashboardResponse
*/
CompletableFuture<GetDashboardResponse> getDashboard(GetDashboardRequest request);
/**
* @param request the request parameters of GetDownloadJob GetDownloadJobRequest
* @return GetDownloadJobResponse
*/
CompletableFuture<GetDownloadJobResponse> getDownloadJob(GetDownloadJobRequest request);
/**
* @param request the request parameters of GetETL GetETLRequest
* @return GetETLResponse
*/
CompletableFuture<GetETLResponse> getETL(GetETLRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>The time range is evenly divided into subintervals in the responses. If the time range that is specified in the request remains unchanged, the subintervals in the responses also remain unchanged.</li>
* <li>If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete result. In this case, you must check the value of the progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete result. Each time you call this operation, the same number of charge units (CUs) are consumed.</li>
* <li>After a log is written to a Logstore, you can call the GetHistograms or GetLogs operation to query the log after a short latency. The latency of a query varies based on the type of the log. Simple Log Service classifies logs into the following types based on the log time:<ul>
* <li>Real-time data: The difference between the time record in a log and the current time on Simple Log Service is within the interval (-180 seconds,900 seconds]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as real-time data. After real-time data is written to a Logstore, the data can be queried with a maximum latency of 3 seconds.</li>
* <li>Historical data: The difference between the time record in a log and the current time on Simple Log Service is within the interval [-604,800 seconds,-180 seconds). For example, if a log was generated at 12:00:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as historical data. This type of log is usually generated in data backfill scenarios.
* After real-time data is written to a Logstore, the data can be queried with a maximum latency of 3 seconds. For 99.9% of queries, the latency is no more than 1 second.<blockquote>
* <p>Simple Log Service calculates the difference between the log time that is specified by the <strong>time</strong> field and the receiving time that is specified by the <strong>tag</strong>:<strong>receive_time</strong> field for each log. The receiving time indicates the time at which Simple Log Service receives the log. If the difference is within the interval (-180 seconds,900 seconds], Simple Log Service processes the log as real-time data. If the difference is within the interval [-604,800 seconds,-180 seconds), Simple Log Service processes the log as historical data.</p>
* </blockquote>
* </li>
* </ul>
* </li>
* <li>Simple Log Service provides examples on how to call the GetHistograms operation by using Simple Log Service SDK for Java. For more information, see <a href="https://help.aliyun.com/document_detail/462234.html">Use GetHistograms to query the distribution of logs</a>.</li>
* </ul>
*
* @param request the request parameters of GetHistograms GetHistogramsRequest
* @return GetHistogramsResponse
*/
CompletableFuture<GetHistogramsResponse> getHistograms(GetHistogramsRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetIndex GetIndexRequest
* @return GetIndexResponse
*/
CompletableFuture<GetIndexResponse> getIndex(GetIndexRequest request);
/**
* @param request the request parameters of GetIngestProcessor GetIngestProcessorRequest
* @return GetIngestProcessorResponse
*/
CompletableFuture<GetIngestProcessorResponse> getIngestProcessor(GetIngestProcessorRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetLogStore GetLogStoreRequest
* @return GetLogStoreResponse
*/
CompletableFuture<GetLogStoreResponse> getLogStore(GetLogStoreRequest request);
/**
* @param request the request parameters of GetLogStoreMeteringMode GetLogStoreMeteringModeRequest
* @return GetLogStoreMeteringModeResponse
*/
CompletableFuture<GetLogStoreMeteringModeResponse> getLogStoreMeteringMode(GetLogStoreMeteringModeRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetLogging GetLoggingRequest
* @return GetLoggingResponse
*/
CompletableFuture<GetLoggingResponse> getLogging(GetLoggingRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p><strong>Note</strong> Simple Log Service allows you to create a Scheduled SQL job. For more information, see <a href="https://help.aliyun.com/document_detail/286457.html">Create a scheduled SQL job</a>.</p>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</li>
* <li>Indexes are configured before you query logs. For more information, see <a href="https://help.aliyun.com/document_detail/90732.html">Create indexes</a>.</li>
* <li>If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete results. In this case, you must check the value of the x-log-progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete results. Each time you call this operation, the same number of charge units (CUs) are consumed.</li>
* <li>After a log is written to a Logstore, you can call the GetHistograms or the GetLogs operation to query the log. The latency of the query varies based on the type of the log. Simple Log Service classifies logs into the following types based on log timestamps:<ul>
* <li>Real-time data: The difference between the time record in a log of this type and the current time on Simple Log Service is within the interval (-180 seconds,900 seconds\]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as real-time data. This type of log is usually generated in common scenarios.</li>
* <li>Historical data: The difference between the time record in a log of this type and the current time on Simple Log Service is within the interval [-604,800 seconds,-180 seconds). For example, if a log was generated at 12:00:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as historical data. This type of log is usually generated in data backfill scenarios. After real-time data is written to a Logstore, the data can be queried with an approximate latency of 3 seconds.
* <strong>Note</strong> Simple Log Service calculates the difference between the log time that is specified by the <strong>time</strong> field and the receiving time that is specified by the <strong>tag</strong>:<strong>receive_time</strong> field for each log. The receiving time indicates when Simple Log Service receives the log. If the difference is within the interval (-180 seconds,900 seconds\], Simple Log Service processes the log as real-time data. If the difference is within the interval [-604,800 seconds,-180 seconds), Simple Log Service processes the log as historical data.</li>
* </ul>
* </li>
* <li>Simple Log Service provides examples on how to call the GetLogs operation by using Simple Log Service SDK for Java and Simple Log Service SDK for Python. For more information, see <a href="https://help.aliyun.com/document_detail/407683.html">Examples of calling the GetLogs operation by using Simple Log Service SDK for Java</a> and <a href="https://help.aliyun.com/document_detail/407684.html">Examples of calling the GetLogs operation by using Simple Log Service SDK for Python</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetLogStoreLogs</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetLogs GetLogsRequest
* @return GetLogsResponse
*/
CompletableFuture<GetLogsResponse> getLogs(GetLogsRequest request);
/**
* <b>description</b> :
* <p>You can call this operation by using Simple Log Service SDK for Go, Java, or Python. You can call this operation by using Alibaba Cloud SDK for all programming languages.</p>
* <ul>
* <li>When you call this operation, take note of the compression method that you use. The supported compression algorithms vary based on the programming language. For more information, see the description of the Accept-Encoding parameter in this topic.</li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/2771313.html">GetLogs</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a Resource Access Management (RAM) policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetLogStoreLogs</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetLogsV2 GetLogsV2Request
* @return GetLogsV2Response
*/
CompletableFuture<GetLogsV2Response> getLogsV2(GetLogsV2Request request);
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of GetLogtailPipelineConfig GetLogtailPipelineConfigRequest
* @return GetLogtailPipelineConfigResponse
*/
CompletableFuture<GetLogtailPipelineConfigResponse> getLogtailPipelineConfig(GetLogtailPipelineConfigRequest request);
/**
* <b>description</b> :
* <p>You must obtain the following basic permissions before you call this operation:
* {
* "Version": "1",
* "Statement": [
* {
* "Action": [
* "log:Get*"
* ],
* "Resource": [
* "acs:log:<em>:</em>:mlservice/sls_builtin_*"
* ],
* "Effect": "Allow"
* }
* ]
* }</p>
*
* @param request the request parameters of GetMLServiceResults GetMLServiceResultsRequest
* @return GetMLServiceResultsResponse
*/
CompletableFuture<GetMLServiceResultsResponse> getMLServiceResults(GetMLServiceResultsRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetMachineGroup GetMachineGroupRequest
* @return GetMachineGroupResponse
*/
CompletableFuture<GetMachineGroupResponse> getMachineGroup(GetMachineGroupRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of GetMaxComputeExport GetMaxComputeExportRequest
* @return GetMaxComputeExportResponse
*/
CompletableFuture<GetMaxComputeExportResponse> getMaxComputeExport(GetMaxComputeExportRequest request);
/**
* <b>description</b> :
* <p>Metricstores are used to store metric data. For more information about Metricstores, see <a href="https://help.aliyun.com/document_detail/171723.html">Metricstores</a>. For more information about metric data, see <a href="https://help.aliyun.com/document_detail/174965.html">Metric data</a>. You can call this operation to query the settings of a Metricstore. To query the metric data in a Metricstore, see <a href="https://help.aliyun.com/document_detail/174968.html">Query and analysis</a> and <a href="https://help.aliyun.com/document_detail/2771318.html">GetLogsV2</a>.</p>
* <ul>
* <li>You must specify an existing Metricstore.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores or Metricstores in a project.</li>
* <li>Metric data is automatically deleted when the retention period of the metric data ends.</li>
* </ul>
*
* @param request the request parameters of GetMetricStore GetMetricStoreRequest
* @return GetMetricStoreResponse
*/
CompletableFuture<GetMetricStoreResponse> getMetricStore(GetMetricStoreRequest request);
/**
* @param request the request parameters of GetMetricStoreMeteringMode GetMetricStoreMeteringModeRequest
* @return GetMetricStoreMeteringModeResponse
*/
CompletableFuture<GetMetricStoreMeteringModeResponse> getMetricStoreMeteringMode(GetMetricStoreMeteringModeRequest request);
/**
* @param request the request parameters of GetOSSExport GetOSSExportRequest
* @return GetOSSExportResponse
*/
CompletableFuture<GetOSSExportResponse> getOSSExport(GetOSSExportRequest request);
/**
* @param request the request parameters of GetOSSHDFSExport GetOSSHDFSExportRequest
* @return GetOSSHDFSExportResponse
*/
CompletableFuture<GetOSSHDFSExportResponse> getOSSHDFSExport(GetOSSHDFSExportRequest request);
/**
* @param request the request parameters of GetOSSIngestion GetOSSIngestionRequest
* @return GetOSSIngestionResponse
*/
CompletableFuture<GetOSSIngestionResponse> getOSSIngestion(GetOSSIngestionRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetProject GetProjectRequest
* @return GetProjectResponse
*/
CompletableFuture<GetProjectResponse> getProject(GetProjectRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>Indexes are configured before you query logs. For more information, see <a href="https://help.aliyun.com/document_detail/90732.html">Create indexes</a>.</li>
* <li>Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</li>
* <li>You must set query to a standard SQL statement.</li>
* <li>You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.</li>
* <li>You must specify a time range in an SQL statement by using the <strong>date</strong> or <strong>time</strong> parameter. The value of the <strong>date</strong> parameter is a timestamp. The value of the <strong>time</strong> parameter is an integer, and the unit of the value is seconds.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetProjectLogs</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetProjectLogs GetProjectLogsRequest
* @return GetProjectLogsResponse
*/
CompletableFuture<GetProjectLogsResponse> getProjectLogs(GetProjectLogsRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of GetProjectPolicy GetProjectPolicyRequest
* @return GetProjectPolicyResponse
*/
CompletableFuture<GetProjectPolicyResponse> getProjectPolicy(GetProjectPolicyRequest request);
/**
* @param request the request parameters of GetS3Ingestion GetS3IngestionRequest
* @return GetS3IngestionResponse
*/
CompletableFuture<GetS3IngestionResponse> getS3Ingestion(GetS3IngestionRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>You can call the ListSavedSearch operation to query the name of a saved search.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetSavedSearch</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetSavedSearch GetSavedSearchRequest
* @return GetSavedSearchResponse
*/
CompletableFuture<GetSavedSearchResponse> getSavedSearch(GetSavedSearchRequest request);
/**
* @param request the request parameters of GetScheduledSQL GetScheduledSQLRequest
* @return GetScheduledSQLResponse
*/
CompletableFuture<GetScheduledSQLResponse> getScheduledSQL(GetScheduledSQLRequest request);
/**
* @param request the request parameters of GetSlsService GetSlsServiceRequest
* @return GetSlsServiceResponse
*/
CompletableFuture<GetSlsServiceResponse> getSlsService(GetSlsServiceRequest request);
/**
* @param request the request parameters of GetSqlInstance GetSqlInstanceRequest
* @return GetSqlInstanceResponse
*/
CompletableFuture<GetSqlInstanceResponse> getSqlInstance(GetSqlInstanceRequest request);
/**
* @param request the request parameters of GetStoreView GetStoreViewRequest
* @return GetStoreViewResponse
*/
CompletableFuture<GetStoreViewResponse> getStoreView(GetStoreViewRequest request);
/**
* @param request the request parameters of GetStoreViewIndex GetStoreViewIndexRequest
* @return GetStoreViewIndexResponse
*/
CompletableFuture<GetStoreViewIndexResponse> getStoreViewIndex(GetStoreViewIndexRequest request);
/**
* @param request the request parameters of ListAgentInstanceConfigs ListAgentInstanceConfigsRequest
* @return ListAgentInstanceConfigsResponse
*/
CompletableFuture<ListAgentInstanceConfigsResponse> listAgentInstanceConfigs(ListAgentInstanceConfigsRequest request);
/**
* @param request the request parameters of ListAiTools ListAiToolsRequest
* @return ListAiToolsResponse
*/
CompletableFuture<ListAiToolsResponse> listAiTools(ListAiToolsRequest request);
/**
* @param request the request parameters of ListAlerts ListAlertsRequest
* @return ListAlertsResponse
*/
CompletableFuture<ListAlertsResponse> listAlerts(ListAlertsRequest request);
/**
* @param request the request parameters of ListAnnotationData ListAnnotationDataRequest
* @return ListAnnotationDataResponse
*/
CompletableFuture<ListAnnotationDataResponse> listAnnotationData(ListAnnotationDataRequest request);
/**
* @param request the request parameters of ListAnnotationDataSets ListAnnotationDataSetsRequest
* @return ListAnnotationDataSetsResponse
*/
CompletableFuture<ListAnnotationDataSetsResponse> listAnnotationDataSets(ListAnnotationDataSetsRequest request);
/**
* @param request the request parameters of ListAnnotationLabels ListAnnotationLabelsRequest
* @return ListAnnotationLabelsResponse
*/
CompletableFuture<ListAnnotationLabelsResponse> listAnnotationLabels(ListAnnotationLabelsRequest request);
/**
* <b>description</b> :
* <p>You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.</p>
*
* @param request the request parameters of ListCollectionPolicies ListCollectionPoliciesRequest
* @return ListCollectionPoliciesResponse
*/
CompletableFuture<ListCollectionPoliciesResponse> listCollectionPolicies(ListCollectionPoliciesRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of ListConfig ListConfigRequest
* @return ListConfigResponse
*/
CompletableFuture<ListConfigResponse> listConfig(ListConfigRequest request);
/**
* @param request the request parameters of ListConsumeProcessors ListConsumeProcessorsRequest
* @return ListConsumeProcessorsResponse
*/
CompletableFuture<ListConsumeProcessorsResponse> listConsumeProcessors(ListConsumeProcessorsRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:ListConsumerGroup</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/*</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of ListConsumerGroup ListConsumerGroupRequest
* @return ListConsumerGroupResponse
*/
CompletableFuture<ListConsumerGroupResponse> listConsumerGroup(ListConsumerGroupRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of ListDashboard ListDashboardRequest
* @return ListDashboardResponse
*/
CompletableFuture<ListDashboardResponse> listDashboard(ListDashboardRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>Only one custom domain name can be bound to each project.</li>
* </ul>
*
* @param request the request parameters of ListDomains ListDomainsRequest
* @return ListDomainsResponse
*/
CompletableFuture<ListDomainsResponse> listDomains(ListDomainsRequest request);
/**
* @param request the request parameters of ListDownloadJobs ListDownloadJobsRequest
* @return ListDownloadJobsResponse
*/
CompletableFuture<ListDownloadJobsResponse> listDownloadJobs(ListDownloadJobsRequest request);
/**
* @param request the request parameters of ListETLs ListETLsRequest
* @return ListETLsResponse
*/
CompletableFuture<ListETLsResponse> listETLs(ListETLsRequest request);
/**
* @param request the request parameters of ListIngestProcessors ListIngestProcessorsRequest
* @return ListIngestProcessorsResponse
*/
CompletableFuture<ListIngestProcessorsResponse> listIngestProcessors(ListIngestProcessorsRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:ListLogStores</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/*</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of ListLogStores ListLogStoresRequest
* @return ListLogStoresResponse
*/
CompletableFuture<ListLogStoresResponse> listLogStores(ListLogStoresRequest request);
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of ListLogtailPipelineConfig ListLogtailPipelineConfigRequest
* @return ListLogtailPipelineConfigResponse
*/
CompletableFuture<ListLogtailPipelineConfigResponse> listLogtailPipelineConfig(ListLogtailPipelineConfigRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ListMachineGroup ListMachineGroupRequest
* @return ListMachineGroupResponse
*/
CompletableFuture<ListMachineGroupResponse> listMachineGroup(ListMachineGroupRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ListMachines ListMachinesRequest
* @return ListMachinesResponse
*/
CompletableFuture<ListMachinesResponse> listMachines(ListMachinesRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of ListMaxComputeExports ListMaxComputeExportsRequest
* @return ListMaxComputeExportsResponse
*/
CompletableFuture<ListMaxComputeExportsResponse> listMaxComputeExports(ListMaxComputeExportsRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of ListMetricStores ListMetricStoresRequest
* @return ListMetricStoresResponse
*/
CompletableFuture<ListMetricStoresResponse> listMetricStores(ListMetricStoresRequest request);
/**
* @param request the request parameters of ListOSSExports ListOSSExportsRequest
* @return ListOSSExportsResponse
*/
CompletableFuture<ListOSSExportsResponse> listOSSExports(ListOSSExportsRequest request);
/**
* @param request the request parameters of ListOSSHDFSExports ListOSSHDFSExportsRequest
* @return ListOSSHDFSExportsResponse
*/
CompletableFuture<ListOSSHDFSExportsResponse> listOSSHDFSExports(ListOSSHDFSExportsRequest request);
/**
* @param request the request parameters of ListOSSIngestions ListOSSIngestionsRequest
* @return ListOSSIngestionsResponse
*/
CompletableFuture<ListOSSIngestionsResponse> listOSSIngestions(ListOSSIngestionsRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ListProject ListProjectRequest
* @return ListProjectResponse
*/
CompletableFuture<ListProjectResponse> listProject(ListProjectRequest request);
/**
* @param request the request parameters of ListS3Ingestions ListS3IngestionsRequest
* @return ListS3IngestionsResponse
*/
CompletableFuture<ListS3IngestionsResponse> listS3Ingestions(ListS3IngestionsRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ListSavedSearch ListSavedSearchRequest
* @return ListSavedSearchResponse
*/
CompletableFuture<ListSavedSearchResponse> listSavedSearch(ListSavedSearchRequest request);
/**
* @param request the request parameters of ListScheduledSQLs ListScheduledSQLsRequest
* @return ListScheduledSQLsResponse
*/
CompletableFuture<ListScheduledSQLsResponse> listScheduledSQLs(ListScheduledSQLsRequest request);
/**
* @param request the request parameters of ListShards ListShardsRequest
* @return ListShardsResponse
*/
CompletableFuture<ListShardsResponse> listShards(ListShardsRequest request);
/**
* @param request the request parameters of ListStoreViews ListStoreViewsRequest
* @return ListStoreViewsResponse
*/
CompletableFuture<ListStoreViewsResponse> listStoreViews(ListStoreViewsRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/29049.html">Authorization rules</a>. The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:ListTagResources</code></td>
* <td align="left">The resource format varies based on the resource type.\-<code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of ListTagResources ListTagResourcesRequest
* @return ListTagResourcesResponse
*/
CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request);
/**
* @param request the request parameters of MergeShard MergeShardRequest
* @return MergeShardResponse
*/
CompletableFuture<MergeShardResponse> mergeShard(MergeShardRequest request);
/**
* @param request the request parameters of OpenSlsService OpenSlsServiceRequest
* @return OpenSlsServiceResponse
*/
CompletableFuture<OpenSlsServiceResponse> openSlsService(OpenSlsServiceRequest request);
/**
* <b>description</b> :
* <ul>
* <li><strong>Warning</strong> You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.</li>
* <li>You must specify a shard when you query the logs.</li>
* <li>You can query only logs in the Protocol Buffers (protobuf) format. For more information, see <a href="https://help.aliyun.com/document_detail/29055.html">Data encoding</a>.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* </ul>
*
* @param request the request parameters of PullLogs PullLogsRequest
* @return PullLogsResponse
*/
CompletableFuture<PullLogsResponse> pullLogs(PullLogsRequest request);
/**
* @param request the request parameters of PutAnnotationData PutAnnotationDataRequest
* @return PutAnnotationDataResponse
*/
CompletableFuture<PutAnnotationDataResponse> putAnnotationData(PutAnnotationDataRequest request);
/**
* @param request the request parameters of PutConsumeProcessor PutConsumeProcessorRequest
* @return PutConsumeProcessorResponse
*/
CompletableFuture<PutConsumeProcessorResponse> putConsumeProcessor(PutConsumeProcessorRequest request);
/**
* @param request the request parameters of PutIngestProcessor PutIngestProcessorRequest
* @return PutIngestProcessorResponse
*/
CompletableFuture<PutIngestProcessorResponse> putIngestProcessor(PutIngestProcessorRequest request);
/**
* <b>description</b> :
* <ul>
* <li><strong>Warning</strong> You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.</li>
* <li>When you call the PutLogs operation to write logs to Simple Log Service, Simple Log Servicechecks the format of the logs. If a log does not meet the format requirements, the request fails and no logs are written to Simple Log Service.</li>
* <li>You can write logs only in the Protocol Buffers (Protobuf) format as log groups. For more information, see <a href="https://help.aliyun.com/document_detail/29055.html">Data encoding</a>.</li>
* <li>You can write logs in one of the following modes:<ul>
* <li>LoadBalance mode: In this mode, Log Service automatically writes logs to all writable shards in a Logstore. This mode delivers high availability for write operations and is suitable for data consumption scenarios in which you do not need to preserve the order of logs.</li>
* <li>KeyHash: In this mode, a key field is added in the URL parameter. Log Service writes logs to a shard based on the key field. The hash key is optional. If you do not configure the hash key, logs are written to shards in LoadBalance mode. For example, you can use the KeyHash mode to write data from a producer, such as an instance, to the shard whose hash value range includes the hash value of the producer name. This ensures that the data that is written to the shard is ordered and the data in the shard is consumed based on the order. This way, when a shard is split or when shards are merged, the data that is associated with the same hash key is stored only in one shard at a point in time. For more information, see <a href="https://help.aliyun.com/document_detail/28976.html">Shard</a>.</li>
* </ul>
* </li>
* <li>You can call the PutLogs operation to write up to 10 MB of raw logs at a time. We recommend that you keep the total size of the values for each log in a log group to or below 1 MB. Historical versions of SDKs may have different limits. We recommend that you upgrade your SDK to the latest version.</li>
* <li>The references for Log Service SDK for Java and Log Service SDK for Python provide examples on how to call the PutLogs operation. For more information, see <a href="https://help.aliyun.com/document_detail/279525.html">Get started with Simple Log Service SDK for Java</a> and <a href="https://help.aliyun.com/document_detail/284638.html">Get started with Simple Log Service SDK for Python</a>.</li>
* </ul>
*
* @param request the request parameters of PutLogs PutLogsRequest
* @return PutLogsResponse
*/
CompletableFuture<PutLogsResponse> putLogs(PutLogsRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>Alibaba Cloud Simple Log Service allows you to configure a project policy to authorize other users to access the specified Log Service resources.<ul>
* <li>You must configure a project policy based on policy syntax. Before you configure a project policy, you must be familiar with the Action, Resource, and Condition parameters. For more information, see <a href="https://help.aliyun.com/document_detail/128139.html">RAM</a>.</li>
* <li>If you set the Principal element to an asterisk (\<em>) and do not configure the Condition element when you configure a project policy, the policy applies to all users except for the project owner. If you set the Principal element to an asterisk (\</em>) and configure the Condition element when you configure a project policy, the policy applies to all users including the project owner.</li>
* <li>You can configure multiple project policies for a project. The total size of the policies cannot exceed 16 KB.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of PutProjectPolicy PutProjectPolicyRequest
* @return PutProjectPolicyResponse
*/
CompletableFuture<PutProjectPolicyResponse> putProjectPolicy(PutProjectPolicyRequest request);
/**
* @param request the request parameters of PutProjectTransferAcceleration PutProjectTransferAccelerationRequest
* @return PutProjectTransferAccelerationResponse
*/
CompletableFuture<PutProjectTransferAccelerationResponse> putProjectTransferAcceleration(PutProjectTransferAccelerationRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>You can call this operation to collect logs from web pages or clients.</li>
* <li>If you use web tracking to collect logs and you do not call this operation, you can send only one log to Simple Log Service in a request. For more information, see <a href="https://help.aliyun.com/document_detail/31752.html">Use web tracking to collect logs</a>.</li>
* <li>If you want to collect a large amount of log data, you can call this operation to send multiple logs to Simple Log Service in one request.</li>
* <li>Before you can call this operation to send logs to a Logstore, you must enable web tracking for the Logstore. For more information, see <a href="https://help.aliyun.com/document_detail/31752.html">Use web tracking to collect logs</a>.</li>
* <li>You cannot call this operation to send the logs of multiple topics to Simple Log Service at a time.</li>
* <li>If you call this operation, anonymous users from the Internet are granted the write permissions on the Logstore. This may generate dirty data because AccessKey pair-based authentication is not performed.</li>
* </ul>
*
* @param request the request parameters of PutWebtracking PutWebtrackingRequest
* @return PutWebtrackingResponse
*/
CompletableFuture<PutWebtrackingResponse> putWebtracking(PutWebtrackingRequest request);
/**
* @param request the request parameters of RefreshToken RefreshTokenRequest
* @return RefreshTokenResponse
*/
CompletableFuture<RefreshTokenResponse> refreshToken(RefreshTokenRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of RemoveConfigFromMachineGroup RemoveConfigFromMachineGroupRequest
* @return RemoveConfigFromMachineGroupResponse
*/
CompletableFuture<RemoveConfigFromMachineGroupResponse> removeConfigFromMachineGroup(RemoveConfigFromMachineGroupRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>Each shard has an MD5 hash range, and each range is a left-closed, right-open interval. The interval is in the <code>[BeginKey,EndKey)</code> format. A shard can be in the readwrite or readonly state. You can split a shard and merge shards. For more information, see <a href="https://help.aliyun.com/document_detail/28976.html">Shard</a>.</li>
* </ul>
*
* @param request the request parameters of SplitShard SplitShardRequest
* @return SplitShardResponse
*/
CompletableFuture<SplitShardResponse> splitShard(SplitShardRequest request);
/**
* @param request the request parameters of StartETL StartETLRequest
* @return StartETLResponse
*/
CompletableFuture<StartETLResponse> startETL(StartETLRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of StartMaxComputeExport StartMaxComputeExportRequest
* @return StartMaxComputeExportResponse
*/
CompletableFuture<StartMaxComputeExportResponse> startMaxComputeExport(StartMaxComputeExportRequest request);
/**
* @param request the request parameters of StartOSSExport StartOSSExportRequest
* @return StartOSSExportResponse
*/
CompletableFuture<StartOSSExportResponse> startOSSExport(StartOSSExportRequest request);
/**
* @param request the request parameters of StartOSSHDFSExport StartOSSHDFSExportRequest
* @return StartOSSHDFSExportResponse
*/
CompletableFuture<StartOSSHDFSExportResponse> startOSSHDFSExport(StartOSSHDFSExportRequest request);
/**
* @param request the request parameters of StartOSSIngestion StartOSSIngestionRequest
* @return StartOSSIngestionResponse
*/
CompletableFuture<StartOSSIngestionResponse> startOSSIngestion(StartOSSIngestionRequest request);
/**
* @param request the request parameters of StopETL StopETLRequest
* @return StopETLResponse
*/
CompletableFuture<StopETLResponse> stopETL(StopETLRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of StopMaxComputeExport StopMaxComputeExportRequest
* @return StopMaxComputeExportResponse
*/
CompletableFuture<StopMaxComputeExportResponse> stopMaxComputeExport(StopMaxComputeExportRequest request);
/**
* @param request the request parameters of StopOSSExport StopOSSExportRequest
* @return StopOSSExportResponse
*/
CompletableFuture<StopOSSExportResponse> stopOSSExport(StopOSSExportRequest request);
/**
* @param request the request parameters of StopOSSHDFSExport StopOSSHDFSExportRequest
* @return StopOSSHDFSExportResponse
*/
CompletableFuture<StopOSSHDFSExportResponse> stopOSSHDFSExport(StopOSSHDFSExportRequest request);
/**
* @param request the request parameters of StopOSSIngestion StopOSSIngestionRequest
* @return StopOSSIngestionResponse
*/
CompletableFuture<StopOSSIngestionResponse> stopOSSIngestion(StopOSSIngestionRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/29049.html">Authorization rules</a>. The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:TagResources</code></td>
* <td align="left">The resource format varies based on the resource type.\-<code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of TagResources TagResourcesRequest
* @return TagResourcesResponse
*/
CompletableFuture<TagResourcesResponse> tagResources(TagResourcesRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> For more information, see <a href="https://help.aliyun.com/document_detail/29049.html">Authorization rules</a>. The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:UntagResources</code></td>
* <td align="left">The resource format varies based on the resource type.\-<code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of UntagResources UntagResourcesRequest
* @return UntagResourcesResponse
*/
CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRequest request);
/**
* @param request the request parameters of UpdateAgentInstanceConfig UpdateAgentInstanceConfigRequest
* @return UpdateAgentInstanceConfigResponse
*/
CompletableFuture<UpdateAgentInstanceConfigResponse> updateAgentInstanceConfig(UpdateAgentInstanceConfigRequest request);
/**
* @param request the request parameters of UpdateAlert UpdateAlertRequest
* @return UpdateAlertResponse
*/
CompletableFuture<UpdateAlertResponse> updateAlert(UpdateAlertRequest request);
/**
* @param request the request parameters of UpdateAnnotationDataSet UpdateAnnotationDataSetRequest
* @return UpdateAnnotationDataSetResponse
*/
CompletableFuture<UpdateAnnotationDataSetResponse> updateAnnotationDataSet(UpdateAnnotationDataSetRequest request);
/**
* <b>description</b> :
* <p>You can update only the names of the tags in a tag set.</p>
*
* @param request the request parameters of UpdateAnnotationLabel UpdateAnnotationLabelRequest
* @return UpdateAnnotationLabelResponse
*/
CompletableFuture<UpdateAnnotationLabelResponse> updateAnnotationLabel(UpdateAnnotationLabelRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>After you update a Logtail configuration that is applied to a machine group, the new configuration immediately takes effect.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>The Logtail configuration is planned out. For more information, see <a href="https://help.aliyun.com/document_detail/29058.html">Logtail configurations</a>.</li>
* </ul>
*
* @param request the request parameters of UpdateConfig UpdateConfigRequest
* @return UpdateConfigResponse
*/
CompletableFuture<UpdateConfigResponse> updateConfig(UpdateConfigRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:UpdateConsumerGroup</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of UpdateConsumerGroup UpdateConsumerGroupRequest
* @return UpdateConsumerGroupResponse
*/
CompletableFuture<UpdateConsumerGroupResponse> updateConsumerGroup(UpdateConsumerGroupRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateDashboard UpdateDashboardRequest
* @return UpdateDashboardResponse
*/
CompletableFuture<UpdateDashboardResponse> updateDashboard(UpdateDashboardRequest request);
/**
* @param request the request parameters of UpdateETL UpdateETLRequest
* @return UpdateETLResponse
*/
CompletableFuture<UpdateETLResponse> updateETL(UpdateETLRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateIndex UpdateIndexRequest
* @return UpdateIndexResponse
*/
CompletableFuture<UpdateIndexResponse> updateIndex(UpdateIndexRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Log Service endpoint. You must specify a project in Host.</li>
* <li>You can call the UpdateLogStore operation to change only the time-to-live (TTL) attribute.</li>
* </ul>
*
* @param request the request parameters of UpdateLogStore UpdateLogStoreRequest
* @return UpdateLogStoreResponse
*/
CompletableFuture<UpdateLogStoreResponse> updateLogStore(UpdateLogStoreRequest request);
/**
* <b>description</b> :
* <h2><a href="#"></a>Limits</h2>
* <p>If you specify a data encryption method when you configure data encryption settings, you cannot switch to the other method after the configuration. In addition, you cannot change the encryption algorithm or the encryption type. You can only enable or disable the encryption feature by using the enable parameter. If you specify the encryption method by using the service key of Simple Log Service when you configure data encryption settings, you cannot switch to the encryption method by using Bring Your Own Key (BYOK) keys after the configuration.</p>
* <h2><a href="#"></a>Create encryption configurations</h2>
* <h3><a href="#"></a>Encryption by using service keys</h3>
* <p>Simple Log Service is fully responsible for data encryption and key management. No additional operations are required. When you create encryption configurations for the Logstore, you must specify the enable and encryptType parameters.</p>
* <h3><a href="#byok"></a>Encryption by using BYOK keys</h3>
* <p>You must create a customer master key (CMK) in Key Management Service (KMS). Then, Simple Log Service encrypts logs by using the CMK. When you create encryption configurations for the Logstore, you must specify the enable, encryptType, and userCmkInfo parameters.</p>
* <h2><a href="#"></a>Enable or disable the encryption feature</h2>
* <p>After you create encryption configurations for the Logstore, you cannot modify the encryptType or userCmkInfo parameters. However, you can enable and disable the encryption feature by using the enable parameter.</p>
*
* @param request the request parameters of UpdateLogStoreEncryption UpdateLogStoreEncryptionRequest
* @return UpdateLogStoreEncryptionResponse
*/
CompletableFuture<UpdateLogStoreEncryptionResponse> updateLogStoreEncryption(UpdateLogStoreEncryptionRequest request);
/**
* @param request the request parameters of UpdateLogStoreMeteringMode UpdateLogStoreMeteringModeRequest
* @return UpdateLogStoreMeteringModeResponse
*/
CompletableFuture<UpdateLogStoreMeteringModeResponse> updateLogStoreMeteringMode(UpdateLogStoreMeteringModeRequest request);
/**
* @param request the request parameters of UpdateLogStoreProcessor UpdateLogStoreProcessorRequest
* @return UpdateLogStoreProcessorResponse
*/
CompletableFuture<UpdateLogStoreProcessorResponse> updateLogStoreProcessor(UpdateLogStoreProcessorRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateLogging UpdateLoggingRequest
* @return UpdateLoggingResponse
*/
CompletableFuture<UpdateLoggingResponse> updateLogging(UpdateLoggingRequest request);
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of UpdateLogtailPipelineConfig UpdateLogtailPipelineConfigRequest
* @return UpdateLogtailPipelineConfigResponse
*/
CompletableFuture<UpdateLogtailPipelineConfigResponse> updateLogtailPipelineConfig(UpdateLogtailPipelineConfigRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateMachineGroup UpdateMachineGroupRequest
* @return UpdateMachineGroupResponse
*/
CompletableFuture<UpdateMachineGroupResponse> updateMachineGroup(UpdateMachineGroupRequest request);
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateMachineGroupMachine UpdateMachineGroupMachineRequest
* @return UpdateMachineGroupMachineResponse
*/
CompletableFuture<UpdateMachineGroupMachineResponse> updateMachineGroupMachine(UpdateMachineGroupMachineRequest request);
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of UpdateMaxComputeExport UpdateMaxComputeExportRequest
* @return UpdateMaxComputeExportResponse
*/
CompletableFuture<UpdateMaxComputeExportResponse> updateMaxComputeExport(UpdateMaxComputeExportRequest request);
/**
* <b>description</b> :
* <p>Metricstores are used to store metric data. For more information, see <a href="https://help.aliyun.com/document_detail/174965.html">Metric data</a>.</p>
* <ul>
* <li>You must specify an existing Metricstore.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores or Metricstores in a project.</li>
* <li>Metric data is automatically deleted when the retention period of the metric data ends.</li>
* </ul>
*
* @param request the request parameters of UpdateMetricStore UpdateMetricStoreRequest
* @return UpdateMetricStoreResponse
*/
CompletableFuture<UpdateMetricStoreResponse> updateMetricStore(UpdateMetricStoreRequest request);
/**
* @param request the request parameters of UpdateMetricStoreMeteringMode UpdateMetricStoreMeteringModeRequest
* @return UpdateMetricStoreMeteringModeResponse
*/
CompletableFuture<UpdateMetricStoreMeteringModeResponse> updateMetricStoreMeteringMode(UpdateMetricStoreMeteringModeRequest request);
/**
* @param request the request parameters of UpdateMetricStoreProcessor UpdateMetricStoreProcessorRequest
* @return UpdateMetricStoreProcessorResponse
*/
CompletableFuture<UpdateMetricStoreProcessorResponse> updateMetricStoreProcessor(UpdateMetricStoreProcessorRequest request);
/**
* @param request the request parameters of UpdateOSSExport UpdateOSSExportRequest
* @return UpdateOSSExportResponse
*/
CompletableFuture<UpdateOSSExportResponse> updateOSSExport(UpdateOSSExportRequest request);
/**
* @param request the request parameters of UpdateOSSHDFSExport UpdateOSSHDFSExportRequest
* @return UpdateOSSHDFSExportResponse
*/
CompletableFuture<UpdateOSSHDFSExportResponse> updateOSSHDFSExport(UpdateOSSHDFSExportRequest request);
/**
* @param request the request parameters of UpdateOSSIngestion UpdateOSSIngestionRequest
* @return UpdateOSSIngestionResponse
*/
CompletableFuture<UpdateOSSIngestionResponse> updateOSSIngestion(UpdateOSSIngestionRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:UpdateProject</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of UpdateProject UpdateProjectRequest
* @return UpdateProjectResponse
*/
CompletableFuture<UpdateProjectResponse> updateProject(UpdateProjectRequest request);
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:UpdateSavedSearch</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of UpdateSavedSearch UpdateSavedSearchRequest
* @return UpdateSavedSearchResponse
*/
CompletableFuture<UpdateSavedSearchResponse> updateSavedSearch(UpdateSavedSearchRequest request);
/**
* @param request the request parameters of UpdateScheduledSQL UpdateScheduledSQLRequest
* @return UpdateScheduledSQLResponse
*/
CompletableFuture<UpdateScheduledSQLResponse> updateScheduledSQL(UpdateScheduledSQLRequest request);
/**
* @param request the request parameters of UpdateSqlInstance UpdateSqlInstanceRequest
* @return UpdateSqlInstanceResponse
*/
CompletableFuture<UpdateSqlInstanceResponse> updateSqlInstance(UpdateSqlInstanceRequest request);
/**
* @param request the request parameters of UpdateStoreView UpdateStoreViewRequest
* @return UpdateStoreViewResponse
*/
CompletableFuture<UpdateStoreViewResponse> updateStoreView(UpdateStoreViewRequest request);
/**
* <b>description</b> :
* <p>You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.</p>
*
* @param request the request parameters of UpsertCollectionPolicy UpsertCollectionPolicyRequest
* @return UpsertCollectionPolicyResponse
*/
CompletableFuture<UpsertCollectionPolicyResponse> upsertCollectionPolicy(UpsertCollectionPolicyRequest request);
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/DefaultAsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230;
import com.aliyun.core.http.*;
import com.aliyun.sdk.service.sls20201230.models.*;
import darabonba.core.utils.*;
import com.aliyun.sdk.gateway.sls.*;
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 = "Sls";
this.version = "2020-12-30";
this.endpointRule = "central";
this.endpointMap = new java.util.HashMap<>();
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
}
@Override
public void close() {
this.handler.close();
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ApplyConfigToMachineGroup ApplyConfigToMachineGroupRequest
* @return ApplyConfigToMachineGroupResponse
*/
@Override
public CompletableFuture<ApplyConfigToMachineGroupResponse> applyConfigToMachineGroup(ApplyConfigToMachineGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ApplyConfigToMachineGroup").setMethod(HttpMethod.PUT).setPathRegex("/machinegroups/{machineGroup}/configs/{configName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ApplyConfigToMachineGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ApplyConfigToMachineGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CallAiTools CallAiToolsRequest
* @return CallAiToolsResponse
*/
@Override
public CompletableFuture<CallAiToolsResponse> callAiTools(CallAiToolsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CallAiTools").setMethod(HttpMethod.POST).setPathRegex("/ml/tool/call").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CallAiToolsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CallAiToolsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ChangeResourceGroup ChangeResourceGroupRequest
* @return ChangeResourceGroupResponse
*/
@Override
public CompletableFuture<ChangeResourceGroupResponse> changeResourceGroup(ChangeResourceGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ChangeResourceGroup").setMethod(HttpMethod.PUT).setPathRegex("/resourcegroup").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ChangeResourceGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ChangeResourceGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>Connections between consumers and Simple Log Service are established by sending heartbeat messages at regular intervals. If Simple Log Service does not receive heartbeat messages from a consumer on schedule, Simple Log Service deletes the consumer.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>The name of the consumer group is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/74964.html">ListConsumerGroup</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:ConsumerGroupHeartBeat</code></td>
* <td align="left"><code>acs:log:${regionId}:${accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/{#ConsumerGroupName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of ConsumerGroupHeartBeat ConsumerGroupHeartBeatRequest
* @return ConsumerGroupHeartBeatResponse
*/
@Override
public CompletableFuture<ConsumerGroupHeartBeatResponse> consumerGroupHeartBeat(ConsumerGroupHeartBeatRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ConsumerGroupHeartBeat").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/consumergroups/{consumerGroup}?type=heartbeat").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ConsumerGroupHeartBeatResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ConsumerGroupHeartBeatResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> If you do not specify a consumer, you must set <strong>forceSuccess</strong> to <strong>true</strong>. Otherwise, the checkpoint cannot be updated.</p>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* </ul>
*
* @param request the request parameters of ConsumerGroupUpdateCheckPoint ConsumerGroupUpdateCheckPointRequest
* @return ConsumerGroupUpdateCheckPointResponse
*/
@Override
public CompletableFuture<ConsumerGroupUpdateCheckPointResponse> consumerGroupUpdateCheckPoint(ConsumerGroupUpdateCheckPointRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ConsumerGroupUpdateCheckPoint").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/consumergroups/{consumerGroup}?type=checkpoint").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ConsumerGroupUpdateCheckPointResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ConsumerGroupUpdateCheckPointResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateAgentInstanceConfig CreateAgentInstanceConfigRequest
* @return CreateAgentInstanceConfigResponse
*/
@Override
public CompletableFuture<CreateAgentInstanceConfigResponse> createAgentInstanceConfig(CreateAgentInstanceConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateAgentInstanceConfig").setMethod(HttpMethod.POST).setPathRegex("/agentinstanceconfigs").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateAgentInstanceConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateAgentInstanceConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateAlert CreateAlertRequest
* @return CreateAlertResponse
*/
@Override
public CompletableFuture<CreateAlertResponse> createAlert(CreateAlertRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateAlert").setMethod(HttpMethod.POST).setPathRegex("/alerts").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateAlertResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateAlertResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateAnnotationDataSet CreateAnnotationDataSetRequest
* @return CreateAnnotationDataSetResponse
*/
@Override
public CompletableFuture<CreateAnnotationDataSetResponse> createAnnotationDataSet(CreateAnnotationDataSetRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateAnnotationDataSet").setMethod(HttpMethod.POST).setPathRegex("/ml/annotationdataset").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateAnnotationDataSetResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateAnnotationDataSetResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateAnnotationLabel CreateAnnotationLabelRequest
* @return CreateAnnotationLabelResponse
*/
@Override
public CompletableFuture<CreateAnnotationLabelResponse> createAnnotationLabel(CreateAnnotationLabelRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateAnnotationLabel").setMethod(HttpMethod.POST).setPathRegex("/ml/annotationlabel").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateAnnotationLabelResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateAnnotationLabelResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 100 Logtail configurations in a project.</li>
* <li>The Logtail configuration is planned out. For more information, see <a href="https://help.aliyun.com/document_detail/29058.html">Logtail configurations</a>.</li>
* </ul>
*
* @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.RESTFUL).setAction("CreateConfig").setMethod(HttpMethod.POST).setPathRegex("/configs").setBodyType(BodyType.NONE).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> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>You can create up to 30 consumer groups for a Logstore. The name of a consumer group must be unique in a project.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Simple Log Service provides examples of both regular log consumption and consumer group-based log consumption by using Simple Log Service SDK for Java. For more information, see <a href="https://help.aliyun.com/document_detail/120035.html">Consume log data</a> and <a href="https://help.aliyun.com/document_detail/28998.html">Use consumer groups to consume data</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:CreateConsumerGroup</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of CreateConsumerGroup CreateConsumerGroupRequest
* @return CreateConsumerGroupResponse
*/
@Override
public CompletableFuture<CreateConsumerGroupResponse> createConsumerGroup(CreateConsumerGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateConsumerGroup").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/consumergroups").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateConsumerGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateConsumerGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of CreateDashboard CreateDashboardRequest
* @return CreateDashboardResponse
*/
@Override
public CompletableFuture<CreateDashboardResponse> createDashboard(CreateDashboardRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateDashboard").setMethod(HttpMethod.POST).setPathRegex("/dashboards").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateDashboardResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateDashboardResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of CreateDomain CreateDomainRequest
* @return CreateDomainResponse
*/
@Override
public CompletableFuture<CreateDomainResponse> createDomain(CreateDomainRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateDomain").setMethod(HttpMethod.POST).setPathRegex("/domains").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateDomainResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateDomainResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateDownloadJob CreateDownloadJobRequest
* @return CreateDownloadJobResponse
*/
@Override
public CompletableFuture<CreateDownloadJobResponse> createDownloadJob(CreateDownloadJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateDownloadJob").setMethod(HttpMethod.POST).setPathRegex("/downloadjobs").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateDownloadJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateDownloadJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateETL CreateETLRequest
* @return CreateETLResponse
*/
@Override
public CompletableFuture<CreateETLResponse> createETL(CreateETLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateETL").setMethod(HttpMethod.POST).setPathRegex("/etls").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateETLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateETLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of CreateIndex CreateIndexRequest
* @return CreateIndexResponse
*/
@Override
public CompletableFuture<CreateIndexResponse> createIndex(CreateIndexRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateIndex").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/index").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateIndexResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateIndexResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores in each project.</li>
* <li>If the retention period of a log reaches the data retention period that you specified for the Logstore, the log is deleted.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:CreateLogStore</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of CreateLogStore CreateLogStoreRequest
* @return CreateLogStoreResponse
*/
@Override
public CompletableFuture<CreateLogStoreResponse> createLogStore(CreateLogStoreRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateLogStore").setMethod(HttpMethod.POST).setPathRegex("/logstores").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateLogStoreResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateLogStoreResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of CreateLogging CreateLoggingRequest
* @return CreateLoggingResponse
*/
@Override
public CompletableFuture<CreateLoggingResponse> createLogging(CreateLoggingRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateLogging").setMethod(HttpMethod.POST).setPathRegex("/logging").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateLoggingResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateLoggingResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of CreateLogtailPipelineConfig CreateLogtailPipelineConfigRequest
* @return CreateLogtailPipelineConfigResponse
*/
@Override
public CompletableFuture<CreateLogtailPipelineConfigResponse> createLogtailPipelineConfig(CreateLogtailPipelineConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateLogtailPipelineConfig").setMethod(HttpMethod.POST).setPathRegex("/pipelineconfigs").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateLogtailPipelineConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateLogtailPipelineConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of CreateMachineGroup CreateMachineGroupRequest
* @return CreateMachineGroupResponse
*/
@Override
public CompletableFuture<CreateMachineGroupResponse> createMachineGroup(CreateMachineGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateMachineGroup").setMethod(HttpMethod.POST).setPathRegex("/machinegroups").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateMachineGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateMachineGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of CreateMaxComputeExport CreateMaxComputeExportRequest
* @return CreateMaxComputeExportResponse
*/
@Override
public CompletableFuture<CreateMaxComputeExportResponse> createMaxComputeExport(CreateMaxComputeExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateMaxComputeExport").setMethod(HttpMethod.POST).setPathRegex("/maxcomputeexports").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateMaxComputeExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateMaxComputeExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Metricstores are used to store metric data. For more information, see <a href="https://help.aliyun.com/document_detail/174965.html">Metric data</a>.</p>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores or Metricstores in a project.</li>
* <li>Metric data is automatically deleted when the retention period of the metric data ends.</li>
* </ul>
*
* @param request the request parameters of CreateMetricStore CreateMetricStoreRequest
* @return CreateMetricStoreResponse
*/
@Override
public CompletableFuture<CreateMetricStoreResponse> createMetricStore(CreateMetricStoreRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateMetricStore").setMethod(HttpMethod.POST).setPathRegex("/metricstores").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateMetricStoreResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateMetricStoreResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateOSSExport CreateOSSExportRequest
* @return CreateOSSExportResponse
*/
@Override
public CompletableFuture<CreateOSSExportResponse> createOSSExport(CreateOSSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateOSSExport").setMethod(HttpMethod.POST).setPathRegex("/ossexports").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateOSSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateOSSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateOSSHDFSExport CreateOSSHDFSExportRequest
* @return CreateOSSHDFSExportResponse
*/
@Override
public CompletableFuture<CreateOSSHDFSExportResponse> createOSSHDFSExport(CreateOSSHDFSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateOSSHDFSExport").setMethod(HttpMethod.POST).setPathRegex("/osshdfsexports").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateOSSHDFSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateOSSHDFSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateOSSIngestion CreateOSSIngestionRequest
* @return CreateOSSIngestionResponse
*/
@Override
public CompletableFuture<CreateOSSIngestionResponse> createOSSIngestion(CreateOSSIngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateOSSIngestion").setMethod(HttpMethod.POST).setPathRegex("/ossingestions").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateOSSIngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateOSSIngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateProject CreateProjectRequest
* @return CreateProjectResponse
*/
@Override
public CompletableFuture<CreateProjectResponse> createProject(CreateProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateProject").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateS3Ingestion CreateS3IngestionRequest
* @return CreateS3IngestionResponse
*/
@Override
public CompletableFuture<CreateS3IngestionResponse> createS3Ingestion(CreateS3IngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateS3Ingestion").setMethod(HttpMethod.POST).setPathRegex("/s3ingestions").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateS3IngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateS3IngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:CreateSavedSearch</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of CreateSavedSearch CreateSavedSearchRequest
* @return CreateSavedSearchResponse
*/
@Override
public CompletableFuture<CreateSavedSearchResponse> createSavedSearch(CreateSavedSearchRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateSavedSearch").setMethod(HttpMethod.POST).setPathRegex("/savedsearches").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateSavedSearchResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateSavedSearchResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateScheduledSQL CreateScheduledSQLRequest
* @return CreateScheduledSQLResponse
*/
@Override
public CompletableFuture<CreateScheduledSQLResponse> createScheduledSQL(CreateScheduledSQLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateScheduledSQL").setMethod(HttpMethod.POST).setPathRegex("/scheduledsqls").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateScheduledSQLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateScheduledSQLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>*Before you call this operation, make sure that you fully understand the <a href="https://help.aliyun.com/document_detail/223777.html">billing</a> of Dedicated SQL.</p>
*
* @param request the request parameters of CreateSqlInstance CreateSqlInstanceRequest
* @return CreateSqlInstanceResponse
*/
@Override
public CompletableFuture<CreateSqlInstanceResponse> createSqlInstance(CreateSqlInstanceRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateSqlInstance").setMethod(HttpMethod.POST).setPathRegex("/sqlinstance").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateSqlInstanceResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateSqlInstanceResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateStoreView CreateStoreViewRequest
* @return CreateStoreViewResponse
*/
@Override
public CompletableFuture<CreateStoreViewResponse> createStoreView(CreateStoreViewRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateStoreView").setMethod(HttpMethod.POST).setPathRegex("/storeviews").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateStoreViewResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateStoreViewResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateTicket CreateTicketRequest
* @return CreateTicketResponse
*/
@Override
public CompletableFuture<CreateTicketResponse> createTicket(CreateTicketRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateTicket").setMethod(HttpMethod.POST).setPathRegex("/tickets").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateTicketResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateTicketResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteAgentInstanceConfig DeleteAgentInstanceConfigRequest
* @return DeleteAgentInstanceConfigResponse
*/
@Override
public CompletableFuture<DeleteAgentInstanceConfigResponse> deleteAgentInstanceConfig(DeleteAgentInstanceConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteAgentInstanceConfig").setMethod(HttpMethod.DELETE).setPathRegex("/agentinstanceconfigs/{configType}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAgentInstanceConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAgentInstanceConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteAlert DeleteAlertRequest
* @return DeleteAlertResponse
*/
@Override
public CompletableFuture<DeleteAlertResponse> deleteAlert(DeleteAlertRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteAlert").setMethod(HttpMethod.DELETE).setPathRegex("/alerts/{alertName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAlertResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAlertResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteAnnotationData DeleteAnnotationDataRequest
* @return DeleteAnnotationDataResponse
*/
@Override
public CompletableFuture<DeleteAnnotationDataResponse> deleteAnnotationData(DeleteAnnotationDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteAnnotationData").setMethod(HttpMethod.DELETE).setPathRegex("/ml/annotationdataset/{datasetId}/annotationdata/{annotationdataId}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAnnotationDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAnnotationDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can delete a dataset only if no data exists in the dataset.</p>
*
* @param request the request parameters of DeleteAnnotationDataSet DeleteAnnotationDataSetRequest
* @return DeleteAnnotationDataSetResponse
*/
@Override
public CompletableFuture<DeleteAnnotationDataSetResponse> deleteAnnotationDataSet(DeleteAnnotationDataSetRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteAnnotationDataSet").setMethod(HttpMethod.DELETE).setPathRegex("/ml/annotationdataset/{datasetId}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAnnotationDataSetResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAnnotationDataSetResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Only non-built-in tags can be deleted.</p>
*
* @param request the request parameters of DeleteAnnotationLabel DeleteAnnotationLabelRequest
* @return DeleteAnnotationLabelResponse
*/
@Override
public CompletableFuture<DeleteAnnotationLabelResponse> deleteAnnotationLabel(DeleteAnnotationLabelRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteAnnotationLabel").setMethod(HttpMethod.DELETE).setPathRegex("/ml/annotationlabel/{labelId}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAnnotationLabelResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAnnotationLabelResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.</p>
*
* @param request the request parameters of DeleteCollectionPolicy DeleteCollectionPolicyRequest
* @return DeleteCollectionPolicyResponse
*/
@Override
public CompletableFuture<DeleteCollectionPolicyResponse> deleteCollectionPolicy(DeleteCollectionPolicyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteCollectionPolicy").setMethod(HttpMethod.DELETE).setPathRegex("/collectionpolicy/{policyName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteCollectionPolicyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteCollectionPolicyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>If a Logtail configuration is applied to a machine group, you cannot collect data from the machine group after you delete the Logtail configuration.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>The name of the required Logtail configuration is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29043.html">ListConfig</a>.</li>
* </ul>
*
* @param request the request parameters of DeleteConfig DeleteConfigRequest
* @return DeleteConfigResponse
*/
@Override
public CompletableFuture<DeleteConfigResponse> deleteConfig(DeleteConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteConfig").setMethod(HttpMethod.DELETE).setPathRegex("/configs/{configName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteConsumeProcessor DeleteConsumeProcessorRequest
* @return DeleteConsumeProcessorResponse
*/
@Override
public CompletableFuture<DeleteConsumeProcessorResponse> deleteConsumeProcessor(DeleteConsumeProcessorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteConsumeProcessor").setMethod(HttpMethod.DELETE).setPathRegex("/consumeprocessors/{processorName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteConsumeProcessorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteConsumeProcessorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>The name of the consumer group is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/74964.html">ListConsumerGroup</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:DeleteConsumerGroup</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DeleteConsumerGroup DeleteConsumerGroupRequest
* @return DeleteConsumerGroupResponse
*/
@Override
public CompletableFuture<DeleteConsumerGroupResponse> deleteConsumerGroup(DeleteConsumerGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteConsumerGroup").setMethod(HttpMethod.DELETE).setPathRegex("/logstores/{logstore}/consumergroups/{consumerGroup}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteConsumerGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteConsumerGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of DeleteDashboard DeleteDashboardRequest
* @return DeleteDashboardResponse
*/
@Override
public CompletableFuture<DeleteDashboardResponse> deleteDashboard(DeleteDashboardRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteDashboard").setMethod(HttpMethod.DELETE).setPathRegex("/dashboards/{dashboardName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteDashboardResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteDashboardResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of DeleteDomain DeleteDomainRequest
* @return DeleteDomainResponse
*/
@Override
public CompletableFuture<DeleteDomainResponse> deleteDomain(DeleteDomainRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteDomain").setMethod(HttpMethod.DELETE).setPathRegex("/domains/{domainName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteDomainResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteDomainResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteDownloadJob DeleteDownloadJobRequest
* @return DeleteDownloadJobResponse
*/
@Override
public CompletableFuture<DeleteDownloadJobResponse> deleteDownloadJob(DeleteDownloadJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteDownloadJob").setMethod(HttpMethod.DELETE).setPathRegex("/downloadjobs/{downloadJobName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteDownloadJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteDownloadJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteETL DeleteETLRequest
* @return DeleteETLResponse
*/
@Override
public CompletableFuture<DeleteETLResponse> deleteETL(DeleteETLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteETL").setMethod(HttpMethod.DELETE).setPathRegex("/etls/{etlName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteETLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteETLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of DeleteIndex DeleteIndexRequest
* @return DeleteIndexResponse
*/
@Override
public CompletableFuture<DeleteIndexResponse> deleteIndex(DeleteIndexRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteIndex").setMethod(HttpMethod.DELETE).setPathRegex("/logstores/{logstore}/index").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteIndexResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteIndexResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteIngestProcessor DeleteIngestProcessorRequest
* @return DeleteIngestProcessorResponse
*/
@Override
public CompletableFuture<DeleteIngestProcessorResponse> deleteIngestProcessor(DeleteIngestProcessorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteIngestProcessor").setMethod(HttpMethod.DELETE).setPathRegex("/ingestprocessors/{processorName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteIngestProcessorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteIngestProcessorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of DeleteLogStore DeleteLogStoreRequest
* @return DeleteLogStoreResponse
*/
@Override
public CompletableFuture<DeleteLogStoreResponse> deleteLogStore(DeleteLogStoreRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteLogStore").setMethod(HttpMethod.DELETE).setPathRegex("/logstores/{logstore}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteLogStoreResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteLogStoreResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteLogging DeleteLoggingRequest
* @return DeleteLoggingResponse
*/
@Override
public CompletableFuture<DeleteLoggingResponse> deleteLogging(DeleteLoggingRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteLogging").setMethod(HttpMethod.DELETE).setPathRegex("/logging").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteLoggingResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteLoggingResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of DeleteLogtailPipelineConfig DeleteLogtailPipelineConfigRequest
* @return DeleteLogtailPipelineConfigResponse
*/
@Override
public CompletableFuture<DeleteLogtailPipelineConfigResponse> deleteLogtailPipelineConfig(DeleteLogtailPipelineConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteLogtailPipelineConfig").setMethod(HttpMethod.DELETE).setPathRegex("/pipelineconfigs/{configName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteLogtailPipelineConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteLogtailPipelineConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of DeleteMachineGroup DeleteMachineGroupRequest
* @return DeleteMachineGroupResponse
*/
@Override
public CompletableFuture<DeleteMachineGroupResponse> deleteMachineGroup(DeleteMachineGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteMachineGroup").setMethod(HttpMethod.DELETE).setPathRegex("/machinegroups/{machineGroup}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteMachineGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteMachineGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of DeleteMaxComputeExport DeleteMaxComputeExportRequest
* @return DeleteMaxComputeExportResponse
*/
@Override
public CompletableFuture<DeleteMaxComputeExportResponse> deleteMaxComputeExport(DeleteMaxComputeExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteMaxComputeExport").setMethod(HttpMethod.DELETE).setPathRegex("/maxcomputeexports/{mcExportName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteMaxComputeExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteMaxComputeExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Metricstores are used to store metric data. For more information, see <a href="https://help.aliyun.com/document_detail/174965.html">Metric data</a>.</p>
* <ul>
* <li>You must specify an existing Metricstore.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores or Metricstores in a project.</li>
* <li>Metric data is automatically deleted when the retention period of the metric data ends.</li>
* </ul>
*
* @param request the request parameters of DeleteMetricStore DeleteMetricStoreRequest
* @return DeleteMetricStoreResponse
*/
@Override
public CompletableFuture<DeleteMetricStoreResponse> deleteMetricStore(DeleteMetricStoreRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteMetricStore").setMethod(HttpMethod.DELETE).setPathRegex("/metricstores/{name}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteMetricStoreResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteMetricStoreResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteOSSExport DeleteOSSExportRequest
* @return DeleteOSSExportResponse
*/
@Override
public CompletableFuture<DeleteOSSExportResponse> deleteOSSExport(DeleteOSSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteOSSExport").setMethod(HttpMethod.DELETE).setPathRegex("/ossexports/{ossExportName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteOSSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteOSSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteOSSHDFSExport DeleteOSSHDFSExportRequest
* @return DeleteOSSHDFSExportResponse
*/
@Override
public CompletableFuture<DeleteOSSHDFSExportResponse> deleteOSSHDFSExport(DeleteOSSHDFSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteOSSHDFSExport").setMethod(HttpMethod.DELETE).setPathRegex("/osshdfsexports/{ossExportName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteOSSHDFSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteOSSHDFSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteOSSIngestion DeleteOSSIngestionRequest
* @return DeleteOSSIngestionResponse
*/
@Override
public CompletableFuture<DeleteOSSIngestionResponse> deleteOSSIngestion(DeleteOSSIngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteOSSIngestion").setMethod(HttpMethod.DELETE).setPathRegex("/ossingestions/{ossIngestionName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteOSSIngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteOSSIngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>After you delete a project, all logs stored in the project and the configurations of the project are deleted and cannot be restored. Proceed with caution.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:DeleteProject</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DeleteProject DeleteProjectRequest
* @return DeleteProjectResponse
*/
@Override
public CompletableFuture<DeleteProjectResponse> deleteProject(DeleteProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteProject").setMethod(HttpMethod.DELETE).setPathRegex("/").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of DeleteProjectPolicy DeleteProjectPolicyRequest
* @return DeleteProjectPolicyResponse
*/
@Override
public CompletableFuture<DeleteProjectPolicyResponse> deleteProjectPolicy(DeleteProjectPolicyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteProjectPolicy").setMethod(HttpMethod.DELETE).setPathRegex("/policy").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteProjectPolicyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteProjectPolicyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteS3Ingestion DeleteS3IngestionRequest
* @return DeleteS3IngestionResponse
*/
@Override
public CompletableFuture<DeleteS3IngestionResponse> deleteS3Ingestion(DeleteS3IngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteS3Ingestion").setMethod(HttpMethod.DELETE).setPathRegex("/s3ingestions/{s3IngestionName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteS3IngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteS3IngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>After you delete a saved search, it cannot be restored. Proceed with caution.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:DeleteSavedSearch</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DeleteSavedSearch DeleteSavedSearchRequest
* @return DeleteSavedSearchResponse
*/
@Override
public CompletableFuture<DeleteSavedSearchResponse> deleteSavedSearch(DeleteSavedSearchRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteSavedSearch").setMethod(HttpMethod.DELETE).setPathRegex("/savedsearches/{savedsearchName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteSavedSearchResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteSavedSearchResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteScheduledSQL DeleteScheduledSQLRequest
* @return DeleteScheduledSQLResponse
*/
@Override
public CompletableFuture<DeleteScheduledSQLResponse> deleteScheduledSQL(DeleteScheduledSQLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteScheduledSQL").setMethod(HttpMethod.DELETE).setPathRegex("/scheduledsqls/{scheduledSQLName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteScheduledSQLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteScheduledSQLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteStoreView DeleteStoreViewRequest
* @return DeleteStoreViewResponse
*/
@Override
public CompletableFuture<DeleteStoreViewResponse> deleteStoreView(DeleteStoreViewRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteStoreView").setMethod(HttpMethod.DELETE).setPathRegex("/storeviews/{name}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteStoreViewResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteStoreViewResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeRegions DescribeRegionsRequest
* @return DescribeRegionsResponse
*/
@Override
public CompletableFuture<DescribeRegionsResponse> describeRegions(DescribeRegionsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DescribeRegions").setMethod(HttpMethod.GET).setPathRegex("/regions").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeRegionsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeRegionsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DisableAlert DisableAlertRequest
* @return DisableAlertResponse
*/
@Override
public CompletableFuture<DisableAlertResponse> disableAlert(DisableAlertRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DisableAlert").setMethod(HttpMethod.PUT).setPathRegex("/alerts/{alertName}?action=disable").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DisableAlertResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DisableAlertResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DisableScheduledSQL DisableScheduledSQLRequest
* @return DisableScheduledSQLResponse
*/
@Override
public CompletableFuture<DisableScheduledSQLResponse> disableScheduledSQL(DisableScheduledSQLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DisableScheduledSQL").setMethod(HttpMethod.PUT).setPathRegex("/scheduledsqls/{scheduledSQLName}?action=disable").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DisableScheduledSQLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DisableScheduledSQLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of EnableAlert EnableAlertRequest
* @return EnableAlertResponse
*/
@Override
public CompletableFuture<EnableAlertResponse> enableAlert(EnableAlertRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("EnableAlert").setMethod(HttpMethod.PUT).setPathRegex("/alerts/{alertName}?action=enable").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(EnableAlertResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<EnableAlertResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of EnableScheduledSQL EnableScheduledSQLRequest
* @return EnableScheduledSQLResponse
*/
@Override
public CompletableFuture<EnableScheduledSQLResponse> enableScheduledSQL(EnableScheduledSQLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("EnableScheduledSQL").setMethod(HttpMethod.PUT).setPathRegex("/scheduledsqls/{scheduledSQLName}?action=enable").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(EnableScheduledSQLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<EnableScheduledSQLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetAgentInstanceConfig GetAgentInstanceConfigRequest
* @return GetAgentInstanceConfigResponse
*/
@Override
public CompletableFuture<GetAgentInstanceConfigResponse> getAgentInstanceConfig(GetAgentInstanceConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetAgentInstanceConfig").setMethod(HttpMethod.GET).setPathRegex("/agentinstanceconfigs/{configType}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAgentInstanceConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAgentInstanceConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetAlert GetAlertRequest
* @return GetAlertResponse
*/
@Override
public CompletableFuture<GetAlertResponse> getAlert(GetAlertRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetAlert").setMethod(HttpMethod.GET).setPathRegex("/alerts/{alertName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAlertResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAlertResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetAnnotationData GetAnnotationDataRequest
* @return GetAnnotationDataResponse
*/
@Override
public CompletableFuture<GetAnnotationDataResponse> getAnnotationData(GetAnnotationDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetAnnotationData").setMethod(HttpMethod.GET).setPathRegex("/ml/annotationdataset/{datasetId}/annotationdata/{annotationdataId}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAnnotationDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAnnotationDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetAnnotationDataSet GetAnnotationDataSetRequest
* @return GetAnnotationDataSetResponse
*/
@Override
public CompletableFuture<GetAnnotationDataSetResponse> getAnnotationDataSet(GetAnnotationDataSetRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetAnnotationDataSet").setMethod(HttpMethod.GET).setPathRegex("/ml/annotationdataset/{datasetId}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAnnotationDataSetResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAnnotationDataSetResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetAnnotationLabel GetAnnotationLabelRequest
* @return GetAnnotationLabelResponse
*/
@Override
public CompletableFuture<GetAnnotationLabelResponse> getAnnotationLabel(GetAnnotationLabelRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetAnnotationLabel").setMethod(HttpMethod.GET).setPathRegex("/ml/annotationlabel/{labelId}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAnnotationLabelResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAnnotationLabelResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetAppliedConfigs GetAppliedConfigsRequest
* @return GetAppliedConfigsResponse
*/
@Override
public CompletableFuture<GetAppliedConfigsResponse> getAppliedConfigs(GetAppliedConfigsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetAppliedConfigs").setMethod(HttpMethod.GET).setPathRegex("/machinegroups/{machineGroup}/configs").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAppliedConfigsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAppliedConfigsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetAppliedMachineGroups GetAppliedMachineGroupsRequest
* @return GetAppliedMachineGroupsResponse
*/
@Override
public CompletableFuture<GetAppliedMachineGroupsResponse> getAppliedMachineGroups(GetAppliedMachineGroupsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetAppliedMachineGroups").setMethod(HttpMethod.GET).setPathRegex("/configs/{configName}/machinegroups").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAppliedMachineGroupsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAppliedMachineGroupsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetCheckPoint GetCheckPointRequest
* @return GetCheckPointResponse
*/
@Override
public CompletableFuture<GetCheckPointResponse> getCheckPoint(GetCheckPointRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetCheckPoint").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}/consumergroups/{consumerGroup}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetCheckPointResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetCheckPointResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.</p>
*
* @param request the request parameters of GetCollectionPolicy GetCollectionPolicyRequest
* @return GetCollectionPolicyResponse
*/
@Override
public CompletableFuture<GetCollectionPolicyResponse> getCollectionPolicy(GetCollectionPolicyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetCollectionPolicy").setMethod(HttpMethod.GET).setPathRegex("/collectionpolicy/{policyName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetCollectionPolicyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetCollectionPolicyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>The name of the required Logtail configuration is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29043.html">ListConfig</a>.</li>
* </ul>
*
* @param request the request parameters of GetConfig GetConfigRequest
* @return GetConfigResponse
*/
@Override
public CompletableFuture<GetConfigResponse> getConfig(GetConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetConfig").setMethod(HttpMethod.GET).setPathRegex("/configs/{configName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetConsumeProcessor GetConsumeProcessorRequest
* @return GetConsumeProcessorResponse
*/
@Override
public CompletableFuture<GetConsumeProcessorResponse> getConsumeProcessor(GetConsumeProcessorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetConsumeProcessor").setMethod(HttpMethod.GET).setPathRegex("/consumeprocessors/{processorName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetConsumeProcessorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetConsumeProcessorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>You can specify a log as the start log. The time range of a contextual query is one day before and one day after the generation time of the start log.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Indexes are configured before you query logs. For more information, see <a href="https://help.aliyun.com/document_detail/90732.html">Create indexes</a>.</li>
* <li>The values of the pack_id and pack_meta fields are obtained before you query logs. The fields are internal fields, and you can obtain the values by using the debugging feature of your browser in the Simple Log Service console.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetLogStoreContextLogs</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetContextLogs GetContextLogsRequest
* @return GetContextLogsResponse
*/
@Override
public CompletableFuture<GetContextLogsResponse> getContextLogs(GetContextLogsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetContextLogs").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}?type=context_log").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetContextLogsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetContextLogsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>The following content describes the relationships among a cursor, project, Logstore, and shard:<ul>
* <li>A project can have multiple Logstores.</li>
* <li>A Logstore can have multiple shards.</li>
* <li>You can use a cursor to obtain a log in a shard.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of GetCursor GetCursorRequest
* @return GetCursorResponse
*/
@Override
public CompletableFuture<GetCursorResponse> getCursor(GetCursorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetCursor").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}/shards/{shardId}?type=cursor").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetCursorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetCursorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetCursorTime GetCursorTimeRequest
* @return GetCursorTimeResponse
*/
@Override
public CompletableFuture<GetCursorTimeResponse> getCursorTime(GetCursorTimeRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetCursorTime").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}/shards/{shardId}?type=cursor_time").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetCursorTimeResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetCursorTimeResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of GetDashboard GetDashboardRequest
* @return GetDashboardResponse
*/
@Override
public CompletableFuture<GetDashboardResponse> getDashboard(GetDashboardRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetDashboard").setMethod(HttpMethod.GET).setPathRegex("/dashboards/{dashboardName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetDashboardResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetDashboardResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetDownloadJob GetDownloadJobRequest
* @return GetDownloadJobResponse
*/
@Override
public CompletableFuture<GetDownloadJobResponse> getDownloadJob(GetDownloadJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetDownloadJob").setMethod(HttpMethod.GET).setPathRegex("/downloadjobs/{downloadJobName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetDownloadJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetDownloadJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetETL GetETLRequest
* @return GetETLResponse
*/
@Override
public CompletableFuture<GetETLResponse> getETL(GetETLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetETL").setMethod(HttpMethod.GET).setPathRegex("/etls/{etlName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetETLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetETLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>The time range is evenly divided into subintervals in the responses. If the time range that is specified in the request remains unchanged, the subintervals in the responses also remain unchanged.</li>
* <li>If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete result. In this case, you must check the value of the progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete result. Each time you call this operation, the same number of charge units (CUs) are consumed.</li>
* <li>After a log is written to a Logstore, you can call the GetHistograms or GetLogs operation to query the log after a short latency. The latency of a query varies based on the type of the log. Simple Log Service classifies logs into the following types based on the log time:<ul>
* <li>Real-time data: The difference between the time record in a log and the current time on Simple Log Service is within the interval (-180 seconds,900 seconds]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as real-time data. After real-time data is written to a Logstore, the data can be queried with a maximum latency of 3 seconds.</li>
* <li>Historical data: The difference between the time record in a log and the current time on Simple Log Service is within the interval [-604,800 seconds,-180 seconds). For example, if a log was generated at 12:00:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as historical data. This type of log is usually generated in data backfill scenarios.
* After real-time data is written to a Logstore, the data can be queried with a maximum latency of 3 seconds. For 99.9% of queries, the latency is no more than 1 second.<blockquote>
* <p>Simple Log Service calculates the difference between the log time that is specified by the <strong>time</strong> field and the receiving time that is specified by the <strong>tag</strong>:<strong>receive_time</strong> field for each log. The receiving time indicates the time at which Simple Log Service receives the log. If the difference is within the interval (-180 seconds,900 seconds], Simple Log Service processes the log as real-time data. If the difference is within the interval [-604,800 seconds,-180 seconds), Simple Log Service processes the log as historical data.</p>
* </blockquote>
* </li>
* </ul>
* </li>
* <li>Simple Log Service provides examples on how to call the GetHistograms operation by using Simple Log Service SDK for Java. For more information, see <a href="https://help.aliyun.com/document_detail/462234.html">Use GetHistograms to query the distribution of logs</a>.</li>
* </ul>
*
* @param request the request parameters of GetHistograms GetHistogramsRequest
* @return GetHistogramsResponse
*/
@Override
public CompletableFuture<GetHistogramsResponse> getHistograms(GetHistogramsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetHistograms").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}/index?type=histogram").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetHistogramsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetHistogramsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetIndex GetIndexRequest
* @return GetIndexResponse
*/
@Override
public CompletableFuture<GetIndexResponse> getIndex(GetIndexRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetIndex").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}/index").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetIndexResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetIndexResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetIngestProcessor GetIngestProcessorRequest
* @return GetIngestProcessorResponse
*/
@Override
public CompletableFuture<GetIngestProcessorResponse> getIngestProcessor(GetIngestProcessorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetIngestProcessor").setMethod(HttpMethod.GET).setPathRegex("/ingestprocessors/{processorName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetIngestProcessorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetIngestProcessorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetLogStore GetLogStoreRequest
* @return GetLogStoreResponse
*/
@Override
public CompletableFuture<GetLogStoreResponse> getLogStore(GetLogStoreRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetLogStore").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetLogStoreResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetLogStoreResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetLogStoreMeteringMode GetLogStoreMeteringModeRequest
* @return GetLogStoreMeteringModeResponse
*/
@Override
public CompletableFuture<GetLogStoreMeteringModeResponse> getLogStoreMeteringMode(GetLogStoreMeteringModeRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetLogStoreMeteringMode").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}/meteringmode").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetLogStoreMeteringModeResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetLogStoreMeteringModeResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetLogging GetLoggingRequest
* @return GetLoggingResponse
*/
@Override
public CompletableFuture<GetLoggingResponse> getLogging(GetLoggingRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetLogging").setMethod(HttpMethod.GET).setPathRegex("/logging").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetLoggingResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetLoggingResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p><strong>Note</strong> Simple Log Service allows you to create a Scheduled SQL job. For more information, see <a href="https://help.aliyun.com/document_detail/286457.html">Create a scheduled SQL job</a>.</p>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</li>
* <li>Indexes are configured before you query logs. For more information, see <a href="https://help.aliyun.com/document_detail/90732.html">Create indexes</a>.</li>
* <li>If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete results. In this case, you must check the value of the x-log-progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete results. Each time you call this operation, the same number of charge units (CUs) are consumed.</li>
* <li>After a log is written to a Logstore, you can call the GetHistograms or the GetLogs operation to query the log. The latency of the query varies based on the type of the log. Simple Log Service classifies logs into the following types based on log timestamps:<ul>
* <li>Real-time data: The difference between the time record in a log of this type and the current time on Simple Log Service is within the interval (-180 seconds,900 seconds\]. For example, if a log was generated at 12:03:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as real-time data. This type of log is usually generated in common scenarios.</li>
* <li>Historical data: The difference between the time record in a log of this type and the current time on Simple Log Service is within the interval [-604,800 seconds,-180 seconds). For example, if a log was generated at 12:00:00, September 25, 2014 (UTC) and Simple Log Service received the log at 12:05:00, September 25, 2014 (UTC), Simple Log Service processes the log as historical data. This type of log is usually generated in data backfill scenarios. After real-time data is written to a Logstore, the data can be queried with an approximate latency of 3 seconds.
* <strong>Note</strong> Simple Log Service calculates the difference between the log time that is specified by the <strong>time</strong> field and the receiving time that is specified by the <strong>tag</strong>:<strong>receive_time</strong> field for each log. The receiving time indicates when Simple Log Service receives the log. If the difference is within the interval (-180 seconds,900 seconds\], Simple Log Service processes the log as real-time data. If the difference is within the interval [-604,800 seconds,-180 seconds), Simple Log Service processes the log as historical data.</li>
* </ul>
* </li>
* <li>Simple Log Service provides examples on how to call the GetLogs operation by using Simple Log Service SDK for Java and Simple Log Service SDK for Python. For more information, see <a href="https://help.aliyun.com/document_detail/407683.html">Examples of calling the GetLogs operation by using Simple Log Service SDK for Java</a> and <a href="https://help.aliyun.com/document_detail/407684.html">Examples of calling the GetLogs operation by using Simple Log Service SDK for Python</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetLogStoreLogs</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetLogs GetLogsRequest
* @return GetLogsResponse
*/
@Override
public CompletableFuture<GetLogsResponse> getLogs(GetLogsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetLogs").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}?type=log").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetLogsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetLogsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation by using Simple Log Service SDK for Go, Java, or Python. You can call this operation by using Alibaba Cloud SDK for all programming languages.</p>
* <ul>
* <li>When you call this operation, take note of the compression method that you use. The supported compression algorithms vary based on the programming language. For more information, see the description of the Accept-Encoding parameter in this topic.</li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/2771313.html">GetLogs</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a Resource Access Management (RAM) policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetLogStoreLogs</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetLogsV2 GetLogsV2Request
* @return GetLogsV2Response
*/
@Override
public CompletableFuture<GetLogsV2Response> getLogsV2(GetLogsV2Request request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetLogsV2").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/logs").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetLogsV2Response.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetLogsV2Response> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of GetLogtailPipelineConfig GetLogtailPipelineConfigRequest
* @return GetLogtailPipelineConfigResponse
*/
@Override
public CompletableFuture<GetLogtailPipelineConfigResponse> getLogtailPipelineConfig(GetLogtailPipelineConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetLogtailPipelineConfig").setMethod(HttpMethod.GET).setPathRegex("/pipelineconfigs/{configName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetLogtailPipelineConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetLogtailPipelineConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You must obtain the following basic permissions before you call this operation:
* {
* "Version": "1",
* "Statement": [
* {
* "Action": [
* "log:Get*"
* ],
* "Resource": [
* "acs:log:<em>:</em>:mlservice/sls_builtin_*"
* ],
* "Effect": "Allow"
* }
* ]
* }</p>
*
* @param request the request parameters of GetMLServiceResults GetMLServiceResultsRequest
* @return GetMLServiceResultsResponse
*/
@Override
public CompletableFuture<GetMLServiceResultsResponse> getMLServiceResults(GetMLServiceResultsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetMLServiceResults").setMethod(HttpMethod.POST).setPathRegex("/ml/service/{serviceName}/analysis").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMLServiceResultsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMLServiceResultsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetMachineGroup GetMachineGroupRequest
* @return GetMachineGroupResponse
*/
@Override
public CompletableFuture<GetMachineGroupResponse> getMachineGroup(GetMachineGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetMachineGroup").setMethod(HttpMethod.GET).setPathRegex("/machinegroups/{machineGroup}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMachineGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMachineGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of GetMaxComputeExport GetMaxComputeExportRequest
* @return GetMaxComputeExportResponse
*/
@Override
public CompletableFuture<GetMaxComputeExportResponse> getMaxComputeExport(GetMaxComputeExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetMaxComputeExport").setMethod(HttpMethod.GET).setPathRegex("/maxcomputeexports/{mcExportName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMaxComputeExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMaxComputeExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Metricstores are used to store metric data. For more information about Metricstores, see <a href="https://help.aliyun.com/document_detail/171723.html">Metricstores</a>. For more information about metric data, see <a href="https://help.aliyun.com/document_detail/174965.html">Metric data</a>. You can call this operation to query the settings of a Metricstore. To query the metric data in a Metricstore, see <a href="https://help.aliyun.com/document_detail/174968.html">Query and analysis</a> and <a href="https://help.aliyun.com/document_detail/2771318.html">GetLogsV2</a>.</p>
* <ul>
* <li>You must specify an existing Metricstore.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores or Metricstores in a project.</li>
* <li>Metric data is automatically deleted when the retention period of the metric data ends.</li>
* </ul>
*
* @param request the request parameters of GetMetricStore GetMetricStoreRequest
* @return GetMetricStoreResponse
*/
@Override
public CompletableFuture<GetMetricStoreResponse> getMetricStore(GetMetricStoreRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetMetricStore").setMethod(HttpMethod.GET).setPathRegex("/metricstores/{name}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMetricStoreResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMetricStoreResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetMetricStoreMeteringMode GetMetricStoreMeteringModeRequest
* @return GetMetricStoreMeteringModeResponse
*/
@Override
public CompletableFuture<GetMetricStoreMeteringModeResponse> getMetricStoreMeteringMode(GetMetricStoreMeteringModeRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetMetricStoreMeteringMode").setMethod(HttpMethod.GET).setPathRegex("/metricstores/{metricStore}/meteringmode").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMetricStoreMeteringModeResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMetricStoreMeteringModeResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetOSSExport GetOSSExportRequest
* @return GetOSSExportResponse
*/
@Override
public CompletableFuture<GetOSSExportResponse> getOSSExport(GetOSSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetOSSExport").setMethod(HttpMethod.GET).setPathRegex("/ossexports/{ossExportName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetOSSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetOSSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetOSSHDFSExport GetOSSHDFSExportRequest
* @return GetOSSHDFSExportResponse
*/
@Override
public CompletableFuture<GetOSSHDFSExportResponse> getOSSHDFSExport(GetOSSHDFSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetOSSHDFSExport").setMethod(HttpMethod.GET).setPathRegex("/osshdfsexports/{ossExportName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetOSSHDFSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetOSSHDFSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetOSSIngestion GetOSSIngestionRequest
* @return GetOSSIngestionResponse
*/
@Override
public CompletableFuture<GetOSSIngestionResponse> getOSSIngestion(GetOSSIngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetOSSIngestion").setMethod(HttpMethod.GET).setPathRegex("/ossingestions/{ossIngestionName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetOSSIngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetOSSIngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of GetProject GetProjectRequest
* @return GetProjectResponse
*/
@Override
public CompletableFuture<GetProjectResponse> getProject(GetProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetProject").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>Indexes are configured before you query logs. For more information, see <a href="https://help.aliyun.com/document_detail/90732.html">Create indexes</a>.</li>
* <li>Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</li>
* <li>You must set query to a standard SQL statement.</li>
* <li>You must specify a Logstore in the FROM clause of an SQL statement. A Logstore can be used as an SQL table.</li>
* <li>You must specify a time range in an SQL statement by using the <strong>date</strong> or <strong>time</strong> parameter. The value of the <strong>date</strong> parameter is a timestamp. The value of the <strong>time</strong> parameter is an integer, and the unit of the value is seconds.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetProjectLogs</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetProjectLogs GetProjectLogsRequest
* @return GetProjectLogsResponse
*/
@Override
public CompletableFuture<GetProjectLogsResponse> getProjectLogs(GetProjectLogsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetProjectLogs").setMethod(HttpMethod.GET).setPathRegex("/logs").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetProjectLogsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetProjectLogsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of GetProjectPolicy GetProjectPolicyRequest
* @return GetProjectPolicyResponse
*/
@Override
public CompletableFuture<GetProjectPolicyResponse> getProjectPolicy(GetProjectPolicyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetProjectPolicy").setMethod(HttpMethod.GET).setPathRegex("/policy").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetProjectPolicyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetProjectPolicyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetS3Ingestion GetS3IngestionRequest
* @return GetS3IngestionResponse
*/
@Override
public CompletableFuture<GetS3IngestionResponse> getS3Ingestion(GetS3IngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetS3Ingestion").setMethod(HttpMethod.GET).setPathRegex("/s3ingestions/{s3IngestionName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetS3IngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetS3IngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>You can call the ListSavedSearch operation to query the name of a saved search.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:GetSavedSearch</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of GetSavedSearch GetSavedSearchRequest
* @return GetSavedSearchResponse
*/
@Override
public CompletableFuture<GetSavedSearchResponse> getSavedSearch(GetSavedSearchRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetSavedSearch").setMethod(HttpMethod.GET).setPathRegex("/savedsearches/{savedsearchName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetSavedSearchResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetSavedSearchResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetScheduledSQL GetScheduledSQLRequest
* @return GetScheduledSQLResponse
*/
@Override
public CompletableFuture<GetScheduledSQLResponse> getScheduledSQL(GetScheduledSQLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetScheduledSQL").setMethod(HttpMethod.GET).setPathRegex("/scheduledsqls/{scheduledSQLName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetScheduledSQLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetScheduledSQLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetSlsService GetSlsServiceRequest
* @return GetSlsServiceResponse
*/
@Override
public CompletableFuture<GetSlsServiceResponse> getSlsService(GetSlsServiceRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetSlsService").setMethod(HttpMethod.GET).setPathRegex("/slsservice").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetSlsServiceResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetSlsServiceResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetSqlInstance GetSqlInstanceRequest
* @return GetSqlInstanceResponse
*/
@Override
public CompletableFuture<GetSqlInstanceResponse> getSqlInstance(GetSqlInstanceRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetSqlInstance").setMethod(HttpMethod.GET).setPathRegex("/sqlinstance").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetSqlInstanceResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetSqlInstanceResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetStoreView GetStoreViewRequest
* @return GetStoreViewResponse
*/
@Override
public CompletableFuture<GetStoreViewResponse> getStoreView(GetStoreViewRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetStoreView").setMethod(HttpMethod.GET).setPathRegex("/storeviews/{name}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStoreViewResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetStoreViewResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetStoreViewIndex GetStoreViewIndexRequest
* @return GetStoreViewIndexResponse
*/
@Override
public CompletableFuture<GetStoreViewIndexResponse> getStoreViewIndex(GetStoreViewIndexRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetStoreViewIndex").setMethod(HttpMethod.GET).setPathRegex("/storeviews/{name}/index").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStoreViewIndexResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetStoreViewIndexResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListAgentInstanceConfigs ListAgentInstanceConfigsRequest
* @return ListAgentInstanceConfigsResponse
*/
@Override
public CompletableFuture<ListAgentInstanceConfigsResponse> listAgentInstanceConfigs(ListAgentInstanceConfigsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListAgentInstanceConfigs").setMethod(HttpMethod.GET).setPathRegex("/agentinstanceconfigs").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAgentInstanceConfigsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAgentInstanceConfigsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListAiTools ListAiToolsRequest
* @return ListAiToolsResponse
*/
@Override
public CompletableFuture<ListAiToolsResponse> listAiTools(ListAiToolsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListAiTools").setMethod(HttpMethod.GET).setPathRegex("/ml/tool/list").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAiToolsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAiToolsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListAlerts ListAlertsRequest
* @return ListAlertsResponse
*/
@Override
public CompletableFuture<ListAlertsResponse> listAlerts(ListAlertsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListAlerts").setMethod(HttpMethod.GET).setPathRegex("/alerts").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAlertsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAlertsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListAnnotationData ListAnnotationDataRequest
* @return ListAnnotationDataResponse
*/
@Override
public CompletableFuture<ListAnnotationDataResponse> listAnnotationData(ListAnnotationDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListAnnotationData").setMethod(HttpMethod.GET).setPathRegex("/ml/annotationdataset/{datasetId}/annotationdata").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAnnotationDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAnnotationDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListAnnotationDataSets ListAnnotationDataSetsRequest
* @return ListAnnotationDataSetsResponse
*/
@Override
public CompletableFuture<ListAnnotationDataSetsResponse> listAnnotationDataSets(ListAnnotationDataSetsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListAnnotationDataSets").setMethod(HttpMethod.GET).setPathRegex("/ml/annotationdataset").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAnnotationDataSetsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAnnotationDataSetsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListAnnotationLabels ListAnnotationLabelsRequest
* @return ListAnnotationLabelsResponse
*/
@Override
public CompletableFuture<ListAnnotationLabelsResponse> listAnnotationLabels(ListAnnotationLabelsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListAnnotationLabels").setMethod(HttpMethod.GET).setPathRegex("/ml/annotationlabel").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAnnotationLabelsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAnnotationLabelsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.</p>
*
* @param request the request parameters of ListCollectionPolicies ListCollectionPoliciesRequest
* @return ListCollectionPoliciesResponse
*/
@Override
public CompletableFuture<ListCollectionPoliciesResponse> listCollectionPolicies(ListCollectionPoliciesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListCollectionPolicies").setMethod(HttpMethod.GET).setPathRegex("/collectionpolicy").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListCollectionPoliciesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListCollectionPoliciesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of ListConfig ListConfigRequest
* @return ListConfigResponse
*/
@Override
public CompletableFuture<ListConfigResponse> listConfig(ListConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListConfig").setMethod(HttpMethod.GET).setPathRegex("/configs").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListConsumeProcessors ListConsumeProcessorsRequest
* @return ListConsumeProcessorsResponse
*/
@Override
public CompletableFuture<ListConsumeProcessorsResponse> listConsumeProcessors(ListConsumeProcessorsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListConsumeProcessors").setMethod(HttpMethod.GET).setPathRegex("/consumeprocessors").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListConsumeProcessorsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListConsumeProcessorsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:ListConsumerGroup</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}/consumergroup/*</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of ListConsumerGroup ListConsumerGroupRequest
* @return ListConsumerGroupResponse
*/
@Override
public CompletableFuture<ListConsumerGroupResponse> listConsumerGroup(ListConsumerGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListConsumerGroup").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}/consumergroups").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListConsumerGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListConsumerGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of ListDashboard ListDashboardRequest
* @return ListDashboardResponse
*/
@Override
public CompletableFuture<ListDashboardResponse> listDashboard(ListDashboardRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListDashboard").setMethod(HttpMethod.GET).setPathRegex("/dashboards").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListDashboardResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListDashboardResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>Only one custom domain name can be bound to each project.</li>
* </ul>
*
* @param request the request parameters of ListDomains ListDomainsRequest
* @return ListDomainsResponse
*/
@Override
public CompletableFuture<ListDomainsResponse> listDomains(ListDomainsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListDomains").setMethod(HttpMethod.GET).setPathRegex("/domains").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListDomainsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListDomainsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListDownloadJobs ListDownloadJobsRequest
* @return ListDownloadJobsResponse
*/
@Override
public CompletableFuture<ListDownloadJobsResponse> listDownloadJobs(ListDownloadJobsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListDownloadJobs").setMethod(HttpMethod.GET).setPathRegex("/downloadjobs").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListDownloadJobsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListDownloadJobsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListETLs ListETLsRequest
* @return ListETLsResponse
*/
@Override
public CompletableFuture<ListETLsResponse> listETLs(ListETLsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListETLs").setMethod(HttpMethod.GET).setPathRegex("/etls").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListETLsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListETLsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListIngestProcessors ListIngestProcessorsRequest
* @return ListIngestProcessorsResponse
*/
@Override
public CompletableFuture<ListIngestProcessorsResponse> listIngestProcessors(ListIngestProcessorsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListIngestProcessors").setMethod(HttpMethod.GET).setPathRegex("/ingestprocessors").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListIngestProcessorsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListIngestProcessorsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:ListLogStores</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/*</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of ListLogStores ListLogStoresRequest
* @return ListLogStoresResponse
*/
@Override
public CompletableFuture<ListLogStoresResponse> listLogStores(ListLogStoresRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListLogStores").setMethod(HttpMethod.GET).setPathRegex("/logstores").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListLogStoresResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListLogStoresResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of ListLogtailPipelineConfig ListLogtailPipelineConfigRequest
* @return ListLogtailPipelineConfigResponse
*/
@Override
public CompletableFuture<ListLogtailPipelineConfigResponse> listLogtailPipelineConfig(ListLogtailPipelineConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListLogtailPipelineConfig").setMethod(HttpMethod.GET).setPathRegex("/pipelineconfigs").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListLogtailPipelineConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListLogtailPipelineConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ListMachineGroup ListMachineGroupRequest
* @return ListMachineGroupResponse
*/
@Override
public CompletableFuture<ListMachineGroupResponse> listMachineGroup(ListMachineGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListMachineGroup").setMethod(HttpMethod.GET).setPathRegex("/machinegroups").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListMachineGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListMachineGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ListMachines ListMachinesRequest
* @return ListMachinesResponse
*/
@Override
public CompletableFuture<ListMachinesResponse> listMachines(ListMachinesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListMachines").setMethod(HttpMethod.GET).setPathRegex("/machinegroups/{machineGroup}/machines").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListMachinesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListMachinesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of ListMaxComputeExports ListMaxComputeExportsRequest
* @return ListMaxComputeExportsResponse
*/
@Override
public CompletableFuture<ListMaxComputeExportsResponse> listMaxComputeExports(ListMaxComputeExportsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListMaxComputeExports").setMethod(HttpMethod.GET).setPathRegex("/maxcomputeexports").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListMaxComputeExportsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListMaxComputeExportsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of ListMetricStores ListMetricStoresRequest
* @return ListMetricStoresResponse
*/
@Override
public CompletableFuture<ListMetricStoresResponse> listMetricStores(ListMetricStoresRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListMetricStores").setMethod(HttpMethod.GET).setPathRegex("/metricstores").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListMetricStoresResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListMetricStoresResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListOSSExports ListOSSExportsRequest
* @return ListOSSExportsResponse
*/
@Override
public CompletableFuture<ListOSSExportsResponse> listOSSExports(ListOSSExportsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListOSSExports").setMethod(HttpMethod.GET).setPathRegex("/ossexports").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListOSSExportsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListOSSExportsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListOSSHDFSExports ListOSSHDFSExportsRequest
* @return ListOSSHDFSExportsResponse
*/
@Override
public CompletableFuture<ListOSSHDFSExportsResponse> listOSSHDFSExports(ListOSSHDFSExportsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListOSSHDFSExports").setMethod(HttpMethod.GET).setPathRegex("/osshdfsexports").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListOSSHDFSExportsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListOSSHDFSExportsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListOSSIngestions ListOSSIngestionsRequest
* @return ListOSSIngestionsResponse
*/
@Override
public CompletableFuture<ListOSSIngestionsResponse> listOSSIngestions(ListOSSIngestionsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListOSSIngestions").setMethod(HttpMethod.GET).setPathRegex("/ossingestions").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListOSSIngestionsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListOSSIngestionsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ListProject ListProjectRequest
* @return ListProjectResponse
*/
@Override
public CompletableFuture<ListProjectResponse> listProject(ListProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListProject").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListS3Ingestions ListS3IngestionsRequest
* @return ListS3IngestionsResponse
*/
@Override
public CompletableFuture<ListS3IngestionsResponse> listS3Ingestions(ListS3IngestionsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListS3Ingestions").setMethod(HttpMethod.GET).setPathRegex("/s3ingestions").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListS3IngestionsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListS3IngestionsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of ListSavedSearch ListSavedSearchRequest
* @return ListSavedSearchResponse
*/
@Override
public CompletableFuture<ListSavedSearchResponse> listSavedSearch(ListSavedSearchRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListSavedSearch").setMethod(HttpMethod.GET).setPathRegex("/savedsearches").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListSavedSearchResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListSavedSearchResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListScheduledSQLs ListScheduledSQLsRequest
* @return ListScheduledSQLsResponse
*/
@Override
public CompletableFuture<ListScheduledSQLsResponse> listScheduledSQLs(ListScheduledSQLsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListScheduledSQLs").setMethod(HttpMethod.GET).setPathRegex("/scheduledsqls").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListScheduledSQLsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListScheduledSQLsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListShards ListShardsRequest
* @return ListShardsResponse
*/
@Override
public CompletableFuture<ListShardsResponse> listShards(ListShardsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListShards").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logstore}/shards").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListShardsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListShardsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListStoreViews ListStoreViewsRequest
* @return ListStoreViewsResponse
*/
@Override
public CompletableFuture<ListStoreViewsResponse> listStoreViews(ListStoreViewsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListStoreViews").setMethod(HttpMethod.GET).setPathRegex("/storeviews").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStoreViewsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListStoreViewsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/29049.html">Authorization rules</a>. The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:ListTagResources</code></td>
* <td align="left">The resource format varies based on the resource type.\-<code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of ListTagResources ListTagResourcesRequest
* @return ListTagResourcesResponse
*/
@Override
public CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListTagResources").setMethod(HttpMethod.GET).setPathRegex("/tags").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTagResourcesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListTagResourcesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of MergeShard MergeShardRequest
* @return MergeShardResponse
*/
@Override
public CompletableFuture<MergeShardResponse> mergeShard(MergeShardRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("MergeShard").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/shards/{shard}?action=merge").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(MergeShardResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<MergeShardResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of OpenSlsService OpenSlsServiceRequest
* @return OpenSlsServiceResponse
*/
@Override
public CompletableFuture<OpenSlsServiceResponse> openSlsService(OpenSlsServiceRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("OpenSlsService").setMethod(HttpMethod.POST).setPathRegex("/slsservice").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(OpenSlsServiceResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<OpenSlsServiceResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <ul>
* <li><strong>Warning</strong> You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.</li>
* <li>You must specify a shard when you query the logs.</li>
* <li>You can query only logs in the Protocol Buffers (protobuf) format. For more information, see <a href="https://help.aliyun.com/document_detail/29055.html">Data encoding</a>.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* </ul>
*
* @param request the request parameters of PullLogs PullLogsRequest
* @return PullLogsResponse
*/
@Override
public CompletableFuture<PullLogsResponse> pullLogs(PullLogsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PullLogs").setMethod(HttpMethod.GET).setPathRegex("/logstores/{logStore}/shards/{shardId}?type=log").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PullLogsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PullLogsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of PutAnnotationData PutAnnotationDataRequest
* @return PutAnnotationDataResponse
*/
@Override
public CompletableFuture<PutAnnotationDataResponse> putAnnotationData(PutAnnotationDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PutAnnotationData").setMethod(HttpMethod.PUT).setPathRegex("/ml/annotationdataset/{datasetId}/annotationdata").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PutAnnotationDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PutAnnotationDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of PutConsumeProcessor PutConsumeProcessorRequest
* @return PutConsumeProcessorResponse
*/
@Override
public CompletableFuture<PutConsumeProcessorResponse> putConsumeProcessor(PutConsumeProcessorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PutConsumeProcessor").setMethod(HttpMethod.PUT).setPathRegex("/consumeprocessors/{processorName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PutConsumeProcessorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PutConsumeProcessorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of PutIngestProcessor PutIngestProcessorRequest
* @return PutIngestProcessorResponse
*/
@Override
public CompletableFuture<PutIngestProcessorResponse> putIngestProcessor(PutIngestProcessorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PutIngestProcessor").setMethod(HttpMethod.PUT).setPathRegex("/ingestprocessors/{processorName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PutIngestProcessorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PutIngestProcessorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <ul>
* <li><strong>Warning</strong> You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.</li>
* <li>When you call the PutLogs operation to write logs to Simple Log Service, Simple Log Servicechecks the format of the logs. If a log does not meet the format requirements, the request fails and no logs are written to Simple Log Service.</li>
* <li>You can write logs only in the Protocol Buffers (Protobuf) format as log groups. For more information, see <a href="https://help.aliyun.com/document_detail/29055.html">Data encoding</a>.</li>
* <li>You can write logs in one of the following modes:<ul>
* <li>LoadBalance mode: In this mode, Log Service automatically writes logs to all writable shards in a Logstore. This mode delivers high availability for write operations and is suitable for data consumption scenarios in which you do not need to preserve the order of logs.</li>
* <li>KeyHash: In this mode, a key field is added in the URL parameter. Log Service writes logs to a shard based on the key field. The hash key is optional. If you do not configure the hash key, logs are written to shards in LoadBalance mode. For example, you can use the KeyHash mode to write data from a producer, such as an instance, to the shard whose hash value range includes the hash value of the producer name. This ensures that the data that is written to the shard is ordered and the data in the shard is consumed based on the order. This way, when a shard is split or when shards are merged, the data that is associated with the same hash key is stored only in one shard at a point in time. For more information, see <a href="https://help.aliyun.com/document_detail/28976.html">Shard</a>.</li>
* </ul>
* </li>
* <li>You can call the PutLogs operation to write up to 10 MB of raw logs at a time. We recommend that you keep the total size of the values for each log in a log group to or below 1 MB. Historical versions of SDKs may have different limits. We recommend that you upgrade your SDK to the latest version.</li>
* <li>The references for Log Service SDK for Java and Log Service SDK for Python provide examples on how to call the PutLogs operation. For more information, see <a href="https://help.aliyun.com/document_detail/279525.html">Get started with Simple Log Service SDK for Java</a> and <a href="https://help.aliyun.com/document_detail/284638.html">Get started with Simple Log Service SDK for Python</a>.</li>
* </ul>
*
* @param request the request parameters of PutLogs PutLogsRequest
* @return PutLogsResponse
*/
@Override
public CompletableFuture<PutLogsResponse> putLogs(PutLogsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PutLogs").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/shards/lb").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PutLogsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PutLogsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>Alibaba Cloud Simple Log Service allows you to configure a project policy to authorize other users to access the specified Log Service resources.<ul>
* <li>You must configure a project policy based on policy syntax. Before you configure a project policy, you must be familiar with the Action, Resource, and Condition parameters. For more information, see <a href="https://help.aliyun.com/document_detail/128139.html">RAM</a>.</li>
* <li>If you set the Principal element to an asterisk (\<em>) and do not configure the Condition element when you configure a project policy, the policy applies to all users except for the project owner. If you set the Principal element to an asterisk (\</em>) and configure the Condition element when you configure a project policy, the policy applies to all users including the project owner.</li>
* <li>You can configure multiple project policies for a project. The total size of the policies cannot exceed 16 KB.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of PutProjectPolicy PutProjectPolicyRequest
* @return PutProjectPolicyResponse
*/
@Override
public CompletableFuture<PutProjectPolicyResponse> putProjectPolicy(PutProjectPolicyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PutProjectPolicy").setMethod(HttpMethod.POST).setPathRegex("/policy").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PutProjectPolicyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PutProjectPolicyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of PutProjectTransferAcceleration PutProjectTransferAccelerationRequest
* @return PutProjectTransferAccelerationResponse
*/
@Override
public CompletableFuture<PutProjectTransferAccelerationResponse> putProjectTransferAcceleration(PutProjectTransferAccelerationRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PutProjectTransferAcceleration").setMethod(HttpMethod.PUT).setPathRegex("/transferacceleration").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PutProjectTransferAccelerationResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PutProjectTransferAccelerationResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>You can call this operation to collect logs from web pages or clients.</li>
* <li>If you use web tracking to collect logs and you do not call this operation, you can send only one log to Simple Log Service in a request. For more information, see <a href="https://help.aliyun.com/document_detail/31752.html">Use web tracking to collect logs</a>.</li>
* <li>If you want to collect a large amount of log data, you can call this operation to send multiple logs to Simple Log Service in one request.</li>
* <li>Before you can call this operation to send logs to a Logstore, you must enable web tracking for the Logstore. For more information, see <a href="https://help.aliyun.com/document_detail/31752.html">Use web tracking to collect logs</a>.</li>
* <li>You cannot call this operation to send the logs of multiple topics to Simple Log Service at a time.</li>
* <li>If you call this operation, anonymous users from the Internet are granted the write permissions on the Logstore. This may generate dirty data because AccessKey pair-based authentication is not performed.</li>
* </ul>
*
* @param request the request parameters of PutWebtracking PutWebtrackingRequest
* @return PutWebtrackingResponse
*/
@Override
public CompletableFuture<PutWebtrackingResponse> putWebtracking(PutWebtrackingRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PutWebtracking").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstoreName}/track").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PutWebtrackingResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PutWebtrackingResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of RefreshToken RefreshTokenRequest
* @return RefreshTokenResponse
*/
@Override
public CompletableFuture<RefreshTokenResponse> refreshToken(RefreshTokenRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("RefreshToken").setMethod(HttpMethod.POST).setPathRegex("/token/refresh").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RefreshTokenResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RefreshTokenResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of RemoveConfigFromMachineGroup RemoveConfigFromMachineGroupRequest
* @return RemoveConfigFromMachineGroupResponse
*/
@Override
public CompletableFuture<RemoveConfigFromMachineGroupResponse> removeConfigFromMachineGroup(RemoveConfigFromMachineGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("RemoveConfigFromMachineGroup").setMethod(HttpMethod.DELETE).setPathRegex("/machinegroups/{machineGroup}/configs/{configName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RemoveConfigFromMachineGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RemoveConfigFromMachineGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>Each shard has an MD5 hash range, and each range is a left-closed, right-open interval. The interval is in the <code>[BeginKey,EndKey)</code> format. A shard can be in the readwrite or readonly state. You can split a shard and merge shards. For more information, see <a href="https://help.aliyun.com/document_detail/28976.html">Shard</a>.</li>
* </ul>
*
* @param request the request parameters of SplitShard SplitShardRequest
* @return SplitShardResponse
*/
@Override
public CompletableFuture<SplitShardResponse> splitShard(SplitShardRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("SplitShard").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/shards/{shard}?action=split").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SplitShardResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SplitShardResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of StartETL StartETLRequest
* @return StartETLResponse
*/
@Override
public CompletableFuture<StartETLResponse> startETL(StartETLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StartETL").setMethod(HttpMethod.PUT).setPathRegex("/etls/{etlName}?action=START").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartETLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StartETLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* </ul>
*
* @param request the request parameters of StartMaxComputeExport StartMaxComputeExportRequest
* @return StartMaxComputeExportResponse
*/
@Override
public CompletableFuture<StartMaxComputeExportResponse> startMaxComputeExport(StartMaxComputeExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StartMaxComputeExport").setMethod(HttpMethod.PUT).setPathRegex("/maxcomputeexports/{mcExportName}?action=START").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartMaxComputeExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StartMaxComputeExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of StartOSSExport StartOSSExportRequest
* @return StartOSSExportResponse
*/
@Override
public CompletableFuture<StartOSSExportResponse> startOSSExport(StartOSSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StartOSSExport").setMethod(HttpMethod.PUT).setPathRegex("/ossexports/{ossExportName}?action=START").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartOSSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StartOSSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of StartOSSHDFSExport StartOSSHDFSExportRequest
* @return StartOSSHDFSExportResponse
*/
@Override
public CompletableFuture<StartOSSHDFSExportResponse> startOSSHDFSExport(StartOSSHDFSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StartOSSHDFSExport").setMethod(HttpMethod.PUT).setPathRegex("/osshdfsexports/{ossExportName}?action=START").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartOSSHDFSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StartOSSHDFSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of StartOSSIngestion StartOSSIngestionRequest
* @return StartOSSIngestionResponse
*/
@Override
public CompletableFuture<StartOSSIngestionResponse> startOSSIngestion(StartOSSIngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StartOSSIngestion").setMethod(HttpMethod.PUT).setPathRegex("/ossingestions/{ossIngestionName}?action=START").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartOSSIngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StartOSSIngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of StopETL StopETLRequest
* @return StopETLResponse
*/
@Override
public CompletableFuture<StopETLResponse> stopETL(StopETLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StopETL").setMethod(HttpMethod.PUT).setPathRegex("/etls/{etlName}?action=STOP").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopETLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StopETLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of StopMaxComputeExport StopMaxComputeExportRequest
* @return StopMaxComputeExportResponse
*/
@Override
public CompletableFuture<StopMaxComputeExportResponse> stopMaxComputeExport(StopMaxComputeExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StopMaxComputeExport").setMethod(HttpMethod.PUT).setPathRegex("/maxcomputeexports/{mcExportName}?action=STOP").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopMaxComputeExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StopMaxComputeExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of StopOSSExport StopOSSExportRequest
* @return StopOSSExportResponse
*/
@Override
public CompletableFuture<StopOSSExportResponse> stopOSSExport(StopOSSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StopOSSExport").setMethod(HttpMethod.PUT).setPathRegex("/ossexports/{ossExportName}?action=STOP").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopOSSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StopOSSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of StopOSSHDFSExport StopOSSHDFSExportRequest
* @return StopOSSHDFSExportResponse
*/
@Override
public CompletableFuture<StopOSSHDFSExportResponse> stopOSSHDFSExport(StopOSSHDFSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StopOSSHDFSExport").setMethod(HttpMethod.PUT).setPathRegex("/osshdfsexports/{ossExportName}?action=STOP").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopOSSHDFSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StopOSSHDFSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of StopOSSIngestion StopOSSIngestionRequest
* @return StopOSSIngestionResponse
*/
@Override
public CompletableFuture<StopOSSIngestionResponse> stopOSSIngestion(StopOSSIngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("StopOSSIngestion").setMethod(HttpMethod.PUT).setPathRegex("/ossingestions/{ossIngestionName}?action=STOP").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopOSSIngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<StopOSSIngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/29049.html">Authorization rules</a>. The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:TagResources</code></td>
* <td align="left">The resource format varies based on the resource type.\-<code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of TagResources TagResourcesRequest
* @return TagResourcesResponse
*/
@Override
public CompletableFuture<TagResourcesResponse> tagResources(TagResourcesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("TagResources").setMethod(HttpMethod.POST).setPathRegex("/tag").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(TagResourcesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<TagResourcesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> For more information, see <a href="https://help.aliyun.com/document_detail/29049.html">Authorization rules</a>. The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:UntagResources</code></td>
* <td align="left">The resource format varies based on the resource type.\-<code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}</code>\-<code>acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of UntagResources UntagResourcesRequest
* @return UntagResourcesResponse
*/
@Override
public CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UntagResources").setMethod(HttpMethod.POST).setPathRegex("/untag").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UntagResourcesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UntagResourcesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateAgentInstanceConfig UpdateAgentInstanceConfigRequest
* @return UpdateAgentInstanceConfigResponse
*/
@Override
public CompletableFuture<UpdateAgentInstanceConfigResponse> updateAgentInstanceConfig(UpdateAgentInstanceConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateAgentInstanceConfig").setMethod(HttpMethod.PUT).setPathRegex("/agentinstanceconfigs/{configType}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAgentInstanceConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateAgentInstanceConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateAlert UpdateAlertRequest
* @return UpdateAlertResponse
*/
@Override
public CompletableFuture<UpdateAlertResponse> updateAlert(UpdateAlertRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateAlert").setMethod(HttpMethod.PUT).setPathRegex("/alerts/{alertName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAlertResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateAlertResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateAnnotationDataSet UpdateAnnotationDataSetRequest
* @return UpdateAnnotationDataSetResponse
*/
@Override
public CompletableFuture<UpdateAnnotationDataSetResponse> updateAnnotationDataSet(UpdateAnnotationDataSetRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateAnnotationDataSet").setMethod(HttpMethod.PUT).setPathRegex("/ml/annotationdataset/{datasetId}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAnnotationDataSetResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateAnnotationDataSetResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can update only the names of the tags in a tag set.</p>
*
* @param request the request parameters of UpdateAnnotationLabel UpdateAnnotationLabelRequest
* @return UpdateAnnotationLabelResponse
*/
@Override
public CompletableFuture<UpdateAnnotationLabelResponse> updateAnnotationLabel(UpdateAnnotationLabelRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateAnnotationLabel").setMethod(HttpMethod.PUT).setPathRegex("/ml/annotationlabel").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAnnotationLabelResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateAnnotationLabelResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>After you update a Logtail configuration that is applied to a machine group, the new configuration immediately takes effect.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>The Logtail configuration is planned out. For more information, see <a href="https://help.aliyun.com/document_detail/29058.html">Logtail configurations</a>.</li>
* </ul>
*
* @param request the request parameters of UpdateConfig UpdateConfigRequest
* @return UpdateConfigResponse
*/
@Override
public CompletableFuture<UpdateConfigResponse> updateConfig(UpdateConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateConfig").setMethod(HttpMethod.PUT).setPathRegex("/configs/{configName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:UpdateConsumerGroup</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#logstoreName}/consumergroup/{#ConsumerGroup}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of UpdateConsumerGroup UpdateConsumerGroupRequest
* @return UpdateConsumerGroupResponse
*/
@Override
public CompletableFuture<UpdateConsumerGroupResponse> updateConsumerGroup(UpdateConsumerGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateConsumerGroup").setMethod(HttpMethod.PUT).setPathRegex("/logstores/{logstore}/consumergroups/{consumerGroup}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateConsumerGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateConsumerGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateDashboard UpdateDashboardRequest
* @return UpdateDashboardResponse
*/
@Override
public CompletableFuture<UpdateDashboardResponse> updateDashboard(UpdateDashboardRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateDashboard").setMethod(HttpMethod.PUT).setPathRegex("/dashboards/{dashboardName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateDashboardResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateDashboardResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateETL UpdateETLRequest
* @return UpdateETLResponse
*/
@Override
public CompletableFuture<UpdateETLResponse> updateETL(UpdateETLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateETL").setMethod(HttpMethod.PUT).setPathRegex("/etls/{etlName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateETLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateETLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <p>Host consists of a project name and a Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateIndex UpdateIndexRequest
* @return UpdateIndexResponse
*/
@Override
public CompletableFuture<UpdateIndexResponse> updateIndex(UpdateIndexRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateIndex").setMethod(HttpMethod.PUT).setPathRegex("/logstores/{logstore}/index").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateIndexResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateIndexResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Log Service endpoint. You must specify a project in Host.</li>
* <li>You can call the UpdateLogStore operation to change only the time-to-live (TTL) attribute.</li>
* </ul>
*
* @param request the request parameters of UpdateLogStore UpdateLogStoreRequest
* @return UpdateLogStoreResponse
*/
@Override
public CompletableFuture<UpdateLogStoreResponse> updateLogStore(UpdateLogStoreRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateLogStore").setMethod(HttpMethod.PUT).setPathRegex("/logstores/{logstore}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateLogStoreResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateLogStoreResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h2><a href="#"></a>Limits</h2>
* <p>If you specify a data encryption method when you configure data encryption settings, you cannot switch to the other method after the configuration. In addition, you cannot change the encryption algorithm or the encryption type. You can only enable or disable the encryption feature by using the enable parameter. If you specify the encryption method by using the service key of Simple Log Service when you configure data encryption settings, you cannot switch to the encryption method by using Bring Your Own Key (BYOK) keys after the configuration.</p>
* <h2><a href="#"></a>Create encryption configurations</h2>
* <h3><a href="#"></a>Encryption by using service keys</h3>
* <p>Simple Log Service is fully responsible for data encryption and key management. No additional operations are required. When you create encryption configurations for the Logstore, you must specify the enable and encryptType parameters.</p>
* <h3><a href="#byok"></a>Encryption by using BYOK keys</h3>
* <p>You must create a customer master key (CMK) in Key Management Service (KMS). Then, Simple Log Service encrypts logs by using the CMK. When you create encryption configurations for the Logstore, you must specify the enable, encryptType, and userCmkInfo parameters.</p>
* <h2><a href="#"></a>Enable or disable the encryption feature</h2>
* <p>After you create encryption configurations for the Logstore, you cannot modify the encryptType or userCmkInfo parameters. However, you can enable and disable the encryption feature by using the enable parameter.</p>
*
* @param request the request parameters of UpdateLogStoreEncryption UpdateLogStoreEncryptionRequest
* @return UpdateLogStoreEncryptionResponse
*/
@Override
public CompletableFuture<UpdateLogStoreEncryptionResponse> updateLogStoreEncryption(UpdateLogStoreEncryptionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateLogStoreEncryption").setMethod(HttpMethod.PUT).setPathRegex("/logstores/{logstore}/encryption").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateLogStoreEncryptionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateLogStoreEncryptionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateLogStoreMeteringMode UpdateLogStoreMeteringModeRequest
* @return UpdateLogStoreMeteringModeResponse
*/
@Override
public CompletableFuture<UpdateLogStoreMeteringModeResponse> updateLogStoreMeteringMode(UpdateLogStoreMeteringModeRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateLogStoreMeteringMode").setMethod(HttpMethod.PUT).setPathRegex("/logstores/{logstore}/meteringmode").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateLogStoreMeteringModeResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateLogStoreMeteringModeResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateLogStoreProcessor UpdateLogStoreProcessorRequest
* @return UpdateLogStoreProcessorResponse
*/
@Override
public CompletableFuture<UpdateLogStoreProcessorResponse> updateLogStoreProcessor(UpdateLogStoreProcessorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateLogStoreProcessor").setMethod(HttpMethod.POST).setPathRegex("/logstores/{logstore}/processor").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateLogStoreProcessorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateLogStoreProcessorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateLogging UpdateLoggingRequest
* @return UpdateLoggingResponse
*/
@Override
public CompletableFuture<UpdateLoggingResponse> updateLogging(UpdateLoggingRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateLogging").setMethod(HttpMethod.PUT).setPathRegex("/logging").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateLoggingResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateLoggingResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>The UK (London) region is supported. Supported regions are constantly updated.</p>
*
* @param request the request parameters of UpdateLogtailPipelineConfig UpdateLogtailPipelineConfigRequest
* @return UpdateLogtailPipelineConfigResponse
*/
@Override
public CompletableFuture<UpdateLogtailPipelineConfigResponse> updateLogtailPipelineConfig(UpdateLogtailPipelineConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateLogtailPipelineConfig").setMethod(HttpMethod.PUT).setPathRegex("/pipelineconfigs/{configName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateLogtailPipelineConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateLogtailPipelineConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateMachineGroup UpdateMachineGroupRequest
* @return UpdateMachineGroupResponse
*/
@Override
public CompletableFuture<UpdateMachineGroupResponse> updateMachineGroup(UpdateMachineGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateMachineGroup").setMethod(HttpMethod.PUT).setPathRegex("/machinegroups/{groupName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateMachineGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateMachineGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
*
* @param request the request parameters of UpdateMachineGroupMachine UpdateMachineGroupMachineRequest
* @return UpdateMachineGroupMachineResponse
*/
@Override
public CompletableFuture<UpdateMachineGroupMachineResponse> updateMachineGroupMachine(UpdateMachineGroupMachineRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateMachineGroupMachine").setMethod(HttpMethod.PUT).setPathRegex("/machinegroups/{machineGroup}/machines").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateMachineGroupMachineResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateMachineGroupMachineResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</p>
* <ul>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a></li>
* </ul>
*
* @param request the request parameters of UpdateMaxComputeExport UpdateMaxComputeExportRequest
* @return UpdateMaxComputeExportResponse
*/
@Override
public CompletableFuture<UpdateMaxComputeExportResponse> updateMaxComputeExport(UpdateMaxComputeExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateMaxComputeExport").setMethod(HttpMethod.PUT).setPathRegex("/maxcomputeexports/{mcExportName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateMaxComputeExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateMaxComputeExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Metricstores are used to store metric data. For more information, see <a href="https://help.aliyun.com/document_detail/174965.html">Metric data</a>.</p>
* <ul>
* <li>You must specify an existing Metricstore.</li>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a>.</li>
* <li>You can create up to 200 Logstores or Metricstores in a project.</li>
* <li>Metric data is automatically deleted when the retention period of the metric data ends.</li>
* </ul>
*
* @param request the request parameters of UpdateMetricStore UpdateMetricStoreRequest
* @return UpdateMetricStoreResponse
*/
@Override
public CompletableFuture<UpdateMetricStoreResponse> updateMetricStore(UpdateMetricStoreRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateMetricStore").setMethod(HttpMethod.PUT).setPathRegex("/metricstores/{name}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateMetricStoreResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateMetricStoreResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateMetricStoreMeteringMode UpdateMetricStoreMeteringModeRequest
* @return UpdateMetricStoreMeteringModeResponse
*/
@Override
public CompletableFuture<UpdateMetricStoreMeteringModeResponse> updateMetricStoreMeteringMode(UpdateMetricStoreMeteringModeRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateMetricStoreMeteringMode").setMethod(HttpMethod.PUT).setPathRegex("/metricstores/{metricStore}/meteringmode").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateMetricStoreMeteringModeResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateMetricStoreMeteringModeResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateMetricStoreProcessor UpdateMetricStoreProcessorRequest
* @return UpdateMetricStoreProcessorResponse
*/
@Override
public CompletableFuture<UpdateMetricStoreProcessorResponse> updateMetricStoreProcessor(UpdateMetricStoreProcessorRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateMetricStoreProcessor").setMethod(HttpMethod.POST).setPathRegex("/metricstores/{metricstore}/processor").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateMetricStoreProcessorResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateMetricStoreProcessorResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateOSSExport UpdateOSSExportRequest
* @return UpdateOSSExportResponse
*/
@Override
public CompletableFuture<UpdateOSSExportResponse> updateOSSExport(UpdateOSSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateOSSExport").setMethod(HttpMethod.PUT).setPathRegex("/ossexports/{ossExportName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateOSSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateOSSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateOSSHDFSExport UpdateOSSHDFSExportRequest
* @return UpdateOSSHDFSExportResponse
*/
@Override
public CompletableFuture<UpdateOSSHDFSExportResponse> updateOSSHDFSExport(UpdateOSSHDFSExportRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateOSSHDFSExport").setMethod(HttpMethod.PUT).setPathRegex("/osshdfsexports/{ossExportName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateOSSHDFSExportResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateOSSHDFSExportResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateOSSIngestion UpdateOSSIngestionRequest
* @return UpdateOSSIngestionResponse
*/
@Override
public CompletableFuture<UpdateOSSIngestionResponse> updateOSSIngestion(UpdateOSSIngestionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateOSSIngestion").setMethod(HttpMethod.PUT).setPathRegex("/ossingestions/{ossIngestionName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateOSSIngestionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateOSSIngestionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:UpdateProject</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of UpdateProject UpdateProjectRequest
* @return UpdateProjectResponse
*/
@Override
public CompletableFuture<UpdateProjectResponse> updateProject(UpdateProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateProject").setMethod(HttpMethod.PUT).setPathRegex("/").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3>Usage notes</h3>
* <ul>
* <li>Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.</li>
* <li>An AccessKey pair is created and obtained. For more information, see <a href="https://help.aliyun.com/document_detail/29009.html">AccessKey pair</a>.
* The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see <a href="https://help.aliyun.com/document_detail/47664.html">Create a RAM user and authorize the RAM user to access Simple Log Service</a>.</li>
* <li>The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see <a href="https://help.aliyun.com/document_detail/48984.html">Manage a project</a> and <a href="https://help.aliyun.com/document_detail/48990.html">Manage a Logstore</a>.</li>
* <li>Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</li>
* </ul>
* <h3>Authentication resources</h3>
* <p>The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.</p>
* <table>
* <thead>
* <tr>
* <th align="left">Action</th>
* <th align="left">Resource</th>
* </tr>
* </thead>
* <tbody><tr>
* <td align="left"><code>log:UpdateSavedSearch</code></td>
* <td align="left"><code>acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}</code></td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of UpdateSavedSearch UpdateSavedSearchRequest
* @return UpdateSavedSearchResponse
*/
@Override
public CompletableFuture<UpdateSavedSearchResponse> updateSavedSearch(UpdateSavedSearchRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateSavedSearch").setMethod(HttpMethod.PUT).setPathRegex("/savedsearches/{savedsearchName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateSavedSearchResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateSavedSearchResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateScheduledSQL UpdateScheduledSQLRequest
* @return UpdateScheduledSQLResponse
*/
@Override
public CompletableFuture<UpdateScheduledSQLResponse> updateScheduledSQL(UpdateScheduledSQLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateScheduledSQL").setMethod(HttpMethod.PUT).setPathRegex("/scheduledsqls/{scheduledSQLName}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateScheduledSQLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateScheduledSQLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateSqlInstance UpdateSqlInstanceRequest
* @return UpdateSqlInstanceResponse
*/
@Override
public CompletableFuture<UpdateSqlInstanceResponse> updateSqlInstance(UpdateSqlInstanceRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateSqlInstance").setMethod(HttpMethod.PUT).setPathRegex("/sqlinstance").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateSqlInstanceResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateSqlInstanceResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateStoreView UpdateStoreViewRequest
* @return UpdateStoreViewResponse
*/
@Override
public CompletableFuture<UpdateStoreViewResponse> updateStoreView(UpdateStoreViewRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateStoreView").setMethod(HttpMethod.PUT).setPathRegex("/storeviews/{name}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateStoreViewResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateStoreViewResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.</p>
*
* @param request the request parameters of UpsertCollectionPolicy UpsertCollectionPolicyRequest
* @return UpsertCollectionPolicyResponse
*/
@Override
public CompletableFuture<UpsertCollectionPolicyResponse> upsertCollectionPolicy(UpsertCollectionPolicyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpsertCollectionPolicy").setMethod(HttpMethod.POST).setPathRegex("/collectionpolicy").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpsertCollectionPolicyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpsertCollectionPolicyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/DefaultAsyncClientBuilder.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230;
import com.aliyun.sdk.gateway.sls.BaseClientBuilder;
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
@Override
protected String serviceName() {
return "sls20201230";
}
@Override
protected final AsyncClient buildClient() {
return new DefaultAsyncClient(super.applyClientConfiguration());
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/AgentInstanceConfigGrayConfigs.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link AgentInstanceConfigGrayConfigs} extends {@link TeaModel}
*
* <p>AgentInstanceConfigGrayConfigs</p>
*/
public class AgentInstanceConfigGrayConfigs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("condition")
private String condition;
@com.aliyun.core.annotation.NameInMap("content")
private String content;
private AgentInstanceConfigGrayConfigs(Builder builder) {
this.condition = builder.condition;
this.content = builder.content;
}
public static Builder builder() {
return new Builder();
}
public static AgentInstanceConfigGrayConfigs create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return condition
*/
public String getCondition() {
return this.condition;
}
/**
* @return content
*/
public String getContent() {
return this.content;
}
public static final class Builder {
private String condition;
private String content;
private Builder() {
}
private Builder(AgentInstanceConfigGrayConfigs model) {
this.condition = model.condition;
this.content = model.content;
}
/**
* condition.
*/
public Builder condition(String condition) {
this.condition = condition;
return this;
}
/**
* content.
*/
public Builder content(String content) {
this.content = content;
return this;
}
public AgentInstanceConfigGrayConfigs build() {
return new AgentInstanceConfigGrayConfigs(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/Alert.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link Alert} extends {@link TeaModel}
*
* <p>Alert</p>
*/
public class Alert extends TeaModel {
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private AlertConfiguration configuration;
@com.aliyun.core.annotation.NameInMap("createTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.NameInMap("lastModifiedTime")
private Long lastModifiedTime;
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.NameInMap("schedule")
@com.aliyun.core.annotation.Validation(required = true)
private Schedule schedule;
@com.aliyun.core.annotation.NameInMap("status")
private String status;
private Alert(Builder builder) {
this.configuration = builder.configuration;
this.createTime = builder.createTime;
this.description = builder.description;
this.displayName = builder.displayName;
this.lastModifiedTime = builder.lastModifiedTime;
this.name = builder.name;
this.schedule = builder.schedule;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Alert create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return configuration
*/
public AlertConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return lastModifiedTime
*/
public Long getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return schedule
*/
public Schedule getSchedule() {
return this.schedule;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private AlertConfiguration configuration;
private Long createTime;
private String description;
private String displayName;
private Long lastModifiedTime;
private String name;
private Schedule schedule;
private String status;
private Builder() {
}
private Builder(Alert model) {
this.configuration = model.configuration;
this.createTime = model.createTime;
this.description = model.description;
this.displayName = model.displayName;
this.lastModifiedTime = model.lastModifiedTime;
this.name = model.name;
this.schedule = model.schedule;
this.status = model.status;
}
/**
* <p>This parameter is required.</p>
*/
public Builder configuration(AlertConfiguration configuration) {
this.configuration = configuration;
return this;
}
/**
* createTime.
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alertNameExample</p>
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* lastModifiedTime.
*/
public Builder lastModifiedTime(Long lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alert-123456</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder schedule(Schedule schedule) {
this.schedule = schedule;
return this;
}
/**
* status.
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Alert build() {
return new Alert(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/AlertConfiguration.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link AlertConfiguration} extends {@link TeaModel}
*
* <p>AlertConfiguration</p>
*/
public class AlertConfiguration extends TeaModel {
@com.aliyun.core.annotation.NameInMap("annotations")
private java.util.List<AlertTag> annotations;
@com.aliyun.core.annotation.NameInMap("autoAnnotation")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean autoAnnotation;
@com.aliyun.core.annotation.NameInMap("conditionConfiguration")
private ConditionConfiguration conditionConfiguration;
@com.aliyun.core.annotation.NameInMap("dashboard")
private String dashboard;
@com.aliyun.core.annotation.NameInMap("groupConfiguration")
@com.aliyun.core.annotation.Validation(required = true)
private GroupConfiguration groupConfiguration;
@com.aliyun.core.annotation.NameInMap("joinConfigurations")
private java.util.List<JoinConfiguration> joinConfigurations;
@com.aliyun.core.annotation.NameInMap("labels")
private java.util.List<AlertTag> labels;
@com.aliyun.core.annotation.NameInMap("muteUntil")
private Long muteUntil;
@com.aliyun.core.annotation.NameInMap("noDataFire")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean noDataFire;
@com.aliyun.core.annotation.NameInMap("noDataSeverity")
private Integer noDataSeverity;
@com.aliyun.core.annotation.NameInMap("policyConfiguration")
private PolicyConfiguration policyConfiguration;
@com.aliyun.core.annotation.NameInMap("queryList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<AlertQuery> queryList;
@com.aliyun.core.annotation.NameInMap("sendResolved")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean sendResolved;
@com.aliyun.core.annotation.NameInMap("severityConfigurations")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<SeverityConfiguration> severityConfigurations;
@com.aliyun.core.annotation.NameInMap("sinkAlerthub")
private SinkAlerthubConfiguration sinkAlerthub;
@com.aliyun.core.annotation.NameInMap("sinkCms")
private SinkCmsConfiguration sinkCms;
@com.aliyun.core.annotation.NameInMap("sinkEventStore")
private SinkEventStoreConfiguration sinkEventStore;
@com.aliyun.core.annotation.NameInMap("tags")
private java.util.List<String> tags;
@com.aliyun.core.annotation.NameInMap("templateConfiguration")
private TemplateConfiguration templateConfiguration;
@com.aliyun.core.annotation.NameInMap("threshold")
@com.aliyun.core.annotation.Validation(required = true)
private Integer threshold;
@com.aliyun.core.annotation.NameInMap("type")
private String type;
@com.aliyun.core.annotation.NameInMap("version")
@com.aliyun.core.annotation.Validation(required = true)
private String version;
private AlertConfiguration(Builder builder) {
this.annotations = builder.annotations;
this.autoAnnotation = builder.autoAnnotation;
this.conditionConfiguration = builder.conditionConfiguration;
this.dashboard = builder.dashboard;
this.groupConfiguration = builder.groupConfiguration;
this.joinConfigurations = builder.joinConfigurations;
this.labels = builder.labels;
this.muteUntil = builder.muteUntil;
this.noDataFire = builder.noDataFire;
this.noDataSeverity = builder.noDataSeverity;
this.policyConfiguration = builder.policyConfiguration;
this.queryList = builder.queryList;
this.sendResolved = builder.sendResolved;
this.severityConfigurations = builder.severityConfigurations;
this.sinkAlerthub = builder.sinkAlerthub;
this.sinkCms = builder.sinkCms;
this.sinkEventStore = builder.sinkEventStore;
this.tags = builder.tags;
this.templateConfiguration = builder.templateConfiguration;
this.threshold = builder.threshold;
this.type = builder.type;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static AlertConfiguration create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return annotations
*/
public java.util.List<AlertTag> getAnnotations() {
return this.annotations;
}
/**
* @return autoAnnotation
*/
public Boolean getAutoAnnotation() {
return this.autoAnnotation;
}
/**
* @return conditionConfiguration
*/
public ConditionConfiguration getConditionConfiguration() {
return this.conditionConfiguration;
}
/**
* @return dashboard
*/
public String getDashboard() {
return this.dashboard;
}
/**
* @return groupConfiguration
*/
public GroupConfiguration getGroupConfiguration() {
return this.groupConfiguration;
}
/**
* @return joinConfigurations
*/
public java.util.List<JoinConfiguration> getJoinConfigurations() {
return this.joinConfigurations;
}
/**
* @return labels
*/
public java.util.List<AlertTag> getLabels() {
return this.labels;
}
/**
* @return muteUntil
*/
public Long getMuteUntil() {
return this.muteUntil;
}
/**
* @return noDataFire
*/
public Boolean getNoDataFire() {
return this.noDataFire;
}
/**
* @return noDataSeverity
*/
public Integer getNoDataSeverity() {
return this.noDataSeverity;
}
/**
* @return policyConfiguration
*/
public PolicyConfiguration getPolicyConfiguration() {
return this.policyConfiguration;
}
/**
* @return queryList
*/
public java.util.List<AlertQuery> getQueryList() {
return this.queryList;
}
/**
* @return sendResolved
*/
public Boolean getSendResolved() {
return this.sendResolved;
}
/**
* @return severityConfigurations
*/
public java.util.List<SeverityConfiguration> getSeverityConfigurations() {
return this.severityConfigurations;
}
/**
* @return sinkAlerthub
*/
public SinkAlerthubConfiguration getSinkAlerthub() {
return this.sinkAlerthub;
}
/**
* @return sinkCms
*/
public SinkCmsConfiguration getSinkCms() {
return this.sinkCms;
}
/**
* @return sinkEventStore
*/
public SinkEventStoreConfiguration getSinkEventStore() {
return this.sinkEventStore;
}
/**
* @return tags
*/
public java.util.List<String> getTags() {
return this.tags;
}
/**
* @return templateConfiguration
*/
public TemplateConfiguration getTemplateConfiguration() {
return this.templateConfiguration;
}
/**
* @return threshold
*/
public Integer getThreshold() {
return this.threshold;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return version
*/
public String getVersion() {
return this.version;
}
public static final class Builder {
private java.util.List<AlertTag> annotations;
private Boolean autoAnnotation;
private ConditionConfiguration conditionConfiguration;
private String dashboard;
private GroupConfiguration groupConfiguration;
private java.util.List<JoinConfiguration> joinConfigurations;
private java.util.List<AlertTag> labels;
private Long muteUntil;
private Boolean noDataFire;
private Integer noDataSeverity;
private PolicyConfiguration policyConfiguration;
private java.util.List<AlertQuery> queryList;
private Boolean sendResolved;
private java.util.List<SeverityConfiguration> severityConfigurations;
private SinkAlerthubConfiguration sinkAlerthub;
private SinkCmsConfiguration sinkCms;
private SinkEventStoreConfiguration sinkEventStore;
private java.util.List<String> tags;
private TemplateConfiguration templateConfiguration;
private Integer threshold;
private String type;
private String version;
private Builder() {
}
private Builder(AlertConfiguration model) {
this.annotations = model.annotations;
this.autoAnnotation = model.autoAnnotation;
this.conditionConfiguration = model.conditionConfiguration;
this.dashboard = model.dashboard;
this.groupConfiguration = model.groupConfiguration;
this.joinConfigurations = model.joinConfigurations;
this.labels = model.labels;
this.muteUntil = model.muteUntil;
this.noDataFire = model.noDataFire;
this.noDataSeverity = model.noDataSeverity;
this.policyConfiguration = model.policyConfiguration;
this.queryList = model.queryList;
this.sendResolved = model.sendResolved;
this.severityConfigurations = model.severityConfigurations;
this.sinkAlerthub = model.sinkAlerthub;
this.sinkCms = model.sinkCms;
this.sinkEventStore = model.sinkEventStore;
this.tags = model.tags;
this.templateConfiguration = model.templateConfiguration;
this.threshold = model.threshold;
this.type = model.type;
this.version = model.version;
}
/**
* annotations.
*/
public Builder annotations(java.util.List<AlertTag> annotations) {
this.annotations = annotations;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoAnnotation(Boolean autoAnnotation) {
this.autoAnnotation = autoAnnotation;
return this;
}
/**
* conditionConfiguration.
*/
public Builder conditionConfiguration(ConditionConfiguration conditionConfiguration) {
this.conditionConfiguration = conditionConfiguration;
return this;
}
/**
* dashboard.
*/
public Builder dashboard(String dashboard) {
this.dashboard = dashboard;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder groupConfiguration(GroupConfiguration groupConfiguration) {
this.groupConfiguration = groupConfiguration;
return this;
}
/**
* joinConfigurations.
*/
public Builder joinConfigurations(java.util.List<JoinConfiguration> joinConfigurations) {
this.joinConfigurations = joinConfigurations;
return this;
}
/**
* labels.
*/
public Builder labels(java.util.List<AlertTag> labels) {
this.labels = labels;
return this;
}
/**
* muteUntil.
*/
public Builder muteUntil(Long muteUntil) {
this.muteUntil = muteUntil;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder noDataFire(Boolean noDataFire) {
this.noDataFire = noDataFire;
return this;
}
/**
* noDataSeverity.
*/
public Builder noDataSeverity(Integer noDataSeverity) {
this.noDataSeverity = noDataSeverity;
return this;
}
/**
* policyConfiguration.
*/
public Builder policyConfiguration(PolicyConfiguration policyConfiguration) {
this.policyConfiguration = policyConfiguration;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder queryList(java.util.List<AlertQuery> queryList) {
this.queryList = queryList;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder sendResolved(Boolean sendResolved) {
this.sendResolved = sendResolved;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder severityConfigurations(java.util.List<SeverityConfiguration> severityConfigurations) {
this.severityConfigurations = severityConfigurations;
return this;
}
/**
* sinkAlerthub.
*/
public Builder sinkAlerthub(SinkAlerthubConfiguration sinkAlerthub) {
this.sinkAlerthub = sinkAlerthub;
return this;
}
/**
* sinkCms.
*/
public Builder sinkCms(SinkCmsConfiguration sinkCms) {
this.sinkCms = sinkCms;
return this;
}
/**
* sinkEventStore.
*/
public Builder sinkEventStore(SinkEventStoreConfiguration sinkEventStore) {
this.sinkEventStore = sinkEventStore;
return this;
}
/**
* tags.
*/
public Builder tags(java.util.List<String> tags) {
this.tags = tags;
return this;
}
/**
* templateConfiguration.
*/
public Builder templateConfiguration(TemplateConfiguration templateConfiguration) {
this.templateConfiguration = templateConfiguration;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder threshold(Integer threshold) {
this.threshold = threshold;
return this;
}
/**
* type.
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2.0</p>
*/
public Builder version(String version) {
this.version = version;
return this;
}
public AlertConfiguration build() {
return new AlertConfiguration(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/AlertQuery.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link AlertQuery} extends {@link TeaModel}
*
* <p>AlertQuery</p>
*/
public class AlertQuery extends TeaModel {
@com.aliyun.core.annotation.NameInMap("chartTitle")
private String chartTitle;
@com.aliyun.core.annotation.NameInMap("dashboardId")
private String dashboardId;
@com.aliyun.core.annotation.NameInMap("end")
@com.aliyun.core.annotation.Validation(required = true)
private String end;
@com.aliyun.core.annotation.NameInMap("powerSqlMode")
private String powerSqlMode;
@com.aliyun.core.annotation.NameInMap("project")
@com.aliyun.core.annotation.Validation(required = true)
private String project;
@com.aliyun.core.annotation.NameInMap("query")
@com.aliyun.core.annotation.Validation(required = true)
private String query;
@com.aliyun.core.annotation.NameInMap("region")
@com.aliyun.core.annotation.Validation(required = true)
private String region;
@com.aliyun.core.annotation.NameInMap("roleArn")
private String roleArn;
@com.aliyun.core.annotation.NameInMap("start")
@com.aliyun.core.annotation.Validation(required = true)
private String start;
@com.aliyun.core.annotation.NameInMap("store")
@com.aliyun.core.annotation.Validation(required = true)
private String store;
@com.aliyun.core.annotation.NameInMap("storeType")
@com.aliyun.core.annotation.Validation(required = true)
private String storeType;
@com.aliyun.core.annotation.NameInMap("timeSpanType")
@com.aliyun.core.annotation.Validation(required = true)
private String timeSpanType;
@com.aliyun.core.annotation.NameInMap("ui")
private String ui;
private AlertQuery(Builder builder) {
this.chartTitle = builder.chartTitle;
this.dashboardId = builder.dashboardId;
this.end = builder.end;
this.powerSqlMode = builder.powerSqlMode;
this.project = builder.project;
this.query = builder.query;
this.region = builder.region;
this.roleArn = builder.roleArn;
this.start = builder.start;
this.store = builder.store;
this.storeType = builder.storeType;
this.timeSpanType = builder.timeSpanType;
this.ui = builder.ui;
}
public static Builder builder() {
return new Builder();
}
public static AlertQuery create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return chartTitle
*/
public String getChartTitle() {
return this.chartTitle;
}
/**
* @return dashboardId
*/
public String getDashboardId() {
return this.dashboardId;
}
/**
* @return end
*/
public String getEnd() {
return this.end;
}
/**
* @return powerSqlMode
*/
public String getPowerSqlMode() {
return this.powerSqlMode;
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return query
*/
public String getQuery() {
return this.query;
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
/**
* @return roleArn
*/
public String getRoleArn() {
return this.roleArn;
}
/**
* @return start
*/
public String getStart() {
return this.start;
}
/**
* @return store
*/
public String getStore() {
return this.store;
}
/**
* @return storeType
*/
public String getStoreType() {
return this.storeType;
}
/**
* @return timeSpanType
*/
public String getTimeSpanType() {
return this.timeSpanType;
}
/**
* @return ui
*/
public String getUi() {
return this.ui;
}
public static final class Builder {
private String chartTitle;
private String dashboardId;
private String end;
private String powerSqlMode;
private String project;
private String query;
private String region;
private String roleArn;
private String start;
private String store;
private String storeType;
private String timeSpanType;
private String ui;
private Builder() {
}
private Builder(AlertQuery model) {
this.chartTitle = model.chartTitle;
this.dashboardId = model.dashboardId;
this.end = model.end;
this.powerSqlMode = model.powerSqlMode;
this.project = model.project;
this.query = model.query;
this.region = model.region;
this.roleArn = model.roleArn;
this.start = model.start;
this.store = model.store;
this.storeType = model.storeType;
this.timeSpanType = model.timeSpanType;
this.ui = model.ui;
}
/**
* chartTitle.
*/
public Builder chartTitle(String chartTitle) {
this.chartTitle = chartTitle;
return this;
}
/**
* dashboardId.
*/
public Builder dashboardId(String dashboardId) {
this.dashboardId = dashboardId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>now</p>
*/
public Builder end(String end) {
this.end = end;
return this;
}
/**
* powerSqlMode.
*/
public Builder powerSqlMode(String powerSqlMode) {
this.powerSqlMode = powerSqlMode;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>projectExample</p>
*/
public Builder project(String project) {
this.project = project;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <ul>
* <li>| select *</li>
* </ul>
*/
public Builder query(String query) {
this.query = query;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder region(String region) {
this.region = region;
return this;
}
/**
* roleArn.
*/
public Builder roleArn(String roleArn) {
this.roleArn = roleArn;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>-5m</p>
*/
public Builder start(String start) {
this.start = start;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>store Example</p>
*/
public Builder store(String store) {
this.store = store;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>log</p>
*/
public Builder storeType(String storeType) {
this.storeType = storeType;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Relative</p>
*/
public Builder timeSpanType(String timeSpanType) {
this.timeSpanType = timeSpanType;
return this;
}
/**
* ui.
*/
public Builder ui(String ui) {
this.ui = ui;
return this;
}
public AlertQuery build() {
return new AlertQuery(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/AlertTag.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link AlertTag} extends {@link TeaModel}
*
* <p>AlertTag</p>
*/
public class AlertTag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("key")
private String key;
@com.aliyun.core.annotation.NameInMap("value")
private String value;
private AlertTag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static AlertTag create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(AlertTag model) {
this.key = model.key;
this.value = model.value;
}
/**
* key.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public AlertTag build() {
return new AlertTag(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ApplyConfigToMachineGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ApplyConfigToMachineGroupRequest} extends {@link RequestModel}
*
* <p>ApplyConfigToMachineGroupRequest</p>
*/
public class ApplyConfigToMachineGroupRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("machineGroup")
@com.aliyun.core.annotation.Validation(required = true)
private String machineGroup;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("configName")
@com.aliyun.core.annotation.Validation(required = true)
private String configName;
private ApplyConfigToMachineGroupRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.machineGroup = builder.machineGroup;
this.configName = builder.configName;
}
public static Builder builder() {
return new Builder();
}
public static ApplyConfigToMachineGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return machineGroup
*/
public String getMachineGroup() {
return this.machineGroup;
}
/**
* @return configName
*/
public String getConfigName() {
return this.configName;
}
public static final class Builder extends Request.Builder<ApplyConfigToMachineGroupRequest, Builder> {
private String project;
private String machineGroup;
private String configName;
private Builder() {
super();
}
private Builder(ApplyConfigToMachineGroupRequest request) {
super(request);
this.project = request.project;
this.machineGroup = request.machineGroup;
this.configName = request.configName;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The name of the machine group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>sample-group</p>
*/
public Builder machineGroup(String machineGroup) {
this.putPathParameter("machineGroup", machineGroup);
this.machineGroup = machineGroup;
return this;
}
/**
* <p>The name of the Logtail configuration.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>logtail-config-sample</p>
*/
public Builder configName(String configName) {
this.putPathParameter("configName", configName);
this.configName = configName;
return this;
}
@Override
public ApplyConfigToMachineGroupRequest build() {
return new ApplyConfigToMachineGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ApplyConfigToMachineGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ApplyConfigToMachineGroupResponse} extends {@link TeaModel}
*
* <p>ApplyConfigToMachineGroupResponse</p>
*/
public class ApplyConfigToMachineGroupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private ApplyConfigToMachineGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static ApplyConfigToMachineGroupResponse 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;
}
public interface Builder extends Response.Builder<ApplyConfigToMachineGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
ApplyConfigToMachineGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ApplyConfigToMachineGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(ApplyConfigToMachineGroupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public ApplyConfigToMachineGroupResponse build() {
return new ApplyConfigToMachineGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CallAiToolsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CallAiToolsRequest} extends {@link RequestModel}
*
* <p>CallAiToolsRequest</p>
*/
public class CallAiToolsRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("params")
private java.util.Map<String, String> params;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("regionId")
private String regionId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("toolName")
@com.aliyun.core.annotation.Validation(required = true)
private String toolName;
private CallAiToolsRequest(Builder builder) {
super(builder);
this.params = builder.params;
this.regionId = builder.regionId;
this.toolName = builder.toolName;
}
public static Builder builder() {
return new Builder();
}
public static CallAiToolsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return params
*/
public java.util.Map<String, String> getParams() {
return this.params;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return toolName
*/
public String getToolName() {
return this.toolName;
}
public static final class Builder extends Request.Builder<CallAiToolsRequest, Builder> {
private java.util.Map<String, String> params;
private String regionId;
private String toolName;
private Builder() {
super();
}
private Builder(CallAiToolsRequest request) {
super(request);
this.params = request.params;
this.regionId = request.regionId;
this.toolName = request.toolName;
}
/**
* params.
*/
public Builder params(java.util.Map<String, String> params) {
this.putBodyParameter("params", params);
this.params = params;
return this;
}
/**
* regionId.
*/
public Builder regionId(String regionId) {
this.putBodyParameter("regionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder toolName(String toolName) {
this.putBodyParameter("toolName", toolName);
this.toolName = toolName;
return this;
}
@Override
public CallAiToolsRequest build() {
return new CallAiToolsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CallAiToolsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CallAiToolsResponse} extends {@link TeaModel}
*
* <p>CallAiToolsResponse</p>
*/
public class CallAiToolsResponse 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 String body;
private CallAiToolsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CallAiToolsResponse 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 String getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CallAiToolsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(String body);
@Override
CallAiToolsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CallAiToolsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private String body;
private BuilderImpl() {
super();
}
private BuilderImpl(CallAiToolsResponse 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(String body) {
this.body = body;
return this;
}
@Override
public CallAiToolsResponse build() {
return new CallAiToolsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ChangeResourceGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ChangeResourceGroupRequest} extends {@link RequestModel}
*
* <p>ChangeResourceGroupRequest</p>
*/
public class ChangeResourceGroupRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("resourceGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceGroupId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("resourceId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("resourceType")
private String resourceType;
private ChangeResourceGroupRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.resourceGroupId = builder.resourceGroupId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static ChangeResourceGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
public static final class Builder extends Request.Builder<ChangeResourceGroupRequest, Builder> {
private String project;
private String resourceGroupId;
private String resourceId;
private String resourceType;
private Builder() {
super();
}
private Builder(ChangeResourceGroupRequest request) {
super(request);
this.project = request.project;
this.resourceGroupId = request.resourceGroupId;
this.resourceId = request.resourceId;
this.resourceType = request.resourceType;
}
/**
* <p>The project to which the resource belongs.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The ID of the resource group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rg-aek2i7nhaxifxey</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putBodyParameter("resourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the resource.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder resourceId(String resourceId) {
this.putBodyParameter("resourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of the resource. Only PROJECT is supported. Set the value to PROJECT.</p>
*
* <strong>example:</strong>
* <p>PROJECT</p>
*/
public Builder resourceType(String resourceType) {
this.putBodyParameter("resourceType", resourceType);
this.resourceType = resourceType;
return this;
}
@Override
public ChangeResourceGroupRequest build() {
return new ChangeResourceGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ChangeResourceGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ChangeResourceGroupResponse} extends {@link TeaModel}
*
* <p>ChangeResourceGroupResponse</p>
*/
public class ChangeResourceGroupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private ChangeResourceGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static ChangeResourceGroupResponse 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;
}
public interface Builder extends Response.Builder<ChangeResourceGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
ChangeResourceGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ChangeResourceGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(ChangeResourceGroupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public ChangeResourceGroupResponse build() {
return new ChangeResourceGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/Chart.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link Chart} extends {@link TeaModel}
*
* <p>Chart</p>
*/
public class Chart extends TeaModel {
@com.aliyun.core.annotation.NameInMap("action")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.Map<String, ?> action;
@com.aliyun.core.annotation.NameInMap("display")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.Map<String, ?> display;
@com.aliyun.core.annotation.NameInMap("search")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.Map<String, ?> search;
@com.aliyun.core.annotation.NameInMap("title")
@com.aliyun.core.annotation.Validation(required = true)
private String title;
@com.aliyun.core.annotation.NameInMap("type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private Chart(Builder builder) {
this.action = builder.action;
this.display = builder.display;
this.search = builder.search;
this.title = builder.title;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Chart create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return action
*/
public java.util.Map<String, ?> getAction() {
return this.action;
}
/**
* @return display
*/
public java.util.Map<String, ?> getDisplay() {
return this.display;
}
/**
* @return search
*/
public java.util.Map<String, ?> getSearch() {
return this.search;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private java.util.Map<String, ?> action;
private java.util.Map<String, ?> display;
private java.util.Map<String, ?> search;
private String title;
private String type;
private Builder() {
}
private Builder(Chart model) {
this.action = model.action;
this.display = model.display;
this.search = model.search;
this.title = model.title;
this.type = model.type;
}
/**
* <p>This parameter is required.</p>
*/
public Builder action(java.util.Map<String, ?> action) {
this.action = action;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder display(java.util.Map<String, ?> display) {
this.display = display;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder search(java.util.Map<String, ?> search) {
this.search = search;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-chart</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>linepro</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Chart build() {
return new Chart(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ConditionConfiguration.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ConditionConfiguration} extends {@link TeaModel}
*
* <p>ConditionConfiguration</p>
*/
public class ConditionConfiguration extends TeaModel {
@com.aliyun.core.annotation.NameInMap("condition")
private String condition;
@com.aliyun.core.annotation.NameInMap("countCondition")
private String countCondition;
private ConditionConfiguration(Builder builder) {
this.condition = builder.condition;
this.countCondition = builder.countCondition;
}
public static Builder builder() {
return new Builder();
}
public static ConditionConfiguration create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return condition
*/
public String getCondition() {
return this.condition;
}
/**
* @return countCondition
*/
public String getCountCondition() {
return this.countCondition;
}
public static final class Builder {
private String condition;
private String countCondition;
private Builder() {
}
private Builder(ConditionConfiguration model) {
this.condition = model.condition;
this.countCondition = model.countCondition;
}
/**
* condition.
*/
public Builder condition(String condition) {
this.condition = condition;
return this;
}
/**
* countCondition.
*/
public Builder countCondition(String countCondition) {
this.countCondition = countCondition;
return this;
}
public ConditionConfiguration build() {
return new ConditionConfiguration(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ConsumeProcessor.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ConsumeProcessor} extends {@link TeaModel}
*
* <p>ConsumeProcessor</p>
*/
public class ConsumeProcessor extends TeaModel {
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private ConsumeProcessorConfiguration configuration;
@com.aliyun.core.annotation.NameInMap("createTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.NameInMap("processorName")
@com.aliyun.core.annotation.Validation(required = true)
private String processorName;
@com.aliyun.core.annotation.NameInMap("updateTime")
private Long updateTime;
private ConsumeProcessor(Builder builder) {
this.configuration = builder.configuration;
this.createTime = builder.createTime;
this.description = builder.description;
this.displayName = builder.displayName;
this.processorName = builder.processorName;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static ConsumeProcessor create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return configuration
*/
public ConsumeProcessorConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return processorName
*/
public String getProcessorName() {
return this.processorName;
}
/**
* @return updateTime
*/
public Long getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private ConsumeProcessorConfiguration configuration;
private Long createTime;
private String description;
private String displayName;
private String processorName;
private Long updateTime;
private Builder() {
}
private Builder(ConsumeProcessor model) {
this.configuration = model.configuration;
this.createTime = model.createTime;
this.description = model.description;
this.displayName = model.displayName;
this.processorName = model.processorName;
this.updateTime = model.updateTime;
}
/**
* <p>This parameter is required.</p>
*/
public Builder configuration(ConsumeProcessorConfiguration configuration) {
this.configuration = configuration;
return this;
}
/**
* createTime.
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>字段过滤处理</p>
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consume-processor-1</p>
*/
public Builder processorName(String processorName) {
this.processorName = processorName;
return this;
}
/**
* updateTime.
*/
public Builder updateTime(Long updateTime) {
this.updateTime = updateTime;
return this;
}
public ConsumeProcessor build() {
return new ConsumeProcessor(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ConsumeProcessorConfiguration.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ConsumeProcessorConfiguration} extends {@link TeaModel}
*
* <p>ConsumeProcessorConfiguration</p>
*/
public class ConsumeProcessorConfiguration extends TeaModel {
@com.aliyun.core.annotation.NameInMap("spl")
@com.aliyun.core.annotation.Validation(required = true)
private String spl;
private ConsumeProcessorConfiguration(Builder builder) {
this.spl = builder.spl;
}
public static Builder builder() {
return new Builder();
}
public static ConsumeProcessorConfiguration create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return spl
*/
public String getSpl() {
return this.spl;
}
public static final class Builder {
private String spl;
private Builder() {
}
private Builder(ConsumeProcessorConfiguration model) {
this.spl = model.spl;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <ul>
* <li>| project content</li>
* </ul>
*/
public Builder spl(String spl) {
this.spl = spl;
return this;
}
public ConsumeProcessorConfiguration build() {
return new ConsumeProcessorConfiguration(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ConsumerGroup.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ConsumerGroup} extends {@link TeaModel}
*
* <p>ConsumerGroup</p>
*/
public class ConsumerGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("name")
private String name;
@com.aliyun.core.annotation.NameInMap("order")
private Boolean order;
@com.aliyun.core.annotation.NameInMap("timeout")
private Integer timeout;
private ConsumerGroup(Builder builder) {
this.name = builder.name;
this.order = builder.order;
this.timeout = builder.timeout;
}
public static Builder builder() {
return new Builder();
}
public static ConsumerGroup create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return order
*/
public Boolean getOrder() {
return this.order;
}
/**
* @return timeout
*/
public Integer getTimeout() {
return this.timeout;
}
public static final class Builder {
private String name;
private Boolean order;
private Integer timeout;
private Builder() {
}
private Builder(ConsumerGroup model) {
this.name = model.name;
this.order = model.order;
this.timeout = model.timeout;
}
/**
* name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* order.
*/
public Builder order(Boolean order) {
this.order = order;
return this;
}
/**
* timeout.
*/
public Builder timeout(Integer timeout) {
this.timeout = timeout;
return this;
}
public ConsumerGroup build() {
return new ConsumerGroup(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ConsumerGroupHeartBeatRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ConsumerGroupHeartBeatRequest} extends {@link RequestModel}
*
* <p>ConsumerGroupHeartBeatRequest</p>
*/
public class ConsumerGroupHeartBeatRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("logstore")
@com.aliyun.core.annotation.Validation(required = true)
private String logstore;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("consumerGroup")
@com.aliyun.core.annotation.Validation(required = true)
private String consumerGroup;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("body")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<Integer> body;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("consumer")
@com.aliyun.core.annotation.Validation(required = true)
private String consumer;
private ConsumerGroupHeartBeatRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.logstore = builder.logstore;
this.consumerGroup = builder.consumerGroup;
this.body = builder.body;
this.consumer = builder.consumer;
}
public static Builder builder() {
return new Builder();
}
public static ConsumerGroupHeartBeatRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return consumerGroup
*/
public String getConsumerGroup() {
return this.consumerGroup;
}
/**
* @return body
*/
public java.util.List<Integer> getBody() {
return this.body;
}
/**
* @return consumer
*/
public String getConsumer() {
return this.consumer;
}
public static final class Builder extends Request.Builder<ConsumerGroupHeartBeatRequest, Builder> {
private String project;
private String logstore;
private String consumerGroup;
private java.util.List<Integer> body;
private String consumer;
private Builder() {
super();
}
private Builder(ConsumerGroupHeartBeatRequest request) {
super(request);
this.project = request.project;
this.logstore = request.logstore;
this.consumerGroup = request.consumerGroup;
this.body = request.body;
this.consumer = request.consumer;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The name of the Logstore.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-logstore</p>
*/
public Builder logstore(String logstore) {
this.putPathParameter("logstore", logstore);
this.logstore = logstore;
return this;
}
/**
* <p>The name of the consumer group. The name must be unique in a project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consumer_group_test</p>
*/
public Builder consumerGroup(String consumerGroup) {
this.putPathParameter("consumerGroup", consumerGroup);
this.consumerGroup = consumerGroup;
return this;
}
/**
* <p>The IDs of shards whose data is being consumed.</p>
* <p>This parameter is required.</p>
*/
public Builder body(java.util.List<Integer> body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
/**
* <p>The consumer.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consumer_1</p>
*/
public Builder consumer(String consumer) {
this.putQueryParameter("consumer", consumer);
this.consumer = consumer;
return this;
}
@Override
public ConsumerGroupHeartBeatRequest build() {
return new ConsumerGroupHeartBeatRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ConsumerGroupHeartBeatResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ConsumerGroupHeartBeatResponse} extends {@link TeaModel}
*
* <p>ConsumerGroupHeartBeatResponse</p>
*/
public class ConsumerGroupHeartBeatResponse 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 java.util.List<Integer> body;
private ConsumerGroupHeartBeatResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ConsumerGroupHeartBeatResponse 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 java.util.List<Integer> getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ConsumerGroupHeartBeatResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(java.util.List<Integer> body);
@Override
ConsumerGroupHeartBeatResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ConsumerGroupHeartBeatResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private java.util.List<Integer> body;
private BuilderImpl() {
super();
}
private BuilderImpl(ConsumerGroupHeartBeatResponse 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(java.util.List<Integer> body) {
this.body = body;
return this;
}
@Override
public ConsumerGroupHeartBeatResponse build() {
return new ConsumerGroupHeartBeatResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ConsumerGroupUpdateCheckPointRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ConsumerGroupUpdateCheckPointRequest} extends {@link RequestModel}
*
* <p>ConsumerGroupUpdateCheckPointRequest</p>
*/
public class ConsumerGroupUpdateCheckPointRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("logstore")
@com.aliyun.core.annotation.Validation(required = true)
private String logstore;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("consumerGroup")
@com.aliyun.core.annotation.Validation(required = true)
private String consumerGroup;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("checkpoint")
@com.aliyun.core.annotation.Validation(required = true)
private String checkpoint;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("shard")
@com.aliyun.core.annotation.Validation(required = true)
private Integer shard;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("consumer")
@com.aliyun.core.annotation.Validation(required = true)
private String consumer;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("forceSuccess")
private Boolean forceSuccess;
private ConsumerGroupUpdateCheckPointRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.logstore = builder.logstore;
this.consumerGroup = builder.consumerGroup;
this.checkpoint = builder.checkpoint;
this.shard = builder.shard;
this.consumer = builder.consumer;
this.forceSuccess = builder.forceSuccess;
}
public static Builder builder() {
return new Builder();
}
public static ConsumerGroupUpdateCheckPointRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return consumerGroup
*/
public String getConsumerGroup() {
return this.consumerGroup;
}
/**
* @return checkpoint
*/
public String getCheckpoint() {
return this.checkpoint;
}
/**
* @return shard
*/
public Integer getShard() {
return this.shard;
}
/**
* @return consumer
*/
public String getConsumer() {
return this.consumer;
}
/**
* @return forceSuccess
*/
public Boolean getForceSuccess() {
return this.forceSuccess;
}
public static final class Builder extends Request.Builder<ConsumerGroupUpdateCheckPointRequest, Builder> {
private String project;
private String logstore;
private String consumerGroup;
private String checkpoint;
private Integer shard;
private String consumer;
private Boolean forceSuccess;
private Builder() {
super();
}
private Builder(ConsumerGroupUpdateCheckPointRequest request) {
super(request);
this.project = request.project;
this.logstore = request.logstore;
this.consumerGroup = request.consumerGroup;
this.checkpoint = request.checkpoint;
this.shard = request.shard;
this.consumer = request.consumer;
this.forceSuccess = request.forceSuccess;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The name of the Logstore.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-logstore</p>
*/
public Builder logstore(String logstore) {
this.putPathParameter("logstore", logstore);
this.logstore = logstore;
return this;
}
/**
* <p>The name of the consumer group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consumer_group_test</p>
*/
public Builder consumerGroup(String consumerGroup) {
this.putPathParameter("consumerGroup", consumerGroup);
this.consumerGroup = consumerGroup;
return this;
}
/**
* <p>The value of the checkpoint.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>MTUyNDE1NTM3OTM3MzkwODQ5Ng==</p>
*/
public Builder checkpoint(String checkpoint) {
this.putBodyParameter("checkpoint", checkpoint);
this.checkpoint = checkpoint;
return this;
}
/**
* <p>The ID of the shard.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder shard(Integer shard) {
this.putBodyParameter("shard", shard);
this.shard = shard;
return this;
}
/**
* <p>The consumer.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consumer_1</p>
*/
public Builder consumer(String consumer) {
this.putQueryParameter("consumer", consumer);
this.consumer = consumer;
return this;
}
/**
* <p>Specifies whether to enable forceful updates. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
*
* <strong>example:</strong>
* <p>False</p>
*/
public Builder forceSuccess(Boolean forceSuccess) {
this.putQueryParameter("forceSuccess", forceSuccess);
this.forceSuccess = forceSuccess;
return this;
}
@Override
public ConsumerGroupUpdateCheckPointRequest build() {
return new ConsumerGroupUpdateCheckPointRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/ConsumerGroupUpdateCheckPointResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link ConsumerGroupUpdateCheckPointResponse} extends {@link TeaModel}
*
* <p>ConsumerGroupUpdateCheckPointResponse</p>
*/
public class ConsumerGroupUpdateCheckPointResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private ConsumerGroupUpdateCheckPointResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static ConsumerGroupUpdateCheckPointResponse 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;
}
public interface Builder extends Response.Builder<ConsumerGroupUpdateCheckPointResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
ConsumerGroupUpdateCheckPointResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ConsumerGroupUpdateCheckPointResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(ConsumerGroupUpdateCheckPointResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public ConsumerGroupUpdateCheckPointResponse build() {
return new ConsumerGroupUpdateCheckPointResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CopilotAction.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CopilotAction} extends {@link TeaModel}
*
* <p>CopilotAction</p>
*/
public class CopilotAction extends TeaModel {
@com.aliyun.core.annotation.NameInMap("action")
private String action;
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.NameInMap("name")
private String name;
@com.aliyun.core.annotation.NameInMap("parameters")
private java.util.List<Parameters> parameters;
@com.aliyun.core.annotation.NameInMap("queryMaxLength")
private Long queryMaxLength;
@com.aliyun.core.annotation.NameInMap("queryTemplate")
private String queryTemplate;
@com.aliyun.core.annotation.NameInMap("queryTemplateParameters")
private java.util.List<QueryTemplateParameters> queryTemplateParameters;
@com.aliyun.core.annotation.NameInMap("scene")
private String scene;
private CopilotAction(Builder builder) {
this.action = builder.action;
this.description = builder.description;
this.name = builder.name;
this.parameters = builder.parameters;
this.queryMaxLength = builder.queryMaxLength;
this.queryTemplate = builder.queryTemplate;
this.queryTemplateParameters = builder.queryTemplateParameters;
this.scene = builder.scene;
}
public static Builder builder() {
return new Builder();
}
public static CopilotAction create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return parameters
*/
public java.util.List<Parameters> getParameters() {
return this.parameters;
}
/**
* @return queryMaxLength
*/
public Long getQueryMaxLength() {
return this.queryMaxLength;
}
/**
* @return queryTemplate
*/
public String getQueryTemplate() {
return this.queryTemplate;
}
/**
* @return queryTemplateParameters
*/
public java.util.List<QueryTemplateParameters> getQueryTemplateParameters() {
return this.queryTemplateParameters;
}
/**
* @return scene
*/
public String getScene() {
return this.scene;
}
public static final class Builder {
private String action;
private String description;
private String name;
private java.util.List<Parameters> parameters;
private Long queryMaxLength;
private String queryTemplate;
private java.util.List<QueryTemplateParameters> queryTemplateParameters;
private String scene;
private Builder() {
}
private Builder(CopilotAction model) {
this.action = model.action;
this.description = model.description;
this.name = model.name;
this.parameters = model.parameters;
this.queryMaxLength = model.queryMaxLength;
this.queryTemplate = model.queryTemplate;
this.queryTemplateParameters = model.queryTemplateParameters;
this.scene = model.scene;
}
/**
* action.
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* parameters.
*/
public Builder parameters(java.util.List<Parameters> parameters) {
this.parameters = parameters;
return this;
}
/**
* queryMaxLength.
*/
public Builder queryMaxLength(Long queryMaxLength) {
this.queryMaxLength = queryMaxLength;
return this;
}
/**
* queryTemplate.
*/
public Builder queryTemplate(String queryTemplate) {
this.queryTemplate = queryTemplate;
return this;
}
/**
* queryTemplateParameters.
*/
public Builder queryTemplateParameters(java.util.List<QueryTemplateParameters> queryTemplateParameters) {
this.queryTemplateParameters = queryTemplateParameters;
return this;
}
/**
* scene.
*/
public Builder scene(String scene) {
this.scene = scene;
return this;
}
public CopilotAction build() {
return new CopilotAction(this);
}
}
/**
*
* {@link CopilotAction} extends {@link TeaModel}
*
* <p>CopilotAction</p>
*/
public static class Parameters extends TeaModel {
@com.aliyun.core.annotation.NameInMap("name")
private String name;
@com.aliyun.core.annotation.NameInMap("prompt")
private String prompt;
@com.aliyun.core.annotation.NameInMap("required")
private String required;
@com.aliyun.core.annotation.NameInMap("type")
private String type;
private Parameters(Builder builder) {
this.name = builder.name;
this.prompt = builder.prompt;
this.required = builder.required;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Parameters create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return prompt
*/
public String getPrompt() {
return this.prompt;
}
/**
* @return required
*/
public String getRequired() {
return this.required;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String name;
private String prompt;
private String required;
private String type;
private Builder() {
}
private Builder(Parameters model) {
this.name = model.name;
this.prompt = model.prompt;
this.required = model.required;
this.type = model.type;
}
/**
* name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* prompt.
*/
public Builder prompt(String prompt) {
this.prompt = prompt;
return this;
}
/**
* required.
*/
public Builder required(String required) {
this.required = required;
return this;
}
/**
* type.
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Parameters build() {
return new Parameters(this);
}
}
}
/**
*
* {@link CopilotAction} extends {@link TeaModel}
*
* <p>CopilotAction</p>
*/
public static class QueryTemplateParameters extends TeaModel {
@com.aliyun.core.annotation.NameInMap("name")
private String name;
@com.aliyun.core.annotation.NameInMap("prompt")
private String prompt;
@com.aliyun.core.annotation.NameInMap("required")
private String required;
@com.aliyun.core.annotation.NameInMap("type")
private String type;
private QueryTemplateParameters(Builder builder) {
this.name = builder.name;
this.prompt = builder.prompt;
this.required = builder.required;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static QueryTemplateParameters create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return prompt
*/
public String getPrompt() {
return this.prompt;
}
/**
* @return required
*/
public String getRequired() {
return this.required;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String name;
private String prompt;
private String required;
private String type;
private Builder() {
}
private Builder(QueryTemplateParameters model) {
this.name = model.name;
this.prompt = model.prompt;
this.required = model.required;
this.type = model.type;
}
/**
* name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* prompt.
*/
public Builder prompt(String prompt) {
this.prompt = prompt;
return this;
}
/**
* required.
*/
public Builder required(String required) {
this.required = required;
return this;
}
/**
* type.
*/
public Builder type(String type) {
this.type = type;
return this;
}
public QueryTemplateParameters build() {
return new QueryTemplateParameters(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateAgentInstanceConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateAgentInstanceConfigRequest} extends {@link RequestModel}
*
* <p>CreateAgentInstanceConfigRequest</p>
*/
public class CreateAgentInstanceConfigRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("attributes")
private java.util.Map<String, String> attributes;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("config")
@com.aliyun.core.annotation.Validation(required = true)
private String config;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configType")
@com.aliyun.core.annotation.Validation(required = true)
private String configType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("grayConfigs")
private java.util.List<AgentInstanceConfigGrayConfigs> grayConfigs;
private CreateAgentInstanceConfigRequest(Builder builder) {
super(builder);
this.attributes = builder.attributes;
this.config = builder.config;
this.configType = builder.configType;
this.grayConfigs = builder.grayConfigs;
}
public static Builder builder() {
return new Builder();
}
public static CreateAgentInstanceConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attributes
*/
public java.util.Map<String, String> getAttributes() {
return this.attributes;
}
/**
* @return config
*/
public String getConfig() {
return this.config;
}
/**
* @return configType
*/
public String getConfigType() {
return this.configType;
}
/**
* @return grayConfigs
*/
public java.util.List<AgentInstanceConfigGrayConfigs> getGrayConfigs() {
return this.grayConfigs;
}
public static final class Builder extends Request.Builder<CreateAgentInstanceConfigRequest, Builder> {
private java.util.Map<String, String> attributes;
private String config;
private String configType;
private java.util.List<AgentInstanceConfigGrayConfigs> grayConfigs;
private Builder() {
super();
}
private Builder(CreateAgentInstanceConfigRequest request) {
super(request);
this.attributes = request.attributes;
this.config = request.config;
this.configType = request.configType;
this.grayConfigs = request.grayConfigs;
}
/**
* attributes.
*/
public Builder attributes(java.util.Map<String, String> attributes) {
this.putBodyParameter("attributes", attributes);
this.attributes = attributes;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder config(String config) {
this.putBodyParameter("config", config);
this.config = config;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder configType(String configType) {
this.putBodyParameter("configType", configType);
this.configType = configType;
return this;
}
/**
* grayConfigs.
*/
public Builder grayConfigs(java.util.List<AgentInstanceConfigGrayConfigs> grayConfigs) {
this.putBodyParameter("grayConfigs", grayConfigs);
this.grayConfigs = grayConfigs;
return this;
}
@Override
public CreateAgentInstanceConfigRequest build() {
return new CreateAgentInstanceConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateAgentInstanceConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateAgentInstanceConfigResponse} extends {@link TeaModel}
*
* <p>CreateAgentInstanceConfigResponse</p>
*/
public class CreateAgentInstanceConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateAgentInstanceConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateAgentInstanceConfigResponse 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;
}
public interface Builder extends Response.Builder<CreateAgentInstanceConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateAgentInstanceConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateAgentInstanceConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateAgentInstanceConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateAgentInstanceConfigResponse build() {
return new CreateAgentInstanceConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateAlertRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateAlertRequest} extends {@link RequestModel}
*
* <p>CreateAlertRequest</p>
*/
public class CreateAlertRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private AlertConfiguration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("schedule")
@com.aliyun.core.annotation.Validation(required = true)
private Schedule schedule;
private CreateAlertRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
this.schedule = builder.schedule;
}
public static Builder builder() {
return new Builder();
}
public static CreateAlertRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public AlertConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return schedule
*/
public Schedule getSchedule() {
return this.schedule;
}
public static final class Builder extends Request.Builder<CreateAlertRequest, Builder> {
private String project;
private AlertConfiguration configuration;
private String description;
private String displayName;
private String name;
private Schedule schedule;
private Builder() {
super();
}
private Builder(CreateAlertRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
this.schedule = request.schedule;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The detailed configurations of the alert rule.</p>
* <p>This parameter is required.</p>
*/
public Builder configuration(AlertConfiguration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* <p>The description of the alert rule.</p>
*
* <strong>example:</strong>
* <p>An alert rule</p>
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>The display name of the alert rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-alert</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>The name of the alert rule. Make sure that the name is unique in a project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alert-123456</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
/**
* <p>The scheduling configurations of the alert rule.</p>
* <p>This parameter is required.</p>
*/
public Builder schedule(Schedule schedule) {
this.putBodyParameter("schedule", schedule);
this.schedule = schedule;
return this;
}
@Override
public CreateAlertRequest build() {
return new CreateAlertRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateAlertResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateAlertResponse} extends {@link TeaModel}
*
* <p>CreateAlertResponse</p>
*/
public class CreateAlertResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateAlertResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateAlertResponse 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;
}
public interface Builder extends Response.Builder<CreateAlertResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateAlertResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateAlertResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateAlertResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateAlertResponse build() {
return new CreateAlertResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateAnnotationDataSetRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateAnnotationDataSetRequest} extends {@link RequestModel}
*
* <p>CreateAnnotationDataSetRequest</p>
*/
public class CreateAnnotationDataSetRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("body")
private MLDataSetParam body;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("datasetId")
private String datasetId;
private CreateAnnotationDataSetRequest(Builder builder) {
super(builder);
this.body = builder.body;
this.datasetId = builder.datasetId;
}
public static Builder builder() {
return new Builder();
}
public static CreateAnnotationDataSetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return body
*/
public MLDataSetParam getBody() {
return this.body;
}
/**
* @return datasetId
*/
public String getDatasetId() {
return this.datasetId;
}
public static final class Builder extends Request.Builder<CreateAnnotationDataSetRequest, Builder> {
private MLDataSetParam body;
private String datasetId;
private Builder() {
super();
}
private Builder(CreateAnnotationDataSetRequest request) {
super(request);
this.body = request.body;
this.datasetId = request.datasetId;
}
/**
* <p>The data structure of the request.</p>
*/
public Builder body(MLDataSetParam body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
/**
* <p>The unique identifier of the dataset.</p>
*
* <strong>example:</strong>
* <p>cb8cc4eb51a85e823471cdb368fae9be</p>
*/
public Builder datasetId(String datasetId) {
this.putQueryParameter("datasetId", datasetId);
this.datasetId = datasetId;
return this;
}
@Override
public CreateAnnotationDataSetRequest build() {
return new CreateAnnotationDataSetRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateAnnotationDataSetResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateAnnotationDataSetResponse} extends {@link TeaModel}
*
* <p>CreateAnnotationDataSetResponse</p>
*/
public class CreateAnnotationDataSetResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateAnnotationDataSetResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateAnnotationDataSetResponse 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;
}
public interface Builder extends Response.Builder<CreateAnnotationDataSetResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateAnnotationDataSetResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateAnnotationDataSetResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateAnnotationDataSetResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateAnnotationDataSetResponse build() {
return new CreateAnnotationDataSetResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateAnnotationLabelRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateAnnotationLabelRequest} extends {@link RequestModel}
*
* <p>CreateAnnotationLabelRequest</p>
*/
public class CreateAnnotationLabelRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("body")
private MLLabelParam body;
private CreateAnnotationLabelRequest(Builder builder) {
super(builder);
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static CreateAnnotationLabelRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return body
*/
public MLLabelParam getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<CreateAnnotationLabelRequest, Builder> {
private MLLabelParam body;
private Builder() {
super();
}
private Builder(CreateAnnotationLabelRequest request) {
super(request);
this.body = request.body;
}
/**
* <p>The data structure of the request.</p>
*/
public Builder body(MLLabelParam body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public CreateAnnotationLabelRequest build() {
return new CreateAnnotationLabelRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateAnnotationLabelResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateAnnotationLabelResponse} extends {@link TeaModel}
*
* <p>CreateAnnotationLabelResponse</p>
*/
public class CreateAnnotationLabelResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateAnnotationLabelResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateAnnotationLabelResponse 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;
}
public interface Builder extends Response.Builder<CreateAnnotationLabelResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateAnnotationLabelResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateAnnotationLabelResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateAnnotationLabelResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateAnnotationLabelResponse build() {
return new CreateAnnotationLabelResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateConfigRequest} extends {@link RequestModel}
*
* <p>CreateConfigRequest</p>
*/
public class CreateConfigRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("body")
private LogtailConfig body;
private CreateConfigRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static CreateConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return body
*/
public LogtailConfig getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<CreateConfigRequest, Builder> {
private String project;
private LogtailConfig body;
private Builder() {
super();
}
private Builder(CreateConfigRequest request) {
super(request);
this.project = request.project;
this.body = request.body;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The body of the request.</p>
*/
public Builder body(LogtailConfig body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public CreateConfigRequest build() {
return new CreateConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.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;
private CreateConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
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;
}
public interface Builder extends Response.Builder<CreateConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@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 BuilderImpl() {
super();
}
private BuilderImpl(CreateConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateConfigResponse build() {
return new CreateConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateConsumerGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateConsumerGroupRequest} extends {@link RequestModel}
*
* <p>CreateConsumerGroupRequest</p>
*/
public class CreateConsumerGroupRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("logstore")
@com.aliyun.core.annotation.Validation(required = true)
private String logstore;
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("consumerGroup")
@com.aliyun.core.annotation.Validation(required = true)
private String consumerGroup;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("order")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean order;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("timeout")
@com.aliyun.core.annotation.Validation(required = true)
private Integer timeout;
private CreateConsumerGroupRequest(Builder builder) {
super(builder);
this.logstore = builder.logstore;
this.project = builder.project;
this.consumerGroup = builder.consumerGroup;
this.order = builder.order;
this.timeout = builder.timeout;
}
public static Builder builder() {
return new Builder();
}
public static CreateConsumerGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return consumerGroup
*/
public String getConsumerGroup() {
return this.consumerGroup;
}
/**
* @return order
*/
public Boolean getOrder() {
return this.order;
}
/**
* @return timeout
*/
public Integer getTimeout() {
return this.timeout;
}
public static final class Builder extends Request.Builder<CreateConsumerGroupRequest, Builder> {
private String logstore;
private String project;
private String consumerGroup;
private Boolean order;
private Integer timeout;
private Builder() {
super();
}
private Builder(CreateConsumerGroupRequest request) {
super(request);
this.logstore = request.logstore;
this.project = request.project;
this.consumerGroup = request.consumerGroup;
this.order = request.order;
this.timeout = request.timeout;
}
/**
* <p>The name of the Logstore.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>aliyun-test-logstore</p>
*/
public Builder logstore(String logstore) {
this.putPathParameter("logstore", logstore);
this.logstore = logstore;
return this;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>aliyun-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The name of the consumer group. The name must be unique in a project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consumerGroupX</p>
*/
public Builder consumerGroup(String consumerGroup) {
this.putBodyParameter("consumerGroup", consumerGroup);
this.consumerGroup = consumerGroup;
return this;
}
/**
* <p>Specifies whether to consume data in sequence. Valid values:</p>
* <ul>
* <li><p>true</p>
* <ul>
* <li>In a shard, data is consumed in ascending order based on the value of the **<strong>tag</strong>:<strong>receive_time</strong>** field.</li>
* <li>If a shard is split, data in the original shard is consumed first. Then, data in the new shards is consumed at the same time.</li>
* <li>If shards are merged, data in the original shards is consumed first. Then, data in the new shard is consumed.</li>
* </ul>
* </li>
* <li><p>false Data in all shards is consumed at the same time. If a new shard is generated after a shard is split or after shards are merged, data in the new shard is immediately consumed.</p>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder order(Boolean order) {
this.putBodyParameter("order", order);
this.order = order;
return this;
}
/**
* <p>The timeout period. If the server does not receive heartbeats from a consumer within the timeout period, the server deletes the consumer. Unit: seconds.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder timeout(Integer timeout) {
this.putBodyParameter("timeout", timeout);
this.timeout = timeout;
return this;
}
@Override
public CreateConsumerGroupRequest build() {
return new CreateConsumerGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateConsumerGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateConsumerGroupResponse} extends {@link TeaModel}
*
* <p>CreateConsumerGroupResponse</p>
*/
public class CreateConsumerGroupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateConsumerGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateConsumerGroupResponse 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;
}
public interface Builder extends Response.Builder<CreateConsumerGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateConsumerGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateConsumerGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateConsumerGroupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateConsumerGroupResponse build() {
return new CreateConsumerGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateDashboardRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateDashboardRequest} extends {@link RequestModel}
*
* <p>CreateDashboardRequest</p>
*/
public class CreateDashboardRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("body")
@com.aliyun.core.annotation.Validation(required = true)
private Dashboard body;
private CreateDashboardRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static CreateDashboardRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return body
*/
public Dashboard getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<CreateDashboardRequest, Builder> {
private String project;
private Dashboard body;
private Builder() {
super();
}
private Builder(CreateDashboardRequest request) {
super(request);
this.project = request.project;
this.body = request.body;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The data structure of the dashboard.</p>
* <p>This parameter is required.</p>
*/
public Builder body(Dashboard body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public CreateDashboardRequest build() {
return new CreateDashboardRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateDashboardResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateDashboardResponse} extends {@link TeaModel}
*
* <p>CreateDashboardResponse</p>
*/
public class CreateDashboardResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateDashboardResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateDashboardResponse 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;
}
public interface Builder extends Response.Builder<CreateDashboardResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateDashboardResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDashboardResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDashboardResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateDashboardResponse build() {
return new CreateDashboardResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateDomainRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateDomainRequest} extends {@link RequestModel}
*
* <p>CreateDomainRequest</p>
*/
public class CreateDomainRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("domainName")
@com.aliyun.core.annotation.Validation(required = true)
private String domainName;
private CreateDomainRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.domainName = builder.domainName;
}
public static Builder builder() {
return new Builder();
}
public static CreateDomainRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
public static final class Builder extends Request.Builder<CreateDomainRequest, Builder> {
private String project;
private String domainName;
private Builder() {
super();
}
private Builder(CreateDomainRequest request) {
super(request);
this.project = request.project;
this.domainName = request.domainName;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The domain name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainName(String domainName) {
this.putBodyParameter("domainName", domainName);
this.domainName = domainName;
return this;
}
@Override
public CreateDomainRequest build() {
return new CreateDomainRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateDomainResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateDomainResponse} extends {@link TeaModel}
*
* <p>CreateDomainResponse</p>
*/
public class CreateDomainResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateDomainResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateDomainResponse 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;
}
public interface Builder extends Response.Builder<CreateDomainResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateDomainResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDomainResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDomainResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateDomainResponse build() {
return new CreateDomainResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateDownloadJobRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateDownloadJobRequest} extends {@link RequestModel}
*
* <p>CreateDownloadJobRequest</p>
*/
public class CreateDownloadJobRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private Configuration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
private CreateDownloadJobRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static CreateDownloadJobRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public Configuration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder extends Request.Builder<CreateDownloadJobRequest, Builder> {
private String project;
private Configuration configuration;
private String description;
private String displayName;
private String name;
private Builder() {
super();
}
private Builder(CreateDownloadJobRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>下载配置</p>
* <p>This parameter is required.</p>
*/
public Builder configuration(Configuration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* <p>任务描述</p>
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>任务显示名称</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>download-123456789</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>代表资源名称的资源属性字段</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>download-123</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
@Override
public CreateDownloadJobRequest build() {
return new CreateDownloadJobRequest(this);
}
}
/**
*
* {@link CreateDownloadJobRequest} extends {@link TeaModel}
*
* <p>CreateDownloadJobRequest</p>
*/
public static class Sink extends TeaModel {
@com.aliyun.core.annotation.NameInMap("bucket")
private String bucket;
@com.aliyun.core.annotation.NameInMap("compressionType")
@com.aliyun.core.annotation.Validation(required = true)
private String compressionType;
@com.aliyun.core.annotation.NameInMap("contentType")
@com.aliyun.core.annotation.Validation(required = true)
private String contentType;
@com.aliyun.core.annotation.NameInMap("prefix")
private String prefix;
@com.aliyun.core.annotation.NameInMap("roleArn")
private String roleArn;
@com.aliyun.core.annotation.NameInMap("type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private Sink(Builder builder) {
this.bucket = builder.bucket;
this.compressionType = builder.compressionType;
this.contentType = builder.contentType;
this.prefix = builder.prefix;
this.roleArn = builder.roleArn;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Sink create() {
return builder().build();
}
/**
* @return bucket
*/
public String getBucket() {
return this.bucket;
}
/**
* @return compressionType
*/
public String getCompressionType() {
return this.compressionType;
}
/**
* @return contentType
*/
public String getContentType() {
return this.contentType;
}
/**
* @return prefix
*/
public String getPrefix() {
return this.prefix;
}
/**
* @return roleArn
*/
public String getRoleArn() {
return this.roleArn;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String bucket;
private String compressionType;
private String contentType;
private String prefix;
private String roleArn;
private String type;
private Builder() {
}
private Builder(Sink model) {
this.bucket = model.bucket;
this.compressionType = model.compressionType;
this.contentType = model.contentType;
this.prefix = model.prefix;
this.roleArn = model.roleArn;
this.type = model.type;
}
/**
* <p>对象存储桶</p>
*
* <strong>example:</strong>
* <p>oss-test-bucket</p>
*/
public Builder bucket(String bucket) {
this.bucket = bucket;
return this;
}
/**
* <p>压缩格式</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>none</p>
*/
public Builder compressionType(String compressionType) {
this.compressionType = compressionType;
return this;
}
/**
* <p>下载文件格式</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>csv</p>
*/
public Builder contentType(String contentType) {
this.contentType = contentType;
return this;
}
/**
* prefix.
*/
public Builder prefix(String prefix) {
this.prefix = prefix;
return this;
}
/**
* <p>下载使用roleArn</p>
*
* <strong>example:</strong>
* <p>acs:ram::0123456789:role/aliyunlogdefaultrole</p>
*/
public Builder roleArn(String roleArn) {
this.roleArn = roleArn;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AliyunOSS</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Sink build() {
return new Sink(this);
}
}
}
/**
*
* {@link CreateDownloadJobRequest} extends {@link TeaModel}
*
* <p>CreateDownloadJobRequest</p>
*/
public static class Configuration extends TeaModel {
@com.aliyun.core.annotation.NameInMap("allowInComplete")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean allowInComplete;
@com.aliyun.core.annotation.NameInMap("fromTime")
@com.aliyun.core.annotation.Validation(required = true)
private Long fromTime;
@com.aliyun.core.annotation.NameInMap("logstore")
@com.aliyun.core.annotation.Validation(required = true)
private String logstore;
@com.aliyun.core.annotation.NameInMap("powerSql")
private Boolean powerSql;
@com.aliyun.core.annotation.NameInMap("query")
@com.aliyun.core.annotation.Validation(required = true)
private String query;
@com.aliyun.core.annotation.NameInMap("sink")
@com.aliyun.core.annotation.Validation(required = true)
private Sink sink;
@com.aliyun.core.annotation.NameInMap("toTime")
@com.aliyun.core.annotation.Validation(required = true)
private Long toTime;
private Configuration(Builder builder) {
this.allowInComplete = builder.allowInComplete;
this.fromTime = builder.fromTime;
this.logstore = builder.logstore;
this.powerSql = builder.powerSql;
this.query = builder.query;
this.sink = builder.sink;
this.toTime = builder.toTime;
}
public static Builder builder() {
return new Builder();
}
public static Configuration create() {
return builder().build();
}
/**
* @return allowInComplete
*/
public Boolean getAllowInComplete() {
return this.allowInComplete;
}
/**
* @return fromTime
*/
public Long getFromTime() {
return this.fromTime;
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return powerSql
*/
public Boolean getPowerSql() {
return this.powerSql;
}
/**
* @return query
*/
public String getQuery() {
return this.query;
}
/**
* @return sink
*/
public Sink getSink() {
return this.sink;
}
/**
* @return toTime
*/
public Long getToTime() {
return this.toTime;
}
public static final class Builder {
private Boolean allowInComplete;
private Long fromTime;
private String logstore;
private Boolean powerSql;
private String query;
private Sink sink;
private Long toTime;
private Builder() {
}
private Builder(Configuration model) {
this.allowInComplete = model.allowInComplete;
this.fromTime = model.fromTime;
this.logstore = model.logstore;
this.powerSql = model.powerSql;
this.query = model.query;
this.sink = model.sink;
this.toTime = model.toTime;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder allowInComplete(Boolean allowInComplete) {
this.allowInComplete = allowInComplete;
return this;
}
/**
* <p>起点时间戳(精确到秒)</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1722406260</p>
*/
public Builder fromTime(Long fromTime) {
this.fromTime = fromTime;
return this;
}
/**
* <p>源logstore</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-logstore</p>
*/
public Builder logstore(String logstore) {
this.logstore = logstore;
return this;
}
/**
* <p>是否启用powerSql</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder powerSql(Boolean powerSql) {
this.powerSql = powerSql;
return this;
}
/**
* <p>查询语句</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <ul>
* <li>| select *</li>
* </ul>
*/
public Builder query(String query) {
this.query = query;
return this;
}
/**
* <p>导出配置</p>
* <p>This parameter is required.</p>
*/
public Builder sink(Sink sink) {
this.sink = sink;
return this;
}
/**
* <p>结束时间戳(精确到秒)</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1722409860</p>
*/
public Builder toTime(Long toTime) {
this.toTime = toTime;
return this;
}
public Configuration build() {
return new Configuration(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateDownloadJobResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateDownloadJobResponse} extends {@link TeaModel}
*
* <p>CreateDownloadJobResponse</p>
*/
public class CreateDownloadJobResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateDownloadJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateDownloadJobResponse 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;
}
public interface Builder extends Response.Builder<CreateDownloadJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateDownloadJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDownloadJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDownloadJobResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateDownloadJobResponse build() {
return new CreateDownloadJobResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateETLRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateETLRequest} extends {@link RequestModel}
*
* <p>CreateETLRequest</p>
*/
public class CreateETLRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private ETLConfiguration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
private CreateETLRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static CreateETLRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public ETLConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder extends Request.Builder<CreateETLRequest, Builder> {
private String project;
private ETLConfiguration configuration;
private String description;
private String displayName;
private String name;
private Builder() {
super();
}
private Builder(CreateETLRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
}
/**
* <p>Project name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The detailed configuration of the job.</p>
* <p>This parameter is required.</p>
*/
public Builder configuration(ETLConfiguration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* <p>The description of the job.</p>
*
* <strong>example:</strong>
* <p>this is ETL</p>
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>The display name of the job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>sls-test-etl</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>The name of the job (unique within a project).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>etl-123456</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
@Override
public CreateETLRequest build() {
return new CreateETLRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateETLResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateETLResponse} extends {@link TeaModel}
*
* <p>CreateETLResponse</p>
*/
public class CreateETLResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateETLResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateETLResponse 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;
}
public interface Builder extends Response.Builder<CreateETLResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateETLResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateETLResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateETLResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateETLResponse build() {
return new CreateETLResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateIndexRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateIndexRequest} extends {@link RequestModel}
*
* <p>CreateIndexRequest</p>
*/
public class CreateIndexRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("logstore")
@com.aliyun.core.annotation.Validation(required = true)
private String logstore;
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("body")
private Index body;
private CreateIndexRequest(Builder builder) {
super(builder);
this.logstore = builder.logstore;
this.project = builder.project;
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static CreateIndexRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return body
*/
public Index getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<CreateIndexRequest, Builder> {
private String logstore;
private String project;
private Index body;
private Builder() {
super();
}
private Builder(CreateIndexRequest request) {
super(request);
this.logstore = request.logstore;
this.project = request.project;
this.body = request.body;
}
/**
* <p>The name of the Logstore.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-logstore-test</p>
*/
public Builder logstore(String logstore) {
this.putPathParameter("logstore", logstore);
this.logstore = logstore;
return this;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-project-test</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The request body.</p>
*/
public Builder body(Index body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public CreateIndexRequest build() {
return new CreateIndexRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateIndexResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateIndexResponse} extends {@link TeaModel}
*
* <p>CreateIndexResponse</p>
*/
public class CreateIndexResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateIndexResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateIndexResponse 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;
}
public interface Builder extends Response.Builder<CreateIndexResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateIndexResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateIndexResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateIndexResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateIndexResponse build() {
return new CreateIndexResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateLogStoreRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateLogStoreRequest} extends {@link RequestModel}
*
* <p>CreateLogStoreRequest</p>
*/
public class CreateLogStoreRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("appendMeta")
private Boolean appendMeta;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("autoSplit")
private Boolean autoSplit;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("enable_tracking")
private Boolean enableTracking;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("encrypt_conf")
private EncryptConf encryptConf;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("hot_ttl")
private Integer hotTtl;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("infrequentAccessTTL")
private Integer infrequentAccessTTL;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("logstoreName")
@com.aliyun.core.annotation.Validation(required = true)
private String logstoreName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("maxSplitShard")
private Integer maxSplitShard;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("mode")
private String mode;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("processorId")
private String processorId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("shardCount")
@com.aliyun.core.annotation.Validation(required = true)
private Integer shardCount;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("telemetryType")
private String telemetryType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ttl")
@com.aliyun.core.annotation.Validation(required = true)
private Integer ttl;
private CreateLogStoreRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.appendMeta = builder.appendMeta;
this.autoSplit = builder.autoSplit;
this.enableTracking = builder.enableTracking;
this.encryptConf = builder.encryptConf;
this.hotTtl = builder.hotTtl;
this.infrequentAccessTTL = builder.infrequentAccessTTL;
this.logstoreName = builder.logstoreName;
this.maxSplitShard = builder.maxSplitShard;
this.mode = builder.mode;
this.processorId = builder.processorId;
this.shardCount = builder.shardCount;
this.telemetryType = builder.telemetryType;
this.ttl = builder.ttl;
}
public static Builder builder() {
return new Builder();
}
public static CreateLogStoreRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return appendMeta
*/
public Boolean getAppendMeta() {
return this.appendMeta;
}
/**
* @return autoSplit
*/
public Boolean getAutoSplit() {
return this.autoSplit;
}
/**
* @return enableTracking
*/
public Boolean getEnableTracking() {
return this.enableTracking;
}
/**
* @return encryptConf
*/
public EncryptConf getEncryptConf() {
return this.encryptConf;
}
/**
* @return hotTtl
*/
public Integer getHotTtl() {
return this.hotTtl;
}
/**
* @return infrequentAccessTTL
*/
public Integer getInfrequentAccessTTL() {
return this.infrequentAccessTTL;
}
/**
* @return logstoreName
*/
public String getLogstoreName() {
return this.logstoreName;
}
/**
* @return maxSplitShard
*/
public Integer getMaxSplitShard() {
return this.maxSplitShard;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return processorId
*/
public String getProcessorId() {
return this.processorId;
}
/**
* @return shardCount
*/
public Integer getShardCount() {
return this.shardCount;
}
/**
* @return telemetryType
*/
public String getTelemetryType() {
return this.telemetryType;
}
/**
* @return ttl
*/
public Integer getTtl() {
return this.ttl;
}
public static final class Builder extends Request.Builder<CreateLogStoreRequest, Builder> {
private String project;
private Boolean appendMeta;
private Boolean autoSplit;
private Boolean enableTracking;
private EncryptConf encryptConf;
private Integer hotTtl;
private Integer infrequentAccessTTL;
private String logstoreName;
private Integer maxSplitShard;
private String mode;
private String processorId;
private Integer shardCount;
private String telemetryType;
private Integer ttl;
private Builder() {
super();
}
private Builder(CreateLogStoreRequest request) {
super(request);
this.project = request.project;
this.appendMeta = request.appendMeta;
this.autoSplit = request.autoSplit;
this.enableTracking = request.enableTracking;
this.encryptConf = request.encryptConf;
this.hotTtl = request.hotTtl;
this.infrequentAccessTTL = request.infrequentAccessTTL;
this.logstoreName = request.logstoreName;
this.maxSplitShard = request.maxSplitShard;
this.mode = request.mode;
this.processorId = request.processorId;
this.shardCount = request.shardCount;
this.telemetryType = request.telemetryType;
this.ttl = request.ttl;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>Specifies whether to record the <strong>public IP address</strong> and the <strong>log receiving time</strong>. Default value: false. Valid values:</p>
* <ul>
* <li>true: records the public IP address and the log receiving time. If you set this parameter to true, Simple Log Service automatically adds the public IP address of the device from which the log is collected and the time when Simple Log Service receives the log to the Tag field of the collected log.</li>
* <li>false: does not record the public IP address or log receiving time.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder appendMeta(Boolean appendMeta) {
this.putBodyParameter("appendMeta", appendMeta);
this.appendMeta = appendMeta;
return this;
}
/**
* <p>Specifies whether to enable automatic sharding. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoSplit(Boolean autoSplit) {
this.putBodyParameter("autoSplit", autoSplit);
this.autoSplit = autoSplit;
return this;
}
/**
* <p>Specifies whether to enable the web tracking feature. Default value: false. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableTracking(Boolean enableTracking) {
this.putBodyParameter("enable_tracking", enableTracking);
this.enableTracking = enableTracking;
return this;
}
/**
* <p>The data structure of the encryption configuration. The following parameters are included: <code>enable</code>, <code>encrypt_type</code>, and <code>user_cmk_info</code>. For more information, see <a href="https://help.aliyun.com/document_detail/409461.html">EncryptConf</a>.</p>
*/
public Builder encryptConf(EncryptConf encryptConf) {
this.putBodyParameter("encrypt_conf", encryptConf);
this.encryptConf = encryptConf;
return this;
}
/**
* <p>The data retention period for the hot storage tier. Unit: days. Minimum value: 7. The value of this parameter cannot exceed the value of ttl. If you set this parameter to -1, all data is stored in the hot storage tier.</p>
* <p>After the retention period that is specified for the hot storage tier elapses, the data is moved to the Infrequent Access (IA) storage tier. For more information, see <a href="https://help.aliyun.com/document_detail/308645.html">Enable hot and cold-tiered storage for a Logstore</a>.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder hotTtl(Integer hotTtl) {
this.putBodyParameter("hot_ttl", hotTtl);
this.hotTtl = hotTtl;
return this;
}
/**
* <p>The data retention period for the IA storage tier. You must set this parameter to at least 30 days. After the data retention period that you specify for the IA storage tier elapses, the data is moved to the Archive storage tier.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder infrequentAccessTTL(Integer infrequentAccessTTL) {
this.putBodyParameter("infrequentAccessTTL", infrequentAccessTTL);
this.infrequentAccessTTL = infrequentAccessTTL;
return this;
}
/**
* <p>The name of the Logstore. The name must meet the following requirements:</p>
* <ul>
* <li>The name must be unique in a project.</li>
* <li>The name can contain only lowercase letters, digits, hyphens (-), and underscores (_).</li>
* <li>The name must start and end with a lowercase letter or digit.</li>
* <li>The name must be 3 to 63 characters in length.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-logstore</p>
*/
public Builder logstoreName(String logstoreName) {
this.putBodyParameter("logstoreName", logstoreName);
this.logstoreName = logstoreName;
return this;
}
/**
* <p>The maximum number of shards into which existing shards can be automatically split. Valid values: 1 to 256.</p>
* <blockquote>
* <p> If you set autoSplit to true, you must specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>64</p>
*/
public Builder maxSplitShard(Integer maxSplitShard) {
this.putBodyParameter("maxSplitShard", maxSplitShard);
this.maxSplitShard = maxSplitShard;
return this;
}
/**
* <p>The type of the Logstore. Simple Log Service provides two types of Logstores: Standard Logstores and Query Logstores. Valid values:</p>
* <ul>
* <li><strong>standard</strong>: Standard Logstore. This type of Logstore supports the log analysis feature and is suitable for scenarios such as real-time monitoring and interactive analysis. You can use this type of Logstore to build a comprehensive observability system.</li>
* <li><strong>query</strong>: Query Logstore. This type of Logstore supports high-performance query operations. The index traffic fee of a Query Logstore is approximately half that of a Standard Logstore. Query Logstores do not support SQL analysis. Query Logstores are suitable for scenarios in which the amount of data is large, the data retention period is long, or log analysis is not required. Data retention periods of weeks or months are considered long.</li>
* </ul>
*
* <strong>example:</strong>
* <p>standard</p>
*/
public Builder mode(String mode) {
this.putBodyParameter("mode", mode);
this.mode = mode;
return this;
}
/**
* <p>IngestProcessor ID</p>
*/
public Builder processorId(String processorId) {
this.putBodyParameter("processorId", processorId);
this.processorId = processorId;
return this;
}
/**
* <p>The number of shards.</p>
* <blockquote>
* <p> You cannot call the CreateLogStore operation to change the number of shards. You can call the SplitShard or MergeShards operation to change the number of shards.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder shardCount(Integer shardCount) {
this.putBodyParameter("shardCount", shardCount);
this.shardCount = shardCount;
return this;
}
/**
* <p>The type of the observable data. Valid values:</p>
* <ul>
* <li><strong>None</strong> (default): log data</li>
* <li><strong>Metrics</strong>: metric data</li>
* </ul>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder telemetryType(String telemetryType) {
this.putBodyParameter("telemetryType", telemetryType);
this.telemetryType = telemetryType;
return this;
}
/**
* <p>The data retention period. Unit: days. Valid values: 1 to 3650. If you set this parameter to 3650, data is permanently stored.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ttl(Integer ttl) {
this.putBodyParameter("ttl", ttl);
this.ttl = ttl;
return this;
}
@Override
public CreateLogStoreRequest build() {
return new CreateLogStoreRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateLogStoreResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateLogStoreResponse} extends {@link TeaModel}
*
* <p>CreateLogStoreResponse</p>
*/
public class CreateLogStoreResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateLogStoreResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateLogStoreResponse 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;
}
public interface Builder extends Response.Builder<CreateLogStoreResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateLogStoreResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateLogStoreResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateLogStoreResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateLogStoreResponse build() {
return new CreateLogStoreResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateLoggingRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateLoggingRequest} extends {@link RequestModel}
*
* <p>CreateLoggingRequest</p>
*/
public class CreateLoggingRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("loggingDetails")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<LoggingDetails> loggingDetails;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("loggingProject")
@com.aliyun.core.annotation.Validation(required = true)
private String loggingProject;
private CreateLoggingRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.loggingDetails = builder.loggingDetails;
this.loggingProject = builder.loggingProject;
}
public static Builder builder() {
return new Builder();
}
public static CreateLoggingRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return loggingDetails
*/
public java.util.List<LoggingDetails> getLoggingDetails() {
return this.loggingDetails;
}
/**
* @return loggingProject
*/
public String getLoggingProject() {
return this.loggingProject;
}
public static final class Builder extends Request.Builder<CreateLoggingRequest, Builder> {
private String project;
private java.util.List<LoggingDetails> loggingDetails;
private String loggingProject;
private Builder() {
super();
}
private Builder(CreateLoggingRequest request) {
super(request);
this.project = request.project;
this.loggingDetails = request.loggingDetails;
this.loggingProject = request.loggingProject;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The configurations of service logs.</p>
* <p>This parameter is required.</p>
*/
public Builder loggingDetails(java.util.List<LoggingDetails> loggingDetails) {
this.putBodyParameter("loggingDetails", loggingDetails);
this.loggingDetails = loggingDetails;
return this;
}
/**
* <p>The name of the project to which service logs are stored.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-project</p>
*/
public Builder loggingProject(String loggingProject) {
this.putBodyParameter("loggingProject", loggingProject);
this.loggingProject = loggingProject;
return this;
}
@Override
public CreateLoggingRequest build() {
return new CreateLoggingRequest(this);
}
}
/**
*
* {@link CreateLoggingRequest} extends {@link TeaModel}
*
* <p>CreateLoggingRequest</p>
*/
public static class LoggingDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("logstore")
@com.aliyun.core.annotation.Validation(required = true)
private String logstore;
@com.aliyun.core.annotation.NameInMap("type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private LoggingDetails(Builder builder) {
this.logstore = builder.logstore;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static LoggingDetails create() {
return builder().build();
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String logstore;
private String type;
private Builder() {
}
private Builder(LoggingDetails model) {
this.logstore = model.logstore;
this.type = model.type;
}
/**
* <p>The name of the Logstore to which service logs of the type are stored.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-logstore</p>
*/
public Builder logstore(String logstore) {
this.logstore = logstore;
return this;
}
/**
* <p>The type of service logs. Valid values:</p>
* <ul>
* <li>consumergroup_log: the consumption delay logs of consumer groups.</li>
* <li>logtail_alarm: the alert logs of Logtail.</li>
* <li>operation_log: the operation logs.</li>
* <li>logtail_profile: the collection logs of Logtail.</li>
* <li>metering: the metering logs.</li>
* <li>logtail_status: the status logs of Logtail.</li>
* <li>scheduledsqlalert: the run logs of Scheduled SQL jobs.</li>
* <li>etl_alert: the run logs of data transformation jobs.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consumergroup_log</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public LoggingDetails build() {
return new LoggingDetails(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateLoggingResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateLoggingResponse} extends {@link TeaModel}
*
* <p>CreateLoggingResponse</p>
*/
public class CreateLoggingResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateLoggingResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateLoggingResponse 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;
}
public interface Builder extends Response.Builder<CreateLoggingResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateLoggingResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateLoggingResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateLoggingResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateLoggingResponse build() {
return new CreateLoggingResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateLogtailPipelineConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateLogtailPipelineConfigRequest} extends {@link RequestModel}
*
* <p>CreateLogtailPipelineConfigRequest</p>
*/
public class CreateLogtailPipelineConfigRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("aggregators")
private java.util.List<java.util.Map<String, ?>> aggregators;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configName")
@com.aliyun.core.annotation.Validation(required = true)
private String configName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("flushers")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<java.util.Map<String, ?>> flushers;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("global")
private java.util.Map<String, ?> global;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("inputs")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<java.util.Map<String, ?>> inputs;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("logSample")
private String logSample;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("processors")
private java.util.List<java.util.Map<String, ?>> processors;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("task")
private java.util.Map<String, ?> task;
private CreateLogtailPipelineConfigRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.aggregators = builder.aggregators;
this.configName = builder.configName;
this.flushers = builder.flushers;
this.global = builder.global;
this.inputs = builder.inputs;
this.logSample = builder.logSample;
this.processors = builder.processors;
this.task = builder.task;
}
public static Builder builder() {
return new Builder();
}
public static CreateLogtailPipelineConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return aggregators
*/
public java.util.List<java.util.Map<String, ?>> getAggregators() {
return this.aggregators;
}
/**
* @return configName
*/
public String getConfigName() {
return this.configName;
}
/**
* @return flushers
*/
public java.util.List<java.util.Map<String, ?>> getFlushers() {
return this.flushers;
}
/**
* @return global
*/
public java.util.Map<String, ?> getGlobal() {
return this.global;
}
/**
* @return inputs
*/
public java.util.List<java.util.Map<String, ?>> getInputs() {
return this.inputs;
}
/**
* @return logSample
*/
public String getLogSample() {
return this.logSample;
}
/**
* @return processors
*/
public java.util.List<java.util.Map<String, ?>> getProcessors() {
return this.processors;
}
/**
* @return task
*/
public java.util.Map<String, ?> getTask() {
return this.task;
}
public static final class Builder extends Request.Builder<CreateLogtailPipelineConfigRequest, Builder> {
private String project;
private java.util.List<java.util.Map<String, ?>> aggregators;
private String configName;
private java.util.List<java.util.Map<String, ?>> flushers;
private java.util.Map<String, ?> global;
private java.util.List<java.util.Map<String, ?>> inputs;
private String logSample;
private java.util.List<java.util.Map<String, ?>> processors;
private java.util.Map<String, ?> task;
private Builder() {
super();
}
private Builder(CreateLogtailPipelineConfigRequest request) {
super(request);
this.project = request.project;
this.aggregators = request.aggregators;
this.configName = request.configName;
this.flushers = request.flushers;
this.global = request.global;
this.inputs = request.inputs;
this.logSample = request.logSample;
this.processors = request.processors;
this.task = request.task;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The aggregation plug-ins.</p>
* <blockquote>
* <p> This parameter takes effect only when extended plug-ins are used. You can use only one aggregation plug-in.</p>
* </blockquote>
*/
public Builder aggregators(java.util.List<java.util.Map<String, ?>> aggregators) {
this.putBodyParameter("aggregators", aggregators);
this.aggregators = aggregators;
return this;
}
/**
* <p>The name of the configuration.</p>
* <blockquote>
* <p> The name of the configuration must be unique in the project to which the configuration belongs. After the configuration is created, you cannot change the name of the configuration. The name must meet the following requirements:</p>
* </blockquote>
* <ul>
* <li><p>The name can contain only lowercase letters, digits, hyphens (-), and underscores (_).</p>
* </li>
* <li><p>The name must start and end with a lowercase letter or a digit.</p>
* </li>
* <li><p>The name must be 2 to 128 characters in length.</p>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-config</p>
*/
public Builder configName(String configName) {
this.putBodyParameter("configName", configName);
this.configName = configName;
return this;
}
/**
* <p>The output plug-ins.</p>
* <blockquote>
* <p> You can configure only one output plug-in.</p>
* </blockquote>
* <p>This parameter is required.</p>
*/
public Builder flushers(java.util.List<java.util.Map<String, ?>> flushers) {
this.putBodyParameter("flushers", flushers);
this.flushers = flushers;
return this;
}
/**
* <p>The global settings.</p>
*/
public Builder global(java.util.Map<String, ?> global) {
this.putBodyParameter("global", global);
this.global = global;
return this;
}
/**
* <p>The input plug-ins.</p>
* <blockquote>
* <p> You can configure only one input plug-in.</p>
* </blockquote>
* <p>This parameter is required.</p>
*/
public Builder inputs(java.util.List<java.util.Map<String, ?>> inputs) {
this.putBodyParameter("inputs", inputs);
this.inputs = inputs;
return this;
}
/**
* <p>The sample log. You can specify multiple sample logs.</p>
*
* <strong>example:</strong>
* <p>2022-06-14 11:13:29.796 | DEBUG | <strong>main</strong>:<module>:1 - hello world</p>
*/
public Builder logSample(String logSample) {
this.putBodyParameter("logSample", logSample);
this.logSample = logSample;
return this;
}
/**
* <p>The processing plug-ins.</p>
* <blockquote>
* <p> Logtail plug-ins for data processing are classified into native plug-ins and extended plug-ins. For more information, see <a href="https://help.aliyun.com/document_detail/64957.html">Overview of Logtail plug-ins for data processing</a>.</p>
* </blockquote>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>You can use native plug-ins only to collect text logs.</p>
* </li>
* <li><p>You cannot add native plug-ins and extended plug-ins at a time.</p>
* </li>
* <li><p>When you add native plug-ins, take note of the following items:</p>
* <ul>
* <li>You must add one of the following Logtail plug-ins for data processing as the first plug-in: Data Parsing (Regex Mode), Data Parsing (Delimiter Mode), Data Parsing (JSON Mode), Data Parsing (NGINX Mode), Data Parsing (Apache Mode), and Data Parsing (IIS Mode).</li>
* <li>After you add the first plug-in, you can add one Time Parsing plug-in, one Data Filtering plug-in, and multiple Data Masking plug-ins.</li>
* </ul>
* </li>
* </ul>
*/
public Builder processors(java.util.List<java.util.Map<String, ?>> processors) {
this.putBodyParameter("processors", processors);
this.processors = processors;
return this;
}
/**
* task.
*/
public Builder task(java.util.Map<String, ?> task) {
this.putBodyParameter("task", task);
this.task = task;
return this;
}
@Override
public CreateLogtailPipelineConfigRequest build() {
return new CreateLogtailPipelineConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateLogtailPipelineConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateLogtailPipelineConfigResponse} extends {@link TeaModel}
*
* <p>CreateLogtailPipelineConfigResponse</p>
*/
public class CreateLogtailPipelineConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateLogtailPipelineConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateLogtailPipelineConfigResponse 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;
}
public interface Builder extends Response.Builder<CreateLogtailPipelineConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateLogtailPipelineConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateLogtailPipelineConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateLogtailPipelineConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateLogtailPipelineConfigResponse build() {
return new CreateLogtailPipelineConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateMachineGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateMachineGroupRequest} extends {@link RequestModel}
*
* <p>CreateMachineGroupRequest</p>
*/
public class CreateMachineGroupRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("groupAttribute")
private GroupAttribute groupAttribute;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("groupName")
@com.aliyun.core.annotation.Validation(required = true)
private String groupName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("groupType")
private String groupType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("machineIdentifyType")
@com.aliyun.core.annotation.Validation(required = true)
private String machineIdentifyType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("machineList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> machineList;
private CreateMachineGroupRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.groupAttribute = builder.groupAttribute;
this.groupName = builder.groupName;
this.groupType = builder.groupType;
this.machineIdentifyType = builder.machineIdentifyType;
this.machineList = builder.machineList;
}
public static Builder builder() {
return new Builder();
}
public static CreateMachineGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return groupAttribute
*/
public GroupAttribute getGroupAttribute() {
return this.groupAttribute;
}
/**
* @return groupName
*/
public String getGroupName() {
return this.groupName;
}
/**
* @return groupType
*/
public String getGroupType() {
return this.groupType;
}
/**
* @return machineIdentifyType
*/
public String getMachineIdentifyType() {
return this.machineIdentifyType;
}
/**
* @return machineList
*/
public java.util.List<String> getMachineList() {
return this.machineList;
}
public static final class Builder extends Request.Builder<CreateMachineGroupRequest, Builder> {
private String project;
private GroupAttribute groupAttribute;
private String groupName;
private String groupType;
private String machineIdentifyType;
private java.util.List<String> machineList;
private Builder() {
super();
}
private Builder(CreateMachineGroupRequest request) {
super(request);
this.project = request.project;
this.groupAttribute = request.groupAttribute;
this.groupName = request.groupName;
this.groupType = request.groupType;
this.machineIdentifyType = request.machineIdentifyType;
this.machineList = request.machineList;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The attributes of the machine group.</p>
*/
public Builder groupAttribute(GroupAttribute groupAttribute) {
this.putBodyParameter("groupAttribute", groupAttribute);
this.groupAttribute = groupAttribute;
return this;
}
/**
* <p>The name of the machine group. The name must meet the following requirements:</p>
* <ul>
* <li>The name of each machine group in a project must be unique.</li>
* <li>It can contain only lowercase letters, digits, hyphens (-), and underscores (_).</li>
* <li>It must start and end with a lowercase letter or a digit.</li>
* <li>It must be 3 to 128 characters in length.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-machine-group</p>
*/
public Builder groupName(String groupName) {
this.putBodyParameter("groupName", groupName);
this.groupName = groupName;
return this;
}
/**
* <p>The type of the machine group. The parameter can be left empty.</p>
*
* <strong>example:</strong>
* <p>""</p>
*/
public Builder groupType(String groupType) {
this.putBodyParameter("groupType", groupType);
this.groupType = groupType;
return this;
}
/**
* <p>The type of the machine group identifier. Valid values:</p>
* <ul>
* <li>ip: The machine group uses IP addresses as identifiers.</li>
* <li>userdefined: The machine group uses custom identifiers.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ip</p>
*/
public Builder machineIdentifyType(String machineIdentifyType) {
this.putBodyParameter("machineIdentifyType", machineIdentifyType);
this.machineIdentifyType = machineIdentifyType;
return this;
}
/**
* <p>The identifiers of machine group.</p>
* <ul>
* <li>If you set machineIdentifyType to ip, enter the IP address of the machine.</li>
* <li>If you set machineIdentifyType to userdefined, enter a custom identifier.</li>
* </ul>
* <p>This parameter is required.</p>
*/
public Builder machineList(java.util.List<String> machineList) {
this.putBodyParameter("machineList", machineList);
this.machineList = machineList;
return this;
}
@Override
public CreateMachineGroupRequest build() {
return new CreateMachineGroupRequest(this);
}
}
/**
*
* {@link CreateMachineGroupRequest} extends {@link TeaModel}
*
* <p>CreateMachineGroupRequest</p>
*/
public static class GroupAttribute extends TeaModel {
@com.aliyun.core.annotation.NameInMap("externalName")
private String externalName;
@com.aliyun.core.annotation.NameInMap("groupTopic")
private String groupTopic;
private GroupAttribute(Builder builder) {
this.externalName = builder.externalName;
this.groupTopic = builder.groupTopic;
}
public static Builder builder() {
return new Builder();
}
public static GroupAttribute create() {
return builder().build();
}
/**
* @return externalName
*/
public String getExternalName() {
return this.externalName;
}
/**
* @return groupTopic
*/
public String getGroupTopic() {
return this.groupTopic;
}
public static final class Builder {
private String externalName;
private String groupTopic;
private Builder() {
}
private Builder(GroupAttribute model) {
this.externalName = model.externalName;
this.groupTopic = model.groupTopic;
}
/**
* <p>The identifier of the external management system on which the machine group depends.</p>
*
* <strong>example:</strong>
* <p>testgroup</p>
*/
public Builder externalName(String externalName) {
this.externalName = externalName;
return this;
}
/**
* <p>The log topic of the machine group.</p>
*
* <strong>example:</strong>
* <p>testtopic</p>
*/
public Builder groupTopic(String groupTopic) {
this.groupTopic = groupTopic;
return this;
}
public GroupAttribute build() {
return new GroupAttribute(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateMachineGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateMachineGroupResponse} extends {@link TeaModel}
*
* <p>CreateMachineGroupResponse</p>
*/
public class CreateMachineGroupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateMachineGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateMachineGroupResponse 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;
}
public interface Builder extends Response.Builder<CreateMachineGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateMachineGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateMachineGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateMachineGroupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateMachineGroupResponse build() {
return new CreateMachineGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateMaxComputeExportRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateMaxComputeExportRequest} extends {@link RequestModel}
*
* <p>CreateMaxComputeExportRequest</p>
*/
public class CreateMaxComputeExportRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private MaxComputeExportConfiguration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
private CreateMaxComputeExportRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static CreateMaxComputeExportRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public MaxComputeExportConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder extends Request.Builder<CreateMaxComputeExportRequest, Builder> {
private String project;
private MaxComputeExportConfiguration configuration;
private String description;
private String displayName;
private String name;
private Builder() {
super();
}
private Builder(CreateMaxComputeExportRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The setting of the MaxCompute data shipping job.</p>
* <p>This parameter is required.</p>
*/
public Builder configuration(MaxComputeExportConfiguration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* <p>The description of the MaxCompute data shipping job.</p>
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>The display name of the MaxCompute data shipping job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-mc-job</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>The unique identifier of the MaxCompute data shipping job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>export-mc-1234567890-123456</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
@Override
public CreateMaxComputeExportRequest build() {
return new CreateMaxComputeExportRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateMaxComputeExportResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateMaxComputeExportResponse} extends {@link TeaModel}
*
* <p>CreateMaxComputeExportResponse</p>
*/
public class CreateMaxComputeExportResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateMaxComputeExportResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateMaxComputeExportResponse 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;
}
public interface Builder extends Response.Builder<CreateMaxComputeExportResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateMaxComputeExportResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateMaxComputeExportResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateMaxComputeExportResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateMaxComputeExportResponse build() {
return new CreateMaxComputeExportResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateMetricStoreRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateMetricStoreRequest} extends {@link RequestModel}
*
* <p>CreateMetricStoreRequest</p>
*/
public class CreateMetricStoreRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("autoSplit")
private Boolean autoSplit;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("hot_ttl")
private Integer hotTtl;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("infrequentAccessTTL")
private Integer infrequentAccessTTL;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("maxSplitShard")
private Integer maxSplitShard;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("metricType")
private String metricType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("mode")
private String mode;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("shardCount")
@com.aliyun.core.annotation.Validation(required = true)
private Integer shardCount;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ttl")
@com.aliyun.core.annotation.Validation(required = true)
private Integer ttl;
private CreateMetricStoreRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.autoSplit = builder.autoSplit;
this.hotTtl = builder.hotTtl;
this.infrequentAccessTTL = builder.infrequentAccessTTL;
this.maxSplitShard = builder.maxSplitShard;
this.metricType = builder.metricType;
this.mode = builder.mode;
this.name = builder.name;
this.shardCount = builder.shardCount;
this.ttl = builder.ttl;
}
public static Builder builder() {
return new Builder();
}
public static CreateMetricStoreRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return autoSplit
*/
public Boolean getAutoSplit() {
return this.autoSplit;
}
/**
* @return hotTtl
*/
public Integer getHotTtl() {
return this.hotTtl;
}
/**
* @return infrequentAccessTTL
*/
public Integer getInfrequentAccessTTL() {
return this.infrequentAccessTTL;
}
/**
* @return maxSplitShard
*/
public Integer getMaxSplitShard() {
return this.maxSplitShard;
}
/**
* @return metricType
*/
public String getMetricType() {
return this.metricType;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return shardCount
*/
public Integer getShardCount() {
return this.shardCount;
}
/**
* @return ttl
*/
public Integer getTtl() {
return this.ttl;
}
public static final class Builder extends Request.Builder<CreateMetricStoreRequest, Builder> {
private String project;
private Boolean autoSplit;
private Integer hotTtl;
private Integer infrequentAccessTTL;
private Integer maxSplitShard;
private String metricType;
private String mode;
private String name;
private Integer shardCount;
private Integer ttl;
private Builder() {
super();
}
private Builder(CreateMetricStoreRequest request) {
super(request);
this.project = request.project;
this.autoSplit = request.autoSplit;
this.hotTtl = request.hotTtl;
this.infrequentAccessTTL = request.infrequentAccessTTL;
this.maxSplitShard = request.maxSplitShard;
this.metricType = request.metricType;
this.mode = request.mode;
this.name = request.name;
this.shardCount = request.shardCount;
this.ttl = request.ttl;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>Specifies whether to enable automatic sharding.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoSplit(Boolean autoSplit) {
this.putBodyParameter("autoSplit", autoSplit);
this.autoSplit = autoSplit;
return this;
}
/**
* hot_ttl.
*/
public Builder hotTtl(Integer hotTtl) {
this.putBodyParameter("hot_ttl", hotTtl);
this.hotTtl = hotTtl;
return this;
}
/**
* infrequentAccessTTL.
*/
public Builder infrequentAccessTTL(Integer infrequentAccessTTL) {
this.putBodyParameter("infrequentAccessTTL", infrequentAccessTTL);
this.infrequentAccessTTL = infrequentAccessTTL;
return this;
}
/**
* <p>The maximum number of shards into which existing shards can be automatically split. This parameter is valid only when you set the autoSplit parameter to true.</p>
*
* <strong>example:</strong>
* <p>64</p>
*/
public Builder maxSplitShard(Integer maxSplitShard) {
this.putBodyParameter("maxSplitShard", maxSplitShard);
this.maxSplitShard = maxSplitShard;
return this;
}
/**
* <p>The type of the metric data. Example: prometheus.</p>
*
* <strong>example:</strong>
* <p>prometheus</p>
*/
public Builder metricType(String metricType) {
this.putBodyParameter("metricType", metricType);
this.metricType = metricType;
return this;
}
/**
* <p>The type of the Metricstore. For example, you can set the parameter to standard to query Standard Metricstores.</p>
*
* <strong>example:</strong>
* <p>standard</p>
*/
public Builder mode(String mode) {
this.putBodyParameter("mode", mode);
this.mode = mode;
return this;
}
/**
* <p>The name of the Metricstore.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my_metric_store</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
/**
* <p>The number of shards in the Metricstore.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder shardCount(Integer shardCount) {
this.putBodyParameter("shardCount", shardCount);
this.shardCount = shardCount;
return this;
}
/**
* <p>The retention period of the metric data in the Metricstore. Unit: days.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder ttl(Integer ttl) {
this.putBodyParameter("ttl", ttl);
this.ttl = ttl;
return this;
}
@Override
public CreateMetricStoreRequest build() {
return new CreateMetricStoreRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateMetricStoreResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateMetricStoreResponse} extends {@link TeaModel}
*
* <p>CreateMetricStoreResponse</p>
*/
public class CreateMetricStoreResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateMetricStoreResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateMetricStoreResponse 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;
}
public interface Builder extends Response.Builder<CreateMetricStoreResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateMetricStoreResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateMetricStoreResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateMetricStoreResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateMetricStoreResponse build() {
return new CreateMetricStoreResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateOSSExportRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateOSSExportRequest} extends {@link RequestModel}
*
* <p>CreateOSSExportRequest</p>
*/
public class CreateOSSExportRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private OSSExportConfiguration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
private CreateOSSExportRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static CreateOSSExportRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public OSSExportConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder extends Request.Builder<CreateOSSExportRequest, Builder> {
private String project;
private OSSExportConfiguration configuration;
private String description;
private String displayName;
private String name;
private Builder() {
super();
}
private Builder(CreateOSSExportRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The configuration details of the job.</p>
* <p>This parameter is required.</p>
*/
public Builder configuration(OSSExportConfiguration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* <p>The description of the job.</p>
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>The display name of the job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-oss-job</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>The unique identifier of the OSS data shipping job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>job-123456789-123456</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
@Override
public CreateOSSExportRequest build() {
return new CreateOSSExportRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateOSSExportResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateOSSExportResponse} extends {@link TeaModel}
*
* <p>CreateOSSExportResponse</p>
*/
public class CreateOSSExportResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateOSSExportResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateOSSExportResponse 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;
}
public interface Builder extends Response.Builder<CreateOSSExportResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateOSSExportResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateOSSExportResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateOSSExportResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateOSSExportResponse build() {
return new CreateOSSExportResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateOSSHDFSExportRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateOSSHDFSExportRequest} extends {@link RequestModel}
*
* <p>CreateOSSHDFSExportRequest</p>
*/
public class CreateOSSHDFSExportRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private OSSExportConfiguration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
private CreateOSSHDFSExportRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static CreateOSSHDFSExportRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public OSSExportConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder extends Request.Builder<CreateOSSHDFSExportRequest, Builder> {
private String project;
private OSSExportConfiguration configuration;
private String description;
private String displayName;
private String name;
private Builder() {
super();
}
private Builder(CreateOSSHDFSExportRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The configuration details of the job.</p>
* <p>This parameter is required.</p>
*/
public Builder configuration(OSSExportConfiguration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* <p>The description of the job.</p>
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>The display name of the job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-oss-hdfs-job</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>The unique identifier of the OSS data shipping job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>job-123456789-123456</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
@Override
public CreateOSSHDFSExportRequest build() {
return new CreateOSSHDFSExportRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateOSSHDFSExportResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateOSSHDFSExportResponse} extends {@link TeaModel}
*
* <p>CreateOSSHDFSExportResponse</p>
*/
public class CreateOSSHDFSExportResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateOSSHDFSExportResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateOSSHDFSExportResponse 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;
}
public interface Builder extends Response.Builder<CreateOSSHDFSExportResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateOSSHDFSExportResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateOSSHDFSExportResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateOSSHDFSExportResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateOSSHDFSExportResponse build() {
return new CreateOSSHDFSExportResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateOSSIngestionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateOSSIngestionRequest} extends {@link RequestModel}
*
* <p>CreateOSSIngestionRequest</p>
*/
public class CreateOSSIngestionRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private OSSIngestionConfiguration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("schedule")
private Schedule schedule;
private CreateOSSIngestionRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
this.schedule = builder.schedule;
}
public static Builder builder() {
return new Builder();
}
public static CreateOSSIngestionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public OSSIngestionConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return schedule
*/
public Schedule getSchedule() {
return this.schedule;
}
public static final class Builder extends Request.Builder<CreateOSSIngestionRequest, Builder> {
private String project;
private OSSIngestionConfiguration configuration;
private String description;
private String displayName;
private String name;
private Schedule schedule;
private Builder() {
super();
}
private Builder(CreateOSSIngestionRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
this.schedule = request.schedule;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The configuration of the OSS data import job.</p>
* <p>This parameter is required.</p>
*/
public Builder configuration(OSSIngestionConfiguration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* <p>The description of the job.</p>
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>The display name of the job.</p>
* <p>This parameter is required.</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>The name of the OSS data import job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ingest-oss-123456</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
/**
* <p>The scheduling type. By default, you do not need to specify this parameter. If you want to import data at regular intervals, such as importing data every Monday at 08: 00., you can specify a cron expression.</p>
*/
public Builder schedule(Schedule schedule) {
this.putBodyParameter("schedule", schedule);
this.schedule = schedule;
return this;
}
@Override
public CreateOSSIngestionRequest build() {
return new CreateOSSIngestionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateOSSIngestionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateOSSIngestionResponse} extends {@link TeaModel}
*
* <p>CreateOSSIngestionResponse</p>
*/
public class CreateOSSIngestionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateOSSIngestionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateOSSIngestionResponse 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;
}
public interface Builder extends Response.Builder<CreateOSSIngestionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateOSSIngestionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateOSSIngestionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateOSSIngestionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateOSSIngestionResponse build() {
return new CreateOSSIngestionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateProjectRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateProjectRequest} extends {@link RequestModel}
*
* <p>CreateProjectRequest</p>
*/
public class CreateProjectRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("dataRedundancyType")
private String dataRedundancyType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
@com.aliyun.core.annotation.Validation(required = true)
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("projectName")
@com.aliyun.core.annotation.Validation(required = true)
private String projectName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("recycleBinEnabled")
private Boolean recycleBinEnabled;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("resourceGroupId")
private String resourceGroupId;
private CreateProjectRequest(Builder builder) {
super(builder);
this.dataRedundancyType = builder.dataRedundancyType;
this.description = builder.description;
this.projectName = builder.projectName;
this.recycleBinEnabled = builder.recycleBinEnabled;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static CreateProjectRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dataRedundancyType
*/
public String getDataRedundancyType() {
return this.dataRedundancyType;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return projectName
*/
public String getProjectName() {
return this.projectName;
}
/**
* @return recycleBinEnabled
*/
public Boolean getRecycleBinEnabled() {
return this.recycleBinEnabled;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder extends Request.Builder<CreateProjectRequest, Builder> {
private String dataRedundancyType;
private String description;
private String projectName;
private Boolean recycleBinEnabled;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(CreateProjectRequest request) {
super(request);
this.dataRedundancyType = request.dataRedundancyType;
this.description = request.description;
this.projectName = request.projectName;
this.recycleBinEnabled = request.recycleBinEnabled;
this.resourceGroupId = request.resourceGroupId;
}
/**
* <p>The disaster recovery type. Valid values:</p>
* <ul>
* <li>LRS: locally redundant storage</li>
* <li>ZRS: zone-redundant storage</li>
* </ul>
*
* <strong>example:</strong>
* <p>LRS</p>
*/
public Builder dataRedundancyType(String dataRedundancyType) {
this.putBodyParameter("dataRedundancyType", dataRedundancyType);
this.dataRedundancyType = dataRedundancyType;
return this;
}
/**
* <p>The description of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>this is test</p>
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>The project name must be unique in a region. You cannot change the name after you create the project. The name must meet the following requirements:</p>
* <ul>
* <li>The name must be globally unique.</li>
* <li>The name can contain only lowercase letters, digits, and hyphens (-).</li>
* <li>The name must start and end with a lowercase letter or a digit.</li>
* <li>The name must be 3 to 63 characters in length.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-project</p>
*/
public Builder projectName(String projectName) {
this.putBodyParameter("projectName", projectName);
this.projectName = projectName;
return this;
}
/**
* <p>Specifies whether to enable the recycle bin feature.</p>
* <p>Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder recycleBinEnabled(Boolean recycleBinEnabled) {
this.putBodyParameter("recycleBinEnabled", recycleBinEnabled);
this.recycleBinEnabled = recycleBinEnabled;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-aekzf******sxby</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putBodyParameter("resourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
@Override
public CreateProjectRequest build() {
return new CreateProjectRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateProjectResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateProjectResponse} extends {@link TeaModel}
*
* <p>CreateProjectResponse</p>
*/
public class CreateProjectResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateProjectResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateProjectResponse 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;
}
public interface Builder extends Response.Builder<CreateProjectResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateProjectResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateProjectResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateProjectResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateProjectResponse build() {
return new CreateProjectResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateS3IngestionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateS3IngestionRequest} extends {@link RequestModel}
*
* <p>CreateS3IngestionRequest</p>
*/
public class CreateS3IngestionRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
private S3IngestionConfiguration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("schedule")
private Schedule schedule;
private CreateS3IngestionRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
this.schedule = builder.schedule;
}
public static Builder builder() {
return new Builder();
}
public static CreateS3IngestionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public S3IngestionConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return schedule
*/
public Schedule getSchedule() {
return this.schedule;
}
public static final class Builder extends Request.Builder<CreateS3IngestionRequest, Builder> {
private String project;
private S3IngestionConfiguration configuration;
private String description;
private String displayName;
private String name;
private Schedule schedule;
private Builder() {
super();
}
private Builder(CreateS3IngestionRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
this.schedule = request.schedule;
}
/**
* <p>This parameter is required.</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* configuration.
*/
public Builder configuration(S3IngestionConfiguration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* description.
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
/**
* schedule.
*/
public Builder schedule(Schedule schedule) {
this.putBodyParameter("schedule", schedule);
this.schedule = schedule;
return this;
}
@Override
public CreateS3IngestionRequest build() {
return new CreateS3IngestionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateS3IngestionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateS3IngestionResponse} extends {@link TeaModel}
*
* <p>CreateS3IngestionResponse</p>
*/
public class CreateS3IngestionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateS3IngestionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateS3IngestionResponse 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;
}
public interface Builder extends Response.Builder<CreateS3IngestionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateS3IngestionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateS3IngestionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateS3IngestionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateS3IngestionResponse build() {
return new CreateS3IngestionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateSavedSearchRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateSavedSearchRequest} extends {@link RequestModel}
*
* <p>CreateSavedSearchRequest</p>
*/
public class CreateSavedSearchRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("logstore")
@com.aliyun.core.annotation.Validation(required = true)
private String logstore;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("savedsearchName")
@com.aliyun.core.annotation.Validation(required = true)
private String savedsearchName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("searchQuery")
@com.aliyun.core.annotation.Validation(required = true)
private String searchQuery;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("topic")
@com.aliyun.core.annotation.Validation(required = true)
private String topic;
private CreateSavedSearchRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.displayName = builder.displayName;
this.logstore = builder.logstore;
this.savedsearchName = builder.savedsearchName;
this.searchQuery = builder.searchQuery;
this.topic = builder.topic;
}
public static Builder builder() {
return new Builder();
}
public static CreateSavedSearchRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return savedsearchName
*/
public String getSavedsearchName() {
return this.savedsearchName;
}
/**
* @return searchQuery
*/
public String getSearchQuery() {
return this.searchQuery;
}
/**
* @return topic
*/
public String getTopic() {
return this.topic;
}
public static final class Builder extends Request.Builder<CreateSavedSearchRequest, Builder> {
private String project;
private String displayName;
private String logstore;
private String savedsearchName;
private String searchQuery;
private String topic;
private Builder() {
super();
}
private Builder(CreateSavedSearchRequest request) {
super(request);
this.project = request.project;
this.displayName = request.displayName;
this.logstore = request.logstore;
this.savedsearchName = request.savedsearchName;
this.searchQuery = request.searchQuery;
this.topic = request.topic;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The display name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>displayname</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>The name of the Logstore to which the saved search belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>aliyun-test-logstore</p>
*/
public Builder logstore(String logstore) {
this.putBodyParameter("logstore", logstore);
this.logstore = logstore;
return this;
}
/**
* <p>The name of the saved search. The name must be 3 to 63 characters in length.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pv in minutes</p>
*/
public Builder savedsearchName(String savedsearchName) {
this.putBodyParameter("savedsearchName", savedsearchName);
this.savedsearchName = savedsearchName;
return this;
}
/**
* <p>The query statement of the saved search. A query statement consists of a search statement and an analytic statement in the <code>Search statement|Analytic statement</code> format. For more information, see <a href="https://help.aliyun.com/document_detail/43772.html">Log search overview</a> and <a href="https://help.aliyun.com/document_detail/53608.html">Log analysis overview</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p><em>|select date_format(<strong>time</strong>-<strong>time</strong>%60, "%H:%i:%s") as time, COUNT(</em>) as pv group by time</p>
*/
public Builder searchQuery(String searchQuery) {
this.putBodyParameter("searchQuery", searchQuery);
this.searchQuery = searchQuery;
return this;
}
/**
* <p>The topic of the logs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>theme</p>
*/
public Builder topic(String topic) {
this.putBodyParameter("topic", topic);
this.topic = topic;
return this;
}
@Override
public CreateSavedSearchRequest build() {
return new CreateSavedSearchRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateSavedSearchResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateSavedSearchResponse} extends {@link TeaModel}
*
* <p>CreateSavedSearchResponse</p>
*/
public class CreateSavedSearchResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateSavedSearchResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateSavedSearchResponse 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;
}
public interface Builder extends Response.Builder<CreateSavedSearchResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateSavedSearchResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSavedSearchResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSavedSearchResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateSavedSearchResponse build() {
return new CreateSavedSearchResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateScheduledSQLRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateScheduledSQLRequest} extends {@link RequestModel}
*
* <p>CreateScheduledSQLRequest</p>
*/
public class CreateScheduledSQLRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("configuration")
@com.aliyun.core.annotation.Validation(required = true)
private ScheduledSQLConfiguration configuration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("schedule")
@com.aliyun.core.annotation.Validation(required = true)
private Schedule schedule;
private CreateScheduledSQLRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configuration = builder.configuration;
this.description = builder.description;
this.displayName = builder.displayName;
this.name = builder.name;
this.schedule = builder.schedule;
}
public static Builder builder() {
return new Builder();
}
public static CreateScheduledSQLRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configuration
*/
public ScheduledSQLConfiguration getConfiguration() {
return this.configuration;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return schedule
*/
public Schedule getSchedule() {
return this.schedule;
}
public static final class Builder extends Request.Builder<CreateScheduledSQLRequest, Builder> {
private String project;
private ScheduledSQLConfiguration configuration;
private String description;
private String displayName;
private String name;
private Schedule schedule;
private Builder() {
super();
}
private Builder(CreateScheduledSQLRequest request) {
super(request);
this.project = request.project;
this.configuration = request.configuration;
this.description = request.description;
this.displayName = request.displayName;
this.name = request.name;
this.schedule = request.schedule;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder configuration(ScheduledSQLConfiguration configuration) {
this.putBodyParameter("configuration", configuration);
this.configuration = configuration;
return this;
}
/**
* description.
*/
public Builder description(String description) {
this.putBodyParameter("description", description);
this.description = description;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-scheduled-sql</p>
*/
public Builder displayName(String displayName) {
this.putBodyParameter("displayName", displayName);
this.displayName = displayName;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>sql-123456789-123456</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder schedule(Schedule schedule) {
this.putBodyParameter("schedule", schedule);
this.schedule = schedule;
return this;
}
@Override
public CreateScheduledSQLRequest build() {
return new CreateScheduledSQLRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateScheduledSQLResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateScheduledSQLResponse} extends {@link TeaModel}
*
* <p>CreateScheduledSQLResponse</p>
*/
public class CreateScheduledSQLResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateScheduledSQLResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateScheduledSQLResponse 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;
}
public interface Builder extends Response.Builder<CreateScheduledSQLResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateScheduledSQLResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateScheduledSQLResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateScheduledSQLResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateScheduledSQLResponse build() {
return new CreateScheduledSQLResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateSqlInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateSqlInstanceRequest} extends {@link RequestModel}
*
* <p>CreateSqlInstanceRequest</p>
*/
public class CreateSqlInstanceRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("cu")
@com.aliyun.core.annotation.Validation(required = true)
private Integer cu;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("useAsDefault")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean useAsDefault;
private CreateSqlInstanceRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.cu = builder.cu;
this.useAsDefault = builder.useAsDefault;
}
public static Builder builder() {
return new Builder();
}
public static CreateSqlInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return cu
*/
public Integer getCu() {
return this.cu;
}
/**
* @return useAsDefault
*/
public Boolean getUseAsDefault() {
return this.useAsDefault;
}
public static final class Builder extends Request.Builder<CreateSqlInstanceRequest, Builder> {
private String project;
private Integer cu;
private Boolean useAsDefault;
private Builder() {
super();
}
private Builder(CreateSqlInstanceRequest request) {
super(request);
this.project = request.project;
this.cu = request.cu;
this.useAsDefault = request.useAsDefault;
}
/**
* <p>The name of the project for which you want to enable the Dedicated SQL feature.</p>
* <p>This parameter is required.</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The number of compute units (CUs). When you use the Dedicated SQL feature, CUs are used in parallel.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder cu(Integer cu) {
this.putBodyParameter("cu", cu);
this.cu = cu;
return this;
}
/**
* <p>Specifies whether to enable the Dedicated SQL feature for the project. If you set this parameter to true, the Dedicated SQL feature is enabled for the specified project and takes effect for all query statements that you execute in the project, including the query statements for alerts and dashboards.</p>
* <p>This parameter is required.</p>
*/
public Builder useAsDefault(Boolean useAsDefault) {
this.putBodyParameter("useAsDefault", useAsDefault);
this.useAsDefault = useAsDefault;
return this;
}
@Override
public CreateSqlInstanceRequest build() {
return new CreateSqlInstanceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateSqlInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateSqlInstanceResponse} extends {@link TeaModel}
*
* <p>CreateSqlInstanceResponse</p>
*/
public class CreateSqlInstanceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateSqlInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateSqlInstanceResponse 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;
}
public interface Builder extends Response.Builder<CreateSqlInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateSqlInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSqlInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSqlInstanceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateSqlInstanceResponse build() {
return new CreateSqlInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateStoreViewRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateStoreViewRequest} extends {@link RequestModel}
*
* <p>CreateStoreViewRequest</p>
*/
public class CreateStoreViewRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("storeType")
@com.aliyun.core.annotation.Validation(required = true)
private String storeType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("stores")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<StoreViewStore> stores;
private CreateStoreViewRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.name = builder.name;
this.storeType = builder.storeType;
this.stores = builder.stores;
}
public static Builder builder() {
return new Builder();
}
public static CreateStoreViewRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return storeType
*/
public String getStoreType() {
return this.storeType;
}
/**
* @return stores
*/
public java.util.List<StoreViewStore> getStores() {
return this.stores;
}
public static final class Builder extends Request.Builder<CreateStoreViewRequest, Builder> {
private String project;
private String name;
private String storeType;
private java.util.List<StoreViewStore> stores;
private Builder() {
super();
}
private Builder(CreateStoreViewRequest request) {
super(request);
this.project = request.project;
this.name = request.name;
this.storeType = request.storeType;
this.stores = request.stores;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The name of the dataset.</p>
* <ul>
* <li>The name can contain lowercase letters, digits, and underscores (_).</li>
* <li>The name must start with a lowercase letter.</li>
* <li>The name must be 3 to 62 characters in length.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my_storeview</p>
*/
public Builder name(String name) {
this.putBodyParameter("name", name);
this.name = name;
return this;
}
/**
* <p>The type of the dataset. Valid values: metricstore and logstore.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>logstore</p>
*/
public Builder storeType(String storeType) {
this.putBodyParameter("storeType", storeType);
this.storeType = storeType;
return this;
}
/**
* <p>The Logstores or Metricstores.</p>
* <p>This parameter is required.</p>
*/
public Builder stores(java.util.List<StoreViewStore> stores) {
this.putBodyParameter("stores", stores);
this.stores = stores;
return this;
}
@Override
public CreateStoreViewRequest build() {
return new CreateStoreViewRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateStoreViewResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateStoreViewResponse} extends {@link TeaModel}
*
* <p>CreateStoreViewResponse</p>
*/
public class CreateStoreViewResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private CreateStoreViewResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static CreateStoreViewResponse 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;
}
public interface Builder extends Response.Builder<CreateStoreViewResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
CreateStoreViewResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateStoreViewResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateStoreViewResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public CreateStoreViewResponse build() {
return new CreateStoreViewResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateTicketRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateTicketRequest} extends {@link RequestModel}
*
* <p>CreateTicketRequest</p>
*/
public class CreateTicketRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("accessTokenExpirationTime")
private Long accessTokenExpirationTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("expirationTime")
private Long expirationTime;
private CreateTicketRequest(Builder builder) {
super(builder);
this.accessTokenExpirationTime = builder.accessTokenExpirationTime;
this.expirationTime = builder.expirationTime;
}
public static Builder builder() {
return new Builder();
}
public static CreateTicketRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accessTokenExpirationTime
*/
public Long getAccessTokenExpirationTime() {
return this.accessTokenExpirationTime;
}
/**
* @return expirationTime
*/
public Long getExpirationTime() {
return this.expirationTime;
}
public static final class Builder extends Request.Builder<CreateTicketRequest, Builder> {
private Long accessTokenExpirationTime;
private Long expirationTime;
private Builder() {
super();
}
private Builder(CreateTicketRequest request) {
super(request);
this.accessTokenExpirationTime = request.accessTokenExpirationTime;
this.expirationTime = request.expirationTime;
}
/**
* <ul>
* <li>The validity period of the access token. Unit: seconds. Default value: 86400, which specifies one day. Valid values: 0 to 86400.</li>
* <li>The validity period of the access token is the smaller value between accessTokenExpirationTime and expirationTime.</li>
* <li>If you use a Security Token Service (STS) token to call this operation, the validity period of the access token is the smallest value among accessTokenExpirationTime, expirationTime, and the validity period of the STS token.</li>
* </ul>
*
* <strong>example:</strong>
* <p>600</p>
*/
public Builder accessTokenExpirationTime(Long accessTokenExpirationTime) {
this.putQueryParameter("accessTokenExpirationTime", accessTokenExpirationTime);
this.accessTokenExpirationTime = accessTokenExpirationTime;
return this;
}
/**
* <ul>
* <li>You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the CreateTicket operation. After you obtain the ticket, you can use the ticket regardless of the region.</li>
* <li>The validity period for the URL of the console page that you want to embed. Unit: seconds. Default value: 86400 (one day). Valid values: 0 to 2592000 (30 days).</li>
* </ul>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder expirationTime(Long expirationTime) {
this.putQueryParameter("expirationTime", expirationTime);
this.expirationTime = expirationTime;
return this;
}
@Override
public CreateTicketRequest build() {
return new CreateTicketRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateTicketResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateTicketResponse} extends {@link TeaModel}
*
* <p>CreateTicketResponse</p>
*/
public class CreateTicketResponse 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 CreateTicketResponseBody body;
private CreateTicketResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateTicketResponse 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 CreateTicketResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateTicketResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateTicketResponseBody body);
@Override
CreateTicketResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateTicketResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateTicketResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateTicketResponse 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(CreateTicketResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateTicketResponse build() {
return new CreateTicketResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/CreateTicketResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link CreateTicketResponseBody} extends {@link TeaModel}
*
* <p>CreateTicketResponseBody</p>
*/
public class CreateTicketResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ticket")
private String ticket;
private CreateTicketResponseBody(Builder builder) {
this.ticket = builder.ticket;
}
public static Builder builder() {
return new Builder();
}
public static CreateTicketResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ticket
*/
public String getTicket() {
return this.ticket;
}
public static final class Builder {
private String ticket;
private Builder() {
}
private Builder(CreateTicketResponseBody model) {
this.ticket = model.ticket;
}
/**
* <p>The ticket that is used for logon-free access.</p>
*
* <strong>example:</strong>
* <p>eyJ***************.eyJ******************.KUT****************</p>
*/
public Builder ticket(String ticket) {
this.ticket = ticket;
return this;
}
public CreateTicketResponseBody build() {
return new CreateTicketResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/Dashboard.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link Dashboard} extends {@link TeaModel}
*
* <p>Dashboard</p>
*/
public class Dashboard extends TeaModel {
@com.aliyun.core.annotation.NameInMap("attribute")
private java.util.Map<String, String> attribute;
@com.aliyun.core.annotation.NameInMap("charts")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<Chart> charts;
@com.aliyun.core.annotation.NameInMap("dashboardName")
@com.aliyun.core.annotation.Validation(required = true)
private String dashboardName;
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.NameInMap("displayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
private Dashboard(Builder builder) {
this.attribute = builder.attribute;
this.charts = builder.charts;
this.dashboardName = builder.dashboardName;
this.description = builder.description;
this.displayName = builder.displayName;
}
public static Builder builder() {
return new Builder();
}
public static Dashboard create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attribute
*/
public java.util.Map<String, String> getAttribute() {
return this.attribute;
}
/**
* @return charts
*/
public java.util.List<Chart> getCharts() {
return this.charts;
}
/**
* @return dashboardName
*/
public String getDashboardName() {
return this.dashboardName;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
public static final class Builder {
private java.util.Map<String, String> attribute;
private java.util.List<Chart> charts;
private String dashboardName;
private String description;
private String displayName;
private Builder() {
}
private Builder(Dashboard model) {
this.attribute = model.attribute;
this.charts = model.charts;
this.dashboardName = model.dashboardName;
this.description = model.description;
this.displayName = model.displayName;
}
/**
* attribute.
*/
public Builder attribute(java.util.Map<String, String> attribute) {
this.attribute = attribute;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder charts(java.util.List<Chart> charts) {
this.charts = charts;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>dashboard-1609294922657-434834</p>
*/
public Builder dashboardName(String dashboardName) {
this.dashboardName = dashboardName;
return this;
}
/**
* description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test-alert</p>
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
public Dashboard build() {
return new Dashboard(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAgentInstanceConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAgentInstanceConfigRequest} extends {@link RequestModel}
*
* <p>DeleteAgentInstanceConfigRequest</p>
*/
public class DeleteAgentInstanceConfigRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("configType")
@com.aliyun.core.annotation.Validation(required = true)
private String configType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("attributes")
private java.util.Map<String, String> attributes;
private DeleteAgentInstanceConfigRequest(Builder builder) {
super(builder);
this.configType = builder.configType;
this.attributes = builder.attributes;
}
public static Builder builder() {
return new Builder();
}
public static DeleteAgentInstanceConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return configType
*/
public String getConfigType() {
return this.configType;
}
/**
* @return attributes
*/
public java.util.Map<String, String> getAttributes() {
return this.attributes;
}
public static final class Builder extends Request.Builder<DeleteAgentInstanceConfigRequest, Builder> {
private String configType;
private java.util.Map<String, String> attributes;
private Builder() {
super();
}
private Builder(DeleteAgentInstanceConfigRequest request) {
super(request);
this.configType = request.configType;
this.attributes = request.attributes;
}
/**
* <p>This parameter is required.</p>
*/
public Builder configType(String configType) {
this.putPathParameter("configType", configType);
this.configType = configType;
return this;
}
/**
* attributes.
*/
public Builder attributes(java.util.Map<String, String> attributes) {
String attributesShrink = shrink(attributes, "attributes", "json");
this.putQueryParameter("attributes", attributesShrink);
this.attributes = attributes;
return this;
}
@Override
public DeleteAgentInstanceConfigRequest build() {
return new DeleteAgentInstanceConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAgentInstanceConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAgentInstanceConfigResponse} extends {@link TeaModel}
*
* <p>DeleteAgentInstanceConfigResponse</p>
*/
public class DeleteAgentInstanceConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteAgentInstanceConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteAgentInstanceConfigResponse 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;
}
public interface Builder extends Response.Builder<DeleteAgentInstanceConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteAgentInstanceConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteAgentInstanceConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteAgentInstanceConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteAgentInstanceConfigResponse build() {
return new DeleteAgentInstanceConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAlertRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAlertRequest} extends {@link RequestModel}
*
* <p>DeleteAlertRequest</p>
*/
public class DeleteAlertRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("alertName")
@com.aliyun.core.annotation.Validation(required = true)
private String alertName;
private DeleteAlertRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.alertName = builder.alertName;
}
public static Builder builder() {
return new Builder();
}
public static DeleteAlertRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return alertName
*/
public String getAlertName() {
return this.alertName;
}
public static final class Builder extends Request.Builder<DeleteAlertRequest, Builder> {
private String project;
private String alertName;
private Builder() {
super();
}
private Builder(DeleteAlertRequest request) {
super(request);
this.project = request.project;
this.alertName = request.alertName;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The ID of the alert rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alert-0123456789-123456</p>
*/
public Builder alertName(String alertName) {
this.putPathParameter("alertName", alertName);
this.alertName = alertName;
return this;
}
@Override
public DeleteAlertRequest build() {
return new DeleteAlertRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAlertResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAlertResponse} extends {@link TeaModel}
*
* <p>DeleteAlertResponse</p>
*/
public class DeleteAlertResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteAlertResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteAlertResponse 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;
}
public interface Builder extends Response.Builder<DeleteAlertResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteAlertResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteAlertResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteAlertResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteAlertResponse build() {
return new DeleteAlertResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAnnotationDataRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAnnotationDataRequest} extends {@link RequestModel}
*
* <p>DeleteAnnotationDataRequest</p>
*/
public class DeleteAnnotationDataRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("datasetId")
private String datasetId;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("annotationdataId")
private String annotationdataId;
private DeleteAnnotationDataRequest(Builder builder) {
super(builder);
this.datasetId = builder.datasetId;
this.annotationdataId = builder.annotationdataId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteAnnotationDataRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return datasetId
*/
public String getDatasetId() {
return this.datasetId;
}
/**
* @return annotationdataId
*/
public String getAnnotationdataId() {
return this.annotationdataId;
}
public static final class Builder extends Request.Builder<DeleteAnnotationDataRequest, Builder> {
private String datasetId;
private String annotationdataId;
private Builder() {
super();
}
private Builder(DeleteAnnotationDataRequest request) {
super(request);
this.datasetId = request.datasetId;
this.annotationdataId = request.annotationdataId;
}
/**
* <p>The unique identifier of the dataset.</p>
*
* <strong>example:</strong>
* <p>cb8cc4eb51a85e823471cdb368fae9be</p>
*/
public Builder datasetId(String datasetId) {
this.putPathParameter("datasetId", datasetId);
this.datasetId = datasetId;
return this;
}
/**
* <p>The unique identifier of the data.</p>
*
* <strong>example:</strong>
* <p>2156d560fc7c01420542df92cd6365ds</p>
*/
public Builder annotationdataId(String annotationdataId) {
this.putPathParameter("annotationdataId", annotationdataId);
this.annotationdataId = annotationdataId;
return this;
}
@Override
public DeleteAnnotationDataRequest build() {
return new DeleteAnnotationDataRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAnnotationDataResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAnnotationDataResponse} extends {@link TeaModel}
*
* <p>DeleteAnnotationDataResponse</p>
*/
public class DeleteAnnotationDataResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteAnnotationDataResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteAnnotationDataResponse 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;
}
public interface Builder extends Response.Builder<DeleteAnnotationDataResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteAnnotationDataResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteAnnotationDataResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteAnnotationDataResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteAnnotationDataResponse build() {
return new DeleteAnnotationDataResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAnnotationDataSetRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAnnotationDataSetRequest} extends {@link RequestModel}
*
* <p>DeleteAnnotationDataSetRequest</p>
*/
public class DeleteAnnotationDataSetRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("datasetId")
private String datasetId;
private DeleteAnnotationDataSetRequest(Builder builder) {
super(builder);
this.datasetId = builder.datasetId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteAnnotationDataSetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return datasetId
*/
public String getDatasetId() {
return this.datasetId;
}
public static final class Builder extends Request.Builder<DeleteAnnotationDataSetRequest, Builder> {
private String datasetId;
private Builder() {
super();
}
private Builder(DeleteAnnotationDataSetRequest request) {
super(request);
this.datasetId = request.datasetId;
}
/**
* <p>The unique identifier of the dataset.</p>
*
* <strong>example:</strong>
* <p>cb8cc4eb51a85e823471cdb368fae9be</p>
*/
public Builder datasetId(String datasetId) {
this.putPathParameter("datasetId", datasetId);
this.datasetId = datasetId;
return this;
}
@Override
public DeleteAnnotationDataSetRequest build() {
return new DeleteAnnotationDataSetRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAnnotationDataSetResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAnnotationDataSetResponse} extends {@link TeaModel}
*
* <p>DeleteAnnotationDataSetResponse</p>
*/
public class DeleteAnnotationDataSetResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteAnnotationDataSetResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteAnnotationDataSetResponse 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;
}
public interface Builder extends Response.Builder<DeleteAnnotationDataSetResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteAnnotationDataSetResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteAnnotationDataSetResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteAnnotationDataSetResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteAnnotationDataSetResponse build() {
return new DeleteAnnotationDataSetResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAnnotationLabelRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAnnotationLabelRequest} extends {@link RequestModel}
*
* <p>DeleteAnnotationLabelRequest</p>
*/
public class DeleteAnnotationLabelRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("labelId")
private String labelId;
private DeleteAnnotationLabelRequest(Builder builder) {
super(builder);
this.labelId = builder.labelId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteAnnotationLabelRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return labelId
*/
public String getLabelId() {
return this.labelId;
}
public static final class Builder extends Request.Builder<DeleteAnnotationLabelRequest, Builder> {
private String labelId;
private Builder() {
super();
}
private Builder(DeleteAnnotationLabelRequest request) {
super(request);
this.labelId = request.labelId;
}
/**
* <p>The tag ID.</p>
*
* <strong>example:</strong>
* <p>sls_builtin_4e0aba6d9664073513e9954fb57bd799</p>
*/
public Builder labelId(String labelId) {
this.putPathParameter("labelId", labelId);
this.labelId = labelId;
return this;
}
@Override
public DeleteAnnotationLabelRequest build() {
return new DeleteAnnotationLabelRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteAnnotationLabelResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteAnnotationLabelResponse} extends {@link TeaModel}
*
* <p>DeleteAnnotationLabelResponse</p>
*/
public class DeleteAnnotationLabelResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteAnnotationLabelResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteAnnotationLabelResponse 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;
}
public interface Builder extends Response.Builder<DeleteAnnotationLabelResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteAnnotationLabelResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteAnnotationLabelResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteAnnotationLabelResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteAnnotationLabelResponse build() {
return new DeleteAnnotationLabelResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteCollectionPolicyRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteCollectionPolicyRequest} extends {@link RequestModel}
*
* <p>DeleteCollectionPolicyRequest</p>
*/
public class DeleteCollectionPolicyRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("policyName")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 63, minLength = 3)
private String policyName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("dataCode")
private String dataCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("productCode")
private String productCode;
private DeleteCollectionPolicyRequest(Builder builder) {
super(builder);
this.policyName = builder.policyName;
this.dataCode = builder.dataCode;
this.productCode = builder.productCode;
}
public static Builder builder() {
return new Builder();
}
public static DeleteCollectionPolicyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return policyName
*/
public String getPolicyName() {
return this.policyName;
}
/**
* @return dataCode
*/
public String getDataCode() {
return this.dataCode;
}
/**
* @return productCode
*/
public String getProductCode() {
return this.productCode;
}
public static final class Builder extends Request.Builder<DeleteCollectionPolicyRequest, Builder> {
private String policyName;
private String dataCode;
private String productCode;
private Builder() {
super();
}
private Builder(DeleteCollectionPolicyRequest request) {
super(request);
this.policyName = request.policyName;
this.dataCode = request.dataCode;
this.productCode = request.productCode;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>your_log_policy</p>
*/
public Builder policyName(String policyName) {
this.putPathParameter("policyName", policyName);
this.policyName = policyName;
return this;
}
/**
* dataCode.
*/
public Builder dataCode(String dataCode) {
this.putQueryParameter("dataCode", dataCode);
this.dataCode = dataCode;
return this;
}
/**
* productCode.
*/
public Builder productCode(String productCode) {
this.putQueryParameter("productCode", productCode);
this.productCode = productCode;
return this;
}
@Override
public DeleteCollectionPolicyRequest build() {
return new DeleteCollectionPolicyRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteCollectionPolicyResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteCollectionPolicyResponse} extends {@link TeaModel}
*
* <p>DeleteCollectionPolicyResponse</p>
*/
public class DeleteCollectionPolicyResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteCollectionPolicyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteCollectionPolicyResponse 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;
}
public interface Builder extends Response.Builder<DeleteCollectionPolicyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteCollectionPolicyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteCollectionPolicyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteCollectionPolicyResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteCollectionPolicyResponse build() {
return new DeleteCollectionPolicyResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteConfigRequest} extends {@link RequestModel}
*
* <p>DeleteConfigRequest</p>
*/
public class DeleteConfigRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("configName")
@com.aliyun.core.annotation.Validation(required = true)
private String configName;
private DeleteConfigRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.configName = builder.configName;
}
public static Builder builder() {
return new Builder();
}
public static DeleteConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return configName
*/
public String getConfigName() {
return this.configName;
}
public static final class Builder extends Request.Builder<DeleteConfigRequest, Builder> {
private String project;
private String configName;
private Builder() {
super();
}
private Builder(DeleteConfigRequest request) {
super(request);
this.project = request.project;
this.configName = request.configName;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The name of the Logtail configuration.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>logtail-config-sample</p>
*/
public Builder configName(String configName) {
this.putPathParameter("configName", configName);
this.configName = configName;
return this;
}
@Override
public DeleteConfigRequest build() {
return new DeleteConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteConfigResponse} extends {@link TeaModel}
*
* <p>DeleteConfigResponse</p>
*/
public class DeleteConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteConfigResponse 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;
}
public interface Builder extends Response.Builder<DeleteConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteConfigResponse build() {
return new DeleteConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteConsumeProcessorRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteConsumeProcessorRequest} extends {@link RequestModel}
*
* <p>DeleteConsumeProcessorRequest</p>
*/
public class DeleteConsumeProcessorRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("processorName")
@com.aliyun.core.annotation.Validation(required = true)
private String processorName;
private DeleteConsumeProcessorRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.processorName = builder.processorName;
}
public static Builder builder() {
return new Builder();
}
public static DeleteConsumeProcessorRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return processorName
*/
public String getProcessorName() {
return this.processorName;
}
public static final class Builder extends Request.Builder<DeleteConsumeProcessorRequest, Builder> {
private String project;
private String processorName;
private Builder() {
super();
}
private Builder(DeleteConsumeProcessorRequest request) {
super(request);
this.project = request.project;
this.processorName = request.processorName;
}
/**
* <p>This parameter is required.</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consume-processor-1</p>
*/
public Builder processorName(String processorName) {
this.putPathParameter("processorName", processorName);
this.processorName = processorName;
return this;
}
@Override
public DeleteConsumeProcessorRequest build() {
return new DeleteConsumeProcessorRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteConsumeProcessorResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteConsumeProcessorResponse} extends {@link TeaModel}
*
* <p>DeleteConsumeProcessorResponse</p>
*/
public class DeleteConsumeProcessorResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteConsumeProcessorResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteConsumeProcessorResponse 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;
}
public interface Builder extends Response.Builder<DeleteConsumeProcessorResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteConsumeProcessorResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteConsumeProcessorResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteConsumeProcessorResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteConsumeProcessorResponse build() {
return new DeleteConsumeProcessorResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteConsumerGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteConsumerGroupRequest} extends {@link RequestModel}
*
* <p>DeleteConsumerGroupRequest</p>
*/
public class DeleteConsumerGroupRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("logstore")
@com.aliyun.core.annotation.Validation(required = true)
private String logstore;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("consumerGroup")
@com.aliyun.core.annotation.Validation(required = true)
private String consumerGroup;
private DeleteConsumerGroupRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.logstore = builder.logstore;
this.consumerGroup = builder.consumerGroup;
}
public static Builder builder() {
return new Builder();
}
public static DeleteConsumerGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return consumerGroup
*/
public String getConsumerGroup() {
return this.consumerGroup;
}
public static final class Builder extends Request.Builder<DeleteConsumerGroupRequest, Builder> {
private String project;
private String logstore;
private String consumerGroup;
private Builder() {
super();
}
private Builder(DeleteConsumerGroupRequest request) {
super(request);
this.project = request.project;
this.logstore = request.logstore;
this.consumerGroup = request.consumerGroup;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The name of the Logstore.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-logstore</p>
*/
public Builder logstore(String logstore) {
this.putPathParameter("logstore", logstore);
this.logstore = logstore;
return this;
}
/**
* <p>The name of the consumer group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>consumer-group-1</p>
*/
public Builder consumerGroup(String consumerGroup) {
this.putPathParameter("consumerGroup", consumerGroup);
this.consumerGroup = consumerGroup;
return this;
}
@Override
public DeleteConsumerGroupRequest build() {
return new DeleteConsumerGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteConsumerGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteConsumerGroupResponse} extends {@link TeaModel}
*
* <p>DeleteConsumerGroupResponse</p>
*/
public class DeleteConsumerGroupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
private DeleteConsumerGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
}
public static DeleteConsumerGroupResponse 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;
}
public interface Builder extends Response.Builder<DeleteConsumerGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
@Override
DeleteConsumerGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteConsumerGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteConsumerGroupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
}
/**
* 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;
}
@Override
public DeleteConsumerGroupResponse build() {
return new DeleteConsumerGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230 | java-sources/com/aliyun/alibabacloud-sls20201230/4.0.13/com/aliyun/sdk/service/sls20201230/models/DeleteDashboardRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sls20201230.models;
import com.aliyun.sdk.gateway.sls.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.sls.models.*;
/**
*
* {@link DeleteDashboardRequest} extends {@link RequestModel}
*
* <p>DeleteDashboardRequest</p>
*/
public class DeleteDashboardRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("dashboardName")
@com.aliyun.core.annotation.Validation(required = true)
private String dashboardName;
private DeleteDashboardRequest(Builder builder) {
super(builder);
this.project = builder.project;
this.dashboardName = builder.dashboardName;
}
public static Builder builder() {
return new Builder();
}
public static DeleteDashboardRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return dashboardName
*/
public String getDashboardName() {
return this.dashboardName;
}
public static final class Builder extends Request.Builder<DeleteDashboardRequest, Builder> {
private String project;
private String dashboardName;
private Builder() {
super();
}
private Builder(DeleteDashboardRequest request) {
super(request);
this.project = request.project;
this.dashboardName = request.dashboardName;
}
/**
* <p>The name of the project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ali-test-project</p>
*/
public Builder project(String project) {
this.putHostParameter("project", project);
this.project = project;
return this;
}
/**
* <p>The name of the dashboard.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>dashboard-1609294922657-434834</p>
*/
public Builder dashboardName(String dashboardName) {
this.putPathParameter("dashboardName", dashboardName);
this.dashboardName = dashboardName;
return this;
}
@Override
public DeleteDashboardRequest build() {
return new DeleteDashboardRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.