Package com.pulumi.alicloud.redis.inputs
Class TairInstanceState.Builder
- java.lang.Object
-
- com.pulumi.alicloud.redis.inputs.TairInstanceState.Builder
-
- Enclosing class:
- TairInstanceState
public static final class TairInstanceState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(TairInstanceState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TairInstanceState.Builder
autoRenew(com.pulumi.core.Output<java.lang.String> autoRenew)
TairInstanceState.Builder
autoRenew(java.lang.String autoRenew)
TairInstanceState.Builder
autoRenewPeriod(com.pulumi.core.Output<java.lang.String> autoRenewPeriod)
TairInstanceState.Builder
autoRenewPeriod(java.lang.String autoRenewPeriod)
TairInstanceState
build()
TairInstanceState.Builder
createTime(com.pulumi.core.Output<java.lang.String> createTime)
TairInstanceState.Builder
createTime(java.lang.String createTime)
TairInstanceState.Builder
effectiveTime(com.pulumi.core.Output<java.lang.String> effectiveTime)
TairInstanceState.Builder
effectiveTime(java.lang.String effectiveTime)
TairInstanceState.Builder
engineVersion(com.pulumi.core.Output<java.lang.String> engineVersion)
TairInstanceState.Builder
engineVersion(java.lang.String engineVersion)
TairInstanceState.Builder
forceUpgrade(com.pulumi.core.Output<java.lang.Boolean> forceUpgrade)
TairInstanceState.Builder
forceUpgrade(java.lang.Boolean forceUpgrade)
TairInstanceState.Builder
instanceClass(com.pulumi.core.Output<java.lang.String> instanceClass)
TairInstanceState.Builder
instanceClass(java.lang.String instanceClass)
TairInstanceState.Builder
instanceType(com.pulumi.core.Output<java.lang.String> instanceType)
TairInstanceState.Builder
instanceType(java.lang.String instanceType)
TairInstanceState.Builder
password(com.pulumi.core.Output<java.lang.String> password)
TairInstanceState.Builder
password(java.lang.String password)
TairInstanceState.Builder
paymentType(com.pulumi.core.Output<java.lang.String> paymentType)
TairInstanceState.Builder
paymentType(java.lang.String paymentType)
TairInstanceState.Builder
period(com.pulumi.core.Output<java.lang.Integer> period)
TairInstanceState.Builder
period(java.lang.Integer period)
TairInstanceState.Builder
port(com.pulumi.core.Output<java.lang.Integer> port)
TairInstanceState.Builder
port(java.lang.Integer port)
TairInstanceState.Builder
resourceGroupId(com.pulumi.core.Output<java.lang.String> resourceGroupId)
TairInstanceState.Builder
resourceGroupId(java.lang.String resourceGroupId)
TairInstanceState.Builder
secondaryZoneId(com.pulumi.core.Output<java.lang.String> secondaryZoneId)
TairInstanceState.Builder
secondaryZoneId(java.lang.String secondaryZoneId)
TairInstanceState.Builder
shardCount(com.pulumi.core.Output<java.lang.Integer> shardCount)
TairInstanceState.Builder
shardCount(java.lang.Integer shardCount)
TairInstanceState.Builder
status(com.pulumi.core.Output<java.lang.String> status)
TairInstanceState.Builder
status(java.lang.String status)
TairInstanceState.Builder
storagePerformanceLevel(com.pulumi.core.Output<java.lang.String> storagePerformanceLevel)
TairInstanceState.Builder
storagePerformanceLevel(java.lang.String storagePerformanceLevel)
TairInstanceState.Builder
storageSizeGb(com.pulumi.core.Output<java.lang.Integer> storageSizeGb)
TairInstanceState.Builder
storageSizeGb(java.lang.Integer storageSizeGb)
TairInstanceState.Builder
tags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> tags)
TairInstanceState.Builder
tags(java.util.Map<java.lang.String,java.lang.Object> tags)
TairInstanceState.Builder
tairInstanceName(com.pulumi.core.Output<java.lang.String> tairInstanceName)
TairInstanceState.Builder
tairInstanceName(java.lang.String tairInstanceName)
TairInstanceState.Builder
vpcId(com.pulumi.core.Output<java.lang.String> vpcId)
TairInstanceState.Builder
vpcId(java.lang.String vpcId)
TairInstanceState.Builder
vswitchId(com.pulumi.core.Output<java.lang.String> vswitchId)
TairInstanceState.Builder
vswitchId(java.lang.String vswitchId)
TairInstanceState.Builder
zoneId(com.pulumi.core.Output<java.lang.String> zoneId)
TairInstanceState.Builder
zoneId(java.lang.String zoneId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(TairInstanceState defaults)
-
-
Method Detail
-
autoRenew
public TairInstanceState.Builder autoRenew(@Nullable com.pulumi.core.Output<java.lang.String> autoRenew)
- Parameters:
autoRenew
- Specifies whether to enable auto-renewal for the instance. Default value: false. Valid values: true(enables auto-renewal), false(disables auto-renewal).- Returns:
- builder
-
autoRenew
public TairInstanceState.Builder autoRenew(java.lang.String autoRenew)
- Parameters:
autoRenew
- Specifies whether to enable auto-renewal for the instance. Default value: false. Valid values: true(enables auto-renewal), false(disables auto-renewal).- Returns:
- builder
-
autoRenewPeriod
public TairInstanceState.Builder autoRenewPeriod(@Nullable com.pulumi.core.Output<java.lang.String> autoRenewPeriod)
- Parameters:
autoRenewPeriod
- The subscription duration that is supported by auto-renewal. Unit: months. Valid values: 1, 2, 3, 6, and 12. This parameter is required only if the AutoRenew parameter is set to true.- Returns:
- builder
-
autoRenewPeriod
public TairInstanceState.Builder autoRenewPeriod(java.lang.String autoRenewPeriod)
- Parameters:
autoRenewPeriod
- The subscription duration that is supported by auto-renewal. Unit: months. Valid values: 1, 2, 3, 6, and 12. This parameter is required only if the AutoRenew parameter is set to true.- Returns:
- builder
-
createTime
public TairInstanceState.Builder createTime(@Nullable com.pulumi.core.Output<java.lang.String> createTime)
- Parameters:
createTime
- The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.- Returns:
- builder
-
createTime
public TairInstanceState.Builder createTime(java.lang.String createTime)
- Parameters:
createTime
- The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.- Returns:
- builder
-
effectiveTime
public TairInstanceState.Builder effectiveTime(@Nullable com.pulumi.core.Output<java.lang.String> effectiveTime)
- Parameters:
effectiveTime
- The time when to change the configurations. Default value: Immediately. Valid values: Immediately (The configurations are immediately changed), MaintainTime (The configurations are changed within the maintenance window).- Returns:
- builder
-
effectiveTime
public TairInstanceState.Builder effectiveTime(java.lang.String effectiveTime)
- Parameters:
effectiveTime
- The time when to change the configurations. Default value: Immediately. Valid values: Immediately (The configurations are immediately changed), MaintainTime (The configurations are changed within the maintenance window).- Returns:
- builder
-
engineVersion
public TairInstanceState.Builder engineVersion(@Nullable com.pulumi.core.Output<java.lang.String> engineVersion)
- Parameters:
engineVersion
- Database version. Default value: 1.0. Rules for transferring parameters of different tair product types: tair_rdb: Compatible with the Redis5.0 and Redis6.0 protocols, and is transmitted to 5.0 or 6.0. tair_scm: The Tair persistent memory is compatible with the Redis6.0 protocol and is passed 1.0. tair_essd: The disk (ESSD/SSD) is compatible with the Redis4.0 and Redis6.0 protocols, and is transmitted to 1.0 and 2.0 respectively.- Returns:
- builder
-
engineVersion
public TairInstanceState.Builder engineVersion(java.lang.String engineVersion)
- Parameters:
engineVersion
- Database version. Default value: 1.0. Rules for transferring parameters of different tair product types: tair_rdb: Compatible with the Redis5.0 and Redis6.0 protocols, and is transmitted to 5.0 or 6.0. tair_scm: The Tair persistent memory is compatible with the Redis6.0 protocol and is passed 1.0. tair_essd: The disk (ESSD/SSD) is compatible with the Redis4.0 and Redis6.0 protocols, and is transmitted to 1.0 and 2.0 respectively.- Returns:
- builder
-
forceUpgrade
public TairInstanceState.Builder forceUpgrade(@Nullable com.pulumi.core.Output<java.lang.Boolean> forceUpgrade)
- Parameters:
forceUpgrade
- Specifies whether to forcefully change the configurations of the instance. Default value: true. Valid values: false (The system does not forcefully change the configurations), true (The system forcefully changes the configurations).- Returns:
- builder
-
forceUpgrade
public TairInstanceState.Builder forceUpgrade(java.lang.Boolean forceUpgrade)
- Parameters:
forceUpgrade
- Specifies whether to forcefully change the configurations of the instance. Default value: true. Valid values: false (The system does not forcefully change the configurations), true (The system forcefully changes the configurations).- Returns:
- builder
-
instanceClass
public TairInstanceState.Builder instanceClass(@Nullable com.pulumi.core.Output<java.lang.String> instanceClass)
- Parameters:
instanceClass
- The instance type of the instance. For more information, see [Instance types](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/instance-types).- Returns:
- builder
-
instanceClass
public TairInstanceState.Builder instanceClass(java.lang.String instanceClass)
- Parameters:
instanceClass
- The instance type of the instance. For more information, see [Instance types](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/instance-types).- Returns:
- builder
-
instanceType
public TairInstanceState.Builder instanceType(@Nullable com.pulumi.core.Output<java.lang.String> instanceType)
- Parameters:
instanceType
- The storage medium of the instance. Valid values: tair_rdb, tair_scm, tair_essd.- Returns:
- builder
-
instanceType
public TairInstanceState.Builder instanceType(java.lang.String instanceType)
- Parameters:
instanceType
- The storage medium of the instance. Valid values: tair_rdb, tair_scm, tair_essd.- Returns:
- builder
-
password
public TairInstanceState.Builder password(@Nullable com.pulumi.core.Output<java.lang.String> password)
- Parameters:
password
- The password that is used to connect to the instance. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ % ^ & * ( ) _ + - =.- Returns:
- builder
-
password
public TairInstanceState.Builder password(java.lang.String password)
- Parameters:
password
- The password that is used to connect to the instance. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ % ^ & * ( ) _ + - =.- Returns:
- builder
-
paymentType
public TairInstanceState.Builder paymentType(@Nullable com.pulumi.core.Output<java.lang.String> paymentType)
- Parameters:
paymentType
- Payment type: Subscription (prepaid), PayAsYouGo (postpaid). Default PayAsYouGo.- Returns:
- builder
-
paymentType
public TairInstanceState.Builder paymentType(java.lang.String paymentType)
- Parameters:
paymentType
- Payment type: Subscription (prepaid), PayAsYouGo (postpaid). Default PayAsYouGo.- Returns:
- builder
-
period
public TairInstanceState.Builder period(@Nullable com.pulumi.core.Output<java.lang.Integer> period)
- Parameters:
period
- The subscription duration. Unit: months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24,36, and 60. This parameter is required only if you set the PaymentType parameter to Subscription.- Returns:
- builder
-
period
public TairInstanceState.Builder period(java.lang.Integer period)
- Parameters:
period
- The subscription duration. Unit: months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24,36, and 60. This parameter is required only if you set the PaymentType parameter to Subscription.- Returns:
- builder
-
port
public TairInstanceState.Builder port(@Nullable com.pulumi.core.Output<java.lang.Integer> port)
- Parameters:
port
- The Tair service port. The service port of the instance. Valid values: 1024 to 65535. Default value: 6379.- Returns:
- builder
-
port
public TairInstanceState.Builder port(java.lang.Integer port)
- Parameters:
port
- The Tair service port. The service port of the instance. Valid values: 1024 to 65535. Default value: 6379.- Returns:
- builder
-
resourceGroupId
public TairInstanceState.Builder resourceGroupId(@Nullable com.pulumi.core.Output<java.lang.String> resourceGroupId)
- Parameters:
resourceGroupId
- The ID of the resource group to which the instance belongs.- Returns:
- builder
-
resourceGroupId
public TairInstanceState.Builder resourceGroupId(java.lang.String resourceGroupId)
- Parameters:
resourceGroupId
- The ID of the resource group to which the instance belongs.- Returns:
- builder
-
secondaryZoneId
public TairInstanceState.Builder secondaryZoneId(@Nullable com.pulumi.core.Output<java.lang.String> secondaryZoneId)
- Parameters:
secondaryZoneId
- The ID of the secondary zone.This parameter is returned only if the instance is deployed in two zones.- Returns:
- builder
-
secondaryZoneId
public TairInstanceState.Builder secondaryZoneId(java.lang.String secondaryZoneId)
- Parameters:
secondaryZoneId
- The ID of the secondary zone.This parameter is returned only if the instance is deployed in two zones.- Returns:
- builder
-
shardCount
public TairInstanceState.Builder shardCount(@Nullable com.pulumi.core.Output<java.lang.Integer> shardCount)
- Parameters:
shardCount
- The number of data nodes in the instance. When 1 is passed, it means that the instance created is a standard architecture with only one data node. You can create an instance in the standard architecture that contains only a single data node. 2 to 32: You can create an instance in the cluster architecture that contains the specified number of data nodes. Only persistent memory-optimized instances can use the cluster architecture. Therefore, you can set this parameter to an integer from 2 to 32 only if you set the InstanceType parameter to tair_scm. It is not allowed to modify the number of shards by modifying this parameter after creating a master-slave architecture instance with or without passing 1.- Returns:
- builder
-
shardCount
public TairInstanceState.Builder shardCount(java.lang.Integer shardCount)
- Parameters:
shardCount
- The number of data nodes in the instance. When 1 is passed, it means that the instance created is a standard architecture with only one data node. You can create an instance in the standard architecture that contains only a single data node. 2 to 32: You can create an instance in the cluster architecture that contains the specified number of data nodes. Only persistent memory-optimized instances can use the cluster architecture. Therefore, you can set this parameter to an integer from 2 to 32 only if you set the InstanceType parameter to tair_scm. It is not allowed to modify the number of shards by modifying this parameter after creating a master-slave architecture instance with or without passing 1.- Returns:
- builder
-
status
public TairInstanceState.Builder status(@Nullable com.pulumi.core.Output<java.lang.String> status)
- Parameters:
status
- The status of the resource.- Returns:
- builder
-
status
public TairInstanceState.Builder status(java.lang.String status)
- Parameters:
status
- The status of the resource.- Returns:
- builder
-
storagePerformanceLevel
public TairInstanceState.Builder storagePerformanceLevel(@Nullable com.pulumi.core.Output<java.lang.String> storagePerformanceLevel)
- Parameters:
storagePerformanceLevel
- The storage type. The value range is [PL1, PL2, and PL3]. The default value is PL1. When the value of instance_type is "tair_essd", this attribute takes effect and is required.- Returns:
- builder
-
storagePerformanceLevel
public TairInstanceState.Builder storagePerformanceLevel(java.lang.String storagePerformanceLevel)
- Parameters:
storagePerformanceLevel
- The storage type. The value range is [PL1, PL2, and PL3]. The default value is PL1. When the value of instance_type is "tair_essd", this attribute takes effect and is required.- Returns:
- builder
-
storageSizeGb
public TairInstanceState.Builder storageSizeGb(@Nullable com.pulumi.core.Output<java.lang.Integer> storageSizeGb)
- Parameters:
storageSizeGb
- The value range of different specifications is different, see [ESSD-based instances](https://www.alibabacloud.com/help/en/tair/product-overview/essd-based-instances). When the value of instance_type is "tair_essd", this attribute takes effect and is required.- Returns:
- builder
-
storageSizeGb
public TairInstanceState.Builder storageSizeGb(java.lang.Integer storageSizeGb)
- Parameters:
storageSizeGb
- The value range of different specifications is different, see [ESSD-based instances](https://www.alibabacloud.com/help/en/tair/product-overview/essd-based-instances). When the value of instance_type is "tair_essd", this attribute takes effect and is required.- Returns:
- builder
-
tags
public TairInstanceState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> tags)
- Parameters:
tags
- The tag of the resource.- Returns:
- builder
-
tags
public TairInstanceState.Builder tags(java.util.Map<java.lang.String,java.lang.Object> tags)
- Parameters:
tags
- The tag of the resource.- Returns:
- builder
-
tairInstanceName
public TairInstanceState.Builder tairInstanceName(@Nullable com.pulumi.core.Output<java.lang.String> tairInstanceName)
- Parameters:
tairInstanceName
- The name of the resource.- Returns:
- builder
-
tairInstanceName
public TairInstanceState.Builder tairInstanceName(java.lang.String tairInstanceName)
- Parameters:
tairInstanceName
- The name of the resource.- Returns:
- builder
-
vpcId
public TairInstanceState.Builder vpcId(@Nullable com.pulumi.core.Output<java.lang.String> vpcId)
- Parameters:
vpcId
- The ID of the virtual private cloud (VPC).- Returns:
- builder
-
vpcId
public TairInstanceState.Builder vpcId(java.lang.String vpcId)
- Parameters:
vpcId
- The ID of the virtual private cloud (VPC).- Returns:
- builder
-
vswitchId
public TairInstanceState.Builder vswitchId(@Nullable com.pulumi.core.Output<java.lang.String> vswitchId)
- Parameters:
vswitchId
- The ID of the vSwitch to which the instance is connected.- Returns:
- builder
-
vswitchId
public TairInstanceState.Builder vswitchId(java.lang.String vswitchId)
- Parameters:
vswitchId
- The ID of the vSwitch to which the instance is connected.- Returns:
- builder
-
zoneId
public TairInstanceState.Builder zoneId(@Nullable com.pulumi.core.Output<java.lang.String> zoneId)
- Parameters:
zoneId
- Zone ID.- Returns:
- builder
-
zoneId
public TairInstanceState.Builder zoneId(java.lang.String zoneId)
- Parameters:
zoneId
- Zone ID.- Returns:
- builder
-
build
public TairInstanceState build()
-
-