Class ScheduledInstancesLaunchSpecification
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the launch specification for a Scheduled Instance.
If you are launching the Scheduled Instance in EC2-VPC, you must specify the
ID of the subnet. You can specify the subnet using either
SubnetId
or NetworkInterface
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
One or more block device mapping entries.Indicates whether the instances are optimized for EBS I/O.The IAM instance profile.The ID of the Amazon Machine Image (AMI).The instance type.The ID of the kernel.The name of the key pair.Enable or disable monitoring for the instances.One or more network interfaces.The placement information.The ID of the RAM disk.The IDs of one or more security groups.The ID of the subnet in which to launch the instances.The base64-encoded MIME user data.int
hashCode()
Indicates whether the instances are optimized for EBS I/O.void
setBlockDeviceMappings
(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings) One or more block device mapping entries.void
setEbsOptimized
(Boolean ebsOptimized) Indicates whether the instances are optimized for EBS I/O.void
setIamInstanceProfile
(ScheduledInstancesIamInstanceProfile iamInstanceProfile) The IAM instance profile.void
setImageId
(String imageId) The ID of the Amazon Machine Image (AMI).void
setInstanceType
(String instanceType) The instance type.void
setKernelId
(String kernelId) The ID of the kernel.void
setKeyName
(String keyName) The name of the key pair.void
setMonitoring
(ScheduledInstancesMonitoring monitoring) Enable or disable monitoring for the instances.void
setNetworkInterfaces
(Collection<ScheduledInstancesNetworkInterface> networkInterfaces) One or more network interfaces.void
setPlacement
(ScheduledInstancesPlacement placement) The placement information.void
setRamdiskId
(String ramdiskId) The ID of the RAM disk.void
setSecurityGroupIds
(Collection<String> securityGroupIds) The IDs of one or more security groups.void
setSubnetId
(String subnetId) The ID of the subnet in which to launch the instances.void
setUserData
(String userData) The base64-encoded MIME user data.toString()
Returns a string representation of this object; useful for testing and debugging.withBlockDeviceMappings
(ScheduledInstancesBlockDeviceMapping... blockDeviceMappings) One or more block device mapping entries.withBlockDeviceMappings
(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings) One or more block device mapping entries.withEbsOptimized
(Boolean ebsOptimized) Indicates whether the instances are optimized for EBS I/O.withIamInstanceProfile
(ScheduledInstancesIamInstanceProfile iamInstanceProfile) The IAM instance profile.withImageId
(String imageId) The ID of the Amazon Machine Image (AMI).withInstanceType
(String instanceType) The instance type.withKernelId
(String kernelId) The ID of the kernel.withKeyName
(String keyName) The name of the key pair.withMonitoring
(ScheduledInstancesMonitoring monitoring) Enable or disable monitoring for the instances.withNetworkInterfaces
(ScheduledInstancesNetworkInterface... networkInterfaces) One or more network interfaces.withNetworkInterfaces
(Collection<ScheduledInstancesNetworkInterface> networkInterfaces) One or more network interfaces.withPlacement
(ScheduledInstancesPlacement placement) The placement information.withRamdiskId
(String ramdiskId) The ID of the RAM disk.withSecurityGroupIds
(String... securityGroupIds) The IDs of one or more security groups.withSecurityGroupIds
(Collection<String> securityGroupIds) The IDs of one or more security groups.withSubnetId
(String subnetId) The ID of the subnet in which to launch the instances.withUserData
(String userData) The base64-encoded MIME user data.
-
Constructor Details
-
ScheduledInstancesLaunchSpecification
public ScheduledInstancesLaunchSpecification()
-
-
Method Details
-
setImageId
The ID of the Amazon Machine Image (AMI).
- Parameters:
imageId
- The ID of the Amazon Machine Image (AMI).
-
getImageId
The ID of the Amazon Machine Image (AMI).
- Returns:
- The ID of the Amazon Machine Image (AMI).
-
withImageId
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.
-
setKeyName
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.
-
getKeyName
The name of the key pair.
- Returns:
- The name of the key pair.
-
withKeyName
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.
-
getSecurityGroupIds
The IDs of one or more security groups.
- Returns:
- The IDs of one or more security groups.
-
setSecurityGroupIds
The IDs of one or more security groups.
- Parameters:
securityGroupIds
- The IDs of one or more security groups.
-
withSecurityGroupIds
The IDs of one or more security groups.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
orwithSecurityGroupIds(java.util.Collection)
if you want to override the existing values.- Parameters:
securityGroupIds
- The IDs of one or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSecurityGroupIds
public ScheduledInstancesLaunchSpecification withSecurityGroupIds(Collection<String> securityGroupIds) The IDs of one or more security groups.
- Parameters:
securityGroupIds
- The IDs of one or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserData
The base64-encoded MIME user data.
- Parameters:
userData
- The base64-encoded MIME user data.
-
getUserData
The base64-encoded MIME user data.
- Returns:
- The base64-encoded MIME user data.
-
withUserData
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.
-
setPlacement
The placement information.
- Parameters:
placement
- The placement information.
-
getPlacement
The placement information.
- Returns:
- The placement information.
-
withPlacement
The placement information.
- Parameters:
placement
- The placement information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKernelId
The ID of the kernel.
- Parameters:
kernelId
- The ID of the kernel.
-
getKernelId
The ID of the kernel.
- Returns:
- The ID of the kernel.
-
withKernelId
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.
-
setInstanceType
The instance type.
- Parameters:
instanceType
- The instance type.
-
getInstanceType
The instance type.
- Returns:
- The instance type.
-
withInstanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRamdiskId
The ID of the RAM disk.
- Parameters:
ramdiskId
- The ID of the RAM disk.
-
getRamdiskId
The ID of the RAM disk.
- Returns:
- The ID of the RAM disk.
-
withRamdiskId
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.
-
getBlockDeviceMappings
One or more block device mapping entries.
- Returns:
- One or more block device mapping entries.
-
setBlockDeviceMappings
public void setBlockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings) One or more block device mapping entries.
- Parameters:
blockDeviceMappings
- One or more block device mapping entries.
-
withBlockDeviceMappings
public ScheduledInstancesLaunchSpecification withBlockDeviceMappings(ScheduledInstancesBlockDeviceMapping... blockDeviceMappings) One or more block device mapping entries.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
orwithBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.- Parameters:
blockDeviceMappings
- One or more block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
public ScheduledInstancesLaunchSpecification withBlockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings) One or more block device mapping entries.
- Parameters:
blockDeviceMappings
- One or more block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMonitoring
Enable or disable monitoring for the instances.
- Parameters:
monitoring
- Enable or disable monitoring for the instances.
-
getMonitoring
Enable or disable monitoring for the instances.
- Returns:
- Enable or disable monitoring for the instances.
-
withMonitoring
public ScheduledInstancesLaunchSpecification withMonitoring(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.
-
setSubnetId
The ID of the subnet in which to launch the instances.
- Parameters:
subnetId
- The ID of the subnet in which to launch the instances.
-
getSubnetId
The ID of the subnet in which to launch the instances.
- Returns:
- The ID of the subnet in which to launch the instances.
-
withSubnetId
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.
-
getNetworkInterfaces
One or more network interfaces.
- Returns:
- One or more network interfaces.
-
setNetworkInterfaces
One or more network interfaces.
- Parameters:
networkInterfaces
- One or more network interfaces.
-
withNetworkInterfaces
public ScheduledInstancesLaunchSpecification withNetworkInterfaces(ScheduledInstancesNetworkInterface... networkInterfaces) One or more network interfaces.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaces(java.util.Collection)
orwithNetworkInterfaces(java.util.Collection)
if you want to override the existing values.- Parameters:
networkInterfaces
- One or more network interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withNetworkInterfaces
public ScheduledInstancesLaunchSpecification withNetworkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces) One or more network interfaces.
- Parameters:
networkInterfaces
- One or more network interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamInstanceProfile
The IAM instance profile.
- Parameters:
iamInstanceProfile
- The IAM instance profile.
-
getIamInstanceProfile
The IAM instance profile.
- Returns:
- The IAM instance profile.
-
withIamInstanceProfile
public ScheduledInstancesLaunchSpecification withIamInstanceProfile(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.
-
setEbsOptimized
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
-
getEbsOptimized
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:
- 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
-
withEbsOptimized
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.
-
isEbsOptimized
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:
- 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
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-