public class OriginInfo extends AbstractModel
header, skipSign| Constructor and Description |
|---|
OriginInfo() |
OriginInfo(OriginInfo 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 |
getBackupOrigin()
Get The ID of the secondary origin group.
|
String |
getHostHeader()
Get Custom origin server HOST header.
|
String |
getOrigin()
Get Origin server address, which varies according to the value of OriginType:
When OriginType = IP_DOMAIN, fill in an IPv4 address, an IPv6 address, or a domain name;
When OriginType = COS, fill in the access domain name of the COS bucket;
When OriginType = AWS_S3, fill in the access domain name of the S3 bucket;
When OriginType = ORIGIN_GROUP, fill in the origin server group ID;
When OriginType = VOD, fill in the VOD application ID;
When OriginType = LB, fill in the Cloud Load Balancer instance ID.
|
String |
getOriginType()
Get Origin server type, with values:
IP_DOMAIN: IPv4, IPv6, or domain name type origin server;
COS: Tencent Cloud COS origin server;
AWS_S3: AWS S3 origin server;
ORIGIN_GROUP: origin server group type origin server;
VOD: Video on Demand;
SPACE: origin server uninstallation.
|
String |
getPrivateAccess()
Get Whether access to the private Cloud Object Storage origin server is allowed.
|
PrivateParameter[] |
getPrivateParameters()
Get Private authentication parameter.
|
String |
getVodBucketId()
Get VOD bucket ID.
|
String |
getVodeoBucketId()
Deprecated.
|
String |
getVodeoDistributionRange()
Deprecated.
|
Long |
getVodeoSubAppId()
Deprecated.
|
String |
getVodOriginScope()
Get VOD origin-pull scope.
|
void |
setBackupOrigin(String BackupOrigin)
Set The ID of the secondary origin group.
|
void |
setHostHeader(String HostHeader)
Set Custom origin server HOST header.
|
void |
setOrigin(String Origin)
Set Origin server address, which varies according to the value of OriginType:
When OriginType = IP_DOMAIN, fill in an IPv4 address, an IPv6 address, or a domain name;
When OriginType = COS, fill in the access domain name of the COS bucket;
When OriginType = AWS_S3, fill in the access domain name of the S3 bucket;
When OriginType = ORIGIN_GROUP, fill in the origin server group ID;
When OriginType = VOD, fill in the VOD application ID;
When OriginType = LB, fill in the Cloud Load Balancer instance ID.
|
void |
setOriginType(String OriginType)
Set Origin server type, with values:
IP_DOMAIN: IPv4, IPv6, or domain name type origin server;
COS: Tencent Cloud COS origin server;
AWS_S3: AWS S3 origin server;
ORIGIN_GROUP: origin server group type origin server;
VOD: Video on Demand;
SPACE: origin server uninstallation.
|
void |
setPrivateAccess(String PrivateAccess)
Set Whether access to the private Cloud Object Storage origin server is allowed.
|
void |
setPrivateParameters(PrivateParameter[] PrivateParameters)
Set Private authentication parameter.
|
void |
setVodBucketId(String VodBucketId)
Set VOD bucket ID.
|
void |
setVodeoBucketId(String VodeoBucketId)
Deprecated.
|
void |
setVodeoDistributionRange(String VodeoDistributionRange)
Deprecated.
|
void |
setVodeoSubAppId(Long VodeoSubAppId)
Deprecated.
|
void |
setVodOriginScope(String VodOriginScope)
Set VOD origin-pull scope.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic OriginInfo()
public OriginInfo(OriginInfo source)
public String getOriginType()
public void setOriginType(String OriginType)
OriginType - Origin server type, with values:
public String getOrigin()
public void setOrigin(String Origin)
Origin - Origin server address, which varies according to the value of OriginType:
public String getBackupOrigin()
public void setBackupOrigin(String BackupOrigin)
BackupOrigin - The ID of the secondary origin group. This parameter is valid only when OriginType is ORIGIN_GROUP. This field indicates the old version capability, which cannot be configured or modified on the control panel after being called. Please submit a ticket if required.public String getPrivateAccess()
public void setPrivateAccess(String PrivateAccess)
PrivateAccess - Whether access to the private Cloud Object Storage origin server is allowed. This parameter is valid only when OriginType is COS or AWS_S3. Valid values:
public PrivateParameter[] getPrivateParameters()
public void setPrivateParameters(PrivateParameter[] PrivateParameters)
PrivateParameters - Private authentication parameter. This parameter is valid only when PrivateAccess is on.public String getHostHeader()
public void setHostHeader(String HostHeader)
HostHeader - Custom origin server HOST header. this parameter is valid only when OriginType=IP_DOMAIN.If the OriginType is another type of origin, this parameter does not need to be passed in, otherwise an error will be reported.
If OriginType is COS or AWS_S3, the HOST header for origin-pull will remain consistent with the origin server domain name.
If OriginType is ORIGIN_GROUP, the HOST header follows the ORIGIN site GROUP configuration. if not configured, it defaults to the acceleration domain name.
If OriginType is VOD or SPACE, no configuration is required for this header, and the domain name takes effect based on the corresponding origin.@Deprecated public Long getVodeoSubAppId()
@Deprecated public void setVodeoSubAppId(Long VodeoSubAppId)
VodeoSubAppId - VODEO sub-application ID. This parameter is required when OriginType is VODEO.@Deprecated public String getVodeoDistributionRange()
@Deprecated public void setVodeoDistributionRange(String VodeoDistributionRange)
VodeoDistributionRange - VOD on EO distribution range. This parameter is required when OriginType = VODEO. The values are:
@Deprecated public String getVodeoBucketId()
@Deprecated public void setVodeoBucketId(String VodeoBucketId)
VodeoBucketId - VODEO storage bucket ID. This parameter is required when OriginType is VODEO and VodeoDistributionRange is Bucket.public String getVodOriginScope()
public void setVodOriginScope(String VodOriginScope)
VodOriginScope - VOD origin-pull scope. this parameter is valid only when OriginType = VOD. valid values: public String getVodBucketId()
public void setVodBucketId(String VodBucketId)
VodBucketId - VOD bucket ID. this parameter is required when OriginType = VOD and VodOriginScope = bucket. data source: storage ID of the bucket under the VOD professional edition application.Copyright © 2025. All rights reserved.