public class PreviewReplacedCommandContentRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| PreviewReplacedCommandContentRequest() | 
| PreviewReplacedCommandContentRequest(PreviewReplacedCommandContentRequest 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 | getCommandId()Get 要进行替换预览的命令。
可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取。
CommandId 与 Content,必须且只能提供一个。 | 
| String | getContent()Get 要预览的命令内容,经 Base64 编码,长度不可超过 64KB。
CommandId 与 Content,必须且只能提供一个。 | 
| String | getParameters()Get 本次预览采用的自定义参数。字段类型为 json encoded string,如:{"varA": "222"}。
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
如果有设置过 DefaultParameters 或 DefaultParameterConfs,会与 Parameters 进行叠加,优先使用 Parameters 的值。
key 为自定义参数名称,value 为该参数的取值。kv 均为字符串型。
自定义参数最多 20 个。
自定义参数名称需符合以下规范:字符数目上限 64,可选范围【a-zA-Z0-9-_】。
如果将预览的 CommandId 设置过 DefaultParameters,本参数可以为空。 | 
| void | setCommandId(String CommandId)Set 要进行替换预览的命令。
可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取。
CommandId 与 Content,必须且只能提供一个。 | 
| void | setContent(String Content)Set 要预览的命令内容,经 Base64 编码,长度不可超过 64KB。
CommandId 与 Content,必须且只能提供一个。 | 
| void | setParameters(String Parameters)Set 本次预览采用的自定义参数。字段类型为 json encoded string,如:{"varA": "222"}。
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
如果有设置过 DefaultParameters 或 DefaultParameterConfs,会与 Parameters 进行叠加,优先使用 Parameters 的值。
key 为自定义参数名称,value 为该参数的取值。kv 均为字符串型。
自定义参数最多 20 个。
自定义参数名称需符合以下规范:字符数目上限 64,可选范围【a-zA-Z0-9-_】。
如果将预览的 CommandId 设置过 DefaultParameters,本参数可以为空。 | 
| 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 PreviewReplacedCommandContentRequest()
public PreviewReplacedCommandContentRequest(PreviewReplacedCommandContentRequest source)
public String getParameters()
public void setParameters(String Parameters)
Parameters - 本次预览采用的自定义参数。字段类型为 json encoded string,如:{"varA": "222"}。
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
如果有设置过 DefaultParameters 或 DefaultParameterConfs,会与 Parameters 进行叠加,优先使用 Parameters 的值。
key 为自定义参数名称,value 为该参数的取值。kv 均为字符串型。
自定义参数最多 20 个。
自定义参数名称需符合以下规范:字符数目上限 64,可选范围【a-zA-Z0-9-_】。
如果将预览的 CommandId 设置过 DefaultParameters,本参数可以为空。public String getCommandId()
public void setCommandId(String CommandId)
CommandId - 要进行替换预览的命令。
可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取。
CommandId 与 Content,必须且只能提供一个。public String getContent()
public void setContent(String Content)
Content - 要预览的命令内容,经 Base64 编码,长度不可超过 64KB。
CommandId 与 Content,必须且只能提供一个。Copyright © 2025. All rights reserved.