Class ClusterArgs.Builder

  • Enclosing class:
    ClusterArgs

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

      • Builder

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

        public ClusterArgs.Builder modifyType​(@Nullable
                                              com.pulumi.core.Output<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)
      • 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