CopyableBuilder<SpotFleetLaunchSpecification.Builder,SpotFleetLaunchSpecification>
, SdkBuilder<SpotFleetLaunchSpecification.Builder,SpotFleetLaunchSpecification>
public static interface SpotFleetLaunchSpecification.Builder extends CopyableBuilder<SpotFleetLaunchSpecification.Builder,SpotFleetLaunchSpecification>
copy
apply, build
SpotFleetLaunchSpecification.Builder securityGroups(Collection<GroupIdentifier> securityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
securityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the
security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the
security groups.SpotFleetLaunchSpecification.Builder securityGroups(GroupIdentifier... securityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
NOTE: This method appends the values to the existing list (if any). Use
#setSecurityGroups(java.util.Collection)
or #withSecurityGroups(java.util.Collection)
if you
want to override the existing values.
securityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the
security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the
security groups.SpotFleetLaunchSpecification.Builder addressingType(String addressingType)
Deprecated.
addressingType
- Deprecated.SpotFleetLaunchSpecification.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
blockDeviceMappings
- One or more block device mapping entries.SpotFleetLaunchSpecification.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
NOTE: This method appends the values to the existing list (if any). Use
#setBlockDeviceMappings(java.util.Collection)
or
#withBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.
blockDeviceMappings
- One or more block device mapping entries.SpotFleetLaunchSpecification.Builder ebsOptimized(Boolean 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
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
SpotFleetLaunchSpecification.Builder iamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.SpotFleetLaunchSpecification.Builder imageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.SpotFleetLaunchSpecification.Builder instanceType(String instanceType)
The instance type. Note that T2 and HS1 instance types are not supported.
instanceType
- The instance type. Note that T2 and HS1 instance types are not supported.InstanceType
SpotFleetLaunchSpecification.Builder instanceType(InstanceType instanceType)
The instance type. Note that T2 and HS1 instance types are not supported.
instanceType
- The instance type. Note that T2 and HS1 instance types are not supported.InstanceType
SpotFleetLaunchSpecification.Builder kernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.SpotFleetLaunchSpecification.Builder keyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.SpotFleetLaunchSpecification.Builder monitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instances.
monitoring
- Enable or disable monitoring for the instances.SpotFleetLaunchSpecification.Builder networkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
networkInterfaces
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.SpotFleetLaunchSpecification.Builder networkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
NOTE: This method appends the values to the existing list (if any). Use
#setNetworkInterfaces(java.util.Collection)
or #withNetworkInterfaces(java.util.Collection)
if you want to override the existing values.
networkInterfaces
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.SpotFleetLaunchSpecification.Builder placement(SpotPlacement placement)
The placement information.
placement
- The placement information.SpotFleetLaunchSpecification.Builder ramdiskId(String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.SpotFleetLaunchSpecification.Builder spotPrice(String spotPrice)
The bid price per unit hour for the specified instance type. If this value is not specified, the default is
the Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid
price by the value of WeightedCapacity
.
spotPrice
- The bid price per unit hour for the specified instance type. If this value is not specified, the
default is the Spot bid price specified for the fleet. To determine the bid price per unit hour,
divide the Spot bid price by the value of WeightedCapacity
.SpotFleetLaunchSpecification.Builder subnetId(String subnetId)
The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
subnetId
- The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them
using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".SpotFleetLaunchSpecification.Builder userData(String userData)
The user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.
userData
- The user data to make available to the instances. If you are using an AWS SDK or command line tool,
Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must
provide Base64-encoded text.SpotFleetLaunchSpecification.Builder weightedCapacity(Double 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 (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, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
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 (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, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.