public class ScheduledInstancesLaunchSpecification
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
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.
|
public ScheduledInstancesLaunchSpecification()
public java.lang.String getImageId()
public void setImageId(java.lang.String imageId)
imageId
- The ID of the Amazon Machine Image (AMI).public ScheduledInstancesLaunchSpecification withImageId(java.lang.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 java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName
- The name of the key pair.public ScheduledInstancesLaunchSpecification withKeyName(java.lang.String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- The name of the key pair.public java.util.List<java.lang.String> getSecurityGroupIds()
public void setSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)
securityGroupIds
- The IDs of one or more security groups.public ScheduledInstancesLaunchSpecification withSecurityGroupIds(java.lang.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 ScheduledInstancesLaunchSpecification withSecurityGroupIds(java.util.Collection<java.lang.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 java.lang.String getUserData()
public void setUserData(java.lang.String userData)
userData
- The base64-encoded MIME user data.public ScheduledInstancesLaunchSpecification withUserData(java.lang.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 java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId
- The ID of the kernel.public ScheduledInstancesLaunchSpecification withKernelId(java.lang.String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The ID of the kernel.public java.lang.String getInstanceType()
public void setInstanceType(java.lang.String instanceType)
instanceType
- The instance type.public ScheduledInstancesLaunchSpecification withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type.public java.lang.String getRamdiskId()
public void setRamdiskId(java.lang.String ramdiskId)
ramdiskId
- The ID of the RAM disk.public ScheduledInstancesLaunchSpecification withRamdiskId(java.lang.String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The ID of the RAM disk.public java.util.List<ScheduledInstancesBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(java.util.Collection<ScheduledInstancesBlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- One or more block device mapping entries.public ScheduledInstancesLaunchSpecification withBlockDeviceMappings(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 ScheduledInstancesLaunchSpecification withBlockDeviceMappings(java.util.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 java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- The ID of the subnet in which to launch the instances.public ScheduledInstancesLaunchSpecification withSubnetId(java.lang.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 java.util.List<ScheduledInstancesNetworkInterface> getNetworkInterfaces()
public void setNetworkInterfaces(java.util.Collection<ScheduledInstancesNetworkInterface> networkInterfaces)
networkInterfaces
- One or more network interfaces.public ScheduledInstancesLaunchSpecification withNetworkInterfaces(ScheduledInstancesNetworkInterface... networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- One or more network interfaces.public ScheduledInstancesLaunchSpecification withNetworkInterfaces(java.util.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 java.lang.Boolean isEbsOptimized()
Default:
false
Default:
false
public void setEbsOptimized(java.lang.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(java.lang.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 java.lang.Boolean getEbsOptimized()
Default:
false
Default:
false
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.