public class OriginInfo extends AbstractModel
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 ID of the secondary origin group (valid when `OriginType=ORIGIN_GROUP`).
|
String |
getOrigin()
Get The origin address.
|
String |
getOriginType()
Get The origin type.
|
String |
getPrivateAccess()
Get Whether to authenticate access to the private object storage origin (valid when `OriginType=COS/AWS_S3`).
|
PrivateParameter[] |
getPrivateParameters()
Get The private authentication parameters.
|
void |
setBackupOrigin(String BackupOrigin)
Set ID of the secondary origin group (valid when `OriginType=ORIGIN_GROUP`).
|
void |
setOrigin(String Origin)
Set The origin address.
|
void |
setOriginType(String OriginType)
Set The origin type.
|
void |
setPrivateAccess(String PrivateAccess)
Set Whether to authenticate access to the private object storage origin (valid when `OriginType=COS/AWS_S3`).
|
void |
setPrivateParameters(PrivateParameter[] PrivateParameters)
Set The private authentication parameters.
|
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 OriginInfo()
public OriginInfo(OriginInfo source)
public String getOriginType()
public void setOriginType(String OriginType)
OriginType
- The origin type. Values:
public String getOrigin()
public void setOrigin(String Origin)
Origin
- The origin address. Enter the origin group ID if `OriginType=ORIGIN_GROUP`.
Note: This field may return null, indicating that no valid values can be obtained.public String getBackupOrigin()
public void setBackupOrigin(String BackupOrigin)
BackupOrigin
- ID of the secondary origin group (valid when `OriginType=ORIGIN_GROUP`). If it’s not specified, it indicates that secondary origins are not used.
Note: This field may return null, indicating that no valid values can be obtained.public String getPrivateAccess()
public void setPrivateAccess(String PrivateAccess)
PrivateAccess
- Whether to authenticate access to the private object storage origin (valid when `OriginType=COS/AWS_S3`). Values:
public PrivateParameter[] getPrivateParameters()
public void setPrivateParameters(PrivateParameter[] PrivateParameters)
PrivateParameters
- The private authentication parameters. This field is valid when `PrivateAccess=on`.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.