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 | 
|---|---|
| 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 Origin()
public Origin(Origin source)
public String[] getOrigins()
public void setOrigins(String[] Origins)
Origins - Primary origin server list. IP and the domain name of the origin server cannot be entered at the same time. Configure origin server port in the format of ["origin1:port1", "origin2:port2"]. Configure origin-pull weight in the format of ["origin1::weight1", "origin2::weight2"]. Configure both port and weight in the format of ["origin1:port1:weight1", "origin2:port2:weight2"]. Valid range of weight value: 0 - 100.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).
If this parameter is left empty, HTTP origin-pull will be used by default.
Note: this field may return `null`, indicating that no valid value is 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.