Class StorageInfo
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.vm.v20201229.models.StorageInfo
-
public class StorageInfo extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketInfogetBucketInfo()Get 该字段表示文件访问的腾讯云存储桶信息。
备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。StringgetType()Get 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。StringgetUrl()Get 该字段表示文件访问的链接地址,格式为标准URL格式。
备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一voidsetBucketInfo(BucketInfo BucketInfo)Set 该字段表示文件访问的腾讯云存储桶信息。
备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。voidsetType(String Type)Set 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。voidsetUrl(String Url)Set 该字段表示文件访问的链接地址,格式为标准URL格式。
备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
StorageInfo
public StorageInfo()
-
StorageInfo
public 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.
-
-
Method Detail
-
getType
public String getType()
Get 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。- Returns:
- Type 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
-
setType
public void setType(String Type)
Set 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。- Parameters:
Type- 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
-
getUrl
public String getUrl()
Get 该字段表示文件访问的链接地址,格式为标准URL格式。
备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一- Returns:
- Url 该字段表示文件访问的链接地址,格式为标准URL格式。
备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一
-
setUrl
public void setUrl(String Url)
Set 该字段表示文件访问的链接地址,格式为标准URL格式。
备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一- Parameters:
Url- 该字段表示文件访问的链接地址,格式为标准URL格式。
备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一
-
getBucketInfo
public BucketInfo getBucketInfo()
Get 该字段表示文件访问的腾讯云存储桶信息。
备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。- Returns:
- BucketInfo 该字段表示文件访问的腾讯云存储桶信息。
备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。
-
setBucketInfo
public void setBucketInfo(BucketInfo BucketInfo)
Set 该字段表示文件访问的腾讯云存储桶信息。
备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。- Parameters:
BucketInfo- 该字段表示文件访问的腾讯云存储桶信息。
备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。
-
-