com.aliyun.sdk.service.green20220302.AsyncClient Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.green20220302;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.green20220302.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();
}
CompletableFuture describeFileModerationResult(DescribeFileModerationResultRequest request);
/**
* * Billing: This operation is free of charge.
* * QPS limit: You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
*
*/
CompletableFuture describeImageModerationResult(DescribeImageModerationResultRequest request);
CompletableFuture describeImageResultExt(DescribeImageResultExtRequest request);
CompletableFuture describeUploadToken(DescribeUploadTokenRequest request);
/**
* * Billing: This operation is free of charge.
* * Query timeout: We recommend that you query moderation results at least 480 seconds after you send an asynchronous moderation request. Content Moderation retains moderation results for up to 3 days. After 3 days, the results are deleted.
* * You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
*
*/
CompletableFuture describeUrlModerationResult(DescribeUrlModerationResultRequest request);
CompletableFuture fileModeration(FileModerationRequest request);
CompletableFuture imageAsyncModeration(ImageAsyncModerationRequest request);
/**
* **Before you call this operation, make sure that you are familiar with the [billing](~~467826~~)[](https://www.aliyun.com/price/product?#/lvwang/detail/cdibag) of Image Moderation 2.0.
*
*/
CompletableFuture imageModeration(ImageModerationRequest request);
CompletableFuture textModeration(TextModerationRequest request);
/**
* Before you call this operation, make sure that you have [activated the Content Moderation 2.0 service](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn) and are familiar with the [billing](https://help.aliyun.com/document_detail/2671445.html?#section-6od-32j-99n) of the Text Moderation 2.0 Plus service.
*
*/
CompletableFuture textModerationPlus(TextModerationPlusRequest request);
CompletableFuture urlAsyncModeration(UrlAsyncModerationRequest request);
CompletableFuture videoModeration(VideoModerationRequest request);
CompletableFuture videoModerationCancel(VideoModerationCancelRequest request);
CompletableFuture videoModerationResult(VideoModerationResultRequest request);
CompletableFuture voiceModeration(VoiceModerationRequest request);
CompletableFuture voiceModerationCancel(VoiceModerationCancelRequest request);
CompletableFuture voiceModerationResult(VoiceModerationResultRequest request);
}