public class OriginRecord extends AbstractModel
header, skipSign
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 |
---|---|
Boolean |
getPrivate()
Get Whether to enable private authentication.
|
PrivateParameter[] |
getPrivateParameters()
Get Private authentication parameters.
|
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.
|
String |
getType()
Get The origin type.
|
Long |
getWeight()
Get Weight of an origin.
|
void |
setPrivate(Boolean Private)
Set Whether to enable private authentication.
|
void |
setPrivateParameters(PrivateParameter[] PrivateParameters)
Set Private authentication parameters.
|
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 |
setType(String Type)
Set The origin type.
|
void |
setWeight(Long Weight)
Set Weight of an origin.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, 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 getType()
public void setType(String Type)
Type
- The origin type. Values:
public String getRecordId()
public void setRecordId(String RecordId)
RecordId
- The origin record ID.public Long getWeight()
public void setWeight(Long Weight)
Weight
- Weight of an origin. Range: 0-100. If it is not specified, a random weight is assigned. If `0` is passed in, there is no traffic scheduled to this origin.
Note: This field may return·null, indicating that no valid values can be obtained.public Boolean getPrivate()
public void setPrivate(Boolean Private)
Private
- Whether to enable private authentication. It is valid when `OriginType=COS/AWS_S3`. Values:
public PrivateParameter[] getPrivateParameters()
public void setPrivateParameters(PrivateParameter[] PrivateParameters)
PrivateParameters
- Private authentication parameters. This field is valid when `Private=true`.Copyright © 2024. All rights reserved.