public static final class CreateDesktopsRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateDesktopsRequest.Builder |
amount(Integer amount)
The number of cloud computers that you want to create.
|
CreateDesktopsRequest.Builder |
autoPay(Boolean autoPay)
Specifies whether to enable automatic payment.
|
CreateDesktopsRequest.Builder |
autoRenew(Boolean autoRenew)
Specifies whether to enable auto-renewal.
|
CreateDesktopsRequest |
build() |
CreateDesktopsRequest.Builder |
bundleId(String bundleId)
The ID of the cloud computer template.
|
CreateDesktopsRequest.Builder |
bundleModels(List<CreateDesktopsRequest.BundleModels> bundleModels)
The cloud computer templates.
|
CreateDesktopsRequest.Builder |
chargeType(String chargeType)
The billing method of the cloud computers.
|
CreateDesktopsRequest.Builder |
desktopMemberIp(String desktopMemberIp)
The private IP address of the cloud computer.
|
CreateDesktopsRequest.Builder |
desktopName(String desktopName)
The name of the cloud computer.
|
CreateDesktopsRequest.Builder |
desktopNameSuffix(Boolean desktopNameSuffix)
Specifies whether to automatically add suffixes to the names of cloud computers when you create multiple cloud computers at the same time.
|
CreateDesktopsRequest.Builder |
desktopTimers(List<CreateDesktopsRequest.DesktopTimers> desktopTimers)
The details of the scheduled task on cloud computers.
|
CreateDesktopsRequest.Builder |
directoryId(String directoryId)
> This parameter is not publicly available.
|
CreateDesktopsRequest.Builder |
endUserId(List<String> endUserId)
The IDs of the end users to which you want to assign the cloud computers.
|
CreateDesktopsRequest.Builder |
groupId(String groupId)
The ID of the cloud computer pool.
|
CreateDesktopsRequest.Builder |
hostname(String hostname)
The custom hostnames of the cloud computers.
|
CreateDesktopsRequest.Builder |
monthDesktopSetting(CreateDesktopsRequest.MonthDesktopSetting monthDesktopSetting)
> This parameter is not publicly available.
|
CreateDesktopsRequest.Builder |
officeSiteId(String officeSiteId)
The office network ID.
|
CreateDesktopsRequest.Builder |
period(Integer period)
The subscription duration of the cloud desktop that you want to create.
|
CreateDesktopsRequest.Builder |
periodUnit(String periodUnit)
The unit of the subscription duration.
|
CreateDesktopsRequest.Builder |
policyGroupId(String policyGroupId)
The ID of the policy.
|
CreateDesktopsRequest.Builder |
promotionId(String promotionId)
The ID of the sales promotion.
|
CreateDesktopsRequest.Builder |
regionId(String regionId)
The region ID.
|
CreateDesktopsRequest.Builder |
resourceGroupId(String resourceGroupId)
ResourceGroupId.
|
CreateDesktopsRequest.Builder |
snapshotPolicyId(String snapshotPolicyId)
SnapshotPolicyId.
|
CreateDesktopsRequest.Builder |
tag(List<CreateDesktopsRequest.Tag> tag)
The tags that you want to add to the cloud desktop.
|
CreateDesktopsRequest.Builder |
userAssignMode(String userAssignMode)
How the cloud computers are assigned.
|
CreateDesktopsRequest.Builder |
userCommands(List<CreateDesktopsRequest.UserCommands> userCommands)
Details about the custom command scripts.
|
CreateDesktopsRequest.Builder |
userName(String userName)
> This parameter is not publicly available.
|
CreateDesktopsRequest.Builder |
volumeEncryptionEnabled(Boolean volumeEncryptionEnabled)
Specifies whether to enable disk encryption.
|
CreateDesktopsRequest.Builder |
volumeEncryptionKey(String volumeEncryptionKey)
The ID of the Key Management Service (KMS) key that you want to use when disk encryption is enabled.
|
CreateDesktopsRequest.Builder |
vpcId(String vpcId)
> This parameter is not publicly available.
|
public CreateDesktopsRequest.Builder amount(Integer amount)
public CreateDesktopsRequest.Builder autoPay(Boolean autoPay)
public CreateDesktopsRequest.Builder autoRenew(Boolean autoRenew)
public CreateDesktopsRequest.Builder bundleId(String bundleId)
public CreateDesktopsRequest.Builder bundleModels(List<CreateDesktopsRequest.BundleModels> bundleModels)
public CreateDesktopsRequest.Builder chargeType(String chargeType)
Default value: PostPaid. Valid values: * Postpaid: pay-as-you-go * PrePaid: subscription
public CreateDesktopsRequest.Builder desktopMemberIp(String desktopMemberIp)
public CreateDesktopsRequest.Builder desktopName(String desktopName)
* The name must be 1 to 64 characters in length. * The name must start with a letter but cannot start with `http://` or `https://`. * The name can only contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-).
public CreateDesktopsRequest.Builder desktopNameSuffix(Boolean desktopNameSuffix)
Default value: true. Valid values: * true * False
public CreateDesktopsRequest.Builder desktopTimers(List<CreateDesktopsRequest.DesktopTimers> desktopTimers)
public CreateDesktopsRequest.Builder directoryId(String directoryId)
public CreateDesktopsRequest.Builder endUserId(List<String> endUserId)
public CreateDesktopsRequest.Builder groupId(String groupId)
public CreateDesktopsRequest.Builder hostname(String hostname)
The hostnames must meet the following requirements: * The hostnames must be 2 to 15 characters in length. * The hostnames can contain only letters, digits, and hyphens (-). The hostnames cannot start or end with a hyphen (-), contain consecutive hyphens (-), or contain only digits. When you create multiple cloud computers, you can use the `name_prefix[begin_number,bits]name_suffix` naming format to name the cloud computers. For example, if you set the value of the Hostname parameter to ecd-\[1,4]-test, the hostname of the first cloud computer is ecd-0001-test, the hostname of the second cloud computer is ecd-0002-test, and so on. * `name_prefix`: the prefix of the hostname. * `[begin_number,bits]`: the sequential number in the hostname. The `begin_number` value is the starting digit. Valid values of begin_number: 0 to 999999. Default value: 0. The `bits` value is the number of digits. Valid values: 1 to 6. Default value: 6. * `name_suffix`: the suffix of the hostname.
public CreateDesktopsRequest.Builder monthDesktopSetting(CreateDesktopsRequest.MonthDesktopSetting monthDesktopSetting)
public CreateDesktopsRequest.Builder officeSiteId(String officeSiteId)
public CreateDesktopsRequest.Builder period(Integer period)
* Valid values if the `PeriodUnit` parameter is set to `Month`: * 1 * 2 * 3 * 6 * Valid values if the `PeriodUnit` parameter is set to `Year`: * 1 * 2 * 3 * 4 * 5
public CreateDesktopsRequest.Builder periodUnit(String periodUnit)
public CreateDesktopsRequest.Builder policyGroupId(String policyGroupId)
public CreateDesktopsRequest.Builder promotionId(String promotionId)
public CreateDesktopsRequest.Builder regionId(String regionId)
public CreateDesktopsRequest.Builder resourceGroupId(String resourceGroupId)
public CreateDesktopsRequest.Builder snapshotPolicyId(String snapshotPolicyId)
public CreateDesktopsRequest.Builder tag(List<CreateDesktopsRequest.Tag> tag)
public CreateDesktopsRequest.Builder userAssignMode(String userAssignMode)
> If you do not specify the `EndUserId` parameter, the cloud computers are not assigned to end users after the cloud computers are created. Default value: ALL. Valid values: * ALL: If you specify the EndUserId parameter, the cloud computers are assigned to all specified end users after the cloud computers are created. * PER_USER: If you specify the EndUserId parameter, the cloud computers are evenly assigned to the specified end users after the cloud computers are created. In this case, you must make sure that the value of the Amount parameter can be divided by the N value of the EndUserId.N parameter that you specify.
public CreateDesktopsRequest.Builder userCommands(List<CreateDesktopsRequest.UserCommands> userCommands)
public CreateDesktopsRequest.Builder userName(String userName)
public CreateDesktopsRequest.Builder volumeEncryptionEnabled(Boolean volumeEncryptionEnabled)
public CreateDesktopsRequest.Builder volumeEncryptionKey(String volumeEncryptionKey)
public CreateDesktopsRequest.Builder vpcId(String vpcId)
public CreateDesktopsRequest build()
Copyright © 2024. All rights reserved.