public class LifecycleCommand extends AbstractModel
Constructor and Description |
---|
LifecycleCommand() |
LifecycleCommand(LifecycleCommand 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。若选择执行命令,则此项必填。
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getParameters()
Get 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。
自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setCommandId(String CommandId)
Set 远程命令ID。若选择执行命令,则此项必填。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setParameters(String Parameters)
Set 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。
自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
注意:此字段可能返回 null,表示取不到有效值。
|
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 LifecycleCommand()
public LifecycleCommand(LifecycleCommand source)
public String getCommandId()
public void setCommandId(String CommandId)
CommandId
- 远程命令ID。若选择执行命令,则此项必填。
注意:此字段可能返回 null,表示取不到有效值。public String getParameters()
public void setParameters(String Parameters)
Parameters
- 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。
自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2022. All rights reserved.