public class Command extends AbstractModel
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 Command ID.
|
String |
getCommandName()
Get Command name.
|
String |
getCommandType()
Get Command type.
|
String |
getContent()
Get Base64-encoded command.
|
String |
getCreatedBy()
Get Command creator.
|
String |
getCreatedTime()
Get Command creation time.
|
String |
getDefaultParameters()
Get Default custom parameter value.
|
String |
getDescription()
Get Command description.
|
Boolean |
getEnableParameter()
Get Whether to enable the custom parameter feature.
|
String |
getFormattedDescription()
Get Formatted description of the command.
|
String |
getOutputCOSBucketUrl()
Get The COS bucket URL for uploading logs.
|
String |
getOutputCOSKeyPrefix()
Get The COS bucket directory where the logs are saved.
|
Tag[] |
getTags()
Get The list of tags bound to the command.
|
Long |
getTimeout()
Get Command timeout period.
|
String |
getUpdatedTime()
Get Command update time.
|
String |
getUsername()
Get The user who executes the command on the instance.
|
String |
getWorkingDirectory()
Get Command execution path.
|
void |
setCommandId(String CommandId)
Set Command ID.
|
void |
setCommandName(String CommandName)
Set Command name.
|
void |
setCommandType(String CommandType)
Set Command type.
|
void |
setContent(String Content)
Set Base64-encoded command.
|
void |
setCreatedBy(String CreatedBy)
Set Command creator.
|
void |
setCreatedTime(String CreatedTime)
Set Command creation time.
|
void |
setDefaultParameters(String DefaultParameters)
Set Default custom parameter value.
|
void |
setDescription(String Description)
Set Command description.
|
void |
setEnableParameter(Boolean EnableParameter)
Set Whether to enable the custom parameter feature.
|
void |
setFormattedDescription(String FormattedDescription)
Set Formatted description of the command.
|
void |
setOutputCOSBucketUrl(String OutputCOSBucketUrl)
Set The COS bucket URL for uploading logs.
|
void |
setOutputCOSKeyPrefix(String OutputCOSKeyPrefix)
Set The COS bucket directory where the logs are saved.
|
void |
setTags(Tag[] Tags)
Set The list of tags bound to the command.
|
void |
setTimeout(Long Timeout)
Set Command timeout period.
|
void |
setUpdatedTime(String UpdatedTime)
Set Command update time.
|
void |
setUsername(String Username)
Set The user who executes the command on the instance.
|
void |
setWorkingDirectory(String WorkingDirectory)
Set Command execution path.
|
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 Command()
public Command(Command source)
public String getCommandId()
public void setCommandId(String CommandId)
CommandId
- Command ID.public String getCommandName()
public void setCommandName(String CommandName)
CommandName
- Command name.public String getDescription()
public void setDescription(String Description)
Description
- Command description.public String getContent()
public void setContent(String Content)
Content
- Base64-encoded command.public String getCommandType()
public void setCommandType(String CommandType)
CommandType
- Command type.public String getWorkingDirectory()
public void setWorkingDirectory(String WorkingDirectory)
WorkingDirectory
- Command execution path.public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- Command timeout period.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime
- Command creation time.public String getUpdatedTime()
public void setUpdatedTime(String UpdatedTime)
UpdatedTime
- Command update time.public Boolean getEnableParameter()
public void setEnableParameter(Boolean EnableParameter)
EnableParameter
- Whether to enable the custom parameter feature.public String getDefaultParameters()
public void setDefaultParameters(String DefaultParameters)
DefaultParameters
- Default custom parameter value.public String getFormattedDescription()
public void setFormattedDescription(String FormattedDescription)
FormattedDescription
- Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.public String getCreatedBy()
public void setCreatedBy(String CreatedBy)
CreatedBy
- Command creator. `TAT` indicates a public command and `USER` indicates a personal command.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- The list of tags bound to the command.public String getUsername()
public void setUsername(String Username)
Username
- The user who executes the command on the instance.public String getOutputCOSBucketUrl()
public void setOutputCOSBucketUrl(String OutputCOSBucketUrl)
OutputCOSBucketUrl
- The COS bucket URL for uploading logs.public String getOutputCOSKeyPrefix()
public void setOutputCOSKeyPrefix(String OutputCOSKeyPrefix)
OutputCOSKeyPrefix
- The COS bucket directory where the logs are saved.Copyright © 2023. All rights reserved.