Interface RequestSpotLaunchSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RequestSpotLaunchSpecification.Builder,
,RequestSpotLaunchSpecification> SdkBuilder<RequestSpotLaunchSpecification.Builder,
,RequestSpotLaunchSpecification> SdkPojo
- Enclosing class:
RequestSpotLaunchSpecification
-
Method Summary
Modifier and TypeMethodDescriptionaddressingType
(String addressingType) Deprecated.blockDeviceMappings
(Collection<BlockDeviceMapping> blockDeviceMappings) The block device mapping entries.blockDeviceMappings
(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings) The block device mapping entries.blockDeviceMappings
(BlockDeviceMapping... blockDeviceMappings) The block device mapping entries.ebsOptimized
(Boolean ebsOptimized) Indicates whether the instance is optimized for EBS I/O.iamInstanceProfile
(Consumer<IamInstanceProfileSpecification.Builder> iamInstanceProfile) The IAM instance profile.iamInstanceProfile
(IamInstanceProfileSpecification iamInstanceProfile) The IAM instance profile.The ID of the AMI.instanceType
(String instanceType) The instance type.instanceType
(InstanceType instanceType) The instance type.The ID of the kernel.The name of the key pair.monitoring
(Consumer<RunInstancesMonitoringEnabled.Builder> monitoring) Indicates whether basic or detailed monitoring is enabled for the instance.monitoring
(RunInstancesMonitoringEnabled monitoring) Indicates whether basic or detailed monitoring is enabled for the instance.networkInterfaces
(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces) The network interfaces.networkInterfaces
(Consumer<InstanceNetworkInterfaceSpecification.Builder>... networkInterfaces) The network interfaces.networkInterfaces
(InstanceNetworkInterfaceSpecification... networkInterfaces) The network interfaces.placement
(Consumer<SpotPlacement.Builder> placement) The placement information for the instance.placement
(SpotPlacement placement) The placement information for the instance.The ID of the RAM disk.securityGroupIds
(String... securityGroupIds) The IDs of the security groups.securityGroupIds
(Collection<String> securityGroupIds) The IDs of the security groups.securityGroups
(String... securityGroups) Not supported.securityGroups
(Collection<String> securityGroups) Not supported.The ID of the subnet in which to launch the instance.The base64-encoded user data that instances use when starting up.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 Details
-
securityGroupIds
The IDs of the security groups.
- Parameters:
securityGroupIds
- The IDs of the security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The IDs of the security groups.
- Parameters:
securityGroupIds
- The IDs of the security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
Not supported.
- Parameters:
securityGroups
- Not supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
Not supported.
- Parameters:
securityGroups
- Not supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addressingType
Deprecated.
- Parameters:
addressingType
- Deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
RequestSpotLaunchSpecification.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings) The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
- Parameters:
blockDeviceMappings
- The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
RequestSpotLaunchSpecification.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings) The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
- Parameters:
blockDeviceMappings
- The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
RequestSpotLaunchSpecification.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings) The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
This is a convenience method that creates an instance of theBlockDeviceMapping.Builder
avoiding the need to create one manually viaBlockDeviceMapping.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockDeviceMappings(List<BlockDeviceMapping>)
.- Parameters:
blockDeviceMappings
- a consumer that will call methods onBlockDeviceMapping.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
- Parameters:
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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
RequestSpotLaunchSpecification.Builder iamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile) The IAM instance profile.
- Parameters:
iamInstanceProfile
- The IAM instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
default RequestSpotLaunchSpecification.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 viaIamInstanceProfileSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toiamInstanceProfile(IamInstanceProfileSpecification)
.- Parameters:
iamInstanceProfile
- a consumer that will call methods onIamInstanceProfileSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageId
The ID of the AMI.
- Parameters:
imageId
- The ID of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type. Only one instance type can be specified.
- Parameters:
instanceType
- The instance type. Only one instance type can be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type. Only one instance type can be specified.
- Parameters:
instanceType
- The instance type. Only one instance type can be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kernelId
The ID of the kernel.
- Parameters:
kernelId
- The ID of the kernel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyName
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
Indicates whether basic or detailed monitoring is enabled for the instance.
Default: Disabled
- Parameters:
monitoring
- Indicates whether basic or detailed monitoring is enabled for the instance.Default: Disabled
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
default RequestSpotLaunchSpecification.Builder monitoring(Consumer<RunInstancesMonitoringEnabled.Builder> monitoring) Indicates whether basic or detailed monitoring is enabled for the instance.
Default: Disabled
This is a convenience method that creates an instance of theRunInstancesMonitoringEnabled.Builder
avoiding the need to create one manually viaRunInstancesMonitoringEnabled.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitoring(RunInstancesMonitoringEnabled)
.- Parameters:
monitoring
- a consumer that will call methods onRunInstancesMonitoringEnabled.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkInterfaces
RequestSpotLaunchSpecification.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.
- Parameters:
networkInterfaces
- The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
RequestSpotLaunchSpecification.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.
- Parameters:
networkInterfaces
- The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
RequestSpotLaunchSpecification.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 viaInstanceNetworkInterfaceSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaces(List<InstanceNetworkInterfaceSpecification>)
.- Parameters:
networkInterfaces
- a consumer that will call methods onInstanceNetworkInterfaceSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
placement
The placement information for the instance.
- Parameters:
placement
- The placement information for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaSpotPlacement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacement(SpotPlacement)
.- Parameters:
placement
- a consumer that will call methods onSpotPlacement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ramdiskId
The ID of the RAM disk.
- Parameters:
ramdiskId
- The ID of the RAM disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The ID of the subnet in which to launch the instance.
- Parameters:
subnetId
- The ID of the subnet in which to launch the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
- Parameters:
userData
- The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-