public class StorageInfo extends AbstractModel
Constructor and Description |
---|
StorageInfo() |
StorageInfo(StorageInfo 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 |
---|---|
BucketInfo |
getBucketInfo()
Get 该字段表示文件访问的腾讯云存储桶信息。
备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。 |
String |
getType()
Get 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
|
String |
getUrl()
Get 该字段表示文件访问的链接地址,格式为标准URL格式。
备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一 |
void |
setBucketInfo(BucketInfo BucketInfo)
Set 该字段表示文件访问的腾讯云存储桶信息。
备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。 |
void |
setType(String Type)
Set 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
|
void |
setUrl(String Url)
Set 该字段表示文件访问的链接地址,格式为标准URL格式。
备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一 |
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 StorageInfo()
public StorageInfo(StorageInfo source)
public String getType()
public void setType(String Type)
Type
- 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。public String getUrl()
public void setUrl(String Url)
Url
- 该字段表示文件访问的链接地址,格式为标准URL格式。public BucketInfo getBucketInfo()
public void setBucketInfo(BucketInfo BucketInfo)
BucketInfo
- 该字段表示文件访问的腾讯云存储桶信息。Copyright © 2022. All rights reserved.