com.aliyun.ros.cdk.dms.Instance2 Maven / Gradle / Ivy
Show all versions of ros-cdk-dms Show documentation
package com.aliyun.ros.cdk.dms;
/**
* This class encapsulates and extends the ROS resource type ALIYUN::DMS::Instance2
.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:06.431Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.dms.$Module.class, fqn = "@alicloud/ros-cdk-dms.Instance2")
public class Instance2 extends com.aliyun.ros.cdk.core.Resource {
protected Instance2(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Instance2(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
* @param enableResourcePropertyConstraint
*/
public Instance2(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.dms.Instance2Props props, final @org.jetbrains.annotations.Nullable java.lang.Boolean enableResourcePropertyConstraint) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required"), enableResourcePropertyConstraint });
}
/**
* Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
public Instance2(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.dms.Instance2Props props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* Attribute Host: The endpoint of the database instance.
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrHost() {
return software.amazon.jsii.Kernel.get(this, "attrHost", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
* Attribute InstanceId: The ID of the database instance.
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstanceId() {
return software.amazon.jsii.Kernel.get(this, "attrInstanceId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
* Attribute Port: The connection port of the database instance.
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPort() {
return software.amazon.jsii.Kernel.get(this, "attrPort", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
protected @org.jetbrains.annotations.NotNull java.lang.Boolean getEnableResourcePropertyConstraint() {
return software.amazon.jsii.Kernel.get(this, "enableResourcePropertyConstraint", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
protected void setEnableResourcePropertyConstraint(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "enableResourcePropertyConstraint", java.util.Objects.requireNonNull(value, "enableResourcePropertyConstraint is required"));
}
protected @org.jetbrains.annotations.NotNull java.lang.String getId() {
return software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
protected void setId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "id", java.util.Objects.requireNonNull(value, "id is required"));
}
protected @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.dms.Instance2Props getProps() {
return software.amazon.jsii.Kernel.get(this, "props", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.dms.Instance2Props.class));
}
protected void setProps(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.dms.Instance2Props value) {
software.amazon.jsii.Kernel.set(this, "props", java.util.Objects.requireNonNull(value, "props is required"));
}
protected @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct getScope() {
return software.amazon.jsii.Kernel.get(this, "scope", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.Construct.class));
}
protected void setScope(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct value) {
software.amazon.jsii.Kernel.set(this, "scope", java.util.Objects.requireNonNull(value, "scope is required"));
}
/**
* A fluent builder for {@link com.aliyun.ros.cdk.dms.Instance2}.
*/
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
* @param enableResourcePropertyConstraint
*/
public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) {
return new Builder(scope, id, enableResourcePropertyConstraint);
}
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id) {
return new Builder(scope, id, null);
}
private final com.aliyun.ros.cdk.core.Construct scope;
private final java.lang.String id;
private final java.lang.Boolean enableResourcePropertyConstraint;
private final com.aliyun.ros.cdk.dms.Instance2Props.Builder props;
private Builder(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) {
this.scope = scope;
this.id = id;
this.enableResourcePropertyConstraint = enableResourcePropertyConstraint;
this.props = new com.aliyun.ros.cdk.dms.Instance2Props.Builder();
}
/**
* Property databasePassword: The logon password of the database instance.
*
* @return {@code this}
* @param databasePassword Property databasePassword: The logon password of the database instance. This parameter is required.
*/
public Builder databasePassword(final java.lang.String databasePassword) {
this.props.databasePassword(databasePassword);
return this;
}
/**
* Property databasePassword: The logon password of the database instance.
*
* @return {@code this}
* @param databasePassword Property databasePassword: The logon password of the database instance. This parameter is required.
*/
public Builder databasePassword(final com.aliyun.ros.cdk.core.IResolvable databasePassword) {
this.props.databasePassword(databasePassword);
return this;
}
/**
* Property databaseUser: The logon username of the database instance.
*
* @return {@code this}
* @param databaseUser Property databaseUser: The logon username of the database instance. This parameter is required.
*/
public Builder databaseUser(final java.lang.String databaseUser) {
this.props.databaseUser(databaseUser);
return this;
}
/**
* Property databaseUser: The logon username of the database instance.
*
* @return {@code this}
* @param databaseUser Property databaseUser: The logon username of the database instance. This parameter is required.
*/
public Builder databaseUser(final com.aliyun.ros.cdk.core.IResolvable databaseUser) {
this.props.databaseUser(databaseUser);
return this;
}
/**
* Property dbaId: The user ID of the instance DBA role.
*
* You can call the ListUsers or GetInstance operation to obtain the value of this parameter.
*
* @return {@code this}
* @param dbaId Property dbaId: The user ID of the instance DBA role. This parameter is required.
*/
public Builder dbaId(final java.lang.Number dbaId) {
this.props.dbaId(dbaId);
return this;
}
/**
* Property dbaId: The user ID of the instance DBA role.
*
* You can call the ListUsers or GetInstance operation to obtain the value of this parameter.
*
* @return {@code this}
* @param dbaId Property dbaId: The user ID of the instance DBA role. This parameter is required.
*/
public Builder dbaId(final com.aliyun.ros.cdk.core.IResolvable dbaId) {
this.props.dbaId(dbaId);
return this;
}
/**
* Property enableSellTrust: Whether the instance needs to enable secure hosting.
*
*
* - Y: Enable secure hosting mode.
* - NULL or other: Do not enable secure hosting mode.
*
*
* @return {@code this}
* @param enableSellTrust Property enableSellTrust: Whether the instance needs to enable secure hosting. This parameter is required.
*/
public Builder enableSellTrust(final java.lang.String enableSellTrust) {
this.props.enableSellTrust(enableSellTrust);
return this;
}
/**
* Property enableSellTrust: Whether the instance needs to enable secure hosting.
*
*
* - Y: Enable secure hosting mode.
* - NULL or other: Do not enable secure hosting mode.
*
*
* @return {@code this}
* @param enableSellTrust Property enableSellTrust: Whether the instance needs to enable secure hosting. This parameter is required.
*/
public Builder enableSellTrust(final com.aliyun.ros.cdk.core.IResolvable enableSellTrust) {
this.props.enableSellTrust(enableSellTrust);
return this;
}
/**
* Property envType: The type of the environment to which the database instance belongs.
*
* Valid values:
* product: the production environment.
* dev: the test environment.
*
* @return {@code this}
* @param envType Property envType: The type of the environment to which the database instance belongs. This parameter is required.
*/
public Builder envType(final java.lang.String envType) {
this.props.envType(envType);
return this;
}
/**
* Property envType: The type of the environment to which the database instance belongs.
*
* Valid values:
* product: the production environment.
* dev: the test environment.
*
* @return {@code this}
* @param envType Property envType: The type of the environment to which the database instance belongs. This parameter is required.
*/
public Builder envType(final com.aliyun.ros.cdk.core.IResolvable envType) {
this.props.envType(envType);
return this;
}
/**
* Property exportTimeout: The timeout period for exporting the database instance.
*
* Unit: seconds.
*
* @return {@code this}
* @param exportTimeout Property exportTimeout: The timeout period for exporting the database instance. This parameter is required.
*/
public Builder exportTimeout(final java.lang.Number exportTimeout) {
this.props.exportTimeout(exportTimeout);
return this;
}
/**
* Property exportTimeout: The timeout period for exporting the database instance.
*
* Unit: seconds.
*
* @return {@code this}
* @param exportTimeout Property exportTimeout: The timeout period for exporting the database instance. This parameter is required.
*/
public Builder exportTimeout(final com.aliyun.ros.cdk.core.IResolvable exportTimeout) {
this.props.exportTimeout(exportTimeout);
return this;
}
/**
* Property host: The endpoint of the database instance.
*
* @return {@code this}
* @param host Property host: The endpoint of the database instance. This parameter is required.
*/
public Builder host(final java.lang.String host) {
this.props.host(host);
return this;
}
/**
* Property host: The endpoint of the database instance.
*
* @return {@code this}
* @param host Property host: The endpoint of the database instance. This parameter is required.
*/
public Builder host(final com.aliyun.ros.cdk.core.IResolvable host) {
this.props.host(host);
return this;
}
/**
* Property instanceAlias: The alias of the database instance.
*
* The alias helps you quickly find the required
* instance.
*
* @return {@code this}
* @param instanceAlias Property instanceAlias: The alias of the database instance. This parameter is required.
*/
public Builder instanceAlias(final java.lang.String instanceAlias) {
this.props.instanceAlias(instanceAlias);
return this;
}
/**
* Property instanceAlias: The alias of the database instance.
*
* The alias helps you quickly find the required
* instance.
*
* @return {@code this}
* @param instanceAlias Property instanceAlias: The alias of the database instance. This parameter is required.
*/
public Builder instanceAlias(final com.aliyun.ros.cdk.core.IResolvable instanceAlias) {
this.props.instanceAlias(instanceAlias);
return this;
}
/**
* Property instanceSource: The source of the database instance.
*
* Valid values:
* PUBLIC_OWN: an on-premises database built on the public network.
* RDS: an ApsaraDB for RDS (RDS) instance.
* ECS_OWN: an on-premises database built on an Elastic Compute Service (ECS) instance.
* VPC_IDC: an on-premises database built in an Internet data center (IDC) in Virtual Private
* Cloud (VPC).
*
* @return {@code this}
* @param instanceSource Property instanceSource: The source of the database instance. This parameter is required.
*/
public Builder instanceSource(final java.lang.String instanceSource) {
this.props.instanceSource(instanceSource);
return this;
}
/**
* Property instanceSource: The source of the database instance.
*
* Valid values:
* PUBLIC_OWN: an on-premises database built on the public network.
* RDS: an ApsaraDB for RDS (RDS) instance.
* ECS_OWN: an on-premises database built on an Elastic Compute Service (ECS) instance.
* VPC_IDC: an on-premises database built in an Internet data center (IDC) in Virtual Private
* Cloud (VPC).
*
* @return {@code this}
* @param instanceSource Property instanceSource: The source of the database instance. This parameter is required.
*/
public Builder instanceSource(final com.aliyun.ros.cdk.core.IResolvable instanceSource) {
this.props.instanceSource(instanceSource);
return this;
}
/**
* Property instanceType: The type of the database instance.
*
* Valid values: MySQL, SQLServer, PostgreSQL, Oracle, DRDS, OceanBase, Mongo, Redis
*
* @return {@code this}
* @param instanceType Property instanceType: The type of the database instance. This parameter is required.
*/
public Builder instanceType(final java.lang.String instanceType) {
this.props.instanceType(instanceType);
return this;
}
/**
* Property instanceType: The type of the database instance.
*
* Valid values: MySQL, SQLServer, PostgreSQL, Oracle, DRDS, OceanBase, Mongo, Redis
*
* @return {@code this}
* @param instanceType Property instanceType: The type of the database instance. This parameter is required.
*/
public Builder instanceType(final com.aliyun.ros.cdk.core.IResolvable instanceType) {
this.props.instanceType(instanceType);
return this;
}
/**
* Property networkType: The network type of the database instance.
*
* Valid values:
* CLASSIC
* VPC
*
* @return {@code this}
* @param networkType Property networkType: The network type of the database instance. This parameter is required.
*/
public Builder networkType(final java.lang.String networkType) {
this.props.networkType(networkType);
return this;
}
/**
* Property networkType: The network type of the database instance.
*
* Valid values:
* CLASSIC
* VPC
*
* @return {@code this}
* @param networkType Property networkType: The network type of the database instance. This parameter is required.
*/
public Builder networkType(final com.aliyun.ros.cdk.core.IResolvable networkType) {
this.props.networkType(networkType);
return this;
}
/**
* Property port: The connection port of the database instance.
*
* @return {@code this}
* @param port Property port: The connection port of the database instance. This parameter is required.
*/
public Builder port(final java.lang.Number port) {
this.props.port(port);
return this;
}
/**
* Property port: The connection port of the database instance.
*
* @return {@code this}
* @param port Property port: The connection port of the database instance. This parameter is required.
*/
public Builder port(final com.aliyun.ros.cdk.core.IResolvable port) {
this.props.port(port);
return this;
}
/**
* Property queryTimeout: The timeout period for querying the database instance.
*
* Unit: seconds.
*
* @return {@code this}
* @param queryTimeout Property queryTimeout: The timeout period for querying the database instance. This parameter is required.
*/
public Builder queryTimeout(final java.lang.Number queryTimeout) {
this.props.queryTimeout(queryTimeout);
return this;
}
/**
* Property queryTimeout: The timeout period for querying the database instance.
*
* Unit: seconds.
*
* @return {@code this}
* @param queryTimeout Property queryTimeout: The timeout period for querying the database instance. This parameter is required.
*/
public Builder queryTimeout(final com.aliyun.ros.cdk.core.IResolvable queryTimeout) {
this.props.queryTimeout(queryTimeout);
return this;
}
/**
* Property safeRule: The security rule of the database instance.
*
* Enter the name of the security rule for
* your enterprise.
* Note To query a specified security rule, log on to the DMS Enterprise console and choose
* System Management > Security Rules. The security rule appears in the security rule
* list.
*
* @return {@code this}
* @param safeRule Property safeRule: The security rule of the database instance. This parameter is required.
*/
public Builder safeRule(final java.lang.String safeRule) {
this.props.safeRule(safeRule);
return this;
}
/**
* Property safeRule: The security rule of the database instance.
*
* Enter the name of the security rule for
* your enterprise.
* Note To query a specified security rule, log on to the DMS Enterprise console and choose
* System Management > Security Rules. The security rule appears in the security rule
* list.
*
* @return {@code this}
* @param safeRule Property safeRule: The security rule of the database instance. This parameter is required.
*/
public Builder safeRule(final com.aliyun.ros.cdk.core.IResolvable safeRule) {
this.props.safeRule(safeRule);
return this;
}
/**
* Property dataLinkName: The name of the data link for cross-database query.
*
* @return {@code this}
* @param dataLinkName Property dataLinkName: The name of the data link for cross-database query. This parameter is required.
*/
public Builder dataLinkName(final java.lang.String dataLinkName) {
this.props.dataLinkName(dataLinkName);
return this;
}
/**
* Property dataLinkName: The name of the data link for cross-database query.
*
* @return {@code this}
* @param dataLinkName Property dataLinkName: The name of the data link for cross-database query. This parameter is required.
*/
public Builder dataLinkName(final com.aliyun.ros.cdk.core.IResolvable dataLinkName) {
this.props.dataLinkName(dataLinkName);
return this;
}
/**
* Property ddlOnline: [Important] Specifies whether to enable the online data description language (DDL) service.
*
* Currently, this service is available only for the MySQL and PolarDB databases.
* 0: The service is disabled.
* 1: The native online DDL service prevails.
* 2: Data change without table locking provided by DMS prevails.
*
* @return {@code this}
* @param ddlOnline Property ddlOnline: [Important] Specifies whether to enable the online data description language (DDL) service. This parameter is required.
*/
public Builder ddlOnline(final java.lang.Number ddlOnline) {
this.props.ddlOnline(ddlOnline);
return this;
}
/**
* Property ddlOnline: [Important] Specifies whether to enable the online data description language (DDL) service.
*
* Currently, this service is available only for the MySQL and PolarDB databases.
* 0: The service is disabled.
* 1: The native online DDL service prevails.
* 2: Data change without table locking provided by DMS prevails.
*
* @return {@code this}
* @param ddlOnline Property ddlOnline: [Important] Specifies whether to enable the online data description language (DDL) service. This parameter is required.
*/
public Builder ddlOnline(final com.aliyun.ros.cdk.core.IResolvable ddlOnline) {
this.props.ddlOnline(ddlOnline);
return this;
}
/**
* Property ecsInstanceId: The ID of the ECS instance to which the database instance belongs.
*
* Note You must specify this parameter if the InstanceSource parameter is set to ECS_OWN.
*
* @return {@code this}
* @param ecsInstanceId Property ecsInstanceId: The ID of the ECS instance to which the database instance belongs. This parameter is required.
*/
public Builder ecsInstanceId(final java.lang.String ecsInstanceId) {
this.props.ecsInstanceId(ecsInstanceId);
return this;
}
/**
* Property ecsInstanceId: The ID of the ECS instance to which the database instance belongs.
*
* Note You must specify this parameter if the InstanceSource parameter is set to ECS_OWN.
*
* @return {@code this}
* @param ecsInstanceId Property ecsInstanceId: The ID of the ECS instance to which the database instance belongs. This parameter is required.
*/
public Builder ecsInstanceId(final com.aliyun.ros.cdk.core.IResolvable ecsInstanceId) {
this.props.ecsInstanceId(ecsInstanceId);
return this;
}
/**
* Property ecsRegion: The region where the database instance resides.
*
* Note You must specify this parameter if the InstanceSource parameter is set to ECS_OWN or VPC_IDC.
*
* @return {@code this}
* @param ecsRegion Property ecsRegion: The region where the database instance resides. This parameter is required.
*/
public Builder ecsRegion(final java.lang.String ecsRegion) {
this.props.ecsRegion(ecsRegion);
return this;
}
/**
* Property ecsRegion: The region where the database instance resides.
*
* Note You must specify this parameter if the InstanceSource parameter is set to ECS_OWN or VPC_IDC.
*
* @return {@code this}
* @param ecsRegion Property ecsRegion: The region where the database instance resides. This parameter is required.
*/
public Builder ecsRegion(final com.aliyun.ros.cdk.core.IResolvable ecsRegion) {
this.props.ecsRegion(ecsRegion);
return this;
}
/**
* Property enableSellCommon: Whether the instance needs to enable the security collaboration function.
*
*
* - Y: Enable.
* - NULL or other: Not enable.
*
*
* @return {@code this}
* @param enableSellCommon Property enableSellCommon: Whether the instance needs to enable the security collaboration function. This parameter is required.
*/
public Builder enableSellCommon(final java.lang.String enableSellCommon) {
this.props.enableSellCommon(enableSellCommon);
return this;
}
/**
* Property enableSellCommon: Whether the instance needs to enable the security collaboration function.
*
*
* - Y: Enable.
* - NULL or other: Not enable.
*
*
* @return {@code this}
* @param enableSellCommon Property enableSellCommon: Whether the instance needs to enable the security collaboration function. This parameter is required.
*/
public Builder enableSellCommon(final com.aliyun.ros.cdk.core.IResolvable enableSellCommon) {
this.props.enableSellCommon(enableSellCommon);
return this;
}
/**
* Property enableSellSitd: Y: enables the sensitive data protection feature NULL or other: disables the sensitive data protection feature.
*
* @return {@code this}
* @param enableSellSitd Property enableSellSitd: Y: enables the sensitive data protection feature NULL or other: disables the sensitive data protection feature. This parameter is required.
*/
public Builder enableSellSitd(final java.lang.String enableSellSitd) {
this.props.enableSellSitd(enableSellSitd);
return this;
}
/**
* Property enableSellSitd: Y: enables the sensitive data protection feature NULL or other: disables the sensitive data protection feature.
*
* @return {@code this}
* @param enableSellSitd Property enableSellSitd: Y: enables the sensitive data protection feature NULL or other: disables the sensitive data protection feature. This parameter is required.
*/
public Builder enableSellSitd(final com.aliyun.ros.cdk.core.IResolvable enableSellSitd) {
this.props.enableSellSitd(enableSellSitd);
return this;
}
/**
* Property enableSellStable: Whether the instance needs to enable the stable change function.
*
*
* - Y: Enable.
* - NULL or other: Do not enable.
*
*
* @return {@code this}
* @param enableSellStable Property enableSellStable: Whether the instance needs to enable the stable change function. This parameter is required.
*/
public Builder enableSellStable(final java.lang.String enableSellStable) {
this.props.enableSellStable(enableSellStable);
return this;
}
/**
* Property enableSellStable: Whether the instance needs to enable the stable change function.
*
*
* - Y: Enable.
* - NULL or other: Do not enable.
*
*
* @return {@code this}
* @param enableSellStable Property enableSellStable: Whether the instance needs to enable the stable change function. This parameter is required.
*/
public Builder enableSellStable(final com.aliyun.ros.cdk.core.IResolvable enableSellStable) {
this.props.enableSellStable(enableSellStable);
return this;
}
/**
* Property sid: The system ID (SID) of the database instance.
*
* Note You must specify this parameter if the InstanceType parameter is set to PostgreSQL or Oracle.
*
* @return {@code this}
* @param sid Property sid: The system ID (SID) of the database instance. This parameter is required.
*/
public Builder sid(final java.lang.String sid) {
this.props.sid(sid);
return this;
}
/**
* Property sid: The system ID (SID) of the database instance.
*
* Note You must specify this parameter if the InstanceType parameter is set to PostgreSQL or Oracle.
*
* @return {@code this}
* @param sid Property sid: The system ID (SID) of the database instance. This parameter is required.
*/
public Builder sid(final com.aliyun.ros.cdk.core.IResolvable sid) {
this.props.sid(sid);
return this;
}
/**
* Property skipTest: Whether the instance ignores the test connectivity.
*
* The values are as follows:
*
*
* - true: ignore
* - false: do not ignore
*
*
* @return {@code this}
* @param skipTest Property skipTest: Whether the instance ignores the test connectivity. This parameter is required.
*/
public Builder skipTest(final java.lang.Boolean skipTest) {
this.props.skipTest(skipTest);
return this;
}
/**
* Property skipTest: Whether the instance ignores the test connectivity.
*
* The values are as follows:
*
*
* - true: ignore
* - false: do not ignore
*
*
* @return {@code this}
* @param skipTest Property skipTest: Whether the instance ignores the test connectivity. This parameter is required.
*/
public Builder skipTest(final com.aliyun.ros.cdk.core.IResolvable skipTest) {
this.props.skipTest(skipTest);
return this;
}
/**
* Property templateId: The ID of the classification template.
*
* You can call the ListClassificationTemplates operation to query the template ID.
*
* @return {@code this}
* @param templateId Property templateId: The ID of the classification template. This parameter is required.
*/
public Builder templateId(final java.lang.Number templateId) {
this.props.templateId(templateId);
return this;
}
/**
* Property templateId: The ID of the classification template.
*
* You can call the ListClassificationTemplates operation to query the template ID.
*
* @return {@code this}
* @param templateId Property templateId: The ID of the classification template. This parameter is required.
*/
public Builder templateId(final com.aliyun.ros.cdk.core.IResolvable templateId) {
this.props.templateId(templateId);
return this;
}
/**
* Property templateType: The type of the classification template.
*
* You can call the ListClassificationTemplates operation to query the template type.
*
* @return {@code this}
* @param templateType Property templateType: The type of the classification template. This parameter is required.
*/
public Builder templateType(final java.lang.String templateType) {
this.props.templateType(templateType);
return this;
}
/**
* Property templateType: The type of the classification template.
*
* You can call the ListClassificationTemplates operation to query the template type.
*
* @return {@code this}
* @param templateType Property templateType: The type of the classification template. This parameter is required.
*/
public Builder templateType(final com.aliyun.ros.cdk.core.IResolvable templateType) {
this.props.templateType(templateType);
return this;
}
/**
* Property tid: The ID of the tenant.
*
* Note To query the ID, log on to the DMS Enterprise console and choose System Management
*
*
*
* Instance Management or System Management > User Management. The ID of the tenant
* appears in the Service Specification section.
*
*
*
* @return {@code this}
* @param tid Property tid: The ID of the tenant. This parameter is required.
*/
public Builder tid(final java.lang.Number tid) {
this.props.tid(tid);
return this;
}
/**
* Property tid: The ID of the tenant.
*
* Note To query the ID, log on to the DMS Enterprise console and choose System Management
*
*
*
* Instance Management or System Management > User Management. The ID of the tenant
* appears in the Service Specification section.
*
*
*
* @return {@code this}
* @param tid Property tid: The ID of the tenant. This parameter is required.
*/
public Builder tid(final com.aliyun.ros.cdk.core.IResolvable tid) {
this.props.tid(tid);
return this;
}
/**
* Property useDsql: Specifies whether to enable cross-database query for the database instance.
*
* Valid
* values:
* 0: disabled
* 1: enabled
*
* @return {@code this}
* @param useDsql Property useDsql: Specifies whether to enable cross-database query for the database instance. This parameter is required.
*/
public Builder useDsql(final java.lang.Number useDsql) {
this.props.useDsql(useDsql);
return this;
}
/**
* Property useDsql: Specifies whether to enable cross-database query for the database instance.
*
* Valid
* values:
* 0: disabled
* 1: enabled
*
* @return {@code this}
* @param useDsql Property useDsql: Specifies whether to enable cross-database query for the database instance. This parameter is required.
*/
public Builder useDsql(final com.aliyun.ros.cdk.core.IResolvable useDsql) {
this.props.useDsql(useDsql);
return this;
}
/**
* Property useSsl: Select whether to enable SSL connection.
*
* When enabled, DMS will connect to the database via SSL. The premise of using this parameter is that the database has enabled SSL connection. Currently, the following options are supported:
*
*
* - 0: Default value (DMS and database service automatically negotiate whether to enable it) The system will automatically identify whether the target database has enabled SSL connection. If the database has enabled SSL connection, DMS will connect to the database via SSL; if the database has not enabled SSL connection, it will connect in a normal way.
* - 1: Enable SSL connection. If the database has not enabled SSL connection, this parameter is invalid.
* - -1: Disable SSL connection.
* Note:
* - This configuration item only appears when the database is MySQL or Redis.
* - SSL (Secure Sockets Layer) can encrypt network connections at the transport layer to improve the security and integrity of communication data, but it will increase the network connection response time.
*
*
* @return {@code this}
* @param useSsl Property useSsl: Select whether to enable SSL connection. This parameter is required.
*/
public Builder useSsl(final java.lang.Number useSsl) {
this.props.useSsl(useSsl);
return this;
}
/**
* Property useSsl: Select whether to enable SSL connection.
*
* When enabled, DMS will connect to the database via SSL. The premise of using this parameter is that the database has enabled SSL connection. Currently, the following options are supported:
*
*
* - 0: Default value (DMS and database service automatically negotiate whether to enable it) The system will automatically identify whether the target database has enabled SSL connection. If the database has enabled SSL connection, DMS will connect to the database via SSL; if the database has not enabled SSL connection, it will connect in a normal way.
* - 1: Enable SSL connection. If the database has not enabled SSL connection, this parameter is invalid.
* - -1: Disable SSL connection.
* Note:
* - This configuration item only appears when the database is MySQL or Redis.
* - SSL (Secure Sockets Layer) can encrypt network connections at the transport layer to improve the security and integrity of communication data, but it will increase the network connection response time.
*
*
* @return {@code this}
* @param useSsl Property useSsl: Select whether to enable SSL connection. This parameter is required.
*/
public Builder useSsl(final com.aliyun.ros.cdk.core.IResolvable useSsl) {
this.props.useSsl(useSsl);
return this;
}
/**
* Property vpcId: The ID of the VPC to which the database instance belongs.
*
* Note You must specify this parameter if the InstanceSource parameter is set to VPC_IDC.
*
* @return {@code this}
* @param vpcId Property vpcId: The ID of the VPC to which the database instance belongs. This parameter is required.
*/
public Builder vpcId(final java.lang.String vpcId) {
this.props.vpcId(vpcId);
return this;
}
/**
* Property vpcId: The ID of the VPC to which the database instance belongs.
*
* Note You must specify this parameter if the InstanceSource parameter is set to VPC_IDC.
*
* @return {@code this}
* @param vpcId Property vpcId: The ID of the VPC to which the database instance belongs. This parameter is required.
*/
public Builder vpcId(final com.aliyun.ros.cdk.core.IResolvable vpcId) {
this.props.vpcId(vpcId);
return this;
}
/**
* @return a newly built instance of {@link com.aliyun.ros.cdk.dms.Instance2}.
*/
@Override
public com.aliyun.ros.cdk.dms.Instance2 build() {
return new com.aliyun.ros.cdk.dms.Instance2(
this.scope,
this.id,
this.props.build(),
this.enableResourcePropertyConstraint
);
}
}
}