public static final class StubSettings.StubSettingsBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
StubSettings |
build()
Builds and returns a new StubSettings instance with the configured settings.
|
StubSettings.StubSettingsBuilder |
withCredentialsProvider(com.aliyun.credentials.api.ICredentialsProvider credentialsProvider)
Sets the credential provider.
|
StubSettings.StubSettingsBuilder |
withEndpoint(String endpoint)
Sets the endpoint.
|
StubSettings.StubSettingsBuilder |
withHttpSettings(HttpSettings httpSettings)
Sets the HTTP settings.
|
StubSettings.StubSettingsBuilder |
withProject(String project)
Sets the current project.
|
StubSettings.StubSettingsBuilder |
withQuota(String quota)
Sets the quota.
|
StubSettings.StubSettingsBuilder |
withRegion(String region)
Sets the region.
|
StubSettings.StubSettingsBuilder |
withRetryHandler(RetryHandler retryHandler)
Sets the retry handler.
|
StubSettings.StubSettingsBuilder |
withTunnelEndpoint(String tunnelEndpoint)
Sets the tunnelEndpoint.
|
StubSettings.StubSettingsBuilder |
withUserAgent(String userAgent)
Sets the request user agent
|
public StubSettings.StubSettingsBuilder withCredentialsProvider(com.aliyun.credentials.api.ICredentialsProvider credentialsProvider)
credentialsProvider - The credential providerpublic StubSettings.StubSettingsBuilder withEndpoint(String endpoint)
endpoint - The endpointpublic StubSettings.StubSettingsBuilder withTunnelEndpoint(String tunnelEndpoint)
tunnelEndpoint - The endpointpublic StubSettings.StubSettingsBuilder withRegion(String region)
region - The regionpublic StubSettings.StubSettingsBuilder withProject(String project)
project - The project use to fetch tunnel endpointpublic StubSettings.StubSettingsBuilder withQuota(String quota)
quota - The quotapublic StubSettings.StubSettingsBuilder withHttpSettings(HttpSettings httpSettings)
httpSettings - The HTTP settingspublic StubSettings.StubSettingsBuilder withUserAgent(String userAgent)
userAgent - The request UserAgentpublic StubSettings.StubSettingsBuilder withRetryHandler(RetryHandler retryHandler)
retryHandler - The retry handlerpublic StubSettings build()
Copyright © 2026 Alibaba Cloud Computing. All rights reserved.