public class Origin extends AbstractModel
| Constructor and Description | 
|---|
| Origin() | 
| Origin(Origin source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| AdvanceHttps | getAdvanceHttps()Get Advanced HTTPS forwarding configuration
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String[] | getBackupOrigins()Get Backup origin server list
When modifying the backup origin server, you need to enter the corresponding BackupOriginType. | 
| String | getBackupOriginType()Get Secondary origin type. | 
| String | getBackupServerName()Get Host header used when accessing the backup origin server. | 
| String | getBasePath()Get | 
| 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 Primary origin server type
Input:
`domain`: domain name
`cos`: COS bucket address
`ip`: IP address
`ipv6`: a single IPv6 address
`ip_ipv6`: multiple IPv4 addresses and one IPv6 address
`ip_domain`: both IP addresses and domain names (only available to beta users)
`ipv6_domain`: multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: multiple IPv4 and IPv6 addresses and one domain name
Output: 
`image`: Cloud Infinite origin
`ftp`: FTP origin (disused)
When modifying `Origins`, you need to enter the corresponding `OriginType`. | 
| PathBasedOriginRule[] | getPathBasedOrigin()Get Path-based origin-pull configurations
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| PathRule[] | getPathRules()Get Origin URL rewrite rule configuration
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getServerName()Get Host header used when accessing the master origin server. | 
| void | setAdvanceHttps(AdvanceHttps AdvanceHttps)Set Advanced HTTPS forwarding configuration
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| 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 Secondary origin type. | 
| void | setBackupServerName(String BackupServerName)Set Host header used when accessing the backup origin server. | 
| void | setBasePath(String BasePath)Set | 
| 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 Primary origin server type
Input:
`domain`: domain name
`cos`: COS bucket address
`ip`: IP address
`ipv6`: a single IPv6 address
`ip_ipv6`: multiple IPv4 addresses and one IPv6 address
`ip_domain`: both IP addresses and domain names (only available to beta users)
`ipv6_domain`: multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: multiple IPv4 and IPv6 addresses and one domain name
Output: 
`image`: Cloud Infinite origin
`ftp`: FTP origin (disused)
When modifying `Origins`, you need to enter the corresponding `OriginType`. | 
| void | setPathBasedOrigin(PathBasedOriginRule[] PathBasedOrigin)Set Path-based origin-pull configurations
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setPathRules(PathRule[] PathRules)Set Origin URL rewrite rule configuration
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| 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, toJsonStringpublic Origin()
public Origin(Origin source)
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 - Primary origin server type
Input:
`domain`: domain name
`cos`: COS bucket address
`ip`: IP address
`ipv6`: a single IPv6 address
`ip_ipv6`: multiple IPv4 addresses and one IPv6 address
`ip_domain`: both IP addresses and domain names (only available to beta users)
`ipv6_domain`: multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: multiple IPv4 and IPv6 addresses and one domain name
Output: 
`image`: Cloud Infinite origin
`ftp`: FTP origin (disused)
When modifying `Origins`, you need to enter the corresponding `OriginType`.
The IPv6 feature is now only available to beta users. Please submit an 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 - Secondary origin type. Values:
`domain`: domain name
`ip`: IP address
When modifying `BackupOrigins`, you need to enter the corresponding `BackupOriginType`.
The following backup origin servers are only available to beta users. Submit an application if you want to become a beta user.
`ipv6_domain`: multiple IPv6 addresses and one domain name
`ip_ipv6`: multiple IPv4 addresses and one IPv6 address
`ipv6_domain`: multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: multiple IPv4 and IPv6 addresses and one domain name
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.public String getBasePath()
public void setBasePath(String BasePath)
BasePath - public PathRule[] getPathRules()
public void setPathRules(PathRule[] PathRules)
PathRules - Origin URL rewrite rule configuration
Note: this field may return `null`, indicating that no valid values can be obtained.public PathBasedOriginRule[] getPathBasedOrigin()
public void setPathBasedOrigin(PathBasedOriginRule[] PathBasedOrigin)
PathBasedOrigin - Path-based origin-pull configurations
Note: this field may return `null`, indicating that no valid values can be obtained.public AdvanceHttps getAdvanceHttps()
public void setAdvanceHttps(AdvanceHttps AdvanceHttps)
AdvanceHttps - Advanced HTTPS forwarding configuration
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.