public static final class CreateDrdsInstanceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateDrdsInstanceRequest |
build() |
CreateDrdsInstanceRequest.Builder |
clientToken(String clientToken)
Specifies the client token that is used to ensure the idempotence of the request.
|
CreateDrdsInstanceRequest.Builder |
description(String description)
Specifies the description of the instance.
|
CreateDrdsInstanceRequest.Builder |
duration(Integer duration)
Specifies the purchase duration of the subscription instance.
|
CreateDrdsInstanceRequest.Builder |
instanceSeries(String instanceSeries)
Specifies the instance type of the instance.
|
CreateDrdsInstanceRequest.Builder |
isAutoRenew(Boolean isAutoRenew)
Specifies whether to enable automatic renewal.
|
CreateDrdsInstanceRequest.Builder |
isHa(Boolean isHa)
Specifies whether the instance is a high-availability instance.
|
CreateDrdsInstanceRequest.Builder |
masterInstId(String masterInstId)
Specifies the ID of the primary instance.
|
CreateDrdsInstanceRequest.Builder |
mySQLVersion(Integer mySQLVersion)
Specifies the MySQL version that is supported by the instance.
|
CreateDrdsInstanceRequest.Builder |
payType(String payType)
Specifies the billing method of the instance.
|
CreateDrdsInstanceRequest.Builder |
pricingCycle(String pricingCycle)
Specifies the unit of the subscription duration of the subscription instance.
|
CreateDrdsInstanceRequest.Builder |
quantity(Integer quantity)
Specifies the number of instances to be created.
|
CreateDrdsInstanceRequest.Builder |
regionId(String regionId)
Specifies the region ID of the instance.
|
CreateDrdsInstanceRequest.Builder |
resourceGroupId(String resourceGroupId)
Specifies the ID of the resource group.
|
CreateDrdsInstanceRequest.Builder |
specification(String specification)
Specifies the specification code of the instance.
|
CreateDrdsInstanceRequest.Builder |
type(String type)
Specifies the type of the instance.
|
CreateDrdsInstanceRequest.Builder |
vpcId(String vpcId)
Specifies the ID of the VPC.
|
CreateDrdsInstanceRequest.Builder |
vswitchId(String vswitchId)
Specifies the ID of the vSwitch.
|
CreateDrdsInstanceRequest.Builder |
zoneId(String zoneId)
Specifies the zone ID of the instance.
|
public CreateDrdsInstanceRequest.Builder clientToken(String clientToken)
public CreateDrdsInstanceRequest.Builder description(String description)
* The description cannot contain the prefix http:// or https://. * The description must start with a letter or a Chinese character, and can contain uppercase and lowercase letters, Chinese characters, digits, underscores (\_), and hyphens (-). * The description must be 2 to 256 characters in length.
public CreateDrdsInstanceRequest.Builder duration(Integer duration)
* If the PricingCycle parameter is set to year, the value range of the Duration parameter is 1 to 3. * If the PricingCycle parameter is set to month, the value range of the Duration parameter is 1 to 9. > This parameter only takes effect when the PayType parameter is set to drdsPre.
public CreateDrdsInstanceRequest.Builder instanceSeries(String instanceSeries)
* **drds.sn2.4c16g**: The instance is of the Starter Edition. * **drds.sn2.8c32g**: The instance is of the Standard Edition * **drds.sn2.16c64g**: The instance is of the Enterprise Edition.
public CreateDrdsInstanceRequest.Builder isAutoRenew(Boolean isAutoRenew)
* **true**: If the PricingCycle parameter is set to month, the subscription is automatically renewed for one month. If the PricingCycle parameter is set to year, the subscription is automatically renewed for one year. * **false**: The auto-renewal feature is disabled for the instance. > This parameter only takes effect when the PayType parameter is set to drdsPre.
public CreateDrdsInstanceRequest.Builder masterInstId(String masterInstId)
public CreateDrdsInstanceRequest.Builder mySQLVersion(Integer mySQLVersion)
* **5**: The instance is fully compatible with MySQL 5.x. This value is the default value. * **8**: The instance is fully compatible with MySQL 8.0. > This parameter only takes effect when you create a primary instance. By default, the MySQL version of the read-only instance is the same as that of the primary instance.
public CreateDrdsInstanceRequest.Builder payType(String payType)
* **drdsPre**: The instance uses the subscription billing method. * **drdsPost**: The instance uses the pay-as-you-go billing method. * **drdsRo**: By default, the pay-as-you-go billing method is used when you create read-only instances.
public CreateDrdsInstanceRequest.Builder pricingCycle(String pricingCycle)
* **year**: The unit of the subscription duration is year. * **month**: The unit of the subscription duration is month. > This parameter is required if you set the PayType parameter to drdsPre.
public CreateDrdsInstanceRequest.Builder quantity(Integer quantity)
public CreateDrdsInstanceRequest.Builder regionId(String regionId)
public CreateDrdsInstanceRequest.Builder resourceGroupId(String resourceGroupId)
public CreateDrdsInstanceRequest.Builder specification(String specification)
public CreateDrdsInstanceRequest.Builder type(String type)
> You can also set the value to 1 to specify that the instance is a dedicated instance.
public CreateDrdsInstanceRequest.Builder vpcId(String vpcId)
public CreateDrdsInstanceRequest.Builder vswitchId(String vswitchId)
public CreateDrdsInstanceRequest.Builder zoneId(String zoneId)
public CreateDrdsInstanceRequest.Builder isHa(Boolean isHa)
public CreateDrdsInstanceRequest build()
Copyright © 2024. All rights reserved.