public class Storage extends AbstractModel
Constructor and Description |
---|
Storage() |
Storage(Storage 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 |
getStorageName()
Get Storage name.
|
String |
getStoragePrefix()
Get Storage directory prefix.
|
String |
getStorageRegion()
Get Storage region
|
String |
getStorageType()
Get Storage type (Valid values: cos, cls)
|
void |
setStorageName(String StorageName)
Set Storage name.
|
void |
setStoragePrefix(String StoragePrefix)
Set Storage directory prefix.
|
void |
setStorageRegion(String StorageRegion)
Set Storage region
|
void |
setStorageType(String StorageType)
Set Storage type (Valid values: cos, cls)
|
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 Storage()
public Storage(Storage source)
public String getStorageType()
public void setStorageType(String StorageType)
StorageType
- Storage type (Valid values: cos, cls)public String getStorageRegion()
public void setStorageRegion(String StorageRegion)
StorageRegion
- Storage regionpublic String getStorageName()
public void setStorageName(String StorageName)
StorageName
- Storage name. For COS, the storage name is the custom bucket name, which can contain up to 50 lowercase letters, digits, and hyphens. It cannot contain "-APPID" and cannot start or end with a hyphen. For CLS, the storage name is the log topic ID, which can contain 1-50 characters.public String getStoragePrefix()
public void setStoragePrefix(String StoragePrefix)
StoragePrefix
- Storage directory prefix. The COS log file prefix can only contain 3-40 letters and digits.Copyright © 2023. All rights reserved.