Package com.pulumi.alicloud.adb
Class ClusterArgs.Builder
- java.lang.Object
-
- com.pulumi.alicloud.adb.ClusterArgs.Builder
-
- Enclosing class:
- ClusterArgs
public static final class ClusterArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(ClusterArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClusterArgs.Builder
autoRenewPeriod(com.pulumi.core.Output<java.lang.Integer> autoRenewPeriod)
ClusterArgs.Builder
autoRenewPeriod(java.lang.Integer autoRenewPeriod)
ClusterArgs
build()
ClusterArgs.Builder
computeResource(com.pulumi.core.Output<java.lang.String> computeResource)
ClusterArgs.Builder
computeResource(java.lang.String computeResource)
ClusterArgs.Builder
dbClusterCategory(com.pulumi.core.Output<java.lang.String> dbClusterCategory)
ClusterArgs.Builder
dbClusterCategory(java.lang.String dbClusterCategory)
ClusterArgs.Builder
dbClusterClass(com.pulumi.core.Output<java.lang.String> dbClusterClass)
Deprecated.It duplicates with attribute db_node_class and is deprecated from 1.121.2.ClusterArgs.Builder
dbClusterClass(java.lang.String dbClusterClass)
Deprecated.It duplicates with attribute db_node_class and is deprecated from 1.121.2.ClusterArgs.Builder
dbClusterVersion(com.pulumi.core.Output<java.lang.String> dbClusterVersion)
ClusterArgs.Builder
dbClusterVersion(java.lang.String dbClusterVersion)
ClusterArgs.Builder
dbNodeClass(com.pulumi.core.Output<java.lang.String> dbNodeClass)
ClusterArgs.Builder
dbNodeClass(java.lang.String dbNodeClass)
ClusterArgs.Builder
dbNodeCount(com.pulumi.core.Output<java.lang.Integer> dbNodeCount)
ClusterArgs.Builder
dbNodeCount(java.lang.Integer dbNodeCount)
ClusterArgs.Builder
dbNodeStorage(com.pulumi.core.Output<java.lang.Integer> dbNodeStorage)
ClusterArgs.Builder
dbNodeStorage(java.lang.Integer dbNodeStorage)
ClusterArgs.Builder
description(com.pulumi.core.Output<java.lang.String> description)
ClusterArgs.Builder
description(java.lang.String description)
ClusterArgs.Builder
diskPerformanceLevel(com.pulumi.core.Output<java.lang.String> diskPerformanceLevel)
ClusterArgs.Builder
diskPerformanceLevel(java.lang.String diskPerformanceLevel)
ClusterArgs.Builder
elasticIoResource(com.pulumi.core.Output<java.lang.Integer> elasticIoResource)
ClusterArgs.Builder
elasticIoResource(java.lang.Integer elasticIoResource)
ClusterArgs.Builder
elasticIoResourceSize(com.pulumi.core.Output<java.lang.String> elasticIoResourceSize)
ClusterArgs.Builder
elasticIoResourceSize(java.lang.String elasticIoResourceSize)
ClusterArgs.Builder
maintainTime(com.pulumi.core.Output<java.lang.String> maintainTime)
ClusterArgs.Builder
maintainTime(java.lang.String maintainTime)
ClusterArgs.Builder
mode(com.pulumi.core.Output<java.lang.String> mode)
ClusterArgs.Builder
mode(java.lang.String mode)
ClusterArgs.Builder
modifyType(com.pulumi.core.Output<java.lang.String> modifyType)
ClusterArgs.Builder
modifyType(java.lang.String modifyType)
ClusterArgs.Builder
paymentType(com.pulumi.core.Output<java.lang.String> paymentType)
ClusterArgs.Builder
paymentType(java.lang.String paymentType)
ClusterArgs.Builder
payType(com.pulumi.core.Output<java.lang.String> payType)
Deprecated.Attribute 'pay_type' has been deprecated from the provider version 1.166.0 and it will be remove in the future version.ClusterArgs.Builder
payType(java.lang.String payType)
Deprecated.Attribute 'pay_type' has been deprecated from the provider version 1.166.0 and it will be remove in the future version.ClusterArgs.Builder
period(com.pulumi.core.Output<java.lang.Integer> period)
ClusterArgs.Builder
period(java.lang.Integer period)
ClusterArgs.Builder
renewalStatus(com.pulumi.core.Output<java.lang.String> renewalStatus)
ClusterArgs.Builder
renewalStatus(java.lang.String renewalStatus)
ClusterArgs.Builder
resourceGroupId(com.pulumi.core.Output<java.lang.String> resourceGroupId)
ClusterArgs.Builder
resourceGroupId(java.lang.String resourceGroupId)
ClusterArgs.Builder
securityIps(com.pulumi.core.Output<java.util.List<java.lang.String>> securityIps)
ClusterArgs.Builder
securityIps(java.lang.String... securityIps)
ClusterArgs.Builder
securityIps(java.util.List<java.lang.String> securityIps)
ClusterArgs.Builder
tags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> tags)
ClusterArgs.Builder
tags(java.util.Map<java.lang.String,java.lang.Object> tags)
ClusterArgs.Builder
vpcId(com.pulumi.core.Output<java.lang.String> vpcId)
ClusterArgs.Builder
vpcId(java.lang.String vpcId)
ClusterArgs.Builder
vswitchId(com.pulumi.core.Output<java.lang.String> vswitchId)
ClusterArgs.Builder
vswitchId(java.lang.String vswitchId)
ClusterArgs.Builder
zoneId(com.pulumi.core.Output<java.lang.String> zoneId)
ClusterArgs.Builder
zoneId(java.lang.String zoneId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ClusterArgs defaults)
-
-
Method Detail
-
autoRenewPeriod
public ClusterArgs.Builder autoRenewPeriod(@Nullable com.pulumi.core.Output<java.lang.Integer> autoRenewPeriod)
- Parameters:
autoRenewPeriod
- Auto-renewal period of an cluster, in the unit of the month. It is valid when pay_type is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.- Returns:
- builder
-
autoRenewPeriod
public ClusterArgs.Builder autoRenewPeriod(java.lang.Integer autoRenewPeriod)
- Parameters:
autoRenewPeriod
- Auto-renewal period of an cluster, in the unit of the month. It is valid when pay_type is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.- Returns:
- builder
-
computeResource
public ClusterArgs.Builder computeResource(@Nullable com.pulumi.core.Output<java.lang.String> computeResource)
-
computeResource
public ClusterArgs.Builder computeResource(java.lang.String computeResource)
-
dbClusterCategory
public ClusterArgs.Builder dbClusterCategory(com.pulumi.core.Output<java.lang.String> dbClusterCategory)
- Parameters:
dbClusterCategory
- Cluster category. Value options: `Basic`, `Cluster`.- Returns:
- builder
-
dbClusterCategory
public ClusterArgs.Builder dbClusterCategory(java.lang.String dbClusterCategory)
- Parameters:
dbClusterCategory
- Cluster category. Value options: `Basic`, `Cluster`.- Returns:
- builder
-
dbClusterClass
@Deprecated public ClusterArgs.Builder dbClusterClass(@Nullable com.pulumi.core.Output<java.lang.String> dbClusterClass)
Deprecated.It duplicates with attribute db_node_class and is deprecated from 1.121.2.- Returns:
- builder
-
dbClusterClass
@Deprecated public ClusterArgs.Builder dbClusterClass(java.lang.String dbClusterClass)
Deprecated.It duplicates with attribute db_node_class and is deprecated from 1.121.2.- Returns:
- builder
-
dbClusterVersion
public ClusterArgs.Builder dbClusterVersion(@Nullable com.pulumi.core.Output<java.lang.String> dbClusterVersion)
- Parameters:
dbClusterVersion
- Cluster version. Value options: `3.0`, Default to `3.0`.- Returns:
- builder
-
dbClusterVersion
public ClusterArgs.Builder dbClusterVersion(java.lang.String dbClusterVersion)
- Parameters:
dbClusterVersion
- Cluster version. Value options: `3.0`, Default to `3.0`.- Returns:
- builder
-
dbNodeClass
public ClusterArgs.Builder dbNodeClass(@Nullable com.pulumi.core.Output<java.lang.String> dbNodeClass)
- Parameters:
dbNodeClass
- The db_node_class of cluster node.- Returns:
- builder
-
dbNodeClass
public ClusterArgs.Builder dbNodeClass(java.lang.String dbNodeClass)
- Parameters:
dbNodeClass
- The db_node_class of cluster node.- Returns:
- builder
-
dbNodeCount
public ClusterArgs.Builder dbNodeCount(@Nullable com.pulumi.core.Output<java.lang.Integer> dbNodeCount)
- Parameters:
dbNodeCount
- The db_node_count of cluster node.- Returns:
- builder
-
dbNodeCount
public ClusterArgs.Builder dbNodeCount(java.lang.Integer dbNodeCount)
- Parameters:
dbNodeCount
- The db_node_count of cluster node.- Returns:
- builder
-
dbNodeStorage
public ClusterArgs.Builder dbNodeStorage(@Nullable com.pulumi.core.Output<java.lang.Integer> dbNodeStorage)
- Parameters:
dbNodeStorage
- The db_node_storage of cluster node.- Returns:
- builder
-
dbNodeStorage
public ClusterArgs.Builder dbNodeStorage(java.lang.Integer dbNodeStorage)
- Parameters:
dbNodeStorage
- The db_node_storage of cluster node.- Returns:
- builder
-
description
public ClusterArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- The description of cluster.- Returns:
- builder
-
description
public ClusterArgs.Builder description(java.lang.String description)
- Parameters:
description
- The description of cluster.- Returns:
- builder
-
diskPerformanceLevel
public ClusterArgs.Builder diskPerformanceLevel(@Nullable com.pulumi.core.Output<java.lang.String> diskPerformanceLevel)
-
diskPerformanceLevel
public ClusterArgs.Builder diskPerformanceLevel(java.lang.String diskPerformanceLevel)
-
elasticIoResource
public ClusterArgs.Builder elasticIoResource(@Nullable com.pulumi.core.Output<java.lang.Integer> elasticIoResource)
-
elasticIoResource
public ClusterArgs.Builder elasticIoResource(java.lang.Integer elasticIoResource)
-
elasticIoResourceSize
public ClusterArgs.Builder elasticIoResourceSize(@Nullable com.pulumi.core.Output<java.lang.String> elasticIoResourceSize)
-
elasticIoResourceSize
public ClusterArgs.Builder elasticIoResourceSize(java.lang.String elasticIoResourceSize)
-
maintainTime
public ClusterArgs.Builder maintainTime(@Nullable com.pulumi.core.Output<java.lang.String> maintainTime)
- Parameters:
maintainTime
- Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)- Returns:
- builder
-
maintainTime
public ClusterArgs.Builder maintainTime(java.lang.String maintainTime)
- Parameters:
maintainTime
- Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)- Returns:
- builder
-
mode
public ClusterArgs.Builder mode(com.pulumi.core.Output<java.lang.String> mode)
-
mode
public ClusterArgs.Builder mode(java.lang.String mode)
-
modifyType
public ClusterArgs.Builder modifyType(@Nullable com.pulumi.core.Output<java.lang.String> modifyType)
-
modifyType
public ClusterArgs.Builder modifyType(java.lang.String modifyType)
-
payType
@Deprecated public ClusterArgs.Builder payType(@Nullable com.pulumi.core.Output<java.lang.String> payType)
Deprecated.Attribute 'pay_type' has been deprecated from the provider version 1.166.0 and it will be remove in the future version. Please use the new attribute 'payment_type' instead.- Parameters:
payType
- Field `pay_type` has been deprecated. New field `payment_type` instead.- Returns:
- builder
-
payType
@Deprecated public ClusterArgs.Builder payType(java.lang.String payType)
Deprecated.Attribute 'pay_type' has been deprecated from the provider version 1.166.0 and it will be remove in the future version. Please use the new attribute 'payment_type' instead.- Parameters:
payType
- Field `pay_type` has been deprecated. New field `payment_type` instead.- Returns:
- builder
-
paymentType
public ClusterArgs.Builder paymentType(@Nullable com.pulumi.core.Output<java.lang.String> paymentType)
- Parameters:
paymentType
- The payment type of the resource. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`. **Note:** The `payment_type` supports updating from v1.166.0+.- Returns:
- builder
-
paymentType
public ClusterArgs.Builder paymentType(java.lang.String paymentType)
- Parameters:
paymentType
- The payment type of the resource. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`. **Note:** The `payment_type` supports updating from v1.166.0+.- Returns:
- builder
-
period
public ClusterArgs.Builder period(@Nullable com.pulumi.core.Output<java.lang.Integer> period)
- Parameters:
period
- The duration that you will buy DB cluster (in month). It is valid when pay_type is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.- Returns:
- builder
-
period
public ClusterArgs.Builder period(java.lang.Integer period)
- Parameters:
period
- The duration that you will buy DB cluster (in month). It is valid when pay_type is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.- Returns:
- builder
-
renewalStatus
public ClusterArgs.Builder renewalStatus(@Nullable com.pulumi.core.Output<java.lang.String> renewalStatus)
- Parameters:
renewalStatus
- Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.- Returns:
- builder
-
renewalStatus
public ClusterArgs.Builder renewalStatus(java.lang.String renewalStatus)
- Parameters:
renewalStatus
- Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.- Returns:
- builder
-
resourceGroupId
public ClusterArgs.Builder resourceGroupId(@Nullable com.pulumi.core.Output<java.lang.String> resourceGroupId)
-
resourceGroupId
public ClusterArgs.Builder resourceGroupId(java.lang.String resourceGroupId)
-
securityIps
public ClusterArgs.Builder securityIps(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> securityIps)
- Parameters:
securityIps
- List of IP addresses allowed to access all databases of an cluster. 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
-
securityIps
public ClusterArgs.Builder securityIps(java.util.List<java.lang.String> securityIps)
- Parameters:
securityIps
- List of IP addresses allowed to access all databases of an cluster. 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
-
securityIps
public ClusterArgs.Builder securityIps(java.lang.String... securityIps)
- Parameters:
securityIps
- List of IP addresses allowed to access all databases of an cluster. 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
-
tags
public ClusterArgs.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. - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string. > **NOTE:** Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.- Returns:
- builder
-
tags
public ClusterArgs.Builder tags(java.util.Map<java.lang.String,java.lang.Object> tags)
- Parameters:
tags
- A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string. > **NOTE:** Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.- Returns:
- builder
-
vpcId
public ClusterArgs.Builder vpcId(@Nullable com.pulumi.core.Output<java.lang.String> vpcId)
-
vpcId
public ClusterArgs.Builder vpcId(java.lang.String vpcId)
-
vswitchId
public ClusterArgs.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 ClusterArgs.Builder vswitchId(java.lang.String vswitchId)
- Parameters:
vswitchId
- The virtual switch ID to launch DB instances in one VPC.- Returns:
- builder
-
zoneId
public ClusterArgs.Builder zoneId(@Nullable com.pulumi.core.Output<java.lang.String> zoneId)
- Parameters:
zoneId
- The Zone to launch the DB cluster.- Returns:
- builder
-
zoneId
public ClusterArgs.Builder zoneId(java.lang.String zoneId)
- Parameters:
zoneId
- The Zone to launch the DB cluster.- Returns:
- builder
-
build
public ClusterArgs build()
-
-