public class OriginRecord extends AbstractModel
Constructor and Description |
---|
OriginRecord() |
OriginRecord(OriginRecord 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[] |
getArea()
Get The region when `ConfigurationType=area`, which is specified by country code (ISO 3166 alpha-2) or continent code.
|
Long |
getPort()
Get The origin port.
|
Boolean |
getPrivate()
Get It is valid only when `OriginType=third_part`.
|
PrivateParameter[] |
getPrivateParameters()
Get The authentication parameter, which is used when `Private=true`.
|
String |
getProto()
Get The origin protocol when `ConfigurationType=proto`, indicating that origin-pull is performed by protocol.
|
String |
getRecord()
Get The origin record value, which can be an IPv4/IPv6 address or a domain name.
|
String |
getRecordId()
Get The origin record ID.
|
Long |
getWeight()
Get The weight when `ConfigurationType=weight`.
|
void |
setArea(String[] Area)
Set The region when `ConfigurationType=area`, which is specified by country code (ISO 3166 alpha-2) or continent code.
|
void |
setPort(Long Port)
Set The origin port.
|
void |
setPrivate(Boolean Private)
Set It is valid only when `OriginType=third_part`.
|
void |
setPrivateParameters(PrivateParameter[] PrivateParameters)
Set The authentication parameter, which is used when `Private=true`.
|
void |
setProto(String Proto)
Set The origin protocol when `ConfigurationType=proto`, indicating that origin-pull is performed by protocol.
|
void |
setRecord(String Record)
Set The origin record value, which can be an IPv4/IPv6 address or a domain name.
|
void |
setRecordId(String RecordId)
Set The origin record ID.
|
void |
setWeight(Long Weight)
Set The weight when `ConfigurationType=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 OriginRecord()
public OriginRecord(OriginRecord source)
public String getRecord()
public void setRecord(String Record)
Record
- The origin record value, which can be an IPv4/IPv6 address or a domain name.public String getRecordId()
public void setRecordId(String RecordId)
RecordId
- The origin record ID.public Long getPort()
public void setPort(Long Port)
Port
- The origin port. Value rang: 1-65535.public Long getWeight()
public void setWeight(Long Weight)
Weight
- The weight when `ConfigurationType=weight`.
If 0 or no value is passed, the weight of each origin in a group will be 0 or left empty, indicating that origin-pull is performed by round-robin.
If a value between 1-100 is passed, the total weight of multiple origins in a group should be 100, indicating that origin-pull is performed by weight.
The weight when `ConfigurationType=proto`.
If 0 or no value is passed, the weight of each origin in a group will be 0 or left empty, indicating that origin-pull is performed by round-robin.
If a value between 1-100 is passed, the total weight of multiple origins with the same protocol in a group should be 100, indicating that origin-pull is performed by weight.public String getProto()
public void setProto(String Proto)
Proto
- The origin protocol when `ConfigurationType=proto`, indicating that origin-pull is performed by protocol.
public String[] getArea()
public void setArea(String[] Area)
Area
- The region when `ConfigurationType=area`, which is specified by country code (ISO 3166 alpha-2) or continent code. If not specified, it indicates all regions. Supported continent codes:
public Boolean getPrivate()
public void setPrivate(Boolean Private)
Private
- It is valid only when `OriginType=third_part`.
Whether the origin group is private. Values:
public PrivateParameter[] getPrivateParameters()
public void setPrivateParameters(PrivateParameter[] PrivateParameters)
PrivateParameters
- The authentication parameter, which is used when `Private=true`.Copyright © 2023. All rights reserved.