public class Config
extends com.aliyun.tea.TeaModel
Model for initing client
| 限定符和类型 | 字段和说明 |
|---|---|
String |
accessKeyId
accesskey id
|
String |
accessKeySecret
accesskey secret
|
String |
bearerToken
bearer token
example:
the-bearer-token
|
String |
ca
server certificate
example:
-----BEGIN CERTIFICATE-----
xxx-----END CERTIFICATE-----
|
String |
cert
client certificate
example:
-----BEGIN CERTIFICATE-----
xxx-----END CERTIFICATE-----
|
Integer |
connectTimeout
connect timeout
example:
10
|
com.aliyun.credentials.Client |
credential
credential
|
Boolean |
disableHttp2
disable HTTP/2
example:
false
|
String |
endpoint
endpoint
example:
cs.aliyuncs.com
|
String |
endpointType
endpoint type
example:
internal
|
GlobalParameters |
globalParameters
Global Parameters
|
String |
httpProxy
http proxy
example:
http://localhost
|
String |
httpsProxy
https proxy
example:
https://localhost
|
String |
key
privite key for client certificate
example:
MIIEvQ
|
Integer |
maxIdleConns
max idle conns
example:
3
|
String |
method
http method
example:
GET
|
String |
network
network for endpoint
example:
public
|
String |
noProxy
proxy white list
example:
http://localhost
|
String |
openPlatformEndpoint
OpenPlatform endpoint
example:
openplatform.aliyuncs.com
|
String |
protocol
http protocol
example:
http
|
Integer |
readTimeout
read timeout
example:
10
|
String |
regionId
region id
example:
cn-hangzhou
|
String |
securityToken
security token
example:
a.txt
|
String |
signatureAlgorithm
Signature Algorithm
example:
ACS3-HMAC-SHA256
|
String |
signatureVersion
Signature Version
example:
v1
|
String |
socks5NetWork
socks5 network
example:
TCP
|
String |
socks5Proxy
socks5 proxy
|
String |
suffix
suffix for endpoint
example:
aliyun
|
String |
tlsMinVersion
TLS Minimum Version
example:
TLSv1, TLSv1.1, TLSv1.2, TLSv1.3
|
String |
type
已过时。
|
String |
userAgent
user agent
example:
Alibabacloud/1
|
| 构造器和说明 |
|---|
Config() |
@NameInMap(value="accessKeyId") public String accessKeyId
accesskey id
@NameInMap(value="accessKeySecret") public String accessKeySecret
accesskey secret
@NameInMap(value="securityToken") public String securityToken
security token
example:a.txt
@NameInMap(value="bearerToken") public String bearerToken
bearer token
example:the-bearer-token
@NameInMap(value="protocol") public String protocol
http protocol
example:http
@NameInMap(value="method") public String method
http method
example:GET
@NameInMap(value="regionId") public String regionId
region id
example:cn-hangzhou
@NameInMap(value="readTimeout") public Integer readTimeout
read timeout
example:10
@NameInMap(value="connectTimeout") public Integer connectTimeout
connect timeout
example:10
@NameInMap(value="httpProxy") public String httpProxy
http proxy
example:@NameInMap(value="httpsProxy") public String httpsProxy
https proxy
example:@NameInMap(value="credential") public com.aliyun.credentials.Client credential
credential
@NameInMap(value="endpoint") public String endpoint
endpoint
example:cs.aliyuncs.com
@NameInMap(value="noProxy") public String noProxy
proxy white list
example:@NameInMap(value="maxIdleConns") public Integer maxIdleConns
max idle conns
example:3
@NameInMap(value="network") public String network
network for endpoint
example:public
@NameInMap(value="userAgent") public String userAgent
user agent
example:Alibabacloud/1
@NameInMap(value="suffix") public String suffix
suffix for endpoint
example:aliyun
@NameInMap(value="socks5Proxy") public String socks5Proxy
socks5 proxy
@NameInMap(value="socks5NetWork") public String socks5NetWork
socks5 network
example:TCP
@NameInMap(value="endpointType") public String endpointType
endpoint type
example:internal
@NameInMap(value="openPlatformEndpoint") public String openPlatformEndpoint
OpenPlatform endpoint
example:openplatform.aliyuncs.com
@NameInMap(value="type") @Deprecated public String type
credential type
example:access_key
@NameInMap(value="signatureVersion") public String signatureVersion
Signature Version
example:v1
@NameInMap(value="signatureAlgorithm") public String signatureAlgorithm
Signature Algorithm
example:ACS3-HMAC-SHA256
@NameInMap(value="globalParameters") public GlobalParameters globalParameters
Global Parameters
@NameInMap(value="key") public String key
privite key for client certificate
example:MIIEvQ
@NameInMap(value="cert") public String cert
client certificate
example:-----BEGIN CERTIFICATE----- xxx-----END CERTIFICATE-----
@NameInMap(value="ca") public String ca
server certificate
example:-----BEGIN CERTIFICATE----- xxx-----END CERTIFICATE-----
@NameInMap(value="disableHttp2") public Boolean disableHttp2
disable HTTP/2
example:false
@NameInMap(value="tlsMinVersion") public String tlsMinVersion
TLS Minimum Version
example:TLSv1, TLSv1.1, TLSv1.2, TLSv1.3
public String getAccessKeyId()
public String getAccessKeySecret()
public String getSecurityToken()
public String getBearerToken()
public String getProtocol()
public String getMethod()
public String getRegionId()
public Integer getReadTimeout()
public Integer getConnectTimeout()
public String getHttpProxy()
public String getHttpsProxy()
public Config setCredential(com.aliyun.credentials.Client credential)
public com.aliyun.credentials.Client getCredential()
public String getEndpoint()
public String getNoProxy()
public Integer getMaxIdleConns()
public String getNetwork()
public String getUserAgent()
public String getSuffix()
public String getSocks5Proxy()
public String getSocks5NetWork()
public String getEndpointType()
public String getOpenPlatformEndpoint()
@Deprecated public Config setType(String type)
public String getType()
public String getSignatureVersion()
public String getSignatureAlgorithm()
public Config setGlobalParameters(GlobalParameters globalParameters)
public GlobalParameters getGlobalParameters()
public String getKey()
public String getCert()
public String getCa()
public Boolean getDisableHttp2()
public String getTlsMinVersion()
Copyright © 2025. All rights reserved.