com.amazonaws.services.ec2.model
Class LaunchSpecification

java.lang.Object
  extended by com.amazonaws.services.ec2.model.LaunchSpecification

public class LaunchSpecification
extends Object

The LaunchSpecificationType data type.


Constructor Summary
LaunchSpecification()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAddressingType()
          Deprecated.
 List<GroupIdentifier> getAllSecurityGroups()
          Returns the value of the AllSecurityGroups property for this object.
 List<BlockDeviceMapping> getBlockDeviceMappings()
          Specifies how block devices are exposed to the instance.
 Boolean getEbsOptimized()
          Returns the value of the EbsOptimized property for this object.
 IamInstanceProfileSpecification getIamInstanceProfile()
          Returns the value of the IamInstanceProfile property for this object.
 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()
          Enables monitoring for the instance.
 List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
          Returns the value of the NetworkInterfaces property for this object.
 SpotPlacement getPlacement()
          Defines a placement item.
 String getRamdiskId()
          Specifies the ID of the RAM disk to select.
 List<String> getSecurityGroups()
          Returns the value of the SecurityGroups property for this object.
 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.
 int hashCode()
           
 Boolean isEbsOptimized()
          Returns the value of the EbsOptimized property for this object.
 Boolean isMonitoringEnabled()
          Enables monitoring for the instance.
 void setAddressingType(String addressingType)
          Deprecated.
 void setAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
          Sets the value of the AllSecurityGroups property for this object.
 void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
          Specifies how block devices are exposed to the instance.
 void setEbsOptimized(Boolean ebsOptimized)
          Sets the value of the EbsOptimized property for this object.
 void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
          Sets the value of the IamInstanceProfile property for this object.
 void setImageId(String imageId)
          The AMI ID.
 void setInstanceType(InstanceType instanceType)
          Specifies the instance type.
 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)
          Enables monitoring for the instance.
 void setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
          Sets the value of the NetworkInterfaces property for this object.
 void setPlacement(SpotPlacement placement)
          Defines a placement item.
 void setRamdiskId(String ramdiskId)
          Specifies the ID of the RAM disk to select.
 void setSecurityGroups(Collection<String> securityGroups)
          Sets the value of the SecurityGroups property for this object.
 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()
          Returns a string representation of this object; useful for testing and debugging.
 LaunchSpecification withAddressingType(String addressingType)
          Deprecated.
 LaunchSpecification withAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
          Sets the value of the AllSecurityGroups property for this object.
 LaunchSpecification withAllSecurityGroups(GroupIdentifier... allSecurityGroups)
          Sets the value of the AllSecurityGroups property for this object.
 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 withEbsOptimized(Boolean ebsOptimized)
          Sets the value of the EbsOptimized property for this object.
 LaunchSpecification withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
          Sets the value of the IamInstanceProfile property for this object.
 LaunchSpecification withImageId(String imageId)
          The AMI ID.
 LaunchSpecification withInstanceType(InstanceType instanceType)
          Specifies the instance type.
 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)
          Enables monitoring for the instance.
 LaunchSpecification withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
          Sets the value of the NetworkInterfaces property for this object.
 LaunchSpecification withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
          Sets the value of the NetworkInterfaces property for this object.
 LaunchSpecification withPlacement(SpotPlacement placement)
          Defines a placement item.
 LaunchSpecification withRamdiskId(String ramdiskId)
          Specifies the ID of the RAM disk to select.
 LaunchSpecification withSecurityGroups(Collection<String> securityGroups)
          Sets the value of the SecurityGroups property for this object.
 LaunchSpecification withSecurityGroups(String... securityGroups)
          Sets the value of the SecurityGroups property for this object.
 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
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LaunchSpecification

public LaunchSpecification()
Method Detail

getImageId

public String getImageId()
The AMI ID.

Returns:
The AMI ID.

setImageId

public void setImageId(String imageId)
The AMI ID.

Parameters:
imageId - The AMI ID.

withImageId

public LaunchSpecification withImageId(String imageId)
The AMI ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
imageId - The AMI ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getKeyName

public String getKeyName()
The name of the key pair.

Returns:
The name of the key pair.

setKeyName

public void setKeyName(String keyName)
The name of the key pair.

Parameters:
keyName - The name of the key pair.

withKeyName

public LaunchSpecification withKeyName(String keyName)
The name of the key pair.

Returns a reference to this object so that method calls can be chained together.

Parameters:
keyName - The name of the key pair.
Returns:
A reference to this updated object so that method calls can be chained together.

getAllSecurityGroups

public List<GroupIdentifier> getAllSecurityGroups()
Returns the value of the AllSecurityGroups property for this object.

Returns:
The value of the AllSecurityGroups property for this object.

setAllSecurityGroups

public void setAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
Sets the value of the AllSecurityGroups property for this object.

Parameters:
allSecurityGroups - The new value for the AllSecurityGroups property for this object.

withAllSecurityGroups

public LaunchSpecification withAllSecurityGroups(GroupIdentifier... allSecurityGroups)
Sets the value of the AllSecurityGroups property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
allSecurityGroups - The new value for the AllSecurityGroups property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withAllSecurityGroups

public LaunchSpecification withAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
Sets the value of the AllSecurityGroups property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
allSecurityGroups - The new value for the AllSecurityGroups property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getSecurityGroups

public List<String> getSecurityGroups()
Returns the value of the SecurityGroups property for this object.

Returns:
The value of the SecurityGroups property for this object.

setSecurityGroups

public void setSecurityGroups(Collection<String> securityGroups)
Sets the value of the SecurityGroups property for this object.

Parameters:
securityGroups - The new value for the SecurityGroups property for this object.

withSecurityGroups

public LaunchSpecification withSecurityGroups(String... securityGroups)
Sets the value of the SecurityGroups property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
securityGroups - The new value for the SecurityGroups property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withSecurityGroups

public LaunchSpecification withSecurityGroups(Collection<String> securityGroups)
Sets the value of the SecurityGroups property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
securityGroups - The new value for the SecurityGroups property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getUserData

public String getUserData()
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.

Returns:
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.

setUserData

public void setUserData(String 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.

Parameters:
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.

withUserData

public LaunchSpecification withUserData(String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getAddressingType

public String getAddressingType()
Deprecated.

Returns:
Deprecated.

setAddressingType

public void setAddressingType(String addressingType)
Deprecated.

Parameters:
addressingType - Deprecated.

withAddressingType

public LaunchSpecification withAddressingType(String addressingType)
Deprecated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
addressingType - Deprecated.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public String getInstanceType()
Specifies the instance type.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Returns:
Specifies the instance type.
See Also:
InstanceType

setInstanceType

public void setInstanceType(String instanceType)
Specifies the instance type.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - Specifies the instance type.
See Also:
InstanceType

withInstanceType

public LaunchSpecification withInstanceType(String instanceType)
Specifies the instance type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - Specifies the instance type.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

setInstanceType

public void setInstanceType(InstanceType instanceType)
Specifies the instance type.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - Specifies the instance type.
See Also:
InstanceType

withInstanceType

public LaunchSpecification withInstanceType(InstanceType instanceType)
Specifies the instance type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - Specifies the instance type.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

getPlacement

public SpotPlacement getPlacement()
Defines a placement item.

Returns:
Defines a placement item.

setPlacement

public void setPlacement(SpotPlacement placement)
Defines a placement item.

Parameters:
placement - Defines a placement item.

withPlacement

public LaunchSpecification withPlacement(SpotPlacement placement)
Defines a placement item.

Returns a reference to this object so that method calls can be chained together.

Parameters:
placement - Defines a placement item.
Returns:
A reference to this updated object so that method calls can be chained together.

getKernelId

public String getKernelId()
Specifies the ID of the kernel to select.

Returns:
Specifies the ID of the kernel to select.

setKernelId

public void setKernelId(String kernelId)
Specifies the ID of the kernel to select.

Parameters:
kernelId - Specifies the ID of the kernel to select.

withKernelId

public LaunchSpecification withKernelId(String kernelId)
Specifies the ID of the kernel to select.

Returns a reference to this object so that method calls can be chained together.

Parameters:
kernelId - Specifies the ID of the kernel to select.
Returns:
A reference to this updated object so that method calls can be chained together.

getRamdiskId

public String getRamdiskId()
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.

Returns:
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.

setRamdiskId

public void setRamdiskId(String 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.

Parameters:
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.

withRamdiskId

public LaunchSpecification withRamdiskId(String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getBlockDeviceMappings

public List<BlockDeviceMapping> getBlockDeviceMappings()
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

Returns:
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

setBlockDeviceMappings

public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

Parameters:
blockDeviceMappings - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

withBlockDeviceMappings

public LaunchSpecification withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
Returns:
A reference to this updated object so that method calls can be chained together.

withBlockDeviceMappings

public LaunchSpecification withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
Returns:
A reference to this updated object so that method calls can be chained together.

isMonitoringEnabled

public Boolean isMonitoringEnabled()
Enables monitoring for the instance.

Returns:
Enables monitoring for the instance.

setMonitoringEnabled

public void setMonitoringEnabled(Boolean monitoringEnabled)
Enables monitoring for the instance.

Parameters:
monitoringEnabled - Enables monitoring for the instance.

withMonitoringEnabled

public LaunchSpecification withMonitoringEnabled(Boolean monitoringEnabled)
Enables monitoring for the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
monitoringEnabled - Enables monitoring for the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getMonitoringEnabled

public Boolean getMonitoringEnabled()
Enables monitoring for the instance.

Returns:
Enables monitoring for the instance.

getSubnetId

public String getSubnetId()
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

Returns:
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

setSubnetId

public void setSubnetId(String subnetId)
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

Parameters:
subnetId - Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

withSubnetId

public LaunchSpecification withSubnetId(String subnetId)
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

Returns a reference to this object so that method calls can be chained together.

Parameters:
subnetId - Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.
Returns:
A reference to this updated object so that method calls can be chained together.

getNetworkInterfaces

public List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
Returns the value of the NetworkInterfaces property for this object.

Returns:
The value of the NetworkInterfaces property for this object.

setNetworkInterfaces

public void setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.

Parameters:
networkInterfaces - The new value for the NetworkInterfaces property for this object.

withNetworkInterfaces

public LaunchSpecification withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
networkInterfaces - The new value for the NetworkInterfaces property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withNetworkInterfaces

public LaunchSpecification withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
networkInterfaces - The new value for the NetworkInterfaces property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getIamInstanceProfile

public IamInstanceProfileSpecification getIamInstanceProfile()
Returns the value of the IamInstanceProfile property for this object.

Returns:
The value of the IamInstanceProfile property for this object.

setIamInstanceProfile

public void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.

Parameters:
iamInstanceProfile - The new value for the IamInstanceProfile property for this object.

withIamInstanceProfile

public LaunchSpecification withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
iamInstanceProfile - The new value for the IamInstanceProfile property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

isEbsOptimized

public Boolean isEbsOptimized()
Returns the value of the EbsOptimized property for this object.

Returns:
The value of the EbsOptimized property for this object.

setEbsOptimized

public void setEbsOptimized(Boolean ebsOptimized)
Sets the value of the EbsOptimized property for this object.

Parameters:
ebsOptimized - The new value for the EbsOptimized property for this object.

withEbsOptimized

public LaunchSpecification withEbsOptimized(Boolean ebsOptimized)
Sets the value of the EbsOptimized property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ebsOptimized - The new value for the EbsOptimized property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getEbsOptimized

public Boolean getEbsOptimized()
Returns the value of the EbsOptimized property for this object.

Returns:
The value of the EbsOptimized property for this object.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.