Class LaunchTemplateState.Builder

  • Enclosing class:
    LaunchTemplateState

    public static final class LaunchTemplateState.Builder
    extends java.lang.Object
    • Method Detail

      • autoReleaseTime

        public LaunchTemplateState.Builder autoReleaseTime​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> autoReleaseTime)
        Parameters:
        autoReleaseTime - Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
        Returns:
        builder
      • autoReleaseTime

        public LaunchTemplateState.Builder autoReleaseTime​(java.lang.String autoReleaseTime)
        Parameters:
        autoReleaseTime - Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
        Returns:
        builder
      • deploymentSetId

        public LaunchTemplateState.Builder deploymentSetId​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> deploymentSetId)
      • description

        public LaunchTemplateState.Builder description​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - The description of the data disk.
        Returns:
        builder
      • description

        public LaunchTemplateState.Builder description​(java.lang.String description)
        Parameters:
        description - The description of the data disk.
        Returns:
        builder
      • enableVmOsConfig

        public LaunchTemplateState.Builder enableVmOsConfig​(@Nullable
                                                            com.pulumi.core.Output<java.lang.Boolean> enableVmOsConfig)
      • hostName

        public LaunchTemplateState.Builder hostName​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> hostName)
        Parameters:
        hostName - Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
        Returns:
        builder
      • hostName

        public LaunchTemplateState.Builder hostName​(java.lang.String hostName)
        Parameters:
        hostName - Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
        Returns:
        builder
      • imageId

        public LaunchTemplateState.Builder imageId​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> imageId)
        Parameters:
        imageId - Image ID.
        Returns:
        builder
      • imageOwnerAlias

        public LaunchTemplateState.Builder imageOwnerAlias​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> imageOwnerAlias)
      • instanceChargeType

        public LaunchTemplateState.Builder instanceChargeType​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> instanceChargeType)
        Parameters:
        instanceChargeType - Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go. Default value: PostPaid.
        Returns:
        builder
      • instanceChargeType

        public LaunchTemplateState.Builder instanceChargeType​(java.lang.String instanceChargeType)
        Parameters:
        instanceChargeType - Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go. Default value: PostPaid.
        Returns:
        builder
      • instanceName

        public LaunchTemplateState.Builder instanceName​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> instanceName)
        Parameters:
        instanceName - The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
        Returns:
        builder
      • instanceName

        public LaunchTemplateState.Builder instanceName​(java.lang.String instanceName)
        Parameters:
        instanceName - The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
        Returns:
        builder
      • instanceType

        public LaunchTemplateState.Builder instanceType​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> instanceType)
        Parameters:
        instanceType - Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
        Returns:
        builder
      • instanceType

        public LaunchTemplateState.Builder instanceType​(java.lang.String instanceType)
        Parameters:
        instanceType - Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
        Returns:
        builder
      • internetChargeType

        public LaunchTemplateState.Builder internetChargeType​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> internetChargeType)
        Parameters:
        internetChargeType - Internet bandwidth billing method. Optional values: `PayByTraffic` | `PayByBandwidth`.
        Returns:
        builder
      • internetChargeType

        public LaunchTemplateState.Builder internetChargeType​(java.lang.String internetChargeType)
        Parameters:
        internetChargeType - Internet bandwidth billing method. Optional values: `PayByTraffic` | `PayByBandwidth`.
        Returns:
        builder
      • internetMaxBandwidthIn

        public LaunchTemplateState.Builder internetMaxBandwidthIn​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.Integer> internetMaxBandwidthIn)
        Parameters:
        internetMaxBandwidthIn - The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
        Returns:
        builder
      • internetMaxBandwidthIn

        public LaunchTemplateState.Builder internetMaxBandwidthIn​(java.lang.Integer internetMaxBandwidthIn)
        Parameters:
        internetMaxBandwidthIn - The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
        Returns:
        builder
      • internetMaxBandwidthOut

        public LaunchTemplateState.Builder internetMaxBandwidthOut​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.Integer> internetMaxBandwidthOut)
        Parameters:
        internetMaxBandwidthOut - Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
        Returns:
        builder
      • internetMaxBandwidthOut

        public LaunchTemplateState.Builder internetMaxBandwidthOut​(java.lang.Integer internetMaxBandwidthOut)
        Parameters:
        internetMaxBandwidthOut - Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
        Returns:
        builder
      • ioOptimized

        public LaunchTemplateState.Builder ioOptimized​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> ioOptimized)
        Parameters:
        ioOptimized - Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
        Returns:
        builder
      • ioOptimized

        public LaunchTemplateState.Builder ioOptimized​(java.lang.String ioOptimized)
        Parameters:
        ioOptimized - Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
        Returns:
        builder
      • keyPairName

        public LaunchTemplateState.Builder keyPairName​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> keyPairName)
        Parameters:
        keyPairName - The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
        Returns:
        builder
      • keyPairName

        public LaunchTemplateState.Builder keyPairName​(java.lang.String keyPairName)
        Parameters:
        keyPairName - The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
        Returns:
        builder
      • launchTemplateName

        public LaunchTemplateState.Builder launchTemplateName​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> launchTemplateName)
      • name

        @Deprecated
        public LaunchTemplateState.Builder name​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> name)
        Deprecated.
        Field 'name' has been deprecated from provider version 1.120.0. New field 'launch_template_name' instead.
        Parameters:
        name - The name of the data disk.
        Returns:
        builder
      • name

        @Deprecated
        public LaunchTemplateState.Builder name​(java.lang.String name)
        Deprecated.
        Field 'name' has been deprecated from provider version 1.120.0. New field 'launch_template_name' instead.
        Parameters:
        name - The name of the data disk.
        Returns:
        builder
      • networkType

        public LaunchTemplateState.Builder networkType​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> networkType)
        Parameters:
        networkType - Network type of the instance. Value options: `classic` | `vpc`.
        Returns:
        builder
      • networkType

        public LaunchTemplateState.Builder networkType​(java.lang.String networkType)
        Parameters:
        networkType - Network type of the instance. Value options: `classic` | `vpc`.
        Returns:
        builder
      • passwordInherit

        public LaunchTemplateState.Builder passwordInherit​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Boolean> passwordInherit)
      • privateIpAddress

        public LaunchTemplateState.Builder privateIpAddress​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> privateIpAddress)
      • ramRoleName

        public LaunchTemplateState.Builder ramRoleName​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> ramRoleName)
        Parameters:
        ramRoleName - The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
        Returns:
        builder
      • ramRoleName

        public LaunchTemplateState.Builder ramRoleName​(java.lang.String ramRoleName)
        Parameters:
        ramRoleName - The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
        Returns:
        builder
      • resourceGroupId

        public LaunchTemplateState.Builder resourceGroupId​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> resourceGroupId)
      • securityEnhancementStrategy

        public LaunchTemplateState.Builder securityEnhancementStrategy​(@Nullable
                                                                       com.pulumi.core.Output<java.lang.String> securityEnhancementStrategy)
        Parameters:
        securityEnhancementStrategy - Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
        Returns:
        builder
      • securityEnhancementStrategy

        public LaunchTemplateState.Builder securityEnhancementStrategy​(java.lang.String securityEnhancementStrategy)
        Parameters:
        securityEnhancementStrategy - Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
        Returns:
        builder
      • securityGroupId

        public LaunchTemplateState.Builder securityGroupId​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> securityGroupId)
        Parameters:
        securityGroupId - The security group ID must be one in the same VPC.
        Returns:
        builder
      • securityGroupId

        public LaunchTemplateState.Builder securityGroupId​(java.lang.String securityGroupId)
        Parameters:
        securityGroupId - The security group ID must be one in the same VPC.
        Returns:
        builder
      • securityGroupIds

        public LaunchTemplateState.Builder securityGroupIds​(@Nullable
                                                            com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupIds)
      • spotPriceLimit

        public LaunchTemplateState.Builder spotPriceLimit​(@Nullable
                                                          com.pulumi.core.Output<java.lang.Double> spotPriceLimit)
        Parameters:
        spotPriceLimit - Sets the maximum hourly instance price. Supports up to three decimal places.
        Returns:
        builder
      • spotPriceLimit

        public LaunchTemplateState.Builder spotPriceLimit​(java.lang.Double spotPriceLimit)
        Parameters:
        spotPriceLimit - Sets the maximum hourly instance price. Supports up to three decimal places.
        Returns:
        builder
      • spotStrategy

        public LaunchTemplateState.Builder spotStrategy​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> spotStrategy)
        Parameters:
        spotStrategy - The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
        Returns:
        builder
      • spotStrategy

        public LaunchTemplateState.Builder spotStrategy​(java.lang.String spotStrategy)
        Parameters:
        spotStrategy - The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
        Returns:
        builder
      • systemDiskCategory

        @Deprecated
        public LaunchTemplateState.Builder systemDiskCategory​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> systemDiskCategory)
        Deprecated.
        Field 'system_disk_category' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
        Parameters:
        systemDiskCategory - The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
        Returns:
        builder
      • systemDiskCategory

        @Deprecated
        public LaunchTemplateState.Builder systemDiskCategory​(java.lang.String systemDiskCategory)
        Deprecated.
        Field 'system_disk_category' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
        Parameters:
        systemDiskCategory - The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
        Returns:
        builder
      • systemDiskDescription

        @Deprecated
        public LaunchTemplateState.Builder systemDiskDescription​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.String> systemDiskDescription)
        Deprecated.
        Field 'system_disk_description' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
        Parameters:
        systemDiskDescription - System disk description. It cannot begin with http:// or https://.
        Returns:
        builder
      • systemDiskDescription

        @Deprecated
        public LaunchTemplateState.Builder systemDiskDescription​(java.lang.String systemDiskDescription)
        Deprecated.
        Field 'system_disk_description' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
        Parameters:
        systemDiskDescription - System disk description. It cannot begin with http:// or https://.
        Returns:
        builder
      • systemDiskName

        @Deprecated
        public LaunchTemplateState.Builder systemDiskName​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> systemDiskName)
        Deprecated.
        Field 'system_disk_name' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
        Parameters:
        systemDiskName - System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
        Returns:
        builder
      • systemDiskName

        @Deprecated
        public LaunchTemplateState.Builder systemDiskName​(java.lang.String systemDiskName)
        Deprecated.
        Field 'system_disk_name' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
        Parameters:
        systemDiskName - System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
        Returns:
        builder
      • systemDiskSize

        @Deprecated
        public LaunchTemplateState.Builder systemDiskSize​(@Nullable
                                                          com.pulumi.core.Output<java.lang.Integer> systemDiskSize)
        Deprecated.
        Field 'system_disk_size' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
        Parameters:
        systemDiskSize - Size of the system disk, measured in GB. Value range: [20, 500].
        Returns:
        builder
      • systemDiskSize

        @Deprecated
        public LaunchTemplateState.Builder systemDiskSize​(java.lang.Integer systemDiskSize)
        Deprecated.
        Field 'system_disk_size' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
        Parameters:
        systemDiskSize - Size of the system disk, measured in GB. Value range: [20, 500].
        Returns:
        builder
      • tags

        public LaunchTemplateState.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.
        Returns:
        builder
      • tags

        public LaunchTemplateState.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.
        Returns:
        builder
      • templateResourceGroupId

        public LaunchTemplateState.Builder templateResourceGroupId​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.String> templateResourceGroupId)
      • templateTags

        public LaunchTemplateState.Builder templateTags​(@Nullable
                                                        com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> templateTags)
      • userdata

        @Deprecated
        public LaunchTemplateState.Builder userdata​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> userdata)
        Deprecated.
        Field 'userdata' has been deprecated from provider version 1.120.0. New field 'user_data' instead.
        Parameters:
        userdata - User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
        Returns:
        builder
      • userdata

        @Deprecated
        public LaunchTemplateState.Builder userdata​(java.lang.String userdata)
        Deprecated.
        Field 'userdata' has been deprecated from provider version 1.120.0. New field 'user_data' instead.
        Parameters:
        userdata - User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
        Returns:
        builder
      • versionDescription

        public LaunchTemplateState.Builder versionDescription​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> versionDescription)
      • vswitchId

        public LaunchTemplateState.Builder vswitchId​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> vswitchId)
        Parameters:
        vswitchId - The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
        Returns:
        builder
      • vswitchId

        public LaunchTemplateState.Builder vswitchId​(java.lang.String vswitchId)
        Parameters:
        vswitchId - The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
        Returns:
        builder
      • zoneId

        public LaunchTemplateState.Builder zoneId​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> zoneId)
        Parameters:
        zoneId - The zone ID of the instance.
        Returns:
        builder
      • zoneId

        public LaunchTemplateState.Builder zoneId​(java.lang.String zoneId)
        Parameters:
        zoneId - The zone ID of the instance.
        Returns:
        builder