|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.LaunchSpecification
public class LaunchSpecification
The LaunchSpecificationType data type.
Constructor Summary | |
---|---|
LaunchSpecification()
|
Method Summary | |
---|---|
String |
getAddressingType()
Deprecated. |
List<BlockDeviceMapping> |
getBlockDeviceMappings()
Specifies how block devices are exposed to the instance. |
String |
getImageId()
The AMI ID. |
String |
getInstanceType()
Specifies the instance type. |
String |
getKernelId()
Specifies the ID of the kernel to select. |
String |
getKeyName()
The name of the key pair. |
Boolean |
getMonitoringEnabled()
|
Placement |
getPlacement()
Defines a placement item. |
String |
getRamdiskId()
Specifies the ID of the RAM disk to select. |
List<String> |
getSecurityGroups()
|
String |
getSubnetId()
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. |
String |
getUserData()
Optional data, specific to a user's application, to provide in the launch request. |
Boolean |
isMonitoringEnabled()
|
void |
setAddressingType(String addressingType)
Deprecated. |
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
void |
setImageId(String imageId)
The AMI ID. |
void |
setInstanceType(String instanceType)
Specifies the instance type. |
void |
setKernelId(String kernelId)
Specifies the ID of the kernel to select. |
void |
setKeyName(String keyName)
The name of the key pair. |
void |
setMonitoringEnabled(Boolean monitoringEnabled)
|
void |
setPlacement(Placement placement)
Defines a placement item. |
void |
setRamdiskId(String ramdiskId)
Specifies the ID of the RAM disk to select. |
void |
setSecurityGroups(Collection<String> securityGroups)
|
void |
setSubnetId(String subnetId)
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. |
void |
setUserData(String userData)
Optional data, specific to a user's application, to provide in the launch request. |
String |
toString()
|
LaunchSpecification |
withAddressingType(String addressingType)
Deprecated. |
LaunchSpecification |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
LaunchSpecification |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
LaunchSpecification |
withImageId(String imageId)
The AMI ID. |
LaunchSpecification |
withInstanceType(String instanceType)
Specifies the instance type. |
LaunchSpecification |
withKernelId(String kernelId)
Specifies the ID of the kernel to select. |
LaunchSpecification |
withKeyName(String keyName)
The name of the key pair. |
LaunchSpecification |
withMonitoringEnabled(Boolean monitoringEnabled)
Returns a reference to this object so that method calls can be chained together. |
LaunchSpecification |
withPlacement(Placement placement)
Defines a placement item. |
LaunchSpecification |
withRamdiskId(String ramdiskId)
Specifies the ID of the RAM disk to select. |
LaunchSpecification |
withSecurityGroups(Collection<String> securityGroups)
Returns a reference to this object so that method calls can be chained together. |
LaunchSpecification |
withSecurityGroups(String... securityGroups)
Returns a reference to this object so that method calls can be chained together. |
LaunchSpecification |
withSubnetId(String subnetId)
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. |
LaunchSpecification |
withUserData(String userData)
Optional data, specific to a user's application, to provide in the launch request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LaunchSpecification()
Method Detail |
---|
public String getImageId()
public void setImageId(String imageId)
imageId
- The AMI ID.public LaunchSpecification withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId
- The AMI ID.
public String getKeyName()
public void setKeyName(String keyName)
keyName
- The name of the key pair.public LaunchSpecification 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> getSecurityGroups()
public void setSecurityGroups(Collection<String> securityGroups)
securityGroups
- public LaunchSpecification withSecurityGroups(String... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
-
public LaunchSpecification withSecurityGroups(Collection<String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
-
public String getUserData()
public void setUserData(String userData)
userData
- Optional data, specific to a user's application, to provide in the
launch request. All instances that collectively comprise the launch
request have access to this data. User data is never returned through
API responses.public LaunchSpecification withUserData(String userData)
Returns a reference to this object so that method calls can be chained together.
userData
- Optional data, specific to a user's application, to provide in the
launch request. All instances that collectively comprise the launch
request have access to this data. User data is never returned through
API responses.
public String getAddressingType()
public void setAddressingType(String addressingType)
addressingType
- Deprecated.public LaunchSpecification withAddressingType(String addressingType)
Returns a reference to this object so that method calls can be chained together.
addressingType
- Deprecated.
public String getInstanceType()
Constraints:
Allowed Values: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge
InstanceType
public void setInstanceType(String instanceType)
Constraints:
Allowed Values: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge
instanceType
- Specifies the instance type.InstanceType
public LaunchSpecification withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge
instanceType
- Specifies the instance type.
InstanceType
public Placement getPlacement()
public void setPlacement(Placement placement)
placement
- Defines a placement item.public LaunchSpecification withPlacement(Placement placement)
Returns a reference to this object so that method calls can be chained together.
placement
- Defines a placement item.
public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- Specifies the ID of the kernel to select.public LaunchSpecification withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- Specifies the ID of the kernel to select.
public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId
- Specifies the ID of the RAM disk to select. Some kernels require
additional drivers at launch. Check the kernel requirements for
information on whether or not you need to specify a RAM disk and
search for the kernel ID.public LaunchSpecification withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- Specifies the ID of the RAM disk to select. Some kernels require
additional drivers at launch. Check the kernel requirements for
information on whether or not you need to specify a RAM disk and
search for the kernel ID.
public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- Specifies how block devices are exposed to the instance. Each mapping
is made up of a virtualName and a deviceName.public LaunchSpecification withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Specifies how block devices are exposed to the instance. Each mapping
is made up of a virtualName and a deviceName.
public LaunchSpecification withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Specifies how block devices are exposed to the instance. Each mapping
is made up of a virtualName and a deviceName.
public Boolean isMonitoringEnabled()
public void setMonitoringEnabled(Boolean monitoringEnabled)
monitoringEnabled
- public LaunchSpecification withMonitoringEnabled(Boolean monitoringEnabled)
Returns a reference to this object so that method calls can be chained together.
monitoringEnabled
-
public Boolean getMonitoringEnabled()
public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- Specifies the Amazon VPC subnet ID within which to launch the
instance(s) for Amazon Virtual Private Cloud.public LaunchSpecification withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- Specifies the Amazon VPC subnet ID within which to launch the
instance(s) for Amazon Virtual Private Cloud.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |