public class StartTerminalSessionRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
commandLine
The command to run after the session is initiated.
|
List<String> |
instanceId
The instance IDs.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
portNumber
The port number of the ECS instance.
|
String |
regionId
The region ID.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
targetServer
The IP address of the instance.
|
String |
username
The username used for connection establishment.
|
构造器和说明 |
---|
StartTerminalSessionRequest() |
限定符和类型 | 方法和说明 |
---|---|
static StartTerminalSessionRequest |
build(Map<String,?> map) |
String |
getCommandLine() |
List<String> |
getInstanceId() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
Integer |
getPortNumber() |
String |
getRegionId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
String |
getTargetServer() |
String |
getUsername() |
StartTerminalSessionRequest |
setCommandLine(String commandLine) |
StartTerminalSessionRequest |
setInstanceId(List<String> instanceId) |
StartTerminalSessionRequest |
setOwnerAccount(String ownerAccount) |
StartTerminalSessionRequest |
setOwnerId(Long ownerId) |
StartTerminalSessionRequest |
setPortNumber(Integer portNumber) |
StartTerminalSessionRequest |
setRegionId(String regionId) |
StartTerminalSessionRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
StartTerminalSessionRequest |
setResourceOwnerId(Long resourceOwnerId) |
StartTerminalSessionRequest |
setTargetServer(String targetServer) |
StartTerminalSessionRequest |
setUsername(String username) |
@NameInMap(value="CommandLine") public String commandLine
The command to run after the session is initiated. The command length cannot exceed 512 characters.
example:If you specify the
CommandLine
parameter, you cannot specify thePortNumber
orTargetServer
parameter.
@NameInMap(value="InstanceId") public List<String> instanceId
The instance IDs.
This parameter is required.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PortNumber") public Integer portNumber
The port number of the ECS instance. The port is used to forward data. After this parameter is configured, Cloud Assistant Agent forwards data to the specified port. For example, you can set this parameter to 22 for data forwarding over SSH.
This parameter is empty by default, which indicates that no port is configured to forward data.
example:22
@NameInMap(value="RegionId") public String regionId
The region ID. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="TargetServer") public String targetServer
The IP address of the instance. You can use the IP address to access the destination service in a virtual private cloud (VPC).
example:If this parameter is not empty,
PortNumber
specifies the port number that is used by the managed instance to access the destination service in the VPC.
192.168.0.246
@NameInMap(value="Username") public String username
The username used for connection establishment.
example:testUser
public static StartTerminalSessionRequest build(Map<String,?> map) throws Exception
Exception
public StartTerminalSessionRequest setCommandLine(String commandLine)
public String getCommandLine()
public StartTerminalSessionRequest setInstanceId(List<String> instanceId)
public StartTerminalSessionRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public StartTerminalSessionRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public StartTerminalSessionRequest setPortNumber(Integer portNumber)
public Integer getPortNumber()
public StartTerminalSessionRequest setRegionId(String regionId)
public String getRegionId()
public StartTerminalSessionRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public StartTerminalSessionRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public StartTerminalSessionRequest setTargetServer(String targetServer)
public String getTargetServer()
public StartTerminalSessionRequest setUsername(String username)
public String getUsername()
Copyright © 2024. All rights reserved.