Package com.pulumi.alicloud.mongodb
Class InstanceArgs.Builder
- java.lang.Object
-
- com.pulumi.alicloud.mongodb.InstanceArgs.Builder
-
- Enclosing class:
- InstanceArgs
public static final class InstanceArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(InstanceArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceArgs.Builder
accountPassword(com.pulumi.core.Output<java.lang.String> accountPassword)
InstanceArgs.Builder
accountPassword(java.lang.String accountPassword)
InstanceArgs.Builder
autoRenew(com.pulumi.core.Output<java.lang.Boolean> autoRenew)
InstanceArgs.Builder
autoRenew(java.lang.Boolean autoRenew)
InstanceArgs.Builder
backupInterval(com.pulumi.core.Output<java.lang.String> backupInterval)
InstanceArgs.Builder
backupInterval(java.lang.String backupInterval)
InstanceArgs.Builder
backupPeriods(com.pulumi.core.Output<java.util.List<java.lang.String>> backupPeriods)
InstanceArgs.Builder
backupPeriods(java.lang.String... backupPeriods)
InstanceArgs.Builder
backupPeriods(java.util.List<java.lang.String> backupPeriods)
InstanceArgs.Builder
backupRetentionPeriod(com.pulumi.core.Output<java.lang.Integer> backupRetentionPeriod)
InstanceArgs.Builder
backupRetentionPeriod(java.lang.Integer backupRetentionPeriod)
InstanceArgs.Builder
backupTime(com.pulumi.core.Output<java.lang.String> backupTime)
InstanceArgs.Builder
backupTime(java.lang.String backupTime)
InstanceArgs
build()
InstanceArgs.Builder
cloudDiskEncryptionKey(com.pulumi.core.Output<java.lang.String> cloudDiskEncryptionKey)
InstanceArgs.Builder
cloudDiskEncryptionKey(java.lang.String cloudDiskEncryptionKey)
InstanceArgs.Builder
dbInstanceClass(com.pulumi.core.Output<java.lang.String> dbInstanceClass)
InstanceArgs.Builder
dbInstanceClass(java.lang.String dbInstanceClass)
InstanceArgs.Builder
dbInstanceStorage(com.pulumi.core.Output<java.lang.Integer> dbInstanceStorage)
InstanceArgs.Builder
dbInstanceStorage(java.lang.Integer dbInstanceStorage)
InstanceArgs.Builder
encrypted(com.pulumi.core.Output<java.lang.Boolean> encrypted)
InstanceArgs.Builder
encrypted(java.lang.Boolean encrypted)
InstanceArgs.Builder
encryptionKey(com.pulumi.core.Output<java.lang.String> encryptionKey)
InstanceArgs.Builder
encryptionKey(java.lang.String encryptionKey)
InstanceArgs.Builder
encryptorName(com.pulumi.core.Output<java.lang.String> encryptorName)
InstanceArgs.Builder
encryptorName(java.lang.String encryptorName)
InstanceArgs.Builder
engineVersion(com.pulumi.core.Output<java.lang.String> engineVersion)
InstanceArgs.Builder
engineVersion(java.lang.String engineVersion)
InstanceArgs.Builder
hiddenZoneId(com.pulumi.core.Output<java.lang.String> hiddenZoneId)
InstanceArgs.Builder
hiddenZoneId(java.lang.String hiddenZoneId)
InstanceArgs.Builder
instanceChargeType(com.pulumi.core.Output<java.lang.String> instanceChargeType)
InstanceArgs.Builder
instanceChargeType(java.lang.String instanceChargeType)
InstanceArgs.Builder
kmsEncryptedPassword(com.pulumi.core.Output<java.lang.String> kmsEncryptedPassword)
InstanceArgs.Builder
kmsEncryptedPassword(java.lang.String kmsEncryptedPassword)
InstanceArgs.Builder
kmsEncryptionContext(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> kmsEncryptionContext)
InstanceArgs.Builder
kmsEncryptionContext(java.util.Map<java.lang.String,java.lang.Object> kmsEncryptionContext)
InstanceArgs.Builder
maintainEndTime(com.pulumi.core.Output<java.lang.String> maintainEndTime)
InstanceArgs.Builder
maintainEndTime(java.lang.String maintainEndTime)
InstanceArgs.Builder
maintainStartTime(com.pulumi.core.Output<java.lang.String> maintainStartTime)
InstanceArgs.Builder
maintainStartTime(java.lang.String maintainStartTime)
InstanceArgs.Builder
name(com.pulumi.core.Output<java.lang.String> name)
InstanceArgs.Builder
name(java.lang.String name)
InstanceArgs.Builder
networkType(com.pulumi.core.Output<java.lang.String> networkType)
InstanceArgs.Builder
networkType(java.lang.String networkType)
InstanceArgs.Builder
orderType(com.pulumi.core.Output<java.lang.String> orderType)
InstanceArgs.Builder
orderType(java.lang.String orderType)
InstanceArgs.Builder
parameters(InstanceParameterArgs... parameters)
InstanceArgs.Builder
parameters(com.pulumi.core.Output<java.util.List<InstanceParameterArgs>> parameters)
InstanceArgs.Builder
parameters(java.util.List<InstanceParameterArgs> parameters)
InstanceArgs.Builder
period(com.pulumi.core.Output<java.lang.Integer> period)
InstanceArgs.Builder
period(java.lang.Integer period)
InstanceArgs.Builder
readonlyReplicas(com.pulumi.core.Output<java.lang.Integer> readonlyReplicas)
InstanceArgs.Builder
readonlyReplicas(java.lang.Integer readonlyReplicas)
InstanceArgs.Builder
replicationFactor(com.pulumi.core.Output<java.lang.Integer> replicationFactor)
InstanceArgs.Builder
replicationFactor(java.lang.Integer replicationFactor)
InstanceArgs.Builder
resourceGroupId(com.pulumi.core.Output<java.lang.String> resourceGroupId)
InstanceArgs.Builder
resourceGroupId(java.lang.String resourceGroupId)
InstanceArgs.Builder
roleArn(com.pulumi.core.Output<java.lang.String> roleArn)
InstanceArgs.Builder
roleArn(java.lang.String roleArn)
InstanceArgs.Builder
secondaryZoneId(com.pulumi.core.Output<java.lang.String> secondaryZoneId)
InstanceArgs.Builder
secondaryZoneId(java.lang.String secondaryZoneId)
InstanceArgs.Builder
securityGroupId(com.pulumi.core.Output<java.lang.String> securityGroupId)
InstanceArgs.Builder
securityGroupId(java.lang.String securityGroupId)
InstanceArgs.Builder
securityIpLists(com.pulumi.core.Output<java.util.List<java.lang.String>> securityIpLists)
InstanceArgs.Builder
securityIpLists(java.lang.String... securityIpLists)
InstanceArgs.Builder
securityIpLists(java.util.List<java.lang.String> securityIpLists)
InstanceArgs.Builder
snapshotBackupType(com.pulumi.core.Output<java.lang.String> snapshotBackupType)
InstanceArgs.Builder
snapshotBackupType(java.lang.String snapshotBackupType)
InstanceArgs.Builder
sslAction(com.pulumi.core.Output<java.lang.String> sslAction)
InstanceArgs.Builder
sslAction(java.lang.String sslAction)
InstanceArgs.Builder
storageEngine(com.pulumi.core.Output<java.lang.String> storageEngine)
InstanceArgs.Builder
storageEngine(java.lang.String storageEngine)
InstanceArgs.Builder
storageType(com.pulumi.core.Output<java.lang.String> storageType)
InstanceArgs.Builder
storageType(java.lang.String storageType)
InstanceArgs.Builder
tags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> tags)
InstanceArgs.Builder
tags(java.util.Map<java.lang.String,java.lang.Object> tags)
InstanceArgs.Builder
tdeStatus(com.pulumi.core.Output<java.lang.String> tdeStatus)
InstanceArgs.Builder
tdeStatus(java.lang.String tdeStatus)
InstanceArgs.Builder
vpcId(com.pulumi.core.Output<java.lang.String> vpcId)
InstanceArgs.Builder
vpcId(java.lang.String vpcId)
InstanceArgs.Builder
vswitchId(com.pulumi.core.Output<java.lang.String> vswitchId)
InstanceArgs.Builder
vswitchId(java.lang.String vswitchId)
InstanceArgs.Builder
zoneId(com.pulumi.core.Output<java.lang.String> zoneId)
InstanceArgs.Builder
zoneId(java.lang.String zoneId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(InstanceArgs defaults)
-
-
Method Detail
-
accountPassword
public InstanceArgs.Builder accountPassword(@Nullable com.pulumi.core.Output<java.lang.String> accountPassword)
- Parameters:
accountPassword
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.- Returns:
- builder
-
accountPassword
public InstanceArgs.Builder accountPassword(java.lang.String accountPassword)
- Parameters:
accountPassword
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.- Returns:
- builder
-
autoRenew
public InstanceArgs.Builder autoRenew(@Nullable com.pulumi.core.Output<java.lang.Boolean> autoRenew)
- Parameters:
autoRenew
- Auto renew for prepaid. Default value: `false`. Valid values: `true`, `false`. > **NOTE:** The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z.- Returns:
- builder
-
autoRenew
public InstanceArgs.Builder autoRenew(java.lang.Boolean autoRenew)
- Parameters:
autoRenew
- Auto renew for prepaid. Default value: `false`. Valid values: `true`, `false`. > **NOTE:** The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z.- Returns:
- builder
-
backupInterval
public InstanceArgs.Builder backupInterval(@Nullable com.pulumi.core.Output<java.lang.String> backupInterval)
- Parameters:
backupInterval
- The frequency at which high-frequency backups are created. Valid values: `-1`, `15`, `30`, `60`, `120`, `180`, `240`, `360`, `480`, `720`.- Returns:
- builder
-
backupInterval
public InstanceArgs.Builder backupInterval(java.lang.String backupInterval)
- Parameters:
backupInterval
- The frequency at which high-frequency backups are created. Valid values: `-1`, `15`, `30`, `60`, `120`, `180`, `240`, `360`, `480`, `720`.- Returns:
- builder
-
backupPeriods
public InstanceArgs.Builder backupPeriods(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> backupPeriods)
- Parameters:
backupPeriods
- MongoDB Instance backup period. It is required when `backup_time` was existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].- Returns:
- builder
-
backupPeriods
public InstanceArgs.Builder backupPeriods(java.util.List<java.lang.String> backupPeriods)
- Parameters:
backupPeriods
- MongoDB Instance backup period. It is required when `backup_time` was existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].- Returns:
- builder
-
backupPeriods
public InstanceArgs.Builder backupPeriods(java.lang.String... backupPeriods)
- Parameters:
backupPeriods
- MongoDB Instance backup period. It is required when `backup_time` was existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].- Returns:
- builder
-
backupRetentionPeriod
public InstanceArgs.Builder backupRetentionPeriod(@Nullable com.pulumi.core.Output<java.lang.Integer> backupRetentionPeriod)
- Parameters:
backupRetentionPeriod
- The retention period of full backups.- Returns:
- builder
-
backupRetentionPeriod
public InstanceArgs.Builder backupRetentionPeriod(java.lang.Integer backupRetentionPeriod)
- Parameters:
backupRetentionPeriod
- The retention period of full backups.- Returns:
- builder
-
backupTime
public InstanceArgs.Builder backupTime(@Nullable com.pulumi.core.Output<java.lang.String> backupTime)
- Parameters:
backupTime
- MongoDB instance backup time. It is required when `backup_period` was existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like "23:00Z-24:00Z".- Returns:
- builder
-
backupTime
public InstanceArgs.Builder backupTime(java.lang.String backupTime)
- Parameters:
backupTime
- MongoDB instance backup time. It is required when `backup_period` was existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like "23:00Z-24:00Z".- Returns:
- builder
-
cloudDiskEncryptionKey
public InstanceArgs.Builder cloudDiskEncryptionKey(@Nullable com.pulumi.core.Output<java.lang.String> cloudDiskEncryptionKey)
- Parameters:
cloudDiskEncryptionKey
- The ID of the encryption key.- Returns:
- builder
-
cloudDiskEncryptionKey
public InstanceArgs.Builder cloudDiskEncryptionKey(java.lang.String cloudDiskEncryptionKey)
- Parameters:
cloudDiskEncryptionKey
- The ID of the encryption key.- Returns:
- builder
-
dbInstanceClass
public InstanceArgs.Builder dbInstanceClass(com.pulumi.core.Output<java.lang.String> dbInstanceClass)
- Parameters:
dbInstanceClass
- Instance specification. see [Instance specifications](https://www.alibabacloud.com/help/doc-detail/57141.htm).- Returns:
- builder
-
dbInstanceClass
public InstanceArgs.Builder dbInstanceClass(java.lang.String dbInstanceClass)
- Parameters:
dbInstanceClass
- Instance specification. see [Instance specifications](https://www.alibabacloud.com/help/doc-detail/57141.htm).- Returns:
- builder
-
dbInstanceStorage
public InstanceArgs.Builder dbInstanceStorage(com.pulumi.core.Output<java.lang.Integer> dbInstanceStorage)
- Parameters:
dbInstanceStorage
- User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space. - 10-GB increments.- Returns:
- builder
-
dbInstanceStorage
public InstanceArgs.Builder dbInstanceStorage(java.lang.Integer dbInstanceStorage)
- Parameters:
dbInstanceStorage
- User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space. - 10-GB increments.- Returns:
- builder
-
encrypted
public InstanceArgs.Builder encrypted(@Nullable com.pulumi.core.Output<java.lang.Boolean> encrypted)
- Parameters:
encrypted
- Whether to enable cloud disk encryption. Default value: `false`. Valid values: `true`, `false`.- Returns:
- builder
-
encrypted
public InstanceArgs.Builder encrypted(java.lang.Boolean encrypted)
- Parameters:
encrypted
- Whether to enable cloud disk encryption. Default value: `false`. Valid values: `true`, `false`.- Returns:
- builder
-
encryptionKey
public InstanceArgs.Builder encryptionKey(@Nullable com.pulumi.core.Output<java.lang.String> encryptionKey)
- Parameters:
encryptionKey
- The ID of the custom key.- Returns:
- builder
-
encryptionKey
public InstanceArgs.Builder encryptionKey(java.lang.String encryptionKey)
- Parameters:
encryptionKey
- The ID of the custom key.- Returns:
- builder
-
encryptorName
public InstanceArgs.Builder encryptorName(@Nullable com.pulumi.core.Output<java.lang.String> encryptorName)
- Parameters:
encryptorName
- The encryption method. **NOTE:** `encryptor_name` is valid only when `tde_status` is set to `enabled`.- Returns:
- builder
-
encryptorName
public InstanceArgs.Builder encryptorName(java.lang.String encryptorName)
- Parameters:
encryptorName
- The encryption method. **NOTE:** `encryptor_name` is valid only when `tde_status` is set to `enabled`.- Returns:
- builder
-
engineVersion
public InstanceArgs.Builder engineVersion(com.pulumi.core.Output<java.lang.String> engineVersion)
- Parameters:
engineVersion
- Database version. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/61763.htm) `EngineVersion`.- Returns:
- builder
-
engineVersion
public InstanceArgs.Builder engineVersion(java.lang.String engineVersion)
- Parameters:
engineVersion
- Database version. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/61763.htm) `EngineVersion`.- Returns:
- builder
-
hiddenZoneId
public InstanceArgs.Builder hiddenZoneId(@Nullable com.pulumi.core.Output<java.lang.String> hiddenZoneId)
- Parameters:
hiddenZoneId
- Configure the zone where the hidden node is located to deploy multiple zones. **NOTE:** This parameter value cannot be the same as `zone_id` and `secondary_zone_id` parameter values.- Returns:
- builder
-
hiddenZoneId
public InstanceArgs.Builder hiddenZoneId(java.lang.String hiddenZoneId)
- Parameters:
hiddenZoneId
- Configure the zone where the hidden node is located to deploy multiple zones. **NOTE:** This parameter value cannot be the same as `zone_id` and `secondary_zone_id` parameter values.- Returns:
- builder
-
instanceChargeType
public InstanceArgs.Builder instanceChargeType(@Nullable com.pulumi.core.Output<java.lang.String> instanceChargeType)
- Parameters:
instanceChargeType
- The billing method of the instance. Default value: `PostPaid`. Valid values: `PrePaid`, `PostPaid`. **NOTE:** It can be modified from `PostPaid` to `PrePaid` after version 1.63.0.- Returns:
- builder
-
instanceChargeType
public InstanceArgs.Builder instanceChargeType(java.lang.String instanceChargeType)
- Parameters:
instanceChargeType
- The billing method of the instance. Default value: `PostPaid`. Valid values: `PrePaid`, `PostPaid`. **NOTE:** It can be modified from `PostPaid` to `PrePaid` after version 1.63.0.- Returns:
- builder
-
kmsEncryptedPassword
public InstanceArgs.Builder kmsEncryptedPassword(@Nullable com.pulumi.core.Output<java.lang.String> kmsEncryptedPassword)
- Parameters:
kmsEncryptedPassword
- An KMS encrypts password used to a instance. If the `account_password` is filled in, this field will be ignored.- Returns:
- builder
-
kmsEncryptedPassword
public InstanceArgs.Builder kmsEncryptedPassword(java.lang.String kmsEncryptedPassword)
- Parameters:
kmsEncryptedPassword
- An KMS encrypts password used to a instance. If the `account_password` is filled in, this field will be ignored.- Returns:
- builder
-
kmsEncryptionContext
public InstanceArgs.Builder kmsEncryptionContext(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> kmsEncryptionContext)
- Parameters:
kmsEncryptionContext
- An KMS encryption context used to decrypt `kms_encrypted_password` before creating or updating instance with `kms_encrypted_password`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kms_encrypted_password` is set.- Returns:
- builder
-
kmsEncryptionContext
public InstanceArgs.Builder kmsEncryptionContext(java.util.Map<java.lang.String,java.lang.Object> kmsEncryptionContext)
- Parameters:
kmsEncryptionContext
- An KMS encryption context used to decrypt `kms_encrypted_password` before creating or updating instance with `kms_encrypted_password`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kms_encrypted_password` is set.- Returns:
- builder
-
maintainEndTime
public InstanceArgs.Builder maintainEndTime(@Nullable com.pulumi.core.Output<java.lang.String> maintainEndTime)
- Parameters:
maintainEndTime
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).- Returns:
- builder
-
maintainEndTime
public InstanceArgs.Builder maintainEndTime(java.lang.String maintainEndTime)
- Parameters:
maintainEndTime
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).- Returns:
- builder
-
maintainStartTime
public InstanceArgs.Builder maintainStartTime(@Nullable com.pulumi.core.Output<java.lang.String> maintainStartTime)
- Parameters:
maintainStartTime
- The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).- Returns:
- builder
-
maintainStartTime
public InstanceArgs.Builder maintainStartTime(java.lang.String maintainStartTime)
- Parameters:
maintainStartTime
- The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).- Returns:
- builder
-
name
public InstanceArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- The name of DB instance. It a string of 2 to 256 characters.- Returns:
- builder
-
name
public InstanceArgs.Builder name(java.lang.String name)
- Parameters:
name
- The name of DB instance. It a string of 2 to 256 characters.- Returns:
- builder
-
networkType
public InstanceArgs.Builder networkType(@Nullable com.pulumi.core.Output<java.lang.String> networkType)
- Parameters:
networkType
- The network type of the instance. Valid values:`Classic`, `VPC`.- Returns:
- builder
-
networkType
public InstanceArgs.Builder networkType(java.lang.String networkType)
- Parameters:
networkType
- The network type of the instance. Valid values:`Classic`, `VPC`.- Returns:
- builder
-
orderType
public InstanceArgs.Builder orderType(@Nullable com.pulumi.core.Output<java.lang.String> orderType)
- Parameters:
orderType
- The type of configuration changes performed. Default value: `DOWNGRADE`. Valid values:- Returns:
- builder
-
orderType
public InstanceArgs.Builder orderType(java.lang.String orderType)
- Parameters:
orderType
- The type of configuration changes performed. Default value: `DOWNGRADE`. Valid values:- Returns:
- builder
-
parameters
public InstanceArgs.Builder parameters(@Nullable com.pulumi.core.Output<java.util.List<InstanceParameterArgs>> parameters)
- Parameters:
parameters
- Set of parameters needs to be set after mongodb instance was launched. See `parameters` below.- Returns:
- builder
-
parameters
public InstanceArgs.Builder parameters(java.util.List<InstanceParameterArgs> parameters)
- Parameters:
parameters
- Set of parameters needs to be set after mongodb instance was launched. See `parameters` below.- Returns:
- builder
-
parameters
public InstanceArgs.Builder parameters(InstanceParameterArgs... parameters)
- Parameters:
parameters
- Set of parameters needs to be set after mongodb instance was launched. See `parameters` below.- Returns:
- builder
-
period
public InstanceArgs.Builder period(@Nullable com.pulumi.core.Output<java.lang.Integer> period)
- Parameters:
period
- The duration that you will buy DB instance (in month). It is valid when instance_charge_type is `PrePaid`. Default value: `1`. Valid values: [1~9], 12, 24, 36.- Returns:
- builder
-
period
public InstanceArgs.Builder period(java.lang.Integer period)
- Parameters:
period
- The duration that you will buy DB instance (in month). It is valid when instance_charge_type is `PrePaid`. Default value: `1`. Valid values: [1~9], 12, 24, 36.- Returns:
- builder
-
readonlyReplicas
public InstanceArgs.Builder readonlyReplicas(@Nullable com.pulumi.core.Output<java.lang.Integer> readonlyReplicas)
- Parameters:
readonlyReplicas
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.- Returns:
- builder
-
readonlyReplicas
public InstanceArgs.Builder readonlyReplicas(java.lang.Integer readonlyReplicas)
- Parameters:
readonlyReplicas
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.- Returns:
- builder
-
replicationFactor
public InstanceArgs.Builder replicationFactor(@Nullable com.pulumi.core.Output<java.lang.Integer> replicationFactor)
- Parameters:
replicationFactor
- Number of replica set nodes. Valid values: `1`, `3`, `5`, `7`.- Returns:
- builder
-
replicationFactor
public InstanceArgs.Builder replicationFactor(java.lang.Integer replicationFactor)
- Parameters:
replicationFactor
- Number of replica set nodes. Valid values: `1`, `3`, `5`, `7`.- Returns:
- builder
-
resourceGroupId
public InstanceArgs.Builder resourceGroupId(@Nullable com.pulumi.core.Output<java.lang.String> resourceGroupId)
- Parameters:
resourceGroupId
- The ID of the Resource Group.- Returns:
- builder
-
resourceGroupId
public InstanceArgs.Builder resourceGroupId(java.lang.String resourceGroupId)
- Parameters:
resourceGroupId
- The ID of the Resource Group.- Returns:
- builder
-
roleArn
public InstanceArgs.Builder roleArn(@Nullable com.pulumi.core.Output<java.lang.String> roleArn)
- Parameters:
roleArn
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.- Returns:
- builder
-
roleArn
public InstanceArgs.Builder roleArn(java.lang.String roleArn)
- Parameters:
roleArn
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.- Returns:
- builder
-
secondaryZoneId
public InstanceArgs.Builder secondaryZoneId(@Nullable com.pulumi.core.Output<java.lang.String> secondaryZoneId)
- Parameters:
secondaryZoneId
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. **NOTE:** This parameter value cannot be the same as `zone_id` and `hidden_zone_id` parameter values.- Returns:
- builder
-
secondaryZoneId
public InstanceArgs.Builder secondaryZoneId(java.lang.String secondaryZoneId)
- Parameters:
secondaryZoneId
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. **NOTE:** This parameter value cannot be the same as `zone_id` and `hidden_zone_id` parameter values.- Returns:
- builder
-
securityGroupId
public InstanceArgs.Builder securityGroupId(@Nullable com.pulumi.core.Output<java.lang.String> securityGroupId)
- Parameters:
securityGroupId
- The Security Group ID of ECS.- Returns:
- builder
-
securityGroupId
public InstanceArgs.Builder securityGroupId(java.lang.String securityGroupId)
- Parameters:
securityGroupId
- The Security Group ID of ECS.- Returns:
- builder
-
securityIpLists
public InstanceArgs.Builder securityIpLists(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> securityIpLists)
- Parameters:
securityIpLists
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).- Returns:
- builder
-
securityIpLists
public InstanceArgs.Builder securityIpLists(java.util.List<java.lang.String> securityIpLists)
- Parameters:
securityIpLists
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).- Returns:
- builder
-
securityIpLists
public InstanceArgs.Builder securityIpLists(java.lang.String... securityIpLists)
- Parameters:
securityIpLists
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).- Returns:
- builder
-
snapshotBackupType
public InstanceArgs.Builder snapshotBackupType(@Nullable com.pulumi.core.Output<java.lang.String> snapshotBackupType)
- Parameters:
snapshotBackupType
- The snapshot backup type. Default value: `Standard`. Valid values:- Returns:
- builder
-
snapshotBackupType
public InstanceArgs.Builder snapshotBackupType(java.lang.String snapshotBackupType)
- Parameters:
snapshotBackupType
- The snapshot backup type. Default value: `Standard`. Valid values:- Returns:
- builder
-
sslAction
public InstanceArgs.Builder sslAction(@Nullable com.pulumi.core.Output<java.lang.String> sslAction)
- Parameters:
sslAction
- Actions performed on SSL functions. Valid values:- Returns:
- builder
-
sslAction
public InstanceArgs.Builder sslAction(java.lang.String sslAction)
- Parameters:
sslAction
- Actions performed on SSL functions. Valid values:- Returns:
- builder
-
storageEngine
public InstanceArgs.Builder storageEngine(@Nullable com.pulumi.core.Output<java.lang.String> storageEngine)
- Parameters:
storageEngine
- The storage engine of the instance. Default value: `WiredTiger`. Valid values: `WiredTiger`, `RocksDB`.- Returns:
- builder
-
storageEngine
public InstanceArgs.Builder storageEngine(java.lang.String storageEngine)
- Parameters:
storageEngine
- The storage engine of the instance. Default value: `WiredTiger`. Valid values: `WiredTiger`, `RocksDB`.- Returns:
- builder
-
storageType
public InstanceArgs.Builder storageType(@Nullable com.pulumi.core.Output<java.lang.String> storageType)
- Parameters:
storageType
- The storage type of the instance. Valid values: `cloud_essd1`, `cloud_essd2`, `cloud_essd3`, `local_ssd`.- Returns:
- builder
-
storageType
public InstanceArgs.Builder storageType(java.lang.String storageType)
- Parameters:
storageType
- The storage type of the instance. Valid values: `cloud_essd1`, `cloud_essd2`, `cloud_essd3`, `local_ssd`.- Returns:
- builder
-
tags
public InstanceArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> tags)
- Parameters:
tags
- A mapping of tags to assign to the resource.- Returns:
- builder
-
tags
public InstanceArgs.Builder tags(java.util.Map<java.lang.String,java.lang.Object> tags)
- Parameters:
tags
- A mapping of tags to assign to the resource.- Returns:
- builder
-
tdeStatus
public InstanceArgs.Builder tdeStatus(@Nullable com.pulumi.core.Output<java.lang.String> tdeStatus)
- Parameters:
tdeStatus
- The TDE(Transparent Data Encryption) status. Valid values: `enabled`.- Returns:
- builder
-
tdeStatus
public InstanceArgs.Builder tdeStatus(java.lang.String tdeStatus)
- Parameters:
tdeStatus
- The TDE(Transparent Data Encryption) status. Valid values: `enabled`.- Returns:
- builder
-
vpcId
public InstanceArgs.Builder vpcId(@Nullable com.pulumi.core.Output<java.lang.String> vpcId)
- Parameters:
vpcId
- The ID of the VPC. > **NOTE:** `vpc_id` is valid only when `network_type` is set to `VPC`.- Returns:
- builder
-
vpcId
public InstanceArgs.Builder vpcId(java.lang.String vpcId)
- Parameters:
vpcId
- The ID of the VPC. > **NOTE:** `vpc_id` is valid only when `network_type` is set to `VPC`.- Returns:
- builder
-
vswitchId
public InstanceArgs.Builder vswitchId(@Nullable com.pulumi.core.Output<java.lang.String> vswitchId)
- Parameters:
vswitchId
- The virtual switch ID to launch DB instances in one VPC.- Returns:
- builder
-
vswitchId
public InstanceArgs.Builder vswitchId(java.lang.String vswitchId)
- Parameters:
vswitchId
- The virtual switch ID to launch DB instances in one VPC.- Returns:
- builder
-
zoneId
public InstanceArgs.Builder zoneId(@Nullable com.pulumi.core.Output<java.lang.String> zoneId)
- Parameters:
zoneId
- The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and `vswitch_id` is specified, the vswitch must in one of them. The multiple zone ID can be retrieved by setting `multi` to "true" in the data source `alicloud.getZones`.- Returns:
- builder
-
zoneId
public InstanceArgs.Builder zoneId(java.lang.String zoneId)
- Parameters:
zoneId
- The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and `vswitch_id` is specified, the vswitch must in one of them. The multiple zone ID can be retrieved by setting `multi` to "true" in the data source `alicloud.getZones`.- Returns:
- builder
-
build
public InstanceArgs build()
-
-