Class InstanceBlockDeviceArgs.Builder
- java.lang.Object
-
- com.pulumi.openstack.compute.inputs.InstanceBlockDeviceArgs.Builder
-
- Enclosing class:
- InstanceBlockDeviceArgs
public static final class InstanceBlockDeviceArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(InstanceBlockDeviceArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceBlockDeviceArgs.BuilderbootIndex(com.pulumi.core.Output<java.lang.Integer> bootIndex)InstanceBlockDeviceArgs.BuilderbootIndex(java.lang.Integer bootIndex)InstanceBlockDeviceArgsbuild()InstanceBlockDeviceArgs.BuilderdeleteOnTermination(com.pulumi.core.Output<java.lang.Boolean> deleteOnTermination)InstanceBlockDeviceArgs.BuilderdeleteOnTermination(java.lang.Boolean deleteOnTermination)InstanceBlockDeviceArgs.BuilderdestinationType(com.pulumi.core.Output<java.lang.String> destinationType)InstanceBlockDeviceArgs.BuilderdestinationType(java.lang.String destinationType)InstanceBlockDeviceArgs.BuilderdeviceType(com.pulumi.core.Output<java.lang.String> deviceType)InstanceBlockDeviceArgs.BuilderdeviceType(java.lang.String deviceType)InstanceBlockDeviceArgs.BuilderdiskBus(com.pulumi.core.Output<java.lang.String> diskBus)InstanceBlockDeviceArgs.BuilderdiskBus(java.lang.String diskBus)InstanceBlockDeviceArgs.BuilderguestFormat(com.pulumi.core.Output<java.lang.String> guestFormat)InstanceBlockDeviceArgs.BuilderguestFormat(java.lang.String guestFormat)InstanceBlockDeviceArgs.Buildermultiattach(com.pulumi.core.Output<java.lang.Boolean> multiattach)InstanceBlockDeviceArgs.Buildermultiattach(java.lang.Boolean multiattach)InstanceBlockDeviceArgs.BuildersourceType(com.pulumi.core.Output<java.lang.String> sourceType)InstanceBlockDeviceArgs.BuildersourceType(java.lang.String sourceType)InstanceBlockDeviceArgs.Builderuuid(com.pulumi.core.Output<java.lang.String> uuid)InstanceBlockDeviceArgs.Builderuuid(java.lang.String uuid)InstanceBlockDeviceArgs.BuildervolumeSize(com.pulumi.core.Output<java.lang.Integer> volumeSize)InstanceBlockDeviceArgs.BuildervolumeSize(java.lang.Integer volumeSize)InstanceBlockDeviceArgs.BuildervolumeType(com.pulumi.core.Output<java.lang.String> volumeType)InstanceBlockDeviceArgs.BuildervolumeType(java.lang.String volumeType)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(InstanceBlockDeviceArgs defaults)
-
-
Method Detail
-
bootIndex
public InstanceBlockDeviceArgs.Builder bootIndex(@Nullable com.pulumi.core.Output<java.lang.Integer> bootIndex)
- Parameters:
bootIndex- The boot index of the volume. It defaults to 0. Changing this creates a new server.- Returns:
- builder
-
bootIndex
public InstanceBlockDeviceArgs.Builder bootIndex(java.lang.Integer bootIndex)
- Parameters:
bootIndex- The boot index of the volume. It defaults to 0. Changing this creates a new server.- Returns:
- builder
-
deleteOnTermination
public InstanceBlockDeviceArgs.Builder deleteOnTermination(@Nullable com.pulumi.core.Output<java.lang.Boolean> deleteOnTermination)
- Parameters:
deleteOnTermination- Delete the volume / block device upon termination of the instance. Defaults to false. Changing this creates a new server.- Returns:
- builder
-
deleteOnTermination
public InstanceBlockDeviceArgs.Builder deleteOnTermination(java.lang.Boolean deleteOnTermination)
- Parameters:
deleteOnTermination- Delete the volume / block device upon termination of the instance. Defaults to false. Changing this creates a new server.- Returns:
- builder
-
destinationType
public InstanceBlockDeviceArgs.Builder destinationType(@Nullable com.pulumi.core.Output<java.lang.String> destinationType)
- Parameters:
destinationType- The type that gets created. Possible values are "volume" and "local". Changing this creates a new server.- Returns:
- builder
-
destinationType
public InstanceBlockDeviceArgs.Builder destinationType(java.lang.String destinationType)
- Parameters:
destinationType- The type that gets created. Possible values are "volume" and "local". Changing this creates a new server.- Returns:
- builder
-
deviceType
public InstanceBlockDeviceArgs.Builder deviceType(@Nullable com.pulumi.core.Output<java.lang.String> deviceType)
- Parameters:
deviceType- The low-level device type that will be used. Most common thing is to leave this empty. Changing this creates a new server.- Returns:
- builder
-
deviceType
public InstanceBlockDeviceArgs.Builder deviceType(java.lang.String deviceType)
- Parameters:
deviceType- The low-level device type that will be used. Most common thing is to leave this empty. Changing this creates a new server.- Returns:
- builder
-
diskBus
public InstanceBlockDeviceArgs.Builder diskBus(@Nullable com.pulumi.core.Output<java.lang.String> diskBus)
- Parameters:
diskBus- The low-level disk bus that will be used. Most common thing is to leave this empty. Changing this creates a new server.- Returns:
- builder
-
diskBus
public InstanceBlockDeviceArgs.Builder diskBus(java.lang.String diskBus)
- Parameters:
diskBus- The low-level disk bus that will be used. Most common thing is to leave this empty. Changing this creates a new server.- Returns:
- builder
-
guestFormat
public InstanceBlockDeviceArgs.Builder guestFormat(@Nullable com.pulumi.core.Output<java.lang.String> guestFormat)
- Parameters:
guestFormat- Specifies the guest server disk file system format, such as `ext2`, `ext3`, `ext4`, `xfs` or `swap`. Swap block device mappings have the following restrictions: source_type must be blank and destination_type must be local and only one swap disk per server and the size of the swap disk must be less than or equal to the swap size of the flavor. Changing this creates a new server.- Returns:
- builder
-
guestFormat
public InstanceBlockDeviceArgs.Builder guestFormat(java.lang.String guestFormat)
- Parameters:
guestFormat- Specifies the guest server disk file system format, such as `ext2`, `ext3`, `ext4`, `xfs` or `swap`. Swap block device mappings have the following restrictions: source_type must be blank and destination_type must be local and only one swap disk per server and the size of the swap disk must be less than or equal to the swap size of the flavor. Changing this creates a new server.- Returns:
- builder
-
multiattach
public InstanceBlockDeviceArgs.Builder multiattach(@Nullable com.pulumi.core.Output<java.lang.Boolean> multiattach)
- Parameters:
multiattach- Enable the attachment of multiattach-capable volumes.- Returns:
- builder
-
multiattach
public InstanceBlockDeviceArgs.Builder multiattach(java.lang.Boolean multiattach)
- Parameters:
multiattach- Enable the attachment of multiattach-capable volumes.- Returns:
- builder
-
sourceType
public InstanceBlockDeviceArgs.Builder sourceType(com.pulumi.core.Output<java.lang.String> sourceType)
- Parameters:
sourceType- The source type of the device. Must be one of "blank", "image", "volume", or "snapshot". Changing this creates a new server.- Returns:
- builder
-
sourceType
public InstanceBlockDeviceArgs.Builder sourceType(java.lang.String sourceType)
- Parameters:
sourceType- The source type of the device. Must be one of "blank", "image", "volume", or "snapshot". Changing this creates a new server.- Returns:
- builder
-
uuid
public InstanceBlockDeviceArgs.Builder uuid(@Nullable com.pulumi.core.Output<java.lang.String> uuid)
- Parameters:
uuid- The UUID of the image, volume, or snapshot. Changing this creates a new server.- Returns:
- builder
-
uuid
public InstanceBlockDeviceArgs.Builder uuid(java.lang.String uuid)
- Parameters:
uuid- The UUID of the image, volume, or snapshot. Changing this creates a new server.- Returns:
- builder
-
volumeSize
public InstanceBlockDeviceArgs.Builder volumeSize(@Nullable com.pulumi.core.Output<java.lang.Integer> volumeSize)
- Parameters:
volumeSize- The size of the volume to create (in gigabytes). Required in the following combinations: source=image and destination=volume, source=blank and destination=local, and source=blank and destination=volume. Changing this creates a new server.- Returns:
- builder
-
volumeSize
public InstanceBlockDeviceArgs.Builder volumeSize(java.lang.Integer volumeSize)
- Parameters:
volumeSize- The size of the volume to create (in gigabytes). Required in the following combinations: source=image and destination=volume, source=blank and destination=local, and source=blank and destination=volume. Changing this creates a new server.- Returns:
- builder
-
volumeType
public InstanceBlockDeviceArgs.Builder volumeType(@Nullable com.pulumi.core.Output<java.lang.String> volumeType)
- Parameters:
volumeType- The volume type that will be used, for example SSD or HDD storage. The available options depend on how your specific OpenStack cloud is configured and what classes of storage are provided. Changing this creates a new server.- Returns:
- builder
-
volumeType
public InstanceBlockDeviceArgs.Builder volumeType(java.lang.String volumeType)
- Parameters:
volumeType- The volume type that will be used, for example SSD or HDD storage. The available options depend on how your specific OpenStack cloud is configured and what classes of storage are provided. Changing this creates a new server.- Returns:
- builder
-
build
public InstanceBlockDeviceArgs build()
-
-