Class VolumeState.Builder

  • Enclosing class:
    VolumeState

    public static final class VolumeState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • attachments

        public VolumeState.Builder attachments​(@Nullable
                                               com.pulumi.core.Output<java.util.List<VolumeAttachmentArgs>> attachments)
        Parameters:
        attachments - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
        Returns:
        builder
      • attachments

        public VolumeState.Builder attachments​(java.util.List<VolumeAttachmentArgs> attachments)
        Parameters:
        attachments - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
        Returns:
        builder
      • attachments

        public VolumeState.Builder attachments​(VolumeAttachmentArgs... attachments)
        Parameters:
        attachments - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
        Returns:
        builder
      • availabilityZone

        public VolumeState.Builder availabilityZone​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> availabilityZone)
        Parameters:
        availabilityZone - The availability zone for the volume. Changing this creates a new volume.
        Returns:
        builder
      • availabilityZone

        public VolumeState.Builder availabilityZone​(java.lang.String availabilityZone)
        Parameters:
        availabilityZone - The availability zone for the volume. Changing this creates a new volume.
        Returns:
        builder
      • consistencyGroupId

        public VolumeState.Builder consistencyGroupId​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> consistencyGroupId)
        Parameters:
        consistencyGroupId - The consistency group to place the volume in.
        Returns:
        builder
      • consistencyGroupId

        public VolumeState.Builder consistencyGroupId​(java.lang.String consistencyGroupId)
        Parameters:
        consistencyGroupId - The consistency group to place the volume in.
        Returns:
        builder
      • description

        public VolumeState.Builder description​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - A description of the volume. Changing this updates the volume's description.
        Returns:
        builder
      • description

        public VolumeState.Builder description​(java.lang.String description)
        Parameters:
        description - A description of the volume. Changing this updates the volume's description.
        Returns:
        builder
      • enableOnlineResize

        public VolumeState.Builder enableOnlineResize​(@Nullable
                                                      com.pulumi.core.Output<java.lang.Boolean> enableOnlineResize)
        Parameters:
        enableOnlineResize - When this option is set it allows extending attached volumes. Note: updating size of an attached volume requires Cinder support for version 3.42 and a compatible storage driver.
        Returns:
        builder
      • enableOnlineResize

        public VolumeState.Builder enableOnlineResize​(java.lang.Boolean enableOnlineResize)
        Parameters:
        enableOnlineResize - When this option is set it allows extending attached volumes. Note: updating size of an attached volume requires Cinder support for version 3.42 and a compatible storage driver.
        Returns:
        builder
      • imageId

        public VolumeState.Builder imageId​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> imageId)
        Parameters:
        imageId - The image ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • imageId

        public VolumeState.Builder imageId​(java.lang.String imageId)
        Parameters:
        imageId - The image ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • metadata

        public VolumeState.Builder metadata​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> metadata)
        Parameters:
        metadata - Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
        Returns:
        builder
      • metadata

        public VolumeState.Builder metadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
        Parameters:
        metadata - Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
        Returns:
        builder
      • multiattach

        public VolumeState.Builder multiattach​(@Nullable
                                               com.pulumi.core.Output<java.lang.Boolean> multiattach)
        Parameters:
        multiattach - Allow the volume to be attached to more than one Compute instance.
        Returns:
        builder
      • multiattach

        public VolumeState.Builder multiattach​(java.lang.Boolean multiattach)
        Parameters:
        multiattach - Allow the volume to be attached to more than one Compute instance.
        Returns:
        builder
      • name

        public VolumeState.Builder name​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - A unique name for the volume. Changing this updates the volume's name.
        Returns:
        builder
      • name

        public VolumeState.Builder name​(java.lang.String name)
        Parameters:
        name - A unique name for the volume. Changing this updates the volume's name.
        Returns:
        builder
      • region

        public VolumeState.Builder region​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The region in which to create the volume. If omitted, the `region` argument of the provider is used. Changing this creates a new volume.
        Returns:
        builder
      • region

        public VolumeState.Builder region​(java.lang.String region)
        Parameters:
        region - The region in which to create the volume. If omitted, the `region` argument of the provider is used. Changing this creates a new volume.
        Returns:
        builder
      • schedulerHints

        public VolumeState.Builder schedulerHints​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<VolumeSchedulerHintArgs>> schedulerHints)
        Parameters:
        schedulerHints - Provide the Cinder scheduler with hints on where to instantiate a volume in the OpenStack cloud. The available hints are described below.
        Returns:
        builder
      • schedulerHints

        public VolumeState.Builder schedulerHints​(java.util.List<VolumeSchedulerHintArgs> schedulerHints)
        Parameters:
        schedulerHints - Provide the Cinder scheduler with hints on where to instantiate a volume in the OpenStack cloud. The available hints are described below.
        Returns:
        builder
      • schedulerHints

        public VolumeState.Builder schedulerHints​(VolumeSchedulerHintArgs... schedulerHints)
        Parameters:
        schedulerHints - Provide the Cinder scheduler with hints on where to instantiate a volume in the OpenStack cloud. The available hints are described below.
        Returns:
        builder
      • size

        public VolumeState.Builder size​(@Nullable
                                        com.pulumi.core.Output<java.lang.Integer> size)
        Parameters:
        size - The size of the volume to create (in gigabytes).
        Returns:
        builder
      • size

        public VolumeState.Builder size​(java.lang.Integer size)
        Parameters:
        size - The size of the volume to create (in gigabytes).
        Returns:
        builder
      • snapshotId

        public VolumeState.Builder snapshotId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> snapshotId)
        Parameters:
        snapshotId - The snapshot ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • snapshotId

        public VolumeState.Builder snapshotId​(java.lang.String snapshotId)
        Parameters:
        snapshotId - The snapshot ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • sourceReplica

        public VolumeState.Builder sourceReplica​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> sourceReplica)
        Parameters:
        sourceReplica - The volume ID to replicate with.
        Returns:
        builder
      • sourceReplica

        public VolumeState.Builder sourceReplica​(java.lang.String sourceReplica)
        Parameters:
        sourceReplica - The volume ID to replicate with.
        Returns:
        builder
      • sourceVolId

        public VolumeState.Builder sourceVolId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> sourceVolId)
        Parameters:
        sourceVolId - The volume ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • sourceVolId

        public VolumeState.Builder sourceVolId​(java.lang.String sourceVolId)
        Parameters:
        sourceVolId - The volume ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • volumeType

        public VolumeState.Builder volumeType​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> volumeType)
        Parameters:
        volumeType - The type of volume to create. Changing this creates a new volume.
        Returns:
        builder
      • volumeType

        public VolumeState.Builder volumeType​(java.lang.String volumeType)
        Parameters:
        volumeType - The type of volume to create. Changing this creates a new volume.
        Returns:
        builder