Interface BlockDeviceMapping.Builder

All Superinterfaces:
Buildable, CopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>, SdkBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>, SdkPojo
Enclosing class:
BlockDeviceMapping

public static interface BlockDeviceMapping.Builder extends SdkPojo, CopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>
  • Method Details

    • deviceName

      BlockDeviceMapping.Builder deviceName(String deviceName)

      The device name that is exposed to the instance, such as /dev/sdh. For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE and OpsWorks Stacks will provide the correct device name.

      Parameters:
      deviceName - The device name that is exposed to the instance, such as /dev/sdh. For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE and OpsWorks Stacks will provide the correct device name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • noDevice

      BlockDeviceMapping.Builder noDevice(String noDevice)

      Suppresses the specified device included in the AMI's block device mapping.

      Parameters:
      noDevice - Suppresses the specified device included in the AMI's block device mapping.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • virtualName

      BlockDeviceMapping.Builder virtualName(String virtualName)

      The virtual device name. For more information, see BlockDeviceMapping.

      Parameters:
      virtualName - The virtual device name. For more information, see BlockDeviceMapping.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ebs

      An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.

      Parameters:
      ebs - An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ebs

      An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.

      This is a convenience method that creates an instance of the EbsBlockDevice.Builder avoiding the need to create one manually via EbsBlockDevice.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ebs(EbsBlockDevice).

      Parameters:
      ebs - a consumer that will call methods on EbsBlockDevice.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: