Class VolumeState.Builder
- java.lang.Object
-
- com.pulumi.openstack.blockstorage.inputs.VolumeState.Builder
-
- Enclosing class:
- VolumeState
public static final class VolumeState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(VolumeState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeState.Builderattachments(com.pulumi.core.Output<java.util.List<VolumeAttachmentArgs>> attachments)VolumeState.Builderattachments(VolumeAttachmentArgs... attachments)VolumeState.Builderattachments(java.util.List<VolumeAttachmentArgs> attachments)VolumeState.BuilderavailabilityZone(com.pulumi.core.Output<java.lang.String> availabilityZone)VolumeState.BuilderavailabilityZone(java.lang.String availabilityZone)VolumeStatebuild()VolumeState.BuilderconsistencyGroupId(com.pulumi.core.Output<java.lang.String> consistencyGroupId)VolumeState.BuilderconsistencyGroupId(java.lang.String consistencyGroupId)VolumeState.Builderdescription(com.pulumi.core.Output<java.lang.String> description)VolumeState.Builderdescription(java.lang.String description)VolumeState.BuilderenableOnlineResize(com.pulumi.core.Output<java.lang.Boolean> enableOnlineResize)VolumeState.BuilderenableOnlineResize(java.lang.Boolean enableOnlineResize)VolumeState.BuilderimageId(com.pulumi.core.Output<java.lang.String> imageId)VolumeState.BuilderimageId(java.lang.String imageId)VolumeState.Buildermetadata(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> metadata)VolumeState.Buildermetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)VolumeState.Buildermultiattach(com.pulumi.core.Output<java.lang.Boolean> multiattach)VolumeState.Buildermultiattach(java.lang.Boolean multiattach)VolumeState.Buildername(com.pulumi.core.Output<java.lang.String> name)VolumeState.Buildername(java.lang.String name)VolumeState.Builderregion(com.pulumi.core.Output<java.lang.String> region)VolumeState.Builderregion(java.lang.String region)VolumeState.BuilderschedulerHints(com.pulumi.core.Output<java.util.List<VolumeSchedulerHintArgs>> schedulerHints)VolumeState.BuilderschedulerHints(VolumeSchedulerHintArgs... schedulerHints)VolumeState.BuilderschedulerHints(java.util.List<VolumeSchedulerHintArgs> schedulerHints)VolumeState.Buildersize(com.pulumi.core.Output<java.lang.Integer> size)VolumeState.Buildersize(java.lang.Integer size)VolumeState.BuildersnapshotId(com.pulumi.core.Output<java.lang.String> snapshotId)VolumeState.BuildersnapshotId(java.lang.String snapshotId)VolumeState.BuildersourceReplica(com.pulumi.core.Output<java.lang.String> sourceReplica)VolumeState.BuildersourceReplica(java.lang.String sourceReplica)VolumeState.BuildersourceVolId(com.pulumi.core.Output<java.lang.String> sourceVolId)VolumeState.BuildersourceVolId(java.lang.String sourceVolId)VolumeState.BuildervolumeType(com.pulumi.core.Output<java.lang.String> volumeType)VolumeState.BuildervolumeType(java.lang.String volumeType)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(VolumeState defaults)
-
-
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
-
build
public VolumeState build()
-
-