public static interface InstanceConfiguration.Builder extends SdkPojo, CopyableBuilder<InstanceConfiguration.Builder,InstanceConfiguration>
| Modifier and Type | Method and Description |
|---|---|
InstanceConfiguration.Builder |
blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
|
InstanceConfiguration.Builder |
blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
|
InstanceConfiguration.Builder |
blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
|
InstanceConfiguration.Builder |
image(String image)
The AMI ID to use as the base image for a container build and test instance.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInstanceConfiguration.Builder image(String image)
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
image - The AMI ID to use as the base image for a container build and test instance. If not specified, Image
Builder will use the appropriate ECS-optimized AMI as a base image.InstanceConfiguration.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
blockDeviceMappings - Defines the block devices to attach for building an instance from this Image Builder AMI.InstanceConfiguration.Builder blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
blockDeviceMappings - Defines the block devices to attach for building an instance from this Image Builder AMI.InstanceConfiguration.Builder blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
This is a convenience method that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called
immediately and its result is passed to #blockDeviceMappings(List) .blockDeviceMappings - a consumer that will call methods on List.Builder #blockDeviceMappings(List) Copyright © 2022. All rights reserved.