public class Origin extends AbstractModel
| Constructor and Description | 
|---|
| Origin() | 
| Modifier and Type | Method and Description | 
|---|---|
| String[] | getBackupOrigins()Get Secondary origin server list. | 
| String | getBackupOriginType()Get Secondary origin server type, which is the same as `OriginType`. | 
| String | getOriginPullProtocol()Get Origin-pull protocol type. | 
| String[] | getOrigins()Get Primary origin server list. | 
| String | getOriginType()Get Primary origin server type. | 
| String | getServerName()Get Host header value during origin-pull. | 
| void | setBackupOrigins(String[] BackupOrigins)Set Secondary origin server list. | 
| void | setBackupOriginType(String BackupOriginType)Set Secondary origin server type, which is the same as `OriginType`. | 
| void | setOriginPullProtocol(String OriginPullProtocol)Set Origin-pull protocol type. | 
| void | setOrigins(String[] Origins)Set Primary origin server list. | 
| void | setOriginType(String OriginType)Set Primary origin server type. | 
| void | setServerName(String ServerName)Set Host header value during origin-pull. | 
| 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 String[] getOrigins()
public void setOrigins(String[] Origins)
Origins - Primary origin server list. The default format is ["ip1:port1", "ip2:port2"].
Weights can be configured in the origin server list. The weight format of IP origin servers is ["ip1:port1:weight1", "ip2:port2:weight2"].public String getOriginType()
public void setOriginType(String OriginType)
OriginType - Primary origin server type. Valid values: domain (domain name origin server), ip (IP origin server).
This is required when setting `Origins`.
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 value during origin-pull.
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 type. Valid values: http (forced HTTP origin-pull), follow (protocol follow), https (HTTPS 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 - Secondary origin server list.public String getBackupOriginType()
public void setBackupOriginType(String BackupOriginType)
BackupOriginType - Secondary origin server type, which is the same as `OriginType`.
This is required when setting `BackupOrigins`.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.