1
0
forked from docs/doc-exports
doc-exports/docs/dis/umn/dis_06_0023.html
Xiong, Chen Xiao 1a4b9e91b7 DIS UMN test2 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
2022-11-14 16:38:55 +00:00

1.5 KiB

Initializing a DIS SDK Asynchronous Client Instance

Initialize a DIS SDK asynchronous client instance. For details about endpoint, ak, sk, region, and projectId, see Obtaining Authentication Information.
//Create a DIS client instance.
DISAsync dicAsync = DISClientAsyncBuilder.standard()
            .withEndpoint("https://ip:port")
            .withAk("xxxx")
            .withSk("xxxx")
            .withProjectId("xxxx")
            .withRegion("xxxx")
            .withExecutorFactory(new DefaultExecutorFactory())
            .build();