public class StubSettings extends Object
This class allows configuration of various settings for the storage stub including credentials, endpoint, region, quota, retry settings, and HTTP settings. It follows the builder pattern to create immutable instances that can be customized as needed.
Example usage:
StubSettings stubSettings = StubSettings.newBuilder()
.withEndpoint("https://service.cn-hangzhou.maxcompute.aliyun.com/api")
.withCredentialProvider(credentialsProvider)
.withRegion("cn-hangzhou")
.withQuota("payed")
.withRetrySettings(retrySettings)
.withHttpSettings(httpSettings)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
StubSettings.StubSettingsBuilder |
| Constructor and Description |
|---|
StubSettings() |
| Modifier and Type | Method and Description |
|---|---|
com.aliyun.credentials.api.ICredentialsProvider |
getCredentialsProvider()
Gets the credential provider.
|
String |
getEndpoint()
Gets the endpoint.
|
HttpSettings |
getHttpSettings()
Gets the HTTP settings.
|
String |
getProject()
Gets the project.
|
String |
getQuota()
Gets the quota.
|
String |
getRegion()
Gets the region.
|
RetryHandler |
getRetryHandler()
Gets the retry handler.
|
String |
getTunnelEndpoint()
Gets the tunnel endpoint.
|
String |
getUserAgent()
Gets the user agent.
|
static StubSettings.StubSettingsBuilder |
newBuilder()
Creates a new builder for constructing StubSettings instances.
|
public static StubSettings.StubSettingsBuilder newBuilder()
public com.aliyun.credentials.api.ICredentialsProvider getCredentialsProvider()
public String getEndpoint()
public String getTunnelEndpoint()
public String getRegion()
public String getQuota()
public String getProject()
public HttpSettings getHttpSettings()
public String getUserAgent()
public RetryHandler getRetryHandler()
Copyright © 2026 Alibaba Cloud Computing. All rights reserved.