Class VolumeV2State.Builder
- java.lang.Object
-
- com.pulumi.openstack.blockstorage.inputs.VolumeV2State.Builder
-
- Enclosing class:
- VolumeV2State
public static final class VolumeV2State.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(VolumeV2State defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeV2State.Builderattachments(com.pulumi.core.Output<java.util.List<VolumeV2AttachmentArgs>> attachments)VolumeV2State.Builderattachments(VolumeV2AttachmentArgs... attachments)VolumeV2State.Builderattachments(java.util.List<VolumeV2AttachmentArgs> attachments)VolumeV2State.BuilderavailabilityZone(com.pulumi.core.Output<java.lang.String> availabilityZone)VolumeV2State.BuilderavailabilityZone(java.lang.String availabilityZone)VolumeV2Statebuild()VolumeV2State.BuilderconsistencyGroupId(com.pulumi.core.Output<java.lang.String> consistencyGroupId)VolumeV2State.BuilderconsistencyGroupId(java.lang.String consistencyGroupId)VolumeV2State.Builderdescription(com.pulumi.core.Output<java.lang.String> description)VolumeV2State.Builderdescription(java.lang.String description)VolumeV2State.BuilderimageId(com.pulumi.core.Output<java.lang.String> imageId)VolumeV2State.BuilderimageId(java.lang.String imageId)VolumeV2State.Buildermetadata(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> metadata)VolumeV2State.Buildermetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)VolumeV2State.Buildername(com.pulumi.core.Output<java.lang.String> name)VolumeV2State.Buildername(java.lang.String name)VolumeV2State.Builderregion(com.pulumi.core.Output<java.lang.String> region)VolumeV2State.Builderregion(java.lang.String region)VolumeV2State.BuilderschedulerHints(com.pulumi.core.Output<java.util.List<VolumeV2SchedulerHintArgs>> schedulerHints)VolumeV2State.BuilderschedulerHints(VolumeV2SchedulerHintArgs... schedulerHints)VolumeV2State.BuilderschedulerHints(java.util.List<VolumeV2SchedulerHintArgs> schedulerHints)VolumeV2State.Buildersize(com.pulumi.core.Output<java.lang.Integer> size)VolumeV2State.Buildersize(java.lang.Integer size)VolumeV2State.BuildersnapshotId(com.pulumi.core.Output<java.lang.String> snapshotId)VolumeV2State.BuildersnapshotId(java.lang.String snapshotId)VolumeV2State.BuildersourceReplica(com.pulumi.core.Output<java.lang.String> sourceReplica)VolumeV2State.BuildersourceReplica(java.lang.String sourceReplica)VolumeV2State.BuildersourceVolId(com.pulumi.core.Output<java.lang.String> sourceVolId)VolumeV2State.BuildersourceVolId(java.lang.String sourceVolId)VolumeV2State.BuildervolumeType(com.pulumi.core.Output<java.lang.String> volumeType)VolumeV2State.BuildervolumeType(java.lang.String volumeType)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(VolumeV2State defaults)
-
-
Method Detail
-
attachments
public VolumeV2State.Builder attachments(@Nullable com.pulumi.core.Output<java.util.List<VolumeV2AttachmentArgs>> 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 VolumeV2State.Builder attachments(java.util.List<VolumeV2AttachmentArgs> 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 VolumeV2State.Builder attachments(VolumeV2AttachmentArgs... 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 VolumeV2State.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 VolumeV2State.Builder availabilityZone(java.lang.String availabilityZone)
- Parameters:
availabilityZone- The availability zone for the volume. Changing this creates a new volume.- Returns:
- builder
-
consistencyGroupId
public VolumeV2State.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 VolumeV2State.Builder consistencyGroupId(java.lang.String consistencyGroupId)
- Parameters:
consistencyGroupId- The consistency group to place the volume in.- Returns:
- builder
-
description
public VolumeV2State.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 VolumeV2State.Builder description(java.lang.String description)
- Parameters:
description- A description of the volume. Changing this updates the volume's description.- Returns:
- builder
-
imageId
public VolumeV2State.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 VolumeV2State.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 VolumeV2State.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 VolumeV2State.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
-
name
public VolumeV2State.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 VolumeV2State.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 VolumeV2State.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 VolumeV2State.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 VolumeV2State.Builder schedulerHints(@Nullable com.pulumi.core.Output<java.util.List<VolumeV2SchedulerHintArgs>> 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 VolumeV2State.Builder schedulerHints(java.util.List<VolumeV2SchedulerHintArgs> 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 VolumeV2State.Builder schedulerHints(VolumeV2SchedulerHintArgs... 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 VolumeV2State.Builder size(@Nullable com.pulumi.core.Output<java.lang.Integer> size)
- Parameters:
size- The size of the volume to create (in gigabytes). Changing this creates a new volume.- Returns:
- builder
-
size
public VolumeV2State.Builder size(java.lang.Integer size)
- Parameters:
size- The size of the volume to create (in gigabytes). Changing this creates a new volume.- Returns:
- builder
-
snapshotId
public VolumeV2State.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 VolumeV2State.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 VolumeV2State.Builder sourceReplica(@Nullable com.pulumi.core.Output<java.lang.String> sourceReplica)
- Parameters:
sourceReplica- The volume ID to replicate with.- Returns:
- builder
-
sourceReplica
public VolumeV2State.Builder sourceReplica(java.lang.String sourceReplica)
- Parameters:
sourceReplica- The volume ID to replicate with.- Returns:
- builder
-
sourceVolId
public VolumeV2State.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 VolumeV2State.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 VolumeV2State.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 VolumeV2State.Builder volumeType(java.lang.String volumeType)
- Parameters:
volumeType- The type of volume to create. Changing this creates a new volume.- Returns:
- builder
-
build
public VolumeV2State build()
-
-