public static class MaxStorageClient.Builder extends Object
This builder allows configuration of various client settings including:
Example usage:
MaxStorageClient client = MaxStorageClient.builder()
.endpoint("https://service.cn-hangzhou.maxcompute.aliyun.com/api")
.credentialsProvider(credentialsProvider)
.httpSettings(HttpSettings.newBuilder().build())
.build();
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MaxStorageClient.Builder |
bufferAllocator(org.apache.arrow.memory.BufferAllocator bufferAllocator)
Sets the buffer allocator for memory management.
|
MaxStorageClient |
build()
Builds and returns a new MaxStorageClient instance with the configured settings.
|
MaxStorageClient.Builder |
credentialsProvider(com.aliyun.credentials.api.ICredentialsProvider credentialsProvider)
Sets the credentials provider for authentication.
|
MaxStorageClient.Builder |
endpoint(String endpoint)
Sets the MaxCompute service endpoint.
|
MaxStorageClient.Builder |
httpSettings(HttpSettings httpSettings)
Sets the HTTP settings for connection management.
|
MaxStorageClient.Builder |
project(String project)
Sets the MaxCompute project name.
|
MaxStorageClient.Builder |
quota(String quota)
Sets the MaxCompute quota.
|
MaxStorageClient.Builder |
region(String region)
Sets the MaxCompute region.
|
MaxStorageClient.Builder |
tunnelEndpoint(String tunnelEndpoint)
Sets the MaxCompute tunnel endpoint.
|
MaxStorageClient.Builder |
userAgent(String userAgent)
Appends a custom string to the 'User-Agent' header for all MaxStorage requests.
|
public MaxStorageClient.Builder endpoint(String endpoint)
endpoint - The MaxCompute service endpoint URLpublic MaxStorageClient.Builder project(String project)
project - The project namepublic MaxStorageClient.Builder tunnelEndpoint(String tunnelEndpoint)
tunnelEndpoint - The tunnel endpoint URLpublic MaxStorageClient.Builder region(String region)
region - The region namepublic MaxStorageClient.Builder quota(String quota)
quota - The quota namepublic MaxStorageClient.Builder credentialsProvider(com.aliyun.credentials.api.ICredentialsProvider credentialsProvider)
credentialsProvider - The credentials providerpublic MaxStorageClient.Builder httpSettings(HttpSettings httpSettings)
httpSettings - The HTTP settings configurationpublic MaxStorageClient.Builder bufferAllocator(org.apache.arrow.memory.BufferAllocator bufferAllocator)
bufferAllocator - The buffer allocatorpublic MaxStorageClient.Builder userAgent(String userAgent)
userAgent - The custom user agent string. It will be placed at the end of the
standard SDK identifier:
JavaSDK/%s (id:%s; revision:%s; java-version:%s; region:%s) [userAgent]public MaxStorageClient build()
If no tunnel endpoint is explicitly set, this method will attempt to retrieve the tunnel endpoint from the MaxCompute service using the configured endpoint, project, and credentials.
Copyright © 2026 Alibaba Cloud Computing. All rights reserved.