Interface ScheduledInstancesLaunchSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ScheduledInstancesLaunchSpecification.Builder,ScheduledInstancesLaunchSpecification>,SdkBuilder<ScheduledInstancesLaunchSpecification.Builder,ScheduledInstancesLaunchSpecification>,SdkPojo
- Enclosing class:
- ScheduledInstancesLaunchSpecification
@Mutable @NotThreadSafe public static interface ScheduledInstancesLaunchSpecification.Builder extends SdkPojo, CopyableBuilder<ScheduledInstancesLaunchSpecification.Builder,ScheduledInstancesLaunchSpecification>
-
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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 to#blockDeviceMappings(List.) - 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:
#blockDeviceMappings(java.util.Collection)
-
ebsOptimized
ScheduledInstancesLaunchSpecification.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- 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:
iamInstanceProfile(ScheduledInstancesIamInstanceProfile)
-
imageId
ScheduledInstancesLaunchSpecification.Builder imageId(String 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
ScheduledInstancesLaunchSpecification.Builder instanceType(String 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
ScheduledInstancesLaunchSpecification.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
ScheduledInstancesLaunchSpecification.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
ScheduledInstancesLaunchSpecification.Builder monitoring(ScheduledInstancesMonitoring 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:
monitoring(ScheduledInstancesMonitoring)
-
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 to#networkInterfaces(List.) - 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:
#networkInterfaces(java.util.Collection)
-
placement
ScheduledInstancesLaunchSpecification.Builder placement(ScheduledInstancesPlacement 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:
placement(ScheduledInstancesPlacement)
-
ramdiskId
ScheduledInstancesLaunchSpecification.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.
-
securityGroupIds
ScheduledInstancesLaunchSpecification.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
ScheduledInstancesLaunchSpecification.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.
-
subnetId
ScheduledInstancesLaunchSpecification.Builder subnetId(String 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
ScheduledInstancesLaunchSpecification.Builder userData(String 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.
-
-