Skip to content

DiskProps

Properties for defining a Disk.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-disk

Initializer

import com.aliyun.ros.cdk.ens.DiskProps;
DiskProps.builder()
    .category(java.lang.String)
    .category(IResolvable)
    .ensRegionId(java.lang.String)
    .ensRegionId(IResolvable)
    .instanceChargeType(java.lang.String)
    .instanceChargeType(IResolvable)
    .size(java.lang.String)
    .size(IResolvable)
//  .diskName(java.lang.String)
//  .diskName(IResolvable)
//  .encrypted(java.lang.Boolean)
//  .encrypted(IResolvable)
//  .kmsKeyId(java.lang.String)
//  .kmsKeyId(IResolvable)
//  .snapshotId(java.lang.String)
//  .snapshotId(IResolvable)
    .build();

Properties

Name Type Description
category java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property category: The category of the disk.
ensRegionId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ensRegionId: The ID of the edge node.
instanceChargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceChargeType: The billing method of the instance.
size java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property size: The size of the disk.
diskName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property diskName: The name of the disk.
encrypted java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property encrypted: Specifies whether to encrypt the new system disk.
kmsKeyId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk.
snapshotId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property snapshotId: The ID of the snapshot that you want to use to create the disk.

categoryRequired

public java.lang.Object getCategory();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property category: The category of the disk.

Valid values: cloud_efficiency: ultra disk. cloud_ssd: all-flash disk.


ensRegionIdRequired

public java.lang.Object getEnsRegionId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property ensRegionId: The ID of the edge node.


instanceChargeTypeRequired

public java.lang.Object getInstanceChargeType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceChargeType: The billing method of the instance.

Set the value to PostPaid.


sizeRequired

public java.lang.Object getSize();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property size: The size of the disk.

Unit: GiB.


diskNameOptional

public java.lang.Object getDiskName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property diskName: The name of the disk.


encryptedOptional

public java.lang.Object getEncrypted();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property encrypted: Specifies whether to encrypt the new system disk.

Valid values: true false (default): no


kmsKeyIdOptional

public java.lang.Object getKmsKeyId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk.

Note If you set the Encrypted parameter to true, the default service key is used when the KMSKeyId parameter is empty.


snapshotIdOptional

public java.lang.Object getSnapshotId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property snapshotId: The ID of the snapshot that you want to use to create the disk.

The following limits apply to the SnapshotId and Size parameters: If the size of the snapshot specified by SnapshotId is greater than the specified Size value, the size of the created disk is equal to the specified snapshot size. If the size of the snapshot specified by SnapshotId is smaller than the specified Size value, the size of the created disk is equal to the specified Size value.