Package com.pulumi.alicloud.ens
Class DiskArgs.Builder
- java.lang.Object
-
- com.pulumi.alicloud.ens.DiskArgs.Builder
-
- Enclosing class:
- DiskArgs
public static final class DiskArgs.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskArgs
build()
DiskArgs.Builder
category(com.pulumi.core.Output<java.lang.String> category)
DiskArgs.Builder
category(java.lang.String category)
DiskArgs.Builder
diskName(com.pulumi.core.Output<java.lang.String> diskName)
DiskArgs.Builder
diskName(java.lang.String diskName)
DiskArgs.Builder
encrypted(com.pulumi.core.Output<java.lang.Boolean> encrypted)
DiskArgs.Builder
encrypted(java.lang.Boolean encrypted)
DiskArgs.Builder
ensRegionId(com.pulumi.core.Output<java.lang.String> ensRegionId)
DiskArgs.Builder
ensRegionId(java.lang.String ensRegionId)
DiskArgs.Builder
kmsKeyId(com.pulumi.core.Output<java.lang.String> kmsKeyId)
DiskArgs.Builder
kmsKeyId(java.lang.String kmsKeyId)
DiskArgs.Builder
paymentType(com.pulumi.core.Output<java.lang.String> paymentType)
DiskArgs.Builder
paymentType(java.lang.String paymentType)
DiskArgs.Builder
size(com.pulumi.core.Output<java.lang.Integer> size)
DiskArgs.Builder
size(java.lang.Integer size)
DiskArgs.Builder
snapshotId(com.pulumi.core.Output<java.lang.String> snapshotId)
DiskArgs.Builder
snapshotId(java.lang.String snapshotId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DiskArgs defaults)
-
-
Method Detail
-
category
public DiskArgs.Builder category(com.pulumi.core.Output<java.lang.String> category)
- Parameters:
category
- Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).- Returns:
- builder
-
category
public DiskArgs.Builder category(java.lang.String category)
- Parameters:
category
- Types of disk instancesValues: cloud_efficiency (high-efficiency cloud disk),cloud_ssd (full Flash cloud disk),local_hdd (local HDD),local_ssd (local ssd).- Returns:
- builder
-
diskName
public DiskArgs.Builder diskName(@Nullable com.pulumi.core.Output<java.lang.String> diskName)
- Parameters:
diskName
- Name of the disk instance.- Returns:
- builder
-
diskName
public DiskArgs.Builder diskName(java.lang.String diskName)
- Parameters:
diskName
- Name of the disk instance.- Returns:
- builder
-
encrypted
public DiskArgs.Builder encrypted(@Nullable com.pulumi.core.Output<java.lang.Boolean> encrypted)
- Parameters:
encrypted
- Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:`true`, `false`(default).- Returns:
- builder
-
encrypted
public DiskArgs.Builder encrypted(java.lang.Boolean encrypted)
- Parameters:
encrypted
- Indicates whether the cloud disk is Encrypted. If Encrypted = true, the default service key is used when KMSKeyId is not entered. Value range:`true`, `false`(default).- Returns:
- builder
-
ensRegionId
public DiskArgs.Builder ensRegionId(com.pulumi.core.Output<java.lang.String> ensRegionId)
- Parameters:
ensRegionId
- Ens node IDExample value: cn-chengdu-telecom.- Returns:
- builder
-
ensRegionId
public DiskArgs.Builder ensRegionId(java.lang.String ensRegionId)
- Parameters:
ensRegionId
- Ens node IDExample value: cn-chengdu-telecom.- Returns:
- builder
-
kmsKeyId
public DiskArgs.Builder kmsKeyId(@Nullable com.pulumi.core.Output<java.lang.String> kmsKeyId)
- Parameters:
kmsKeyId
- The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.- Returns:
- builder
-
kmsKeyId
public DiskArgs.Builder kmsKeyId(java.lang.String kmsKeyId)
- Parameters:
kmsKeyId
- The ID of the KMS key used by the cloud disk. If Encrypted is set to true, the service default key is used when KMSKeyId is empty.- Returns:
- builder
-
paymentType
public DiskArgs.Builder paymentType(com.pulumi.core.Output<java.lang.String> paymentType)
- Parameters:
paymentType
- Billing type of the disk instanceValue: PayAsYouGo.- Returns:
- builder
-
paymentType
public DiskArgs.Builder paymentType(java.lang.String paymentType)
- Parameters:
paymentType
- Billing type of the disk instanceValue: PayAsYouGo.- Returns:
- builder
-
size
public DiskArgs.Builder size(@Nullable com.pulumi.core.Output<java.lang.Integer> size)
- Parameters:
size
- The size of the disk instance. Unit: GiB.- Returns:
- builder
-
size
public DiskArgs.Builder size(java.lang.Integer size)
- Parameters:
size
- The size of the disk instance. Unit: GiB.- Returns:
- builder
-
snapshotId
public DiskArgs.Builder snapshotId(@Nullable com.pulumi.core.Output<java.lang.String> snapshotId)
- Parameters:
snapshotId
- The ID of the snapshot used to create the cloud disk. The SnapshotId and Size parameters have the following limitations: - If the snapshot capacity corresponding to the **SnapshotId** parameter is greater than the specified **Size** parameter, the Size of the cloud disk created is the Size of the specified snapshot. - If the snapshot capacity corresponding to the **SnapshotId** parameter is less than the set **Size** parameter value, the Size of the cloud disk created is the specified **Size** parameter value.- Returns:
- builder
-
snapshotId
public DiskArgs.Builder snapshotId(java.lang.String snapshotId)
- Parameters:
snapshotId
- The ID of the snapshot used to create the cloud disk. The SnapshotId and Size parameters have the following limitations: - If the snapshot capacity corresponding to the **SnapshotId** parameter is greater than the specified **Size** parameter, the Size of the cloud disk created is the Size of the specified snapshot. - If the snapshot capacity corresponding to the **SnapshotId** parameter is less than the set **Size** parameter value, the Size of the cloud disk created is the specified **Size** parameter value.- Returns:
- builder
-
build
public DiskArgs build()
-
-