public class Command extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Command() | 
| Command(Command 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 命令ID。 | 
| String | getCommandName()Get 命令名称。 | 
| String | getCommandType()Get 命令类型。取值为 SHELL、POWERSHELL、BAT 之一。 | 
| String | getContent()Get Base64编码后的命令内容。 | 
| String | getCreatedBy()Get 命令创建者。TAT 代表公共命令,USER 代表个人命令。 | 
| String | getCreatedTime()Get 命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZ | 
| DefaultParameterConf[] | getDefaultParameterConfs()Get 自定义参数的默认取值。 | 
| String | getDefaultParameters()Get 自定义参数的默认取值。 | 
| String | getDescription()Get 命令描述。 | 
| Boolean | getEnableParameter()Get 是否启用自定义参数功能。 | 
| String | getFormattedDescription()Get 命令的结构化描述。公共命令有值,用户命令为空字符串。 | 
| String | getOutputCOSBucketUrl()Get 日志上传的cos bucket 地址。 | 
| String | getOutputCOSKeyPrefix()Get 日志在cos bucket中的目录。 | 
| String[] | getScenes()Get 命令关联的场景 | 
| Tag[] | getTags()Get 命令关联的标签列表。 | 
| Long | getTimeout()Get 命令超时时间。 | 
| String | getUpdatedTime()Get 命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZ | 
| String | getUsername()Get 在实例上执行命令的用户名。 | 
| String | getWorkingDirectory()Get 命令执行路径。 | 
| void | setCommandId(String CommandId)Set 命令ID。 | 
| void | setCommandName(String CommandName)Set 命令名称。 | 
| void | setCommandType(String CommandType)Set 命令类型。取值为 SHELL、POWERSHELL、BAT 之一。 | 
| void | setContent(String Content)Set Base64编码后的命令内容。 | 
| void | setCreatedBy(String CreatedBy)Set 命令创建者。TAT 代表公共命令,USER 代表个人命令。 | 
| void | setCreatedTime(String CreatedTime)Set 命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZ | 
| void | setDefaultParameterConfs(DefaultParameterConf[] DefaultParameterConfs)Set 自定义参数的默认取值。 | 
| void | setDefaultParameters(String DefaultParameters)Set 自定义参数的默认取值。 | 
| void | setDescription(String Description)Set 命令描述。 | 
| void | setEnableParameter(Boolean EnableParameter)Set 是否启用自定义参数功能。 | 
| void | setFormattedDescription(String FormattedDescription)Set 命令的结构化描述。公共命令有值,用户命令为空字符串。 | 
| void | setOutputCOSBucketUrl(String OutputCOSBucketUrl)Set 日志上传的cos bucket 地址。 | 
| void | setOutputCOSKeyPrefix(String OutputCOSKeyPrefix)Set 日志在cos bucket中的目录。 | 
| void | setScenes(String[] Scenes)Set 命令关联的场景 | 
| void | setTags(Tag[] Tags)Set 命令关联的标签列表。 | 
| void | setTimeout(Long Timeout)Set 命令超时时间。 | 
| void | setUpdatedTime(String UpdatedTime)Set 命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZ | 
| void | setUsername(String Username)Set 在实例上执行命令的用户名。 | 
| void | setWorkingDirectory(String WorkingDirectory)Set 命令执行路径。 | 
| 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 Command()
public Command(Command source)
public String getCommandId()
public void setCommandId(String CommandId)
CommandId - 命令ID。public String getCommandName()
public void setCommandName(String CommandName)
CommandName - 命令名称。public String getDescription()
public void setDescription(String Description)
Description - 命令描述。public String getContent()
public void setContent(String Content)
Content - Base64编码后的命令内容。public String getCommandType()
public void setCommandType(String CommandType)
CommandType - 命令类型。取值为 SHELL、POWERSHELL、BAT 之一。public String getWorkingDirectory()
public void setWorkingDirectory(String WorkingDirectory)
WorkingDirectory - 命令执行路径。public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout - 命令超时时间。public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - 命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZpublic String getUpdatedTime()
public void setUpdatedTime(String UpdatedTime)
UpdatedTime - 命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZpublic Boolean getEnableParameter()
public void setEnableParameter(Boolean EnableParameter)
EnableParameter - 是否启用自定义参数功能。public String getDefaultParameters()
public void setDefaultParameters(String DefaultParameters)
DefaultParameters - 自定义参数的默认取值。public DefaultParameterConf[] getDefaultParameterConfs()
public void setDefaultParameterConfs(DefaultParameterConf[] DefaultParameterConfs)
DefaultParameterConfs - 自定义参数的默认取值。public String[] getScenes()
public void setScenes(String[] Scenes)
Scenes - 命令关联的场景public String getFormattedDescription()
public void setFormattedDescription(String FormattedDescription)
FormattedDescription - 命令的结构化描述。公共命令有值,用户命令为空字符串。public String getCreatedBy()
public void setCreatedBy(String CreatedBy)
CreatedBy - 命令创建者。TAT 代表公共命令,USER 代表个人命令。public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - 命令关联的标签列表。public String getUsername()
public void setUsername(String Username)
Username - 在实例上执行命令的用户名。public String getOutputCOSBucketUrl()
public void setOutputCOSBucketUrl(String OutputCOSBucketUrl)
OutputCOSBucketUrl - 日志上传的cos bucket 地址。public String getOutputCOSKeyPrefix()
public void setOutputCOSKeyPrefix(String OutputCOSKeyPrefix)
OutputCOSKeyPrefix - 日志在cos bucket中的目录。Copyright © 2025. All rights reserved.