Interface SpotFleetLaunchSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SpotFleetLaunchSpecification.Builder,
,SpotFleetLaunchSpecification> SdkBuilder<SpotFleetLaunchSpecification.Builder,
,SpotFleetLaunchSpecification> SdkPojo
- Enclosing class:
SpotFleetLaunchSpecification
-
Method Summary
Modifier and TypeMethodDescriptionaddressingType
(String addressingType) Deprecated.blockDeviceMappings
(Collection<BlockDeviceMapping> blockDeviceMappings) One or more block devices that are mapped to the Spot Instances.blockDeviceMappings
(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings) One or more block devices that are mapped to the Spot Instances.blockDeviceMappings
(BlockDeviceMapping... blockDeviceMappings) One or more block devices that are mapped to the Spot Instances.ebsOptimized
(Boolean ebsOptimized) Indicates whether the instances are 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.instanceRequirements
(Consumer<InstanceRequirements.Builder> instanceRequirements) The attributes for the instance types.instanceRequirements
(InstanceRequirements instanceRequirements) The attributes for the instance types.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<SpotFleetMonitoring.Builder> monitoring) Enable or disable monitoring for the instances.monitoring
(SpotFleetMonitoring monitoring) Enable or disable monitoring for the instances.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.placement
(SpotPlacement placement) The placement information.The ID of the RAM disk.securityGroups
(Collection<GroupIdentifier> securityGroups) The security groups.securityGroups
(Consumer<GroupIdentifier.Builder>... securityGroups) The security groups.securityGroups
(GroupIdentifier... securityGroups) The security groups.The maximum price per unit hour that you are willing to pay for a Spot Instance.The IDs of the subnets in which to launch the instances.tagSpecifications
(Collection<SpotFleetTagSpecification> tagSpecifications) The tags to apply during creation.tagSpecifications
(Consumer<SpotFleetTagSpecification.Builder>... tagSpecifications) The tags to apply during creation.tagSpecifications
(SpotFleetTagSpecification... tagSpecifications) The tags to apply during creation.The base64-encoded user data that instances use when starting up.weightedCapacity
(Double weightedCapacity) The number of units provided by the specified instance type.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
-
securityGroups
The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- Parameters:
securityGroups
- The security groups.If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- Parameters:
securityGroups
- The security groups.If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
SpotFleetLaunchSpecification.Builder securityGroups(Consumer<GroupIdentifier.Builder>... securityGroups) The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
This is a convenience method that creates an instance of theGroupIdentifier.Builder
avoiding the need to create one manually viaGroupIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityGroups(List<GroupIdentifier>)
.- Parameters:
securityGroups
- a consumer that will call methods onGroupIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
addressingType
Deprecated.
- Parameters:
addressingType
- Deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
SpotFleetLaunchSpecification.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings) One or more block devices that are mapped to the Spot Instances. 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
- One or more block devices that are mapped to the Spot Instances. 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
One or more block devices that are mapped to the Spot Instances. 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
- One or more block devices that are mapped to the Spot Instances. 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
SpotFleetLaunchSpecification.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings) One or more block devices that are mapped to the Spot Instances. 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 instances are 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 instances are 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
SpotFleetLaunchSpecification.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 SpotFleetLaunchSpecification.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.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type.
- Parameters:
instanceType
- The instance type.- 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
Enable or disable monitoring for the instances.
- Parameters:
monitoring
- Enable or disable monitoring for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
default SpotFleetLaunchSpecification.Builder monitoring(Consumer<SpotFleetMonitoring.Builder> monitoring) Enable or disable monitoring for the instances.
This is a convenience method that creates an instance of theSpotFleetMonitoring.Builder
avoiding the need to create one manually viaSpotFleetMonitoring.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitoring(SpotFleetMonitoring)
.- Parameters:
monitoring
- a consumer that will call methods onSpotFleetMonitoring.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkInterfaces
SpotFleetLaunchSpecification.Builder networkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces) The network interfaces.
SpotFleetLaunchSpecification
does not support Elastic Fabric Adapter (EFA). You must use LaunchTemplateConfig instead.- Parameters:
networkInterfaces
- The network interfaces.SpotFleetLaunchSpecification
does not support Elastic Fabric Adapter (EFA). You must use LaunchTemplateConfig instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
SpotFleetLaunchSpecification.Builder networkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces) The network interfaces.
SpotFleetLaunchSpecification
does not support Elastic Fabric Adapter (EFA). You must use LaunchTemplateConfig instead.- Parameters:
networkInterfaces
- The network interfaces.SpotFleetLaunchSpecification
does not support Elastic Fabric Adapter (EFA). You must use LaunchTemplateConfig instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
SpotFleetLaunchSpecification.Builder networkInterfaces(Consumer<InstanceNetworkInterfaceSpecification.Builder>... networkInterfaces) The network interfaces.
SpotFleetLaunchSpecification
does not support Elastic Fabric Adapter (EFA). You must use LaunchTemplateConfig instead.InstanceNetworkInterfaceSpecification.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.
- Parameters:
placement
- The placement information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
The placement information.
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. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the Amazon Web Services Resource Center and search for the kernel ID.
- Parameters:
ramdiskId
- The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the Amazon Web Services Resource Center and search for the kernel ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotPrice
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Parameters:
spotPrice
- The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
- Parameters:
subnetId
- The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
- 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.
-
weightedCapacity
The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
- Parameters:
weightedCapacity
- The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
SpotFleetLaunchSpecification.Builder tagSpecifications(Collection<SpotFleetTagSpecification> tagSpecifications) The tags to apply during creation.
- Parameters:
tagSpecifications
- The tags to apply during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
SpotFleetLaunchSpecification.Builder tagSpecifications(SpotFleetTagSpecification... tagSpecifications) The tags to apply during creation.
- Parameters:
tagSpecifications
- The tags to apply during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
SpotFleetLaunchSpecification.Builder tagSpecifications(Consumer<SpotFleetTagSpecification.Builder>... tagSpecifications) The tags to apply during creation.
This is a convenience method that creates an instance of theSpotFleetTagSpecification.Builder
avoiding the need to create one manually viaSpotFleetTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<SpotFleetTagSpecification>)
.- Parameters:
tagSpecifications
- a consumer that will call methods onSpotFleetTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceRequirements
SpotFleetLaunchSpecification.Builder instanceRequirements(InstanceRequirements instanceRequirements) The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- Parameters:
instanceRequirements
- The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.If you specify
InstanceRequirements
, you can't specifyInstanceType
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirements
default SpotFleetLaunchSpecification.Builder instanceRequirements(Consumer<InstanceRequirements.Builder> instanceRequirements) The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.InstanceRequirements.Builder
avoiding the need to create one manually viaInstanceRequirements.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceRequirements(InstanceRequirements)
.- Parameters:
instanceRequirements
- a consumer that will call methods onInstanceRequirements.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-