Interface InstanceConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceConfiguration.Builder,InstanceConfiguration>,SdkBuilder<InstanceConfiguration.Builder,InstanceConfiguration>,SdkPojo
- Enclosing class:
- InstanceConfiguration
public static interface InstanceConfiguration.Builder extends SdkPojo, CopyableBuilder<InstanceConfiguration.Builder,InstanceConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceConfiguration.BuilderblockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)Defines the block devices to attach for building an instance from this Image Builder AMI.InstanceConfiguration.BuilderblockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings)Defines the block devices to attach for building an instance from this Image Builder AMI.InstanceConfiguration.BuilderblockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)Defines the block devices to attach for building an instance from this Image Builder AMI.InstanceConfiguration.Builderimage(String image)The AMI ID to use as the base image for a container build and test instance.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
image
InstanceConfiguration.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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
InstanceConfiguration.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
- Parameters:
blockDeviceMappings- Defines the block devices to attach for building an instance from this Image Builder AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
InstanceConfiguration.Builder blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
- Parameters:
blockDeviceMappings- Defines the block devices to attach for building an instance from this Image Builder AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
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 theInstanceBlockDeviceMapping.Builderavoiding the need to create one manually viaInstanceBlockDeviceMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#blockDeviceMappings(List.) - Parameters:
blockDeviceMappings- a consumer that will call methods onInstanceBlockDeviceMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#blockDeviceMappings(java.util.Collection)
-
-