com.amazonaws.services.autoscaling.model
Class LaunchConfiguration

java.lang.Object
  extended by com.amazonaws.services.autoscaling.model.LaunchConfiguration

public class LaunchConfiguration
extends Object

The LaunchConfiguration data type.


Constructor Summary
LaunchConfiguration()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<BlockDeviceMapping> getBlockDeviceMappings()
          Specifies how block devices are exposed to the instance.
 Date getCreatedTime()
          Provides the creation date and time for this launch configuration.
 String getIamInstanceProfile()
          Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
 String getImageId()
          Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
 InstanceMonitoring getInstanceMonitoring()
          Controls whether instances in this group are launched with detailed monitoring or not.
 String getInstanceType()
          Specifies the instance type of the Amazon EC2 instance.
 String getKernelId()
          Provides the ID of the kernel associated with the Amazon EC2 AMI.
 String getKeyName()
          Provides the name of the Amazon EC2 key pair.
 String getLaunchConfigurationARN()
          The launch configuration's Amazon Resource Name (ARN).
 String getLaunchConfigurationName()
          Specifies the name of the launch configuration.
 String getRamdiskId()
          Provides ID of the RAM disk associated with the Amazon EC2 AMI.
 List<String> getSecurityGroups()
          A description of the security groups to associate with the Amazon EC2 instances.
 String getSpotPrice()
          Specifies the price to bid when launching Spot Instances.
 String getUserData()
          The user data available to the launched Amazon EC2 instances.
 int hashCode()
           
 void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
          Specifies how block devices are exposed to the instance.
 void setCreatedTime(Date createdTime)
          Provides the creation date and time for this launch configuration.
 void setIamInstanceProfile(String iamInstanceProfile)
          Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
 void setImageId(String imageId)
          Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
 void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
          Controls whether instances in this group are launched with detailed monitoring or not.
 void setInstanceType(String instanceType)
          Specifies the instance type of the Amazon EC2 instance.
 void setKernelId(String kernelId)
          Provides the ID of the kernel associated with the Amazon EC2 AMI.
 void setKeyName(String keyName)
          Provides the name of the Amazon EC2 key pair.
 void setLaunchConfigurationARN(String launchConfigurationARN)
          The launch configuration's Amazon Resource Name (ARN).
 void setLaunchConfigurationName(String launchConfigurationName)
          Specifies the name of the launch configuration.
 void setRamdiskId(String ramdiskId)
          Provides ID of the RAM disk associated with the Amazon EC2 AMI.
 void setSecurityGroups(Collection<String> securityGroups)
          A description of the security groups to associate with the Amazon EC2 instances.
 void setSpotPrice(String spotPrice)
          Specifies the price to bid when launching Spot Instances.
 void setUserData(String userData)
          The user data available to the launched Amazon EC2 instances.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 LaunchConfiguration withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
          Specifies how block devices are exposed to the instance.
 LaunchConfiguration withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
          Specifies how block devices are exposed to the instance.
 LaunchConfiguration withCreatedTime(Date createdTime)
          Provides the creation date and time for this launch configuration.
 LaunchConfiguration withIamInstanceProfile(String iamInstanceProfile)
          Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
 LaunchConfiguration withImageId(String imageId)
          Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
 LaunchConfiguration withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
          Controls whether instances in this group are launched with detailed monitoring or not.
 LaunchConfiguration withInstanceType(String instanceType)
          Specifies the instance type of the Amazon EC2 instance.
 LaunchConfiguration withKernelId(String kernelId)
          Provides the ID of the kernel associated with the Amazon EC2 AMI.
 LaunchConfiguration withKeyName(String keyName)
          Provides the name of the Amazon EC2 key pair.
 LaunchConfiguration withLaunchConfigurationARN(String launchConfigurationARN)
          The launch configuration's Amazon Resource Name (ARN).
 LaunchConfiguration withLaunchConfigurationName(String launchConfigurationName)
          Specifies the name of the launch configuration.
 LaunchConfiguration withRamdiskId(String ramdiskId)
          Provides ID of the RAM disk associated with the Amazon EC2 AMI.
 LaunchConfiguration withSecurityGroups(Collection<String> securityGroups)
          A description of the security groups to associate with the Amazon EC2 instances.
 LaunchConfiguration withSecurityGroups(String... securityGroups)
          A description of the security groups to associate with the Amazon EC2 instances.
 LaunchConfiguration withSpotPrice(String spotPrice)
          Specifies the price to bid when launching Spot Instances.
 LaunchConfiguration withUserData(String userData)
          The user data available to the launched Amazon EC2 instances.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LaunchConfiguration

public LaunchConfiguration()
Method Detail

getLaunchConfigurationName

public String getLaunchConfigurationName()
Specifies the name of the launch configuration.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Specifies the name of the launch configuration.

setLaunchConfigurationName

public void setLaunchConfigurationName(String launchConfigurationName)
Specifies the name of the launch configuration.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
launchConfigurationName - Specifies the name of the launch configuration.

withLaunchConfigurationName

public LaunchConfiguration withLaunchConfigurationName(String launchConfigurationName)
Specifies the name of the launch configuration.

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

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
launchConfigurationName - Specifies the name of the launch configuration.
Returns:
A reference to this updated object so that method calls can be chained together.

getLaunchConfigurationARN

public String getLaunchConfigurationARN()
The launch configuration's Amazon Resource Name (ARN).

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The launch configuration's Amazon Resource Name (ARN).

setLaunchConfigurationARN

public void setLaunchConfigurationARN(String launchConfigurationARN)
The launch configuration's Amazon Resource Name (ARN).

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
launchConfigurationARN - The launch configuration's Amazon Resource Name (ARN).

withLaunchConfigurationARN

public LaunchConfiguration withLaunchConfigurationARN(String launchConfigurationARN)
The launch configuration's Amazon Resource Name (ARN).

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

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
launchConfigurationARN - The launch configuration's Amazon Resource Name (ARN).
Returns:
A reference to this updated object so that method calls can be chained together.

getImageId

public String getImageId()
Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.

setImageId

public void setImageId(String imageId)
Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
imageId - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.

withImageId

public LaunchConfiguration withImageId(String imageId)
Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.

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

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
imageId - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
Returns:
A reference to this updated object so that method calls can be chained together.

getKeyName

public String getKeyName()
Provides the name of the Amazon EC2 key pair.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Provides the name of the Amazon EC2 key pair.

setKeyName

public void setKeyName(String keyName)
Provides the name of the Amazon EC2 key pair.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
keyName - Provides the name of the Amazon EC2 key pair.

withKeyName

public LaunchConfiguration withKeyName(String keyName)
Provides the name of the Amazon EC2 key pair.

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

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

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

getSecurityGroups

public List<String> getSecurityGroups()
A description of the security groups to associate with the Amazon EC2 instances.

Returns:
A description of the security groups to associate with the Amazon EC2 instances.

setSecurityGroups

public void setSecurityGroups(Collection<String> securityGroups)
A description of the security groups to associate with the Amazon EC2 instances.

Parameters:
securityGroups - A description of the security groups to associate with the Amazon EC2 instances.

withSecurityGroups

public LaunchConfiguration withSecurityGroups(String... securityGroups)
A description of the security groups to associate with the Amazon EC2 instances.

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

Parameters:
securityGroups - A description of the security groups to associate with the Amazon EC2 instances.
Returns:
A reference to this updated object so that method calls can be chained together.

withSecurityGroups

public LaunchConfiguration withSecurityGroups(Collection<String> securityGroups)
A description of the security groups to associate with the Amazon EC2 instances.

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

Parameters:
securityGroups - A description of the security groups to associate with the Amazon EC2 instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getUserData

public String getUserData()
The user data available to the launched Amazon EC2 instances.

Constraints:
Length: 0 - 21847
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The user data available to the launched Amazon EC2 instances.

setUserData

public void setUserData(String userData)
The user data available to the launched Amazon EC2 instances.

Constraints:
Length: 0 - 21847
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
userData - The user data available to the launched Amazon EC2 instances.

withUserData

public LaunchConfiguration withUserData(String userData)
The user data available to the launched Amazon EC2 instances.

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

Constraints:
Length: 0 - 21847
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
userData - The user data available to the launched Amazon EC2 instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public String getInstanceType()
Specifies the instance type of the Amazon EC2 instance.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Specifies the instance type of the Amazon EC2 instance.

setInstanceType

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

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
instanceType - Specifies the instance type of the Amazon EC2 instance.

withInstanceType

public LaunchConfiguration withInstanceType(String instanceType)
Specifies the instance type of the Amazon EC2 instance.

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

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

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

getKernelId

public String getKernelId()
Provides the ID of the kernel associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Provides the ID of the kernel associated with the Amazon EC2 AMI.

setKernelId

public void setKernelId(String kernelId)
Provides the ID of the kernel associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
kernelId - Provides the ID of the kernel associated with the Amazon EC2 AMI.

withKernelId

public LaunchConfiguration withKernelId(String kernelId)
Provides the ID of the kernel associated with the Amazon EC2 AMI.

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

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
kernelId - Provides the ID of the kernel associated with the Amazon EC2 AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getRamdiskId

public String getRamdiskId()
Provides ID of the RAM disk associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Provides ID of the RAM disk associated with the Amazon EC2 AMI.

setRamdiskId

public void setRamdiskId(String ramdiskId)
Provides ID of the RAM disk associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
ramdiskId - Provides ID of the RAM disk associated with the Amazon EC2 AMI.

withRamdiskId

public LaunchConfiguration withRamdiskId(String ramdiskId)
Provides ID of the RAM disk associated with the Amazon EC2 AMI.

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

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
ramdiskId - Provides ID of the RAM disk associated with the Amazon EC2 AMI.
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 LaunchConfiguration 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 LaunchConfiguration 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.

getInstanceMonitoring

public InstanceMonitoring getInstanceMonitoring()
Controls whether instances in this group are launched with detailed monitoring or not.

Returns:
Controls whether instances in this group are launched with detailed monitoring or not.

setInstanceMonitoring

public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed monitoring or not.

Parameters:
instanceMonitoring - Controls whether instances in this group are launched with detailed monitoring or not.

withInstanceMonitoring

public LaunchConfiguration withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed monitoring or not.

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

Parameters:
instanceMonitoring - Controls whether instances in this group are launched with detailed monitoring or not.
Returns:
A reference to this updated object so that method calls can be chained together.

getSpotPrice

public String getSpotPrice()
Specifies the price to bid when launching Spot Instances.

Constraints:
Length: 1 - 255

Returns:
Specifies the price to bid when launching Spot Instances.

setSpotPrice

public void setSpotPrice(String spotPrice)
Specifies the price to bid when launching Spot Instances.

Constraints:
Length: 1 - 255

Parameters:
spotPrice - Specifies the price to bid when launching Spot Instances.

withSpotPrice

public LaunchConfiguration withSpotPrice(String spotPrice)
Specifies the price to bid when launching Spot Instances.

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

Constraints:
Length: 1 - 255

Parameters:
spotPrice - Specifies the price to bid when launching Spot Instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getIamInstanceProfile

public String getIamInstanceProfile()
Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.

setIamInstanceProfile

public void setIamInstanceProfile(String iamInstanceProfile)
Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
iamInstanceProfile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.

withIamInstanceProfile

public LaunchConfiguration withIamInstanceProfile(String iamInstanceProfile)
Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.

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

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
iamInstanceProfile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreatedTime

public Date getCreatedTime()
Provides the creation date and time for this launch configuration.

Returns:
Provides the creation date and time for this launch configuration.

setCreatedTime

public void setCreatedTime(Date createdTime)
Provides the creation date and time for this launch configuration.

Parameters:
createdTime - Provides the creation date and time for this launch configuration.

withCreatedTime

public LaunchConfiguration withCreatedTime(Date createdTime)
Provides the creation date and time for this launch configuration.

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

Parameters:
createdTime - Provides the creation date and time for this launch configuration.
Returns:
A reference to this updated object so that method calls can be chained together.

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.