public class ExecuteStatementRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
database
The name of the database.
|
String |
DBInstanceId
The instance ID.
|
Long |
ownerId |
List<?> |
parameters
The configuration parameters.
|
String |
regionId
The region ID of the instance.
|
String |
runType
The execution type.
|
String |
secretArn
The Alibaba Cloud Resource Name (ARN) of the access credential for the created Data API account.
|
String |
sql
The SQL statements that you want to execute.
|
List<String> |
sqls
The SQL statements.
|
String |
statementName
The name of the set of SQL statements that you want to execute.
|
| 构造器和说明 |
|---|
ExecuteStatementRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ExecuteStatementRequest |
build(Map<String,?> map) |
String |
getDatabase() |
String |
getDBInstanceId() |
Long |
getOwnerId() |
List<?> |
getParameters() |
String |
getRegionId() |
String |
getRunType() |
String |
getSecretArn() |
String |
getSql() |
List<String> |
getSqls() |
String |
getStatementName() |
ExecuteStatementRequest |
setDatabase(String database) |
ExecuteStatementRequest |
setDBInstanceId(String DBInstanceId) |
ExecuteStatementRequest |
setOwnerId(Long ownerId) |
ExecuteStatementRequest |
setParameters(List<?> parameters) |
ExecuteStatementRequest |
setRegionId(String regionId) |
ExecuteStatementRequest |
setRunType(String runType) |
ExecuteStatementRequest |
setSecretArn(String secretArn) |
ExecuteStatementRequest |
setSql(String sql) |
ExecuteStatementRequest |
setSqls(List<String> sqls) |
ExecuteStatementRequest |
setStatementName(String statementName) |
@NameInMap(value="DBInstanceId") public String DBInstanceId
The instance ID.
You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
This parameter is required.
example:gp-xxxxxxxxx
@NameInMap(value="Database") public String database
The name of the database.
This parameter is required.
example:adbtest
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Parameters") public List<?> parameters
The configuration parameters.
@NameInMap(value="RegionId") public String regionId
The region ID of the instance.
This parameter is required.
example:cn-beijing
@NameInMap(value="RunType") public String runType
The execution type. Valid values:
synchronous
@NameInMap(value="SecretArn") public String secretArn
The Alibaba Cloud Resource Name (ARN) of the access credential for the created Data API account. You can call the CreateSecret operation to create an access credential.
To call the ExecuteStatement operation as a Resource Access Management (RAM) user, the RAM user must have the permissions to call the UseSecret or GetSecretValue operation on the ARN of the access credential.
This parameter is required.
example:acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ
@NameInMap(value="Sql") public String sql
The SQL statements that you want to execute.
example:select * from table1
@NameInMap(value="StatementName") public String statementName
The name of the set of SQL statements that you want to execute. This parameter takes effect when the RunType parameter is set to asynchronous.
example:test
public static ExecuteStatementRequest build(Map<String,?> map) throws Exception
Exceptionpublic ExecuteStatementRequest setDBInstanceId(String DBInstanceId)
public String getDBInstanceId()
public ExecuteStatementRequest setDatabase(String database)
public String getDatabase()
public ExecuteStatementRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ExecuteStatementRequest setParameters(List<?> parameters)
public List<?> getParameters()
public ExecuteStatementRequest setRegionId(String regionId)
public String getRegionId()
public ExecuteStatementRequest setRunType(String runType)
public String getRunType()
public ExecuteStatementRequest setSecretArn(String secretArn)
public String getSecretArn()
public ExecuteStatementRequest setSql(String sql)
public String getSql()
public ExecuteStatementRequest setSqls(List<String> sqls)
public ExecuteStatementRequest setStatementName(String statementName)
public String getStatementName()
Copyright © 2024. All rights reserved.