Class DiskState.Builder

  • Enclosing class:
    DiskState

    public static final class DiskState.Builder
    extends java.lang.Object
    • 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)
      • dryRun

        public DiskState.Builder dryRun​(@Nullable
                                        com.pulumi.core.Output<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)
      • 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)
      • zoneId

        public DiskState.Builder zoneId​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> zoneId)