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