public class UpdateInstanceRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
databasePassword
The password that is used to log on to the database.
|
String |
databaseUser
The account that is used to log on to the database.
|
String |
dataLinkName
The name of the database link for cross-database queries.
|
String |
dbaId
The ID of the user who assumes the database administrator (DBA) role of the database instance.
|
Integer |
ddlOnline
Specifies whether to enable the lock-free schema change feature for the database instance.
|
String |
ecsInstanceId
The ID of the ECS instance on which the database instance is deployed.
|
String |
ecsRegion
The ID of the region in which the database instance resides.
|
String |
enableSellSitd
Y: enables the sensitive data protection feature
N: disables the sensitive data protection feature
NULL or other: does not update the status of the sensitive data protection feature
example:
Y
|
String |
envType
The type of the environment in which the database instance is deployed.
|
Integer |
exportTimeout
The timeout period for exporting data from the database instance.
|
String |
host
The host address that is used to connect to the database instance.
|
String |
instanceAlias
The alias of the database instance.
|
String |
instanceId
The ID of the database instance.
|
String |
instanceSource
The source of the database instance.
|
String |
instanceType
The type of the database.
|
Integer |
port
The port that is used to connect to the database instance.
|
Integer |
queryTimeout
The timeout period for querying data in the database instance.
|
String |
safeRuleId
The name of the security rule set (GroupName) for the instance.
|
String |
sid
The system ID (SID) of the database instance.
|
Boolean |
skipTest
Specifies whether to skip the connectivity test.
|
Long |
templateId
The ID of the classification template.
|
String |
templateType
The type of the classification template.
|
Long |
tid
The ID of the tenant.
|
Integer |
useDsql
Specifies whether to enable the cross-database query feature for the database instance.
|
String |
vpcId
The ID of the VPC to which the database instance belongs.
|
| 构造器和说明 |
|---|
UpdateInstanceRequest() |
@NameInMap(value="DataLinkName") public String dataLinkName
The name of the database link for cross-database queries.
This parameter is required if UseDsql is set to 1.
The name can contain only lowercase letters and underscores (_).
The name must be unique within a tenant.
datalink_test
@NameInMap(value="DatabasePassword") public String databasePassword
The password that is used to log on to the database.
This parameter is required.
example:@NameInMap(value="DatabaseUser") public String databaseUser
The account that is used to log on to the database.
This parameter is required.
example:dbuser
@NameInMap(value="DbaId") public String dbaId
The ID of the user who assumes the database administrator (DBA) role of the database instance. You can call the ListUsers or GetInstance operation to query the user ID.
This parameter is required.
example:27****
@NameInMap(value="DdlOnline") public Integer ddlOnline
Specifies whether to enable the lock-free schema change feature for the database instance. Valid values:
0
@NameInMap(value="EcsInstanceId") public String ecsInstanceId
The ID of the ECS instance on which the database instance is deployed.
example:This parameter is required if the InstanceSource parameter is set to ECS_OWN.
i-2zei9gs1t7h8l7ac****
@NameInMap(value="EcsRegion") public String ecsRegion
The ID of the region in which the database instance resides.
example:This parameter is required if InstanceSource is set to RDS, ECS_OWN, and VPC_IDC.
cn-hangzhou
@NameInMap(value="EnableSellSitd") public String enableSellSitd
Y
@NameInMap(value="EnvType") public String envType
The type of the environment in which the database instance is deployed. Valid values:
This parameter is required.
example:product
@NameInMap(value="ExportTimeout") public Integer exportTimeout
The timeout period for exporting data from the database instance.
This parameter is required.
example:600
@NameInMap(value="Host") public String host
The host address that is used to connect to the database instance.
This parameter is required.
example:192.XXX.0.56
@NameInMap(value="InstanceAlias") public String instanceAlias
The alias of the database instance. Specify an alias that can help you identify the database instance in DMS.
This parameter is required.
example:instance_test
@NameInMap(value="InstanceId") public String instanceId
The ID of the database instance. You can call the GetInstance operation to query the instance ID.
This parameter is required.
example:126****
@NameInMap(value="InstanceSource") public String instanceSource
The source of the database instance. Valid values:
This parameter is required.
example:ECS_OWN
@NameInMap(value="InstanceType") public String instanceType
The type of the database. For more information about the valid values of this parameter, see DbType parameter.
This parameter is required.
example:mysql
@NameInMap(value="Port") public Integer port
The port that is used to connect to the database instance.
This parameter is required.
example:3306
@NameInMap(value="QueryTimeout") public Integer queryTimeout
The timeout period for querying data in the database instance.
This parameter is required.
example:60
@NameInMap(value="SafeRuleId") public String safeRuleId
The name of the security rule set (GroupName) for the instance. You can call the ListStandardGroups or GetInstance operation to query the name of the security rule set.
This parameter is required.
example:3****
@NameInMap(value="Sid") public String sid
The system ID (SID) of the database instance.
example:This parameter is required if the InstanceType parameter is set to ORACLE.
XXX
@NameInMap(value="SkipTest") public Boolean skipTest
Specifies whether to skip the connectivity test. Valid values:
false
@NameInMap(value="TemplateId") public Long templateId
The ID of the classification template. You can call the ListClassificationTemplates operation to query the template ID.
example:3***
@NameInMap(value="TemplateType") public String templateType
The type of the classification template. You can call the ListClassificationTemplates operation to query the template type.
example:INNER
@NameInMap(value="Tid") public Long tid
The ID of the tenant. You can call the GetUserActiveTenant operation to query the tenant ID.
example:3***
@NameInMap(value="UseDsql") public Integer useDsql
Specifies whether to enable the cross-database query feature for the database instance. Valid values:
example:Supported database types: MySQL, SQL Server, PostgreSQL, PolarDB for PostgreSQL (compatible with Oracle), and ApsaraDB for Redis.
0
@NameInMap(value="VpcId") public String vpcId
The ID of the VPC to which the database instance belongs.
example:This parameter is required if the InstanceSource parameter is set to VPC_IDC.
vpc-xxx
public static UpdateInstanceRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateInstanceRequest setDataLinkName(String dataLinkName)
public String getDataLinkName()
public UpdateInstanceRequest setDatabasePassword(String databasePassword)
public String getDatabasePassword()
public UpdateInstanceRequest setDatabaseUser(String databaseUser)
public String getDatabaseUser()
public UpdateInstanceRequest setDbaId(String dbaId)
public String getDbaId()
public UpdateInstanceRequest setDdlOnline(Integer ddlOnline)
public Integer getDdlOnline()
public UpdateInstanceRequest setEcsInstanceId(String ecsInstanceId)
public String getEcsInstanceId()
public UpdateInstanceRequest setEcsRegion(String ecsRegion)
public String getEcsRegion()
public UpdateInstanceRequest setEnableSellSitd(String enableSellSitd)
public String getEnableSellSitd()
public UpdateInstanceRequest setEnvType(String envType)
public String getEnvType()
public UpdateInstanceRequest setExportTimeout(Integer exportTimeout)
public Integer getExportTimeout()
public UpdateInstanceRequest setHost(String host)
public String getHost()
public UpdateInstanceRequest setInstanceAlias(String instanceAlias)
public String getInstanceAlias()
public UpdateInstanceRequest setInstanceId(String instanceId)
public String getInstanceId()
public UpdateInstanceRequest setInstanceSource(String instanceSource)
public String getInstanceSource()
public UpdateInstanceRequest setInstanceType(String instanceType)
public String getInstanceType()
public UpdateInstanceRequest setPort(Integer port)
public Integer getPort()
public UpdateInstanceRequest setQueryTimeout(Integer queryTimeout)
public Integer getQueryTimeout()
public UpdateInstanceRequest setSafeRuleId(String safeRuleId)
public String getSafeRuleId()
public UpdateInstanceRequest setSid(String sid)
public String getSid()
public UpdateInstanceRequest setSkipTest(Boolean skipTest)
public Boolean getSkipTest()
public UpdateInstanceRequest setTemplateId(Long templateId)
public Long getTemplateId()
public UpdateInstanceRequest setTemplateType(String templateType)
public String getTemplateType()
public UpdateInstanceRequest setTid(Long tid)
public Long getTid()
public UpdateInstanceRequest setUseDsql(Integer useDsql)
public Integer getUseDsql()
public UpdateInstanceRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2025. All rights reserved.