Interface RequestSpotLaunchSpecification.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<RequestSpotLaunchSpecification.Builder,RequestSpotLaunchSpecification>
,SdkBuilder<RequestSpotLaunchSpecification.Builder,RequestSpotLaunchSpecification>
,SdkPojo
- Enclosing class:
- RequestSpotLaunchSpecification
public static interface RequestSpotLaunchSpecification.Builder extends SdkPojo, CopyableBuilder<RequestSpotLaunchSpecification.Builder,RequestSpotLaunchSpecification>
-
-
Method Summary
-
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
-
securityGroupIds
RequestSpotLaunchSpecification.Builder securityGroupIds(Collection<String> 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
RequestSpotLaunchSpecification.Builder securityGroupIds(String... 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
RequestSpotLaunchSpecification.Builder securityGroups(Collection<String> securityGroups)
Not supported.
- Parameters:
securityGroups
- Not supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
RequestSpotLaunchSpecification.Builder securityGroups(String... securityGroups)
Not supported.
- Parameters:
securityGroups
- Not supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addressingType
RequestSpotLaunchSpecification.Builder addressingType(String 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 to#blockDeviceMappings(List
.) - 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:
#blockDeviceMappings(java.util.Collection
)
-
ebsOptimized
RequestSpotLaunchSpecification.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
- 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:
iamInstanceProfile(IamInstanceProfileSpecification)
-
imageId
RequestSpotLaunchSpecification.Builder imageId(String 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
RequestSpotLaunchSpecification.Builder instanceType(String 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
,InstanceType
-
instanceType
RequestSpotLaunchSpecification.Builder instanceType(InstanceType 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
,InstanceType
-
kernelId
RequestSpotLaunchSpecification.Builder kernelId(String 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
RequestSpotLaunchSpecification.Builder keyName(String 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
RequestSpotLaunchSpecification.Builder monitoring(RunInstancesMonitoringEnabled 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:
monitoring(RunInstancesMonitoringEnabled)
-
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 to#networkInterfaces(List
.) - 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:
#networkInterfaces(java.util.Collection
)
-
placement
RequestSpotLaunchSpecification.Builder placement(SpotPlacement 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
default RequestSpotLaunchSpecification.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 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:
placement(SpotPlacement)
-
ramdiskId
RequestSpotLaunchSpecification.Builder ramdiskId(String 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
RequestSpotLaunchSpecification.Builder subnetId(String 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
RequestSpotLaunchSpecification.Builder userData(String 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.
-
-