public class L4RuleSource extends AbstractModel
Constructor and Description |
---|
L4RuleSource() |
L4RuleSource(L4RuleSource 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 |
---|---|
Long |
getBackup()
Get Secondary origin server.
|
Long |
getPort()
Get 8000
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getSource()
Get IP or domain name for forwarding.
|
Long |
getWeight()
Get Weight.
|
void |
setBackup(Long Backup)
Set Secondary origin server.
|
void |
setPort(Long Port)
Set 8000
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setSource(String Source)
Set IP or domain name for forwarding.
|
void |
setWeight(Long Weight)
Set Weight.
|
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 L4RuleSource()
public L4RuleSource(L4RuleSource source)
public String getSource()
public void setSource(String Source)
Source
- IP or domain name for forwarding.public Long getWeight()
public void setWeight(Long Weight)
Weight
- Weight. Value range: [0,100].public Long getPort()
public void setPort(Long Port)
Port
- 8000
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getBackup()
public void setBackup(Long Backup)
Backup
- Secondary origin server. `1`: secondary origin server; `0`: general origin server.
Note: This field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.