Class TairInstanceState.Builder

  • Enclosing class:
    TairInstanceState

    public static final class TairInstanceState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • 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