public class ModifyCommandRequest extends AbstractModel
Constructor and Description |
---|
ModifyCommandRequest() |
ModifyCommandRequest(ModifyCommandRequest 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 |
getDefaultParameters()
Get The default value of the custom parameter value when it is enabled.
|
String |
getDescription()
Get Command description.
|
String |
getOutputCOSBucketUrl()
Get The COS bucket URL for uploading logs.
|
String |
getOutputCOSKeyPrefix()
Get The COS bucket directory where the logs are saved.
|
Long |
getTimeout()
Get Command timeout period.
|
String |
getUsername()
Get The username used to execute the command on the CVM or Lighthouse 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 |
setDefaultParameters(String DefaultParameters)
Set The default value of the custom parameter value when it is enabled.
|
void |
setDescription(String Description)
Set Command description.
|
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 |
setTimeout(Long Timeout)
Set Command timeout period.
|
void |
setUsername(String Username)
Set The username used to execute the command on the CVM or Lighthouse 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 ModifyCommandRequest()
public ModifyCommandRequest(ModifyCommandRequest source)
public String getCommandId()
public void setCommandId(String CommandId)
CommandId
- Command ID.public String getCommandName()
public void setCommandName(String CommandName)
CommandName
- Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].public String getDescription()
public void setDescription(String Description)
Description
- Command description. The maximum length is 120 characters.public String getContent()
public void setContent(String Content)
Content
- Base64-encoded command. The maximum length is 64 KB.public String getCommandType()
public void setCommandType(String CommandType)
CommandType
- Command type. `SHELL` and `POWERSHELL` are supported.public String getWorkingDirectory()
public void setWorkingDirectory(String WorkingDirectory)
WorkingDirectory
- Command execution path.public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- Command timeout period. Value range: [1, 86400].public String getDefaultParameters()
public void setDefaultParameters(String DefaultParameters)
DefaultParameters
- The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {\"varA\": \"222\"}.
All parameters are overwritten. All default values are required for modification.
Modification is only allowed when `EnableParameter` is `true`.
`key` is the name of the custom parameter and `value` is the default value. Both `key` and `value` are strings.
Up to 20 custom parameters are supported.
The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_].public String getUsername()
public void setUsername(String Username)
Username
- The username used to execute the command on the CVM or Lighthouse instance.
The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user.public String getOutputCOSBucketUrl()
public void setOutputCOSBucketUrl(String OutputCOSBucketUrl)
OutputCOSBucketUrl
- The COS bucket URL for uploading logs. The URL must start with `https`, such as `https://BucketName-123454321.cos.ap-beijing.myqcloud.com`.public String getOutputCOSKeyPrefix()
public void setOutputCOSKeyPrefix(String OutputCOSKeyPrefix)
OutputCOSKeyPrefix
- The COS bucket directory where the logs are saved. Check below for the rules of the directory name.
1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.
2. Use a slash (/) to create a subdirectory.
3. ".." can not be used as the folder name. It cannot start with a slash (/), and cannot contain consecutive slashes.Copyright © 2023. All rights reserved.