public static interface LaunchSpecification.Builder extends SdkPojo, CopyableBuilder<LaunchSpecification.Builder,LaunchSpecification>
equalsBySdkFields, sdkFields
copy
applyMutation, build
LaunchSpecification.Builder userData(String userData)
The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
userData
- The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.LaunchSpecification.Builder securityGroups(Collection<GroupIdentifier> securityGroups)
The IDs of the security groups.
securityGroups
- The IDs of the security groups.LaunchSpecification.Builder securityGroups(GroupIdentifier... securityGroups)
The IDs of the security groups.
securityGroups
- The IDs of the security groups.LaunchSpecification.Builder securityGroups(Consumer<GroupIdentifier.Builder>... securityGroups)
The IDs of the security groups.
This is a convenience method that creates an instance of theGroupIdentifier.Builder
avoiding the need to create one
manually via GroupIdentifier.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and
its result is passed to #securityGroups(List
.
securityGroups
- a consumer that will call methods on
GroupIdentifier.Builder
#securityGroups(java.util.Collection)
LaunchSpecification.Builder addressingType(String addressingType)
Deprecated.
addressingType
- Deprecated.LaunchSpecification.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping entries.
blockDeviceMappings
- The block device mapping entries.LaunchSpecification.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
The block device mapping entries.
blockDeviceMappings
- The block device mapping entries.LaunchSpecification.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
The block device mapping entries.
This is a convenience method that creates an instance of theBlockDeviceMapping.Builder
avoiding the need to create one
manually via BlockDeviceMapping.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately
and its result is passed to #blockDeviceMappings(List
.
blockDeviceMappings
- a consumer that will call methods on
BlockDeviceMapping.Builder
#blockDeviceMappings(java.util.Collection)
LaunchSpecification.Builder ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance.
This optimization isn't available with all instance types. Additional usage charges apply when using
an EBS Optimized instance.
Default: false
LaunchSpecification.Builder iamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.default LaunchSpecification.Builder iamInstanceProfile(Consumer<IamInstanceProfileSpecification.Builder> iamInstanceProfile)
The IAM instance profile.
This is a convenience method that creates an instance of theIamInstanceProfileSpecification.Builder
avoiding the need to create one manually via IamInstanceProfileSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to iamInstanceProfile(IamInstanceProfileSpecification)
.
iamInstanceProfile
- a consumer that will call methods on IamInstanceProfileSpecification.Builder
iamInstanceProfile(IamInstanceProfileSpecification)
LaunchSpecification.Builder imageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.LaunchSpecification.Builder instanceType(String instanceType)
The instance type. Only one instance type can be specified.
instanceType
- The instance type. Only one instance type can be specified.InstanceType
,
InstanceType
LaunchSpecification.Builder instanceType(InstanceType instanceType)
The instance type. Only one instance type can be specified.
instanceType
- The instance type. Only one instance type can be specified.InstanceType
,
InstanceType
LaunchSpecification.Builder kernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.LaunchSpecification.Builder keyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.LaunchSpecification.Builder networkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
networkInterfaces
- The network interfaces. If you specify a network interface, you must specify subnet IDs and security
group IDs using the network interface.LaunchSpecification.Builder networkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
networkInterfaces
- The network interfaces. If you specify a network interface, you must specify subnet IDs and security
group IDs using the network interface.LaunchSpecification.Builder networkInterfaces(Consumer<InstanceNetworkInterfaceSpecification.Builder>... networkInterfaces)
The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
This is a convenience method that creates an instance of theInstanceNetworkInterfaceSpecification.Builder
avoiding the
need to create one manually via
InstanceNetworkInterfaceSpecification.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is
called immediately and its result is passed to #networkInterfaces(List
.
networkInterfaces
- a consumer that will call methods on
InstanceNetworkInterfaceSpecification.Builder
#networkInterfaces(java.util.Collection)
LaunchSpecification.Builder placement(SpotPlacement placement)
The placement information for the instance.
placement
- The placement information for the instance.default LaunchSpecification.Builder placement(Consumer<SpotPlacement.Builder> placement)
The placement information for the instance.
This is a convenience method that creates an instance of theSpotPlacement.Builder
avoiding the need
to create one manually via SpotPlacement.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to placement(SpotPlacement)
.
placement
- a consumer that will call methods on SpotPlacement.Builder
placement(SpotPlacement)
LaunchSpecification.Builder ramdiskId(String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.LaunchSpecification.Builder subnetId(String subnetId)
The ID of the subnet in which to launch the instance.
subnetId
- The ID of the subnet in which to launch the instance.LaunchSpecification.Builder monitoring(RunInstancesMonitoringEnabled monitoring)
monitoring
- The new value for the Monitoring property for this object.default LaunchSpecification.Builder monitoring(Consumer<RunInstancesMonitoringEnabled.Builder> monitoring)
RunInstancesMonitoringEnabled.Builder
avoiding the need to create one manually via RunInstancesMonitoringEnabled.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to monitoring(RunInstancesMonitoringEnabled)
.
monitoring
- a consumer that will call methods on RunInstancesMonitoringEnabled.Builder
monitoring(RunInstancesMonitoringEnabled)
Copyright © 2023. All rights reserved.