Class LifecycleCommand
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.as.v20180419.models.LifecycleCommand
-
public class LifecycleCommand extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommandId()Get 远程命令ID。若选择执行命令,则此项必填。 注意:此字段可能返回 null,表示取不到有效值。StringgetParameters()Get 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。 key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。 如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。 自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。 注意:此字段可能返回 null,表示取不到有效值。voidsetCommandId(String CommandId)Set 远程命令ID。若选择执行命令,则此项必填。 注意:此字段可能返回 null,表示取不到有效值。voidsetParameters(String Parameters)Set 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。 key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。 如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。 自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
LifecycleCommand
public LifecycleCommand()
-
LifecycleCommand
public 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.
-
-
Method Detail
-
getCommandId
public String getCommandId()
Get 远程命令ID。若选择执行命令,则此项必填。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- CommandId 远程命令ID。若选择执行命令,则此项必填。 注意:此字段可能返回 null,表示取不到有效值。
-
setCommandId
public void setCommandId(String CommandId)
Set 远程命令ID。若选择执行命令,则此项必填。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
CommandId- 远程命令ID。若选择执行命令,则此项必填。 注意:此字段可能返回 null,表示取不到有效值。
-
getParameters
public String getParameters()
Get 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。 key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。 如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。 自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Parameters 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。 key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。 如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。 自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。 注意:此字段可能返回 null,表示取不到有效值。
-
setParameters
public void setParameters(String Parameters)
Set 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。 key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。 如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。 自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Parameters- 自定义参数。字段类型为 json encoded string。如:{"varA": "222"}。 key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。 如果未提供该参数取值,将使用 Command 的 DefaultParameters 进行替换。 自定义参数最多20个。自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。 注意:此字段可能返回 null,表示取不到有效值。
-
-