Class VolumeArgs.Builder

  • Enclosing class:
    VolumeArgs

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

      • Builder

        public Builder()
      • Builder

        public Builder​(VolumeArgs defaults)
    • Method Detail

      • availabilityZone

        public VolumeArgs.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 VolumeArgs.Builder availabilityZone​(java.lang.String availabilityZone)
        Parameters:
        availabilityZone - The availability zone for the volume. Changing this creates a new volume.
        Returns:
        builder
      • consistencyGroupId

        public VolumeArgs.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 VolumeArgs.Builder consistencyGroupId​(java.lang.String consistencyGroupId)
        Parameters:
        consistencyGroupId - The consistency group to place the volume in.
        Returns:
        builder
      • description

        public VolumeArgs.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 VolumeArgs.Builder description​(java.lang.String description)
        Parameters:
        description - A description of the volume. Changing this updates the volume's description.
        Returns:
        builder
      • enableOnlineResize

        public VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.Builder multiattach​(java.lang.Boolean multiattach)
        Parameters:
        multiattach - Allow the volume to be attached to more than one Compute instance.
        Returns:
        builder
      • name

        public VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.Builder size​(com.pulumi.core.Output<java.lang.Integer> size)
        Parameters:
        size - The size of the volume to create (in gigabytes).
        Returns:
        builder
      • size

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

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

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

        public VolumeArgs.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 VolumeArgs.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 VolumeArgs.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 VolumeArgs.Builder volumeType​(java.lang.String volumeType)
        Parameters:
        volumeType - The type of volume to create. Changing this creates a new volume.
        Returns:
        builder