public class CreateStorageCredentialsRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateStorageCredentialsRequest() | 
| CreateStorageCredentialsRequest(CreateStorageCredentialsRequest 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 | 
|---|---|
| Long | getDurationSeconds()Get Specifies the validity period of credentials in seconds. | 
| String | getPolicy()Get The policy string serialized by URL Encode is used as the input parameter Policy. | 
| Long | getSubAppId()Get The ID of [VOD Professional Application](http://tencentcloud.com/document/product/266/67977). | 
| void | setDurationSeconds(Long DurationSeconds)Set Specifies the validity period of credentials in seconds. | 
| void | setPolicy(String Policy)Set The policy string serialized by URL Encode is used as the input parameter Policy. | 
| void | setSubAppId(Long SubAppId)Set The ID of [VOD Professional Application](http://tencentcloud.com/document/product/266/67977). | 
| 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 CreateStorageCredentialsRequest()
public CreateStorageCredentialsRequest(CreateStorageCredentialsRequest source)
public Long getSubAppId()
public void setSubAppId(Long SubAppId)
SubAppId - The ID of [VOD Professional Application](http://tencentcloud.com/document/product/266/67977).public String getPolicy()
public void setPolicy(String Policy)
Policy - The policy string serialized by URL Encode is used as the input parameter Policy. The server will URL Decode the Policy value and grant temporary access credentials according to the parsed policy. Please pass in parameters according to the specification.
Note:
1.The policy syntax refers to [Cloud Access Management](/document/product/598/10603).
2.The policy cannot contain the principal element.
3.The policy actions include: 
public Long getDurationSeconds()
public void setDurationSeconds(Long DurationSeconds)
DurationSeconds - Specifies the validity period of credentials in seconds. The default value is 1800 seconds and the maximum value is 129600 seconds.Copyright © 2025. All rights reserved.