Search in sources :

Example 1 with DescribeAITaskResultResponse

use of com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultResponse in project tencentcloud-sdk-java by TencentCloud.

the class DescribeAITaskResult method main.

public static void main(String[] args) {
    try {
        Credential cred = new Credential("", "");
        HttpProfile httpProfile = new HttpProfile();
        httpProfile.setReqMethod("POST");
        httpProfile.setConnTimeout(60);
        httpProfile.setEndpoint("tci.ap-beijing.tencentcloudapi.com");
        ClientProfile clientProfile = new ClientProfile();
        clientProfile.setUnsignedPayload(true);
        clientProfile.setHttpProfile(httpProfile);
        TciClient client = new TciClient(cred, "", clientProfile);
        DescribeAITaskResultRequest req = new DescribeAITaskResultRequest();
        long a = 2617184392L;
        req.setTaskId(a);
        DescribeAITaskResultResponse res = client.DescribeAITaskResult(req);
        System.out.println(DescribeAITaskResultResponse.toJsonString(res));
        System.out.println(res.getRequestId());
    } catch (TencentCloudSDKException e) {
        e.printStackTrace();
    }
}
Also used : DescribeAITaskResultResponse(com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultResponse) Credential(com.tencentcloudapi.common.Credential) TencentCloudSDKException(com.tencentcloudapi.common.exception.TencentCloudSDKException) ClientProfile(com.tencentcloudapi.common.profile.ClientProfile) HttpProfile(com.tencentcloudapi.common.profile.HttpProfile) TciClient(com.tencentcloudapi.tci.v20190318.TciClient) DescribeAITaskResultRequest(com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultRequest)

Aggregations

Credential (com.tencentcloudapi.common.Credential)1 TencentCloudSDKException (com.tencentcloudapi.common.exception.TencentCloudSDKException)1 ClientProfile (com.tencentcloudapi.common.profile.ClientProfile)1 HttpProfile (com.tencentcloudapi.common.profile.HttpProfile)1 TciClient (com.tencentcloudapi.tci.v20190318.TciClient)1 DescribeAITaskResultRequest (com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultRequest)1 DescribeAITaskResultResponse (com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultResponse)1