Class DedicatedHostState.Builder

  • Enclosing class:
    DedicatedHostState

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

      • allocationStatus

        public DedicatedHostState.Builder allocationStatus​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> allocationStatus)
        Parameters:
        allocationStatus - Specifies whether instances can be created on the host. Valid values: `Allocatable` or `Suspended`. `Allocatable`: Instances can be created on the host. `Suspended`: Instances cannot be created on the host.
        Returns:
        builder
      • allocationStatus

        public DedicatedHostState.Builder allocationStatus​(java.lang.String allocationStatus)
        Parameters:
        allocationStatus - Specifies whether instances can be created on the host. Valid values: `Allocatable` or `Suspended`. `Allocatable`: Instances can be created on the host. `Suspended`: Instances cannot be created on the host.
        Returns:
        builder
      • autoRenew

        public DedicatedHostState.Builder autoRenew​(@Nullable
                                                    com.pulumi.core.Output<java.lang.Boolean> autoRenew)
        Parameters:
        autoRenew - Specifies whether to enable the auto-renewal feature.
        Returns:
        builder
      • autoRenew

        public DedicatedHostState.Builder autoRenew​(java.lang.Boolean autoRenew)
        Parameters:
        autoRenew - Specifies whether to enable the auto-renewal feature.
        Returns:
        builder
      • dedicatedHostGroupId

        public DedicatedHostState.Builder dedicatedHostGroupId​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> dedicatedHostGroupId)
        Parameters:
        dedicatedHostGroupId - The ID of the dedicated cluster.
        Returns:
        builder
      • dedicatedHostGroupId

        public DedicatedHostState.Builder dedicatedHostGroupId​(java.lang.String dedicatedHostGroupId)
        Parameters:
        dedicatedHostGroupId - The ID of the dedicated cluster.
        Returns:
        builder
      • dedicatedHostId

        public DedicatedHostState.Builder dedicatedHostId​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> dedicatedHostId)
        Parameters:
        dedicatedHostId - The ID of the host.
        Returns:
        builder
      • dedicatedHostId

        public DedicatedHostState.Builder dedicatedHostId​(java.lang.String dedicatedHostId)
        Parameters:
        dedicatedHostId - The ID of the host.
        Returns:
        builder
      • hostClass

        public DedicatedHostState.Builder hostClass​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> hostClass)
        Parameters:
        hostClass - The instance type of the host. For more information about the supported instance types of hosts, see [Host specification details](https://www.alibabacloud.com/help/doc-detail/206343.htm).
        Returns:
        builder
      • hostClass

        public DedicatedHostState.Builder hostClass​(java.lang.String hostClass)
        Parameters:
        hostClass - The instance type of the host. For more information about the supported instance types of hosts, see [Host specification details](https://www.alibabacloud.com/help/doc-detail/206343.htm).
        Returns:
        builder
      • hostName

        public DedicatedHostState.Builder hostName​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> hostName)
        Parameters:
        hostName - The name of the host. The name must be `1` to `64` characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.
        Returns:
        builder
      • hostName

        public DedicatedHostState.Builder hostName​(java.lang.String hostName)
        Parameters:
        hostName - The name of the host. The name must be `1` to `64` characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.
        Returns:
        builder
      • imageCategory

        public DedicatedHostState.Builder imageCategory​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> imageCategory)
        Parameters:
        imageCategory - Host Image Category. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
        Returns:
        builder
      • imageCategory

        public DedicatedHostState.Builder imageCategory​(java.lang.String imageCategory)
        Parameters:
        imageCategory - Host Image Category. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
        Returns:
        builder
      • osPassword

        public DedicatedHostState.Builder osPassword​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> osPassword)
        Parameters:
        osPassword - Host password. **NOTE:** The creation of a host password is supported only when the database type is `Tair-PMem`.
        Returns:
        builder
      • osPassword

        public DedicatedHostState.Builder osPassword​(java.lang.String osPassword)
        Parameters:
        osPassword - Host password. **NOTE:** The creation of a host password is supported only when the database type is `Tair-PMem`.
        Returns:
        builder
      • paymentType

        public DedicatedHostState.Builder paymentType​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> paymentType)
        Parameters:
        paymentType - The payment type of the resource. Valid values: `Subscription`.
        Returns:
        builder
      • paymentType

        public DedicatedHostState.Builder paymentType​(java.lang.String paymentType)
        Parameters:
        paymentType - The payment type of the resource. Valid values: `Subscription`.
        Returns:
        builder
      • period

        public DedicatedHostState.Builder period​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> period)
        Parameters:
        period - The unit of the subscription duration. Valid values: `Year`, `Month`, `Week`.
        Returns:
        builder
      • period

        public DedicatedHostState.Builder period​(java.lang.String period)
        Parameters:
        period - The unit of the subscription duration. Valid values: `Year`, `Month`, `Week`.
        Returns:
        builder
      • status

        public DedicatedHostState.Builder status​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> status)
        Parameters:
        status - The state of the host. Valid values: `0:` The host is being created. `1`: The host is running. `2`: The host is faulty. `3`: The host is ready for deactivation. `4`: The host is being maintained. `5`: The host is deactivated. `6`: The host is restarting. `7`: The host is locked.
        Returns:
        builder
      • status

        public DedicatedHostState.Builder status​(java.lang.String status)
        Parameters:
        status - The state of the host. Valid values: `0:` The host is being created. `1`: The host is running. `2`: The host is faulty. `3`: The host is ready for deactivation. `4`: The host is being maintained. `5`: The host is deactivated. `6`: The host is restarting. `7`: The host is locked.
        Returns:
        builder
      • tags

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

        public DedicatedHostState.Builder tags​(java.util.Map<java.lang.String,​java.lang.Object> tags)
        Parameters:
        tags - A mapping of tags to assign to the resource.
        Returns:
        builder
      • usedTime

        public DedicatedHostState.Builder usedTime​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Integer> usedTime)
        Parameters:
        usedTime - The subscription duration of the host. Valid values: * If the Period parameter is set to `Year`, the value of the UsedTime parameter ranges from `1` to `5`. * If the Period parameter is set to `Month`, the value of the UsedTime parameter ranges from `1` to `9`. * If the Period parameter is set to `Week`, the value of the UsedTime parameter ranges from `1`, `2` and `3`.
        Returns:
        builder
      • usedTime

        public DedicatedHostState.Builder usedTime​(java.lang.Integer usedTime)
        Parameters:
        usedTime - The subscription duration of the host. Valid values: * If the Period parameter is set to `Year`, the value of the UsedTime parameter ranges from `1` to `5`. * If the Period parameter is set to `Month`, the value of the UsedTime parameter ranges from `1` to `9`. * If the Period parameter is set to `Week`, the value of the UsedTime parameter ranges from `1`, `2` and `3`.
        Returns:
        builder
      • vswitchId

        public DedicatedHostState.Builder vswitchId​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> vswitchId)
        Parameters:
        vswitchId - The ID of the vSwitch to which the host is connected.
        Returns:
        builder
      • vswitchId

        public DedicatedHostState.Builder vswitchId​(java.lang.String vswitchId)
        Parameters:
        vswitchId - The ID of the vSwitch to which the host is connected.
        Returns:
        builder
      • zoneId

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

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