Package com.pulumi.alicloud.ecs.inputs
Class DiskState.Builder
- java.lang.Object
-
- com.pulumi.alicloud.ecs.inputs.DiskState.Builder
-
- Enclosing class:
- DiskState
public static final class DiskState.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DiskState.Builder
advancedFeatures(com.pulumi.core.Output<java.lang.String> advancedFeatures)
DiskState.Builder
advancedFeatures(java.lang.String advancedFeatures)
DiskState.Builder
availabilityZone(com.pulumi.core.Output<java.lang.String> availabilityZone)
Deprecated.Field 'availability_zone' has been deprecated from provider version 1.122.0.DiskState.Builder
availabilityZone(java.lang.String availabilityZone)
Deprecated.Field 'availability_zone' has been deprecated from provider version 1.122.0.DiskState
build()
DiskState.Builder
category(com.pulumi.core.Output<java.lang.String> category)
DiskState.Builder
category(java.lang.String category)
DiskState.Builder
deleteAutoSnapshot(com.pulumi.core.Output<java.lang.Boolean> deleteAutoSnapshot)
DiskState.Builder
deleteAutoSnapshot(java.lang.Boolean deleteAutoSnapshot)
DiskState.Builder
deleteWithInstance(com.pulumi.core.Output<java.lang.Boolean> deleteWithInstance)
DiskState.Builder
deleteWithInstance(java.lang.Boolean deleteWithInstance)
DiskState.Builder
description(com.pulumi.core.Output<java.lang.String> description)
DiskState.Builder
description(java.lang.String description)
DiskState.Builder
diskName(com.pulumi.core.Output<java.lang.String> diskName)
DiskState.Builder
diskName(java.lang.String diskName)
DiskState.Builder
dryRun(com.pulumi.core.Output<java.lang.Boolean> dryRun)
DiskState.Builder
dryRun(java.lang.Boolean dryRun)
DiskState.Builder
enableAutoSnapshot(com.pulumi.core.Output<java.lang.Boolean> enableAutoSnapshot)
DiskState.Builder
enableAutoSnapshot(java.lang.Boolean enableAutoSnapshot)
DiskState.Builder
encryptAlgorithm(com.pulumi.core.Output<java.lang.String> encryptAlgorithm)
DiskState.Builder
encryptAlgorithm(java.lang.String encryptAlgorithm)
DiskState.Builder
encrypted(com.pulumi.core.Output<java.lang.Boolean> encrypted)
DiskState.Builder
encrypted(java.lang.Boolean encrypted)
DiskState.Builder
instanceId(com.pulumi.core.Output<java.lang.String> instanceId)
DiskState.Builder
instanceId(java.lang.String instanceId)
DiskState.Builder
kmsKeyId(com.pulumi.core.Output<java.lang.String> kmsKeyId)
DiskState.Builder
kmsKeyId(java.lang.String kmsKeyId)
DiskState.Builder
name(com.pulumi.core.Output<java.lang.String> name)
Deprecated.Field 'name' has been deprecated from provider version 1.122.0.DiskState.Builder
name(java.lang.String name)
Deprecated.Field 'name' has been deprecated from provider version 1.122.0.DiskState.Builder
paymentType(com.pulumi.core.Output<java.lang.String> paymentType)
DiskState.Builder
paymentType(java.lang.String paymentType)
DiskState.Builder
performanceLevel(com.pulumi.core.Output<java.lang.String> performanceLevel)
DiskState.Builder
performanceLevel(java.lang.String performanceLevel)
DiskState.Builder
resourceGroupId(com.pulumi.core.Output<java.lang.String> resourceGroupId)
DiskState.Builder
resourceGroupId(java.lang.String resourceGroupId)
DiskState.Builder
size(com.pulumi.core.Output<java.lang.Integer> size)
DiskState.Builder
size(java.lang.Integer size)
DiskState.Builder
snapshotId(com.pulumi.core.Output<java.lang.String> snapshotId)
DiskState.Builder
snapshotId(java.lang.String snapshotId)
DiskState.Builder
status(com.pulumi.core.Output<java.lang.String> status)
DiskState.Builder
status(java.lang.String status)
DiskState.Builder
storageSetId(com.pulumi.core.Output<java.lang.String> storageSetId)
DiskState.Builder
storageSetId(java.lang.String storageSetId)
DiskState.Builder
storageSetPartitionNumber(com.pulumi.core.Output<java.lang.Integer> storageSetPartitionNumber)
DiskState.Builder
storageSetPartitionNumber(java.lang.Integer storageSetPartitionNumber)
DiskState.Builder
tags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> tags)
DiskState.Builder
tags(java.util.Map<java.lang.String,java.lang.Object> tags)
DiskState.Builder
type(com.pulumi.core.Output<java.lang.String> type)
DiskState.Builder
type(java.lang.String type)
DiskState.Builder
zoneId(com.pulumi.core.Output<java.lang.String> zoneId)
DiskState.Builder
zoneId(java.lang.String zoneId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DiskState defaults)
-
-
Method Detail
-
advancedFeatures
public DiskState.Builder advancedFeatures(@Nullable com.pulumi.core.Output<java.lang.String> advancedFeatures)
-
advancedFeatures
public DiskState.Builder advancedFeatures(java.lang.String advancedFeatures)
-
availabilityZone
@Deprecated public DiskState.Builder availabilityZone(@Nullable com.pulumi.core.Output<java.lang.String> availabilityZone)
Deprecated.Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead- Parameters:
availabilityZone
- The Zone to create the disk in.- Returns:
- builder
-
availabilityZone
@Deprecated public DiskState.Builder availabilityZone(java.lang.String availabilityZone)
Deprecated.Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead- Parameters:
availabilityZone
- The Zone to create the disk in.- Returns:
- builder
-
category
public DiskState.Builder category(@Nullable com.pulumi.core.Output<java.lang.String> category)
- Parameters:
category
- Category of the disk. Valid values are `cloud`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`. Default is `cloud_efficiency`.- Returns:
- builder
-
category
public DiskState.Builder category(java.lang.String category)
- Parameters:
category
- Category of the disk. Valid values are `cloud`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`. Default is `cloud_efficiency`.- Returns:
- builder
-
deleteAutoSnapshot
public DiskState.Builder deleteAutoSnapshot(@Nullable com.pulumi.core.Output<java.lang.Boolean> deleteAutoSnapshot)
- Parameters:
deleteAutoSnapshot
- Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.- Returns:
- builder
-
deleteAutoSnapshot
public DiskState.Builder deleteAutoSnapshot(java.lang.Boolean deleteAutoSnapshot)
- Parameters:
deleteAutoSnapshot
- Indicates whether the automatic snapshot is deleted when the disk is released. Default value: false.- Returns:
- builder
-
deleteWithInstance
public DiskState.Builder deleteWithInstance(@Nullable com.pulumi.core.Output<java.lang.Boolean> deleteWithInstance)
- Parameters:
deleteWithInstance
- Indicates whether the disk is released together with the instance: Default value: false.- Returns:
- builder
-
deleteWithInstance
public DiskState.Builder deleteWithInstance(java.lang.Boolean deleteWithInstance)
- Parameters:
deleteWithInstance
- Indicates whether the disk is released together with the instance: Default value: false.- Returns:
- builder
-
description
public DiskState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.- Returns:
- builder
-
description
public DiskState.Builder description(java.lang.String description)
- Parameters:
description
- Description of the disk. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.- Returns:
- builder
-
diskName
public DiskState.Builder diskName(@Nullable com.pulumi.core.Output<java.lang.String> diskName)
-
diskName
public DiskState.Builder diskName(java.lang.String diskName)
-
dryRun
public DiskState.Builder dryRun(@Nullable com.pulumi.core.Output<java.lang.Boolean> dryRun)
-
dryRun
public DiskState.Builder dryRun(java.lang.Boolean dryRun)
-
enableAutoSnapshot
public DiskState.Builder enableAutoSnapshot(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableAutoSnapshot)
- Parameters:
enableAutoSnapshot
- Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.- Returns:
- builder
-
enableAutoSnapshot
public DiskState.Builder enableAutoSnapshot(java.lang.Boolean enableAutoSnapshot)
- Parameters:
enableAutoSnapshot
- Indicates whether to apply a created automatic snapshot policy to the disk. Default value: false.- Returns:
- builder
-
encryptAlgorithm
public DiskState.Builder encryptAlgorithm(@Nullable com.pulumi.core.Output<java.lang.String> encryptAlgorithm)
-
encryptAlgorithm
public DiskState.Builder encryptAlgorithm(java.lang.String encryptAlgorithm)
-
encrypted
public DiskState.Builder encrypted(@Nullable com.pulumi.core.Output<java.lang.Boolean> encrypted)
- Parameters:
encrypted
- If true, the disk will be encrypted, conflict with `snapshot_id`.- Returns:
- builder
-
encrypted
public DiskState.Builder encrypted(java.lang.Boolean encrypted)
- Parameters:
encrypted
- If true, the disk will be encrypted, conflict with `snapshot_id`.- Returns:
- builder
-
instanceId
public DiskState.Builder instanceId(@Nullable com.pulumi.core.Output<java.lang.String> instanceId)
-
instanceId
public DiskState.Builder instanceId(java.lang.String instanceId)
-
kmsKeyId
public DiskState.Builder kmsKeyId(@Nullable com.pulumi.core.Output<java.lang.String> kmsKeyId)
- Parameters:
kmsKeyId
- The ID of the KMS key corresponding to the data disk, The specified parameter `Encrypted` must be `true` when KmsKeyId is not empty.- Returns:
- builder
-
kmsKeyId
public DiskState.Builder kmsKeyId(java.lang.String kmsKeyId)
- Parameters:
kmsKeyId
- The ID of the KMS key corresponding to the data disk, The specified parameter `Encrypted` must be `true` when KmsKeyId is not empty.- Returns:
- builder
-
name
@Deprecated public DiskState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
Deprecated.Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.- Parameters:
name
- Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.- Returns:
- builder
-
name
@Deprecated public DiskState.Builder name(java.lang.String name)
Deprecated.Field 'name' has been deprecated from provider version 1.122.0. New field 'disk_name' instead.- Parameters:
name
- Name of the ECS disk. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.- Returns:
- builder
-
paymentType
public DiskState.Builder paymentType(@Nullable com.pulumi.core.Output<java.lang.String> paymentType)
-
paymentType
public DiskState.Builder paymentType(java.lang.String paymentType)
-
performanceLevel
public DiskState.Builder performanceLevel(@Nullable com.pulumi.core.Output<java.lang.String> performanceLevel)
- Parameters:
performanceLevel
- Specifies the performance level of an ESSD when you create the ESSD. Default value: `PL1`. Valid values:- Returns:
- builder
-
performanceLevel
public DiskState.Builder performanceLevel(java.lang.String performanceLevel)
- Parameters:
performanceLevel
- Specifies the performance level of an ESSD when you create the ESSD. Default value: `PL1`. Valid values:- Returns:
- builder
-
resourceGroupId
public DiskState.Builder resourceGroupId(@Nullable com.pulumi.core.Output<java.lang.String> resourceGroupId)
- Parameters:
resourceGroupId
- The Id of resource group which the disk belongs. > **NOTE:** Disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.- Returns:
- builder
-
resourceGroupId
public DiskState.Builder resourceGroupId(java.lang.String resourceGroupId)
- Parameters:
resourceGroupId
- The Id of resource group which the disk belongs. > **NOTE:** Disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.- Returns:
- builder
-
size
public DiskState.Builder size(@Nullable com.pulumi.core.Output<java.lang.Integer> size)
- Parameters:
size
- The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error `InvalidDiskSize.TooSmall`.- Returns:
- builder
-
size
public DiskState.Builder size(java.lang.Integer size)
- Parameters:
size
- The size of the disk in GiBs. When resize the disk, the new size must be greater than the former value, or you would get an error `InvalidDiskSize.TooSmall`.- Returns:
- builder
-
snapshotId
public DiskState.Builder snapshotId(@Nullable com.pulumi.core.Output<java.lang.String> snapshotId)
- Parameters:
snapshotId
- A snapshot to base the disk off of. If the disk size required by snapshot is greater than `size`, the `size` will be ignored, conflict with `encrypted`.- Returns:
- builder
-
snapshotId
public DiskState.Builder snapshotId(java.lang.String snapshotId)
- Parameters:
snapshotId
- A snapshot to base the disk off of. If the disk size required by snapshot is greater than `size`, the `size` will be ignored, conflict with `encrypted`.- Returns:
- builder
-
status
public DiskState.Builder status(@Nullable com.pulumi.core.Output<java.lang.String> status)
- Parameters:
status
- The disk status.- Returns:
- builder
-
status
public DiskState.Builder status(java.lang.String status)
- Parameters:
status
- The disk status.- Returns:
- builder
-
storageSetId
public DiskState.Builder storageSetId(@Nullable com.pulumi.core.Output<java.lang.String> storageSetId)
-
storageSetId
public DiskState.Builder storageSetId(java.lang.String storageSetId)
-
storageSetPartitionNumber
public DiskState.Builder storageSetPartitionNumber(@Nullable com.pulumi.core.Output<java.lang.Integer> storageSetPartitionNumber)
-
storageSetPartitionNumber
public DiskState.Builder storageSetPartitionNumber(java.lang.Integer storageSetPartitionNumber)
-
tags
public DiskState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> tags)
- Parameters:
tags
- A mapping of tags to assign to the resource.- Returns:
- builder
-
tags
public DiskState.Builder tags(java.util.Map<java.lang.String,java.lang.Object> tags)
- Parameters:
tags
- A mapping of tags to assign to the resource.- Returns:
- builder
-
type
public DiskState.Builder type(@Nullable com.pulumi.core.Output<java.lang.String> type)
-
type
public DiskState.Builder type(java.lang.String type)
-
zoneId
public DiskState.Builder zoneId(@Nullable com.pulumi.core.Output<java.lang.String> zoneId)
-
zoneId
public DiskState.Builder zoneId(java.lang.String zoneId)
-
build
public DiskState build()
-
-