@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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
or NetworkInterface
.
Constructor and Description |
---|
ScheduledInstancesLaunchSpecification() |
Modifier and Type | Method and Description |
---|---|
ScheduledInstancesLaunchSpecification |
clone() |
boolean |
equals(Object obj) |
List<ScheduledInstancesBlockDeviceMapping> |
getBlockDeviceMappings()
The 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()
The network interfaces.
|
ScheduledInstancesPlacement |
getPlacement()
The placement information.
|
String |
getRamdiskId()
The ID of the RAM disk.
|
List<String> |
getSecurityGroupIds()
The IDs of the 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)
The 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)
The 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 the 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.
|
ScheduledInstancesLaunchSpecification |
withBlockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings)
The block device mapping entries.
|
ScheduledInstancesLaunchSpecification |
withBlockDeviceMappings(ScheduledInstancesBlockDeviceMapping... blockDeviceMappings)
The 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)
The network interfaces.
|
ScheduledInstancesLaunchSpecification |
withNetworkInterfaces(ScheduledInstancesNetworkInterface... networkInterfaces)
The 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 the security groups.
|
ScheduledInstancesLaunchSpecification |
withSecurityGroupIds(String... securityGroupIds)
The IDs of the 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 List<ScheduledInstancesBlockDeviceMapping> getBlockDeviceMappings()
The block device mapping entries.
public void setBlockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings)
The block device mapping entries.
blockDeviceMappings
- The block device mapping entries.public ScheduledInstancesLaunchSpecification withBlockDeviceMappings(ScheduledInstancesBlockDeviceMapping... blockDeviceMappings)
The block device mapping entries.
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.
blockDeviceMappings
- The block device mapping entries.public ScheduledInstancesLaunchSpecification withBlockDeviceMappings(Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings)
The block device mapping entries.
blockDeviceMappings
- The block device mapping entries.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
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()
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
Default: false
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
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 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
Default: false
public void setIamInstanceProfile(ScheduledInstancesIamInstanceProfile iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.public ScheduledInstancesIamInstanceProfile getIamInstanceProfile()
The IAM instance profile.
public ScheduledInstancesLaunchSpecification withIamInstanceProfile(ScheduledInstancesIamInstanceProfile iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.public void setImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
imageId
- The ID of the Amazon Machine Image (AMI).public String getImageId()
The ID of the Amazon Machine Image (AMI).
public ScheduledInstancesLaunchSpecification withImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
imageId
- The ID of the Amazon Machine Image (AMI).public void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public String getInstanceType()
The instance type.
public ScheduledInstancesLaunchSpecification withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public void setKernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.public String getKernelId()
The ID of the kernel.
public ScheduledInstancesLaunchSpecification withKernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.public void setKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public String getKeyName()
The name of the key pair.
public ScheduledInstancesLaunchSpecification withKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public void setMonitoring(ScheduledInstancesMonitoring monitoring)
Enable or disable monitoring for the instances.
monitoring
- Enable or disable monitoring for the instances.public ScheduledInstancesMonitoring getMonitoring()
Enable or disable monitoring for the instances.
public ScheduledInstancesLaunchSpecification withMonitoring(ScheduledInstancesMonitoring monitoring)
Enable or disable monitoring for the instances.
monitoring
- Enable or disable monitoring for the instances.public List<ScheduledInstancesNetworkInterface> getNetworkInterfaces()
The network interfaces.
public void setNetworkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces)
The network interfaces.
networkInterfaces
- The network interfaces.public ScheduledInstancesLaunchSpecification withNetworkInterfaces(ScheduledInstancesNetworkInterface... networkInterfaces)
The network interfaces.
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.
networkInterfaces
- The network interfaces.public ScheduledInstancesLaunchSpecification withNetworkInterfaces(Collection<ScheduledInstancesNetworkInterface> networkInterfaces)
The network interfaces.
networkInterfaces
- The network interfaces.public void setPlacement(ScheduledInstancesPlacement placement)
The placement information.
placement
- The placement information.public ScheduledInstancesPlacement getPlacement()
The placement information.
public ScheduledInstancesLaunchSpecification withPlacement(ScheduledInstancesPlacement placement)
The placement information.
placement
- The placement information.public void setRamdiskId(String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.public String getRamdiskId()
The ID of the RAM disk.
public ScheduledInstancesLaunchSpecification withRamdiskId(String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.public List<String> getSecurityGroupIds()
The IDs of the security groups.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
The IDs of the security groups.
securityGroupIds
- The IDs of the security groups.public ScheduledInstancesLaunchSpecification withSecurityGroupIds(String... securityGroupIds)
The IDs of the security groups.
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.
securityGroupIds
- The IDs of the security groups.public ScheduledInstancesLaunchSpecification withSecurityGroupIds(Collection<String> securityGroupIds)
The IDs of the security groups.
securityGroupIds
- The IDs of the security groups.public void setSubnetId(String subnetId)
The ID of the subnet in which to launch the instances.
subnetId
- The ID of the subnet in which to launch the instances.public String getSubnetId()
The ID of the subnet in which to launch the instances.
public ScheduledInstancesLaunchSpecification withSubnetId(String subnetId)
The ID of the subnet in which to launch the instances.
subnetId
- The ID of the subnet in which to launch the instances.public void setUserData(String userData)
The base64-encoded MIME user data.
userData
- The base64-encoded MIME user data.public String getUserData()
The base64-encoded MIME user data.
public ScheduledInstancesLaunchSpecification withUserData(String userData)
The base64-encoded MIME user data.
userData
- The base64-encoded MIME user data.public String toString()
toString
in class Object
Object.toString()
public ScheduledInstancesLaunchSpecification clone()