public static final class CreateAutoProvisioningGroupRequest.DataDisk.Builder extends Object
构造器和说明 |
---|
Builder() |
public CreateAutoProvisioningGroupRequest.DataDisk.Builder category(String category)
- cloud_efficiency: ultra disk - cloud_ssd: standard SSD - cloud_essd: ESSD - cloud: basic disk For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud. When both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence.
public CreateAutoProvisioningGroupRequest.DataDisk.Builder deleteWithInstance(Boolean deleteWithInstance)
- true: releases data disk N when the instance is released. - false: does not release data disk N when the instance is released. Default value: true. When both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence.
public CreateAutoProvisioningGroupRequest.DataDisk.Builder description(String description)
public CreateAutoProvisioningGroupRequest.DataDisk.Builder device(String device)
public CreateAutoProvisioningGroupRequest.DataDisk.Builder diskName(String diskName)
This parameter is empty by default. When both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence.
public CreateAutoProvisioningGroupRequest.DataDisk.Builder encrypted(Boolean encrypted)
- true: encrypts data disk N. - false: does not encrypt data disk N. Default value: false. When both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence.
public CreateAutoProvisioningGroupRequest.DataDisk.Builder kmsKeyId(String kmsKeyId)
public CreateAutoProvisioningGroupRequest.DataDisk.Builder performanceLevel(String performanceLevel)
- PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. - PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. - PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. - PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. For more information about ESSD performance levels, see [ESSDs](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/essds). When both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence.
public CreateAutoProvisioningGroupRequest.DataDisk.Builder size(Integer size)
- Valid values when LaunchConfiguration.DataDisk.N.Category is set to cloud_efficiency: 20 to 32768. - Valid values when LaunchConfiguration.DataDisk.N.Category is set to cloud_ssd: 20 to 32768. - Valid values when LaunchConfiguration.DataDisk.N.Category is set to cloud_essd: depend on the `LaunchConfiguration.DataDisk.N.PerformanceLevel` value. - Valid values when LaunchConfiguration.DataDisk.N.PerformanceLevel is set to PL0: 40 to 32768. - Valid values when LaunchConfiguration.DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768. - Valid values when LaunchConfiguration.DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768. - Valid values when LaunchConfiguration.DataDisk.N.PerformanceLevel is set to PL3: 1261 to 32768. - Valid values when LaunchConfiguration.DataDisk.N.Category is set to cloud: 5 to 2000. > The value of LaunchConfiguration.DataDisk.N.Size must be greater than or equal to the size of the snapshot specified by the `LaunchConfiguration.DataDisk.N.SnapshotId` parameter. When both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence.
public CreateAutoProvisioningGroupRequest.DataDisk.Builder snapshotId(String snapshotId)
After this parameter is specified, the `LaunchConfiguration.DataDisk.N.Size` parameter is ignored. The size of data disk N is the same as that of the snapshot specified by this parameter. Use snapshots that were created on or after July 15, 2013. Otherwise, an error is returned and your request is rejected. When both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence.
public CreateAutoProvisioningGroupRequest.DataDisk build()
Copyright © 2023. All rights reserved.