Interface ScheduledInstancesLaunchSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScheduledInstancesLaunchSpecification.Builder,,ScheduledInstancesLaunchSpecification> SdkBuilder<ScheduledInstancesLaunchSpecification.Builder,,ScheduledInstancesLaunchSpecification> SdkPojo
- Enclosing class:
ScheduledInstancesLaunchSpecification
-
Method Summary
Modifier and TypeMethodDescriptionblockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings) The block device mapping entries.blockDeviceMappings(Consumer<ScheduledInstancesBlockDeviceMapping.Builder>... blockDeviceMappings) The block device mapping entries.blockDeviceMappings(ScheduledInstancesBlockDeviceMapping... blockDeviceMappings) The block device mapping entries.ebsOptimized(Boolean ebsOptimized) Indicates whether the instances are optimized for EBS I/O.iamInstanceProfile(Consumer<ScheduledInstancesIamInstanceProfile.Builder> iamInstanceProfile) The IAM instance profile.iamInstanceProfile(ScheduledInstancesIamInstanceProfile iamInstanceProfile) The IAM instance profile.The ID of the Amazon Machine Image (AMI).instanceType(String instanceType) The instance type.The ID of the kernel.The name of the key pair.monitoring(Consumer<ScheduledInstancesMonitoring.Builder> monitoring) Enable or disable monitoring for the instances.monitoring(ScheduledInstancesMonitoring monitoring) Enable or disable monitoring for the instances.networkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces) The network interfaces.networkInterfaces(Consumer<ScheduledInstancesNetworkInterface.Builder>... networkInterfaces) The network interfaces.networkInterfaces(ScheduledInstancesNetworkInterface... networkInterfaces) The network interfaces.placement(Consumer<ScheduledInstancesPlacement.Builder> placement) The placement information.placement(ScheduledInstancesPlacement placement) The placement information.The ID of the RAM disk.securityGroupIds(String... securityGroupIds) The IDs of the security groups.securityGroupIds(Collection<String> securityGroupIds) The IDs of the security groups.The ID of the subnet in which to launch the instances.The base64-encoded MIME user data.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, sdkFields
-
Method Details
-
blockDeviceMappings
ScheduledInstancesLaunchSpecification.Builder blockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> 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
ScheduledInstancesLaunchSpecification.Builder blockDeviceMappings(ScheduledInstancesBlockDeviceMapping... 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
ScheduledInstancesLaunchSpecification.Builder blockDeviceMappings(Consumer<ScheduledInstancesBlockDeviceMapping.Builder>... blockDeviceMappings) The block device mapping entries.
This is a convenience method that creates an instance of theScheduledInstancesBlockDeviceMapping.Builderavoiding the need to create one manually viaScheduledInstancesBlockDeviceMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toblockDeviceMappings(List<ScheduledInstancesBlockDeviceMapping>).- Parameters:
blockDeviceMappings- a consumer that will call methods onScheduledInstancesBlockDeviceMapping.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
ScheduledInstancesLaunchSpecification.Builder iamInstanceProfile(ScheduledInstancesIamInstanceProfile 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 ScheduledInstancesLaunchSpecification.Builder iamInstanceProfile(Consumer<ScheduledInstancesIamInstanceProfile.Builder> iamInstanceProfile) The IAM instance profile.
This is a convenience method that creates an instance of theScheduledInstancesIamInstanceProfile.Builderavoiding the need to create one manually viaScheduledInstancesIamInstanceProfile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toiamInstanceProfile(ScheduledInstancesIamInstanceProfile).- Parameters:
iamInstanceProfile- a consumer that will call methods onScheduledInstancesIamInstanceProfile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageId
The ID of the Amazon Machine Image (AMI).
- Parameters:
imageId- The ID of the Amazon Machine Image (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.
-
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 ScheduledInstancesLaunchSpecification.Builder monitoring(Consumer<ScheduledInstancesMonitoring.Builder> monitoring) Enable or disable monitoring for the instances.
This is a convenience method that creates an instance of theScheduledInstancesMonitoring.Builderavoiding the need to create one manually viaScheduledInstancesMonitoring.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomonitoring(ScheduledInstancesMonitoring).- Parameters:
monitoring- a consumer that will call methods onScheduledInstancesMonitoring.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkInterfaces
ScheduledInstancesLaunchSpecification.Builder networkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces) The network interfaces.
- Parameters:
networkInterfaces- The network interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
ScheduledInstancesLaunchSpecification.Builder networkInterfaces(ScheduledInstancesNetworkInterface... networkInterfaces) The network interfaces.
- Parameters:
networkInterfaces- The network interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
ScheduledInstancesLaunchSpecification.Builder networkInterfaces(Consumer<ScheduledInstancesNetworkInterface.Builder>... networkInterfaces) The network interfaces.
This is a convenience method that creates an instance of theScheduledInstancesNetworkInterface.Builderavoiding the need to create one manually viaScheduledInstancesNetworkInterface.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkInterfaces(List<ScheduledInstancesNetworkInterface>).- Parameters:
networkInterfaces- a consumer that will call methods onScheduledInstancesNetworkInterface.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
default ScheduledInstancesLaunchSpecification.Builder placement(Consumer<ScheduledInstancesPlacement.Builder> placement) The placement information.
This is a convenience method that creates an instance of theScheduledInstancesPlacement.Builderavoiding the need to create one manually viaScheduledInstancesPlacement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplacement(ScheduledInstancesPlacement).- Parameters:
placement- a consumer that will call methods onScheduledInstancesPlacement.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.
-
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
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.
-
subnetId
The ID of the subnet in which to launch the instances.
- Parameters:
subnetId- The ID of the subnet in which to launch the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
The base64-encoded MIME user data.
- Parameters:
userData- The base64-encoded MIME user data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-