public class ScheduledInstancesLaunchSpecification extends Object implements Serializable, Cloneable
Describes the launch specification for a Scheduled Instance.
| Constructor and Description |
|---|
ScheduledInstancesLaunchSpecification() |
| Modifier and Type | Method and 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(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
ScheduledInstancesLaunchSpecification |
withBlockDeviceMappings(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(Collection<ScheduledInstancesNetworkInterface> networkInterfaces)
One or more network interfaces.
|
ScheduledInstancesLaunchSpecification |
withNetworkInterfaces(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(Collection<String> securityGroupIds)
The IDs of one or more security groups.
|
ScheduledInstancesLaunchSpecification |
withSecurityGroupIds(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.
|
public ScheduledInstancesLaunchSpecification()
public String getImageId()
public void setImageId(String imageId)
imageId - The ID of the Amazon Machine Image (AMI).public ScheduledInstancesLaunchSpecification withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId - The ID of the Amazon Machine Image (AMI).public String getKeyName()
public void setKeyName(String keyName)
keyName - The name of the key pair.public ScheduledInstancesLaunchSpecification withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName - The name of the key pair.public List<String> getSecurityGroupIds()
public void setSecurityGroupIds(Collection<String> securityGroupIds)
securityGroupIds - The IDs of one or more security groups.public ScheduledInstancesLaunchSpecification withSecurityGroupIds(String... securityGroupIds)
NOTE: This method appends the values to the existing list (if
any). Use setSecurityGroupIds(java.util.Collection) or withSecurityGroupIds(java.util.Collection) if you want to override
the existing values.
Returns a reference to this object so that method calls can be chained together.
securityGroupIds - The IDs of one or more security groups.public ScheduledInstancesLaunchSpecification withSecurityGroupIds(Collection<String> securityGroupIds)
Returns a reference to this object so that method calls can be chained together.
securityGroupIds - The IDs of one or more security groups.public String getUserData()
public void setUserData(String userData)
userData - The base64-encoded MIME user data.public ScheduledInstancesLaunchSpecification withUserData(String userData)
Returns a reference to this object so that method calls can be chained together.
userData - The base64-encoded MIME user data.public ScheduledInstancesPlacement getPlacement()
public void setPlacement(ScheduledInstancesPlacement placement)
placement - The placement information.public ScheduledInstancesLaunchSpecification withPlacement(ScheduledInstancesPlacement placement)
Returns a reference to this object so that method calls can be chained together.
placement - The placement information.public String getKernelId()
public void setKernelId(String kernelId)
kernelId - The ID of the kernel.public ScheduledInstancesLaunchSpecification withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId - The ID of the kernel.public String getInstanceType()
public void setInstanceType(String instanceType)
instanceType - The instance type.public ScheduledInstancesLaunchSpecification withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType - The instance type.public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId - The ID of the RAM disk.public ScheduledInstancesLaunchSpecification withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId - The ID of the RAM disk.public List<ScheduledInstancesBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings - One or more block device mapping entries.public ScheduledInstancesLaunchSpecification withBlockDeviceMappings(ScheduledInstancesBlockDeviceMapping... blockDeviceMappings)
NOTE: This method appends the values to the existing list (if
any). Use setBlockDeviceMappings(java.util.Collection) or
withBlockDeviceMappings(java.util.Collection) if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - One or more block device mapping entries.public ScheduledInstancesLaunchSpecification withBlockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - One or more block device mapping entries.public ScheduledInstancesMonitoring getMonitoring()
public void setMonitoring(ScheduledInstancesMonitoring monitoring)
monitoring - Enable or disable monitoring for the instances.public ScheduledInstancesLaunchSpecification withMonitoring(ScheduledInstancesMonitoring monitoring)
Returns a reference to this object so that method calls can be chained together.
monitoring - Enable or disable monitoring for the instances.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId - The ID of the subnet in which to launch the instances.public ScheduledInstancesLaunchSpecification withSubnetId(String subnetId)
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.public List<ScheduledInstancesNetworkInterface> getNetworkInterfaces()
public void setNetworkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces)
networkInterfaces - One or more network interfaces.public ScheduledInstancesLaunchSpecification withNetworkInterfaces(ScheduledInstancesNetworkInterface... networkInterfaces)
NOTE: This method appends the values to the existing list (if
any). Use setNetworkInterfaces(java.util.Collection) or
withNetworkInterfaces(java.util.Collection) if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
networkInterfaces - One or more network interfaces.public ScheduledInstancesLaunchSpecification withNetworkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces - One or more network interfaces.public ScheduledInstancesIamInstanceProfile getIamInstanceProfile()
public void setIamInstanceProfile(ScheduledInstancesIamInstanceProfile iamInstanceProfile)
iamInstanceProfile - The IAM instance profile.public ScheduledInstancesLaunchSpecification withIamInstanceProfile(ScheduledInstancesIamInstanceProfile iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
iamInstanceProfile - The IAM instance profile.public Boolean isEbsOptimized()
Default:
false
Default:
false
public void setEbsOptimized(Boolean ebsOptimized)
Default:
false
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
public ScheduledInstancesLaunchSpecification withEbsOptimized(Boolean ebsOptimized)
Default:
false
Returns a reference to this object so that method calls can be chained together.
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
public Boolean getEbsOptimized()
Default:
false
Default:
false
public String toString()
toString in class ObjectObject.toString()public ScheduledInstancesLaunchSpecification clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.