Class InstanceBlockDevice
- java.lang.Object
-
- com.pulumi.openstack.compute.outputs.InstanceBlockDevice
-
public final class InstanceBlockDevice extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstanceBlockDevice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Integer>bootIndex()static InstanceBlockDevice.Builderbuilder()static InstanceBlockDevice.Builderbuilder(InstanceBlockDevice defaults)java.util.Optional<java.lang.Boolean>deleteOnTermination()java.util.Optional<java.lang.String>destinationType()java.util.Optional<java.lang.String>deviceType()java.util.Optional<java.lang.String>diskBus()java.util.Optional<java.lang.String>guestFormat()java.util.Optional<java.lang.Boolean>multiattach()java.lang.StringsourceType()java.util.Optional<java.lang.String>uuid()java.util.Optional<java.lang.Integer>volumeSize()java.util.Optional<java.lang.String>volumeType()
-
-
-
Method Detail
-
bootIndex
public java.util.Optional<java.lang.Integer> bootIndex()
- Returns:
- The boot index of the volume. It defaults to 0. Changing this creates a new server.
-
deleteOnTermination
public java.util.Optional<java.lang.Boolean> deleteOnTermination()
- Returns:
- Delete the volume / block device upon termination of the instance. Defaults to false. Changing this creates a new server.
-
destinationType
public java.util.Optional<java.lang.String> destinationType()
- Returns:
- The type that gets created. Possible values are "volume" and "local". Changing this creates a new server.
-
deviceType
public java.util.Optional<java.lang.String> deviceType()
- Returns:
- The low-level device type that will be used. Most common thing is to leave this empty. Changing this creates a new server.
-
diskBus
public java.util.Optional<java.lang.String> diskBus()
- Returns:
- The low-level disk bus that will be used. Most common thing is to leave this empty. Changing this creates a new server.
-
guestFormat
public java.util.Optional<java.lang.String> guestFormat()
- Returns:
- 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.
-
multiattach
public java.util.Optional<java.lang.Boolean> multiattach()
- Returns:
- Enable the attachment of multiattach-capable volumes.
-
sourceType
public java.lang.String sourceType()
- Returns:
- The source type of the device. Must be one of "blank", "image", "volume", or "snapshot". Changing this creates a new server.
-
uuid
public java.util.Optional<java.lang.String> uuid()
- Returns:
- The UUID of the image, volume, or snapshot. Changing this creates a new server.
-
volumeSize
public java.util.Optional<java.lang.Integer> volumeSize()
- Returns:
- 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.
-
volumeType
public java.util.Optional<java.lang.String> volumeType()
- Returns:
- 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.
-
builder
public static InstanceBlockDevice.Builder builder()
-
builder
public static InstanceBlockDevice.Builder builder(InstanceBlockDevice defaults)
-
-