public class CreateSecretRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
DBInstanceId
The instance ID.
|
String |
description
The description of the access credential.
|
Long |
ownerId |
String |
password
The password of the database account that is used to access the instance.
|
String |
regionId
The region ID of the instance.
|
String |
secretName
The name of the access credential.
|
Boolean |
testConnection
Specifies whether to check the connectivity to the instance by using the name and password of the database account.
|
String |
username
The name of the database account that is used to access the instance.
|
| 构造器和说明 |
|---|
CreateSecretRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateSecretRequest |
build(Map<String,?> map) |
String |
getDBInstanceId() |
String |
getDescription() |
Long |
getOwnerId() |
String |
getPassword() |
String |
getRegionId() |
String |
getSecretName() |
Boolean |
getTestConnection() |
String |
getUsername() |
CreateSecretRequest |
setDBInstanceId(String DBInstanceId) |
CreateSecretRequest |
setDescription(String description) |
CreateSecretRequest |
setOwnerId(Long ownerId) |
CreateSecretRequest |
setPassword(String password) |
CreateSecretRequest |
setRegionId(String regionId) |
CreateSecretRequest |
setSecretName(String secretName) |
CreateSecretRequest |
setTestConnection(Boolean testConnection) |
CreateSecretRequest |
setUsername(String username) |
@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="Description") public String description
The description of the access credential.
example:test
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Password") public String password
The password of the database account that is used to access the instance.
This parameter is required.
example:pwd123
@NameInMap(value="RegionId") public String regionId
The region ID of the instance.
This parameter is required.
example:cn-beijing
@NameInMap(value="SecretName") public String secretName
The name of the access credential. The name must be 1 to 16 characters in length and can contain letters, digits, and underscores (_). If you leave this parameter empty, the value of the Username parameter is used.
example:testsecret
@NameInMap(value="TestConnection") public Boolean testConnection
Specifies whether to check the connectivity to the instance by using the name and password of the database account.
example:true
@NameInMap(value="Username") public String username
The name of the database account that is used to access the instance.
This parameter is required.
example:testacc
public static CreateSecretRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateSecretRequest setDBInstanceId(String DBInstanceId)
public String getDBInstanceId()
public CreateSecretRequest setDescription(String description)
public String getDescription()
public CreateSecretRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateSecretRequest setPassword(String password)
public String getPassword()
public CreateSecretRequest setRegionId(String regionId)
public String getRegionId()
public CreateSecretRequest setSecretName(String secretName)
public String getSecretName()
public CreateSecretRequest setTestConnection(Boolean testConnection)
public Boolean getTestConnection()
public CreateSecretRequest setUsername(String username)
public String getUsername()
Copyright © 2024. All rights reserved.