public class Origin extends AbstractModel
Constructor and Description |
---|
Origin() |
Modifier and Type | Method and Description |
---|---|
String[] |
getBackupOrigins()
Get Backup origin server list
When modifying the backup origin server, you need to enter the corresponding BackupOriginType.
|
String |
getBackupOriginType()
Get Backup origin server type, which supports the following types:
domain: domain name type
ip: IP list used as origin server
When modifying BackupOrigins, you need to enter the corresponding BackupOriginType.
|
String |
getBackupServerName()
Get Host header used when accessing the backup origin server.
|
String |
getCosPrivateAccess()
Get When OriginType is COS, you can specify if access to private buckets is allowed.
|
String |
getOriginPullProtocol()
Get Origin-pull protocol configuration
http: forced HTTP origin-pull
follow: protocol follow origin-pull
https: forced HTTPS origin-pull.
|
String[] |
getOrigins()
Get Master origin server list
When modifying the origin server, you need to enter the corresponding OriginType.
|
String |
getOriginType()
Get Master origin server type
The following types are supported for input parameters:
domain: domain name type
cos: COS origin
ip: IP list used as origin server
ipv6: origin server list is a single IPv6 address
ip_ipv6: origin server list is multiple IPv4 addresses and an IPv6 address
The following types of output parameters are added:
image: Cloud Infinite origin
ftp: legacy FTP origin, which is no longer maintained.
|
String |
getServerName()
Get Host header used when accessing the master origin server.
|
void |
setBackupOrigins(String[] BackupOrigins)
Set Backup origin server list
When modifying the backup origin server, you need to enter the corresponding BackupOriginType.
|
void |
setBackupOriginType(String BackupOriginType)
Set Backup origin server type, which supports the following types:
domain: domain name type
ip: IP list used as origin server
When modifying BackupOrigins, you need to enter the corresponding BackupOriginType.
|
void |
setBackupServerName(String BackupServerName)
Set Host header used when accessing the backup origin server.
|
void |
setCosPrivateAccess(String CosPrivateAccess)
Set When OriginType is COS, you can specify if access to private buckets is allowed.
|
void |
setOriginPullProtocol(String OriginPullProtocol)
Set Origin-pull protocol configuration
http: forced HTTP origin-pull
follow: protocol follow origin-pull
https: forced HTTPS origin-pull.
|
void |
setOrigins(String[] Origins)
Set Master origin server list
When modifying the origin server, you need to enter the corresponding OriginType.
|
void |
setOriginType(String OriginType)
Set Master origin server type
The following types are supported for input parameters:
domain: domain name type
cos: COS origin
ip: IP list used as origin server
ipv6: origin server list is a single IPv6 address
ip_ipv6: origin server list is multiple IPv4 addresses and an IPv6 address
The following types of output parameters are added:
image: Cloud Infinite origin
ftp: legacy FTP origin, which is no longer maintained.
|
void |
setServerName(String ServerName)
Set Host header used when accessing the master origin server.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String[] getOrigins()
public void setOrigins(String[] Origins)
Origins
- Master origin server list
When modifying the origin server, you need to enter the corresponding OriginType.
Note: this field may return null, indicating that no valid values can be obtained.public String getOriginType()
public void setOriginType(String OriginType)
OriginType
- Master origin server type
The following types are supported for input parameters:
domain: domain name type
cos: COS origin
ip: IP list used as origin server
ipv6: origin server list is a single IPv6 address
ip_ipv6: origin server list is multiple IPv4 addresses and an IPv6 address
The following types of output parameters are added:
image: Cloud Infinite origin
ftp: legacy FTP origin, which is no longer maintained.
When modifying `Origins`, you need to enter the corresponding OriginType.
The IPv6 feature is not generally available yet. Please send in a whitelist application to use this feature.
Note: this field may return null, indicating that no valid values can be obtained.public String getServerName()
public void setServerName(String ServerName)
ServerName
- Host header used when accessing the master origin server. If left empty, the acceleration domain name will be used by default.
If a wildcard domain name is accessed, then the sub-domain name during the access will be used by default.
Note: this field may return null, indicating that no valid values can be obtained.public String getCosPrivateAccess()
public void setCosPrivateAccess(String CosPrivateAccess)
CosPrivateAccess
- When OriginType is COS, you can specify if access to private buckets is allowed.
Note: to enable this configuration, you need to first grant CDN access to the private bucket.
Note: this field may return null, indicating that no valid values can be obtained.public String getOriginPullProtocol()
public void setOriginPullProtocol(String OriginPullProtocol)
OriginPullProtocol
- Origin-pull protocol configuration
http: forced HTTP origin-pull
follow: protocol follow origin-pull
https: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull.
Note: this field may return null, indicating that no valid values can be obtained.public String[] getBackupOrigins()
public void setBackupOrigins(String[] BackupOrigins)
BackupOrigins
- Backup origin server list
When modifying the backup origin server, you need to enter the corresponding BackupOriginType.
Note: this field may return null, indicating that no valid values can be obtained.public String getBackupOriginType()
public void setBackupOriginType(String BackupOriginType)
BackupOriginType
- Backup origin server type, which supports the following types:
domain: domain name type
ip: IP list used as origin server
When modifying BackupOrigins, you need to enter the corresponding BackupOriginType.
Note: this field may return null, indicating that no valid values can be obtained.public String getBackupServerName()
public void setBackupServerName(String BackupServerName)
BackupServerName
- Host header used when accessing the backup origin server. If left empty, the ServerName of master origin server will be used by default.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2020. All rights reserved.