Interface LaunchSpecification.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchSpecification.Builder,LaunchSpecification>
,SdkBuilder<LaunchSpecification.Builder,LaunchSpecification>
,SdkPojo
- Enclosing class:
- LaunchSpecification
public static interface LaunchSpecification.Builder extends SdkPojo, CopyableBuilder<LaunchSpecification.Builder,LaunchSpecification>
-
-
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
-
userData
LaunchSpecification.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.
-
addressingType
LaunchSpecification.Builder addressingType(String addressingType)
Deprecated.
- Parameters:
addressingType
- Deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
LaunchSpecification.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping entries.
- Parameters:
blockDeviceMappings
- The block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
LaunchSpecification.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
The block device mapping entries.
- Parameters:
blockDeviceMappings
- The block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
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 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
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
- 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
LaunchSpecification.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 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 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
LaunchSpecification.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
LaunchSpecification.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
LaunchSpecification.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
LaunchSpecification.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
LaunchSpecification.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.
-
networkInterfaces
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.
- 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
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.
- 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
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 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
LaunchSpecification.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 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 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
LaunchSpecification.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
LaunchSpecification.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.
-
securityGroups
LaunchSpecification.Builder securityGroups(Collection<GroupIdentifier> securityGroups)
The IDs of the security groups.
- Parameters:
securityGroups
- The IDs of the security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
LaunchSpecification.Builder securityGroups(GroupIdentifier... securityGroups)
The IDs of the security groups.
- Parameters:
securityGroups
- The IDs of the security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
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 viaGroupIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#securityGroups(List
.) - 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:
#securityGroups(java.util.Collection
)
-
monitoring
LaunchSpecification.Builder monitoring(RunInstancesMonitoringEnabled monitoring)
Sets the value of the Monitoring property for this object.- Parameters:
monitoring
- The new value for the Monitoring property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
default LaunchSpecification.Builder monitoring(Consumer<RunInstancesMonitoringEnabled.Builder> monitoring)
Sets the value of the Monitoring property for this object. 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)
-
-