Class ScheduledInstancesLaunchSpecification
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ScheduledInstancesLaunchSpecification
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ScheduledInstancesLaunchSpecification extends Object implements 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
orNetworkInterface
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduledInstancesLaunchSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledInstancesLaunchSpecification
clone()
boolean
equals(Object obj)
List<ScheduledInstancesBlockDeviceMapping>
getBlockDeviceMappings()
One or more block device mapping entries.Boolean
getEbsOptimized()
Indicates whether the instances are optimized for EBS I/O.ScheduledInstancesIamInstanceProfile
getIamInstanceProfile()
The IAM instance profile.String
getImageId()
The ID of the Amazon Machine Image (AMI).String
getInstanceType()
The instance type.String
getKernelId()
The ID of the kernel.String
getKeyName()
The name of the key pair.ScheduledInstancesMonitoring
getMonitoring()
Enable or disable monitoring for the instances.List<ScheduledInstancesNetworkInterface>
getNetworkInterfaces()
One or more network interfaces.ScheduledInstancesPlacement
getPlacement()
The placement information.String
getRamdiskId()
The ID of the RAM disk.List<String>
getSecurityGroupIds()
The IDs of one or more security groups.String
getSubnetId()
The ID of the subnet in which to launch the instances.String
getUserData()
The base64-encoded MIME user data.int
hashCode()
Boolean
isEbsOptimized()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.ScheduledInstancesLaunchSpecification
withBlockDeviceMappings(ScheduledInstancesBlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.ScheduledInstancesLaunchSpecification
withBlockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.ScheduledInstancesLaunchSpecification
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instances are optimized for EBS I/O.ScheduledInstancesLaunchSpecification
withIamInstanceProfile(ScheduledInstancesIamInstanceProfile iamInstanceProfile)
The IAM instance profile.ScheduledInstancesLaunchSpecification
withImageId(String imageId)
The ID of the Amazon Machine Image (AMI).ScheduledInstancesLaunchSpecification
withInstanceType(String instanceType)
The instance type.ScheduledInstancesLaunchSpecification
withKernelId(String kernelId)
The ID of the kernel.ScheduledInstancesLaunchSpecification
withKeyName(String keyName)
The name of the key pair.ScheduledInstancesLaunchSpecification
withMonitoring(ScheduledInstancesMonitoring monitoring)
Enable or disable monitoring for the instances.ScheduledInstancesLaunchSpecification
withNetworkInterfaces(ScheduledInstancesNetworkInterface... networkInterfaces)
One or more network interfaces.ScheduledInstancesLaunchSpecification
withNetworkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces)
One or more network interfaces.ScheduledInstancesLaunchSpecification
withPlacement(ScheduledInstancesPlacement placement)
The placement information.ScheduledInstancesLaunchSpecification
withRamdiskId(String ramdiskId)
The ID of the RAM disk.ScheduledInstancesLaunchSpecification
withSecurityGroupIds(String... securityGroupIds)
The IDs of one or more security groups.ScheduledInstancesLaunchSpecification
withSecurityGroupIds(Collection<String> securityGroupIds)
The IDs of one or more security groups.ScheduledInstancesLaunchSpecification
withSubnetId(String subnetId)
The ID of the subnet in which to launch the instances.ScheduledInstancesLaunchSpecification
withUserData(String userData)
The base64-encoded MIME user data.
-
-
-
Method Detail
-
setImageId
public void setImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
- Parameters:
imageId
- The ID of the Amazon Machine Image (AMI).
-
getImageId
public String getImageId()
The ID of the Amazon Machine Image (AMI).
- Returns:
- The ID of the Amazon Machine Image (AMI).
-
withImageId
public ScheduledInstancesLaunchSpecification withImageId(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.
-
setKeyName
public void setKeyName(String keyName)
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.
-
getKeyName
public String getKeyName()
The name of the key pair.
- Returns:
- The name of the key pair.
-
withKeyName
public ScheduledInstancesLaunchSpecification withKeyName(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.
-
getSecurityGroupIds
public List<String> getSecurityGroupIds()
The IDs of one or more security groups.
- Returns:
- The IDs of one or more security groups.
-
setSecurityGroupIds
public void setSecurityGroupIds(Collection<String> securityGroupIds)
The IDs of one or more security groups.
- Parameters:
securityGroupIds
- The IDs of one or more security groups.
-
withSecurityGroupIds
public ScheduledInstancesLaunchSpecification withSecurityGroupIds(String... securityGroupIds)
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
public void setUserData(String userData)
The base64-encoded MIME user data.
- Parameters:
userData
- The base64-encoded MIME user data.
-
getUserData
public String getUserData()
The base64-encoded MIME user data.
- Returns:
- The base64-encoded MIME user data.
-
withUserData
public ScheduledInstancesLaunchSpecification withUserData(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.
-
setPlacement
public void setPlacement(ScheduledInstancesPlacement placement)
The placement information.
- Parameters:
placement
- The placement information.
-
getPlacement
public ScheduledInstancesPlacement getPlacement()
The placement information.
- Returns:
- The placement information.
-
withPlacement
public ScheduledInstancesLaunchSpecification withPlacement(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.
-
setKernelId
public void setKernelId(String kernelId)
The ID of the kernel.
- Parameters:
kernelId
- The ID of the kernel.
-
getKernelId
public String getKernelId()
The ID of the kernel.
- Returns:
- The ID of the kernel.
-
withKernelId
public ScheduledInstancesLaunchSpecification withKernelId(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.
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type.
- Parameters:
instanceType
- The instance type.
-
getInstanceType
public String getInstanceType()
The instance type.
- Returns:
- The instance type.
-
withInstanceType
public ScheduledInstancesLaunchSpecification withInstanceType(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.
-
setRamdiskId
public void setRamdiskId(String ramdiskId)
The ID of the RAM disk.
- Parameters:
ramdiskId
- The ID of the RAM disk.
-
getRamdiskId
public String getRamdiskId()
The ID of the RAM disk.
- Returns:
- The ID of the RAM disk.
-
withRamdiskId
public ScheduledInstancesLaunchSpecification withRamdiskId(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.
-
getBlockDeviceMappings
public List<ScheduledInstancesBlockDeviceMapping> 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
public void setMonitoring(ScheduledInstancesMonitoring monitoring)
Enable or disable monitoring for the instances.
- Parameters:
monitoring
- Enable or disable monitoring for the instances.
-
getMonitoring
public ScheduledInstancesMonitoring 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
public void setSubnetId(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.
-
getSubnetId
public String 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
public ScheduledInstancesLaunchSpecification withSubnetId(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.
-
getNetworkInterfaces
public List<ScheduledInstancesNetworkInterface> getNetworkInterfaces()
One or more network interfaces.
- Returns:
- One or more network interfaces.
-
setNetworkInterfaces
public void setNetworkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces)
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
public void setIamInstanceProfile(ScheduledInstancesIamInstanceProfile iamInstanceProfile)
The IAM instance profile.
- Parameters:
iamInstanceProfile
- The IAM instance profile.
-
getIamInstanceProfile
public ScheduledInstancesIamInstanceProfile 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
public void setEbsOptimized(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
-
getEbsOptimized
public Boolean 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
public ScheduledInstancesLaunchSpecification withEbsOptimized(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.
-
isEbsOptimized
public Boolean 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScheduledInstancesLaunchSpecification clone()
-
-