Interface LaunchSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LaunchSpecification.Builder,,LaunchSpecification> SdkBuilder<LaunchSpecification.Builder,,LaunchSpecification> SdkPojo
- Enclosing class:
LaunchSpecification
-
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.default LaunchSpecification.BuilderiamInstanceProfile(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.default LaunchSpecification.Buildermonitoring(Consumer<RunInstancesMonitoringEnabled.Builder> monitoring) Sets the value of the Monitoring property for this object.monitoring(RunInstancesMonitoringEnabled monitoring) Sets the value of the Monitoring property for this object.networkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces) The network interfaces.networkInterfaces(Consumer<InstanceNetworkInterfaceSpecification.Builder>... networkInterfaces) The network interfaces.networkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces) The network interfaces.default LaunchSpecification.Builderplacement(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.securityGroups(Collection<GroupIdentifier> securityGroups) The IDs of the security groups.securityGroups(Consumer<GroupIdentifier.Builder>... securityGroups) The IDs of the security groups.securityGroups(GroupIdentifier... securityGroups) The IDs of the security groups.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
Deprecated.
- Parameters:
addressingType- Deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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.Builderavoiding the need to create one manually viaBlockDeviceMapping.builder().When the
Consumercompletes,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
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.Builderavoiding the need to create one manually viaIamInstanceProfileSpecification.builder().When the
Consumercompletes,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.
-
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.Builderavoiding the need to create one manually viaInstanceNetworkInterfaceSpecification.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaSpotPlacement.builder().When the
Consumercompletes,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.
-
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
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
The IDs of the security groups.
This is a convenience method that creates an instance of theGroupIdentifier.Builderavoiding the need to create one manually viaGroupIdentifier.builder().When the
Consumercompletes,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:
-
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.Builderavoiding the need to create one manually viaRunInstancesMonitoringEnabled.builder().When the
Consumercompletes,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:
-