Class CreateLaunchConfigurationRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.autoscaling.model.CreateLaunchConfigurationRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateLaunchConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateLaunchConfigurationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateLaunchConfigurationRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
Boolean
getAssociatePublicIpAddress()
Used for groups that launch instances into a virtual private cloud (VPC).List<BlockDeviceMapping>
getBlockDeviceMappings()
One or more mappings that specify how block devices are exposed to the instance.String
getClassicLinkVPCId()
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.List<String>
getClassicLinkVPCSecurityGroups()
The IDs of one or more security groups for the specified ClassicLink-enabled VPC.Boolean
getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.String
getIamInstanceProfile()
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.String
getImageId()
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.String
getInstanceId()
The ID of the instance to use to create the launch configuration.InstanceMonitoring
getInstanceMonitoring()
Enables detailed monitoring if it is disabled.String
getInstanceType()
The instance type of the EC2 instance.String
getKernelId()
The ID of the kernel associated with the AMI.String
getKeyName()
The name of the key pair.String
getLaunchConfigurationName()
The name of the launch configuration.String
getPlacementTenancy()
The tenancy of the instance.String
getRamdiskId()
The ID of the RAM disk associated with the AMI.List<String>
getSecurityGroups()
One or more security groups with which to associate the instances.String
getSpotPrice()
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.String
getUserData()
The user data to make available to the launched EC2 instances.int
hashCode()
Boolean
isAssociatePublicIpAddress()
Used for groups that launch instances into a virtual private cloud (VPC).Boolean
isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.void
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Used for groups that launch instances into a virtual private cloud (VPC).void
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance.void
setClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.void
setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the specified ClassicLink-enabled VPC.void
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.void
setIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.void
setImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.void
setInstanceId(String instanceId)
The ID of the instance to use to create the launch configuration.void
setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring if it is disabled.void
setInstanceType(String instanceType)
The instance type of the EC2 instance.void
setKernelId(String kernelId)
The ID of the kernel associated with the AMI.void
setKeyName(String keyName)
The name of the key pair.void
setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.void
setPlacementTenancy(String placementTenancy)
The tenancy of the instance.void
setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.void
setSecurityGroups(Collection<String> securityGroups)
One or more security groups with which to associate the instances.void
setSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.void
setUserData(String userData)
The user data to make available to the launched EC2 instances.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateLaunchConfigurationRequest
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Used for groups that launch instances into a virtual private cloud (VPC).CreateLaunchConfigurationRequest
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance.CreateLaunchConfigurationRequest
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance.CreateLaunchConfigurationRequest
withClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.CreateLaunchConfigurationRequest
withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the specified ClassicLink-enabled VPC.CreateLaunchConfigurationRequest
withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the specified ClassicLink-enabled VPC.CreateLaunchConfigurationRequest
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.CreateLaunchConfigurationRequest
withIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.CreateLaunchConfigurationRequest
withImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.CreateLaunchConfigurationRequest
withInstanceId(String instanceId)
The ID of the instance to use to create the launch configuration.CreateLaunchConfigurationRequest
withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring if it is disabled.CreateLaunchConfigurationRequest
withInstanceType(String instanceType)
The instance type of the EC2 instance.CreateLaunchConfigurationRequest
withKernelId(String kernelId)
The ID of the kernel associated with the AMI.CreateLaunchConfigurationRequest
withKeyName(String keyName)
The name of the key pair.CreateLaunchConfigurationRequest
withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.CreateLaunchConfigurationRequest
withPlacementTenancy(String placementTenancy)
The tenancy of the instance.CreateLaunchConfigurationRequest
withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.CreateLaunchConfigurationRequest
withSecurityGroups(String... securityGroups)
One or more security groups with which to associate the instances.CreateLaunchConfigurationRequest
withSecurityGroups(Collection<String> securityGroups)
One or more security groups with which to associate the instances.CreateLaunchConfigurationRequest
withSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request.CreateLaunchConfigurationRequest
withUserData(String userData)
The user data to make available to the launched EC2 instances.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setLaunchConfigurationName
public void setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration. This name must be unique within the scope of your AWS account.
- Parameters:
launchConfigurationName
- The name of the launch configuration. This name must be unique within the scope of your AWS account.
-
getLaunchConfigurationName
public String getLaunchConfigurationName()
The name of the launch configuration. This name must be unique within the scope of your AWS account.
- Returns:
- The name of the launch configuration. This name must be unique within the scope of your AWS account.
-
withLaunchConfigurationName
public CreateLaunchConfigurationRequest withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration. This name must be unique within the scope of your AWS account.
- Parameters:
launchConfigurationName
- The name of the launch configuration. This name must be unique within the scope of your AWS account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setImageId
public void setImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
imageId
- The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.
-
getImageId
public String getImageId()
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.
-
withImageId
public CreateLaunchConfigurationRequest withImageId(String imageId)
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
imageId
- The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKeyName
public void setKeyName(String keyName)
The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
keyName
- The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
-
getKeyName
public String getKeyName()
The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
-
withKeyName
public CreateLaunchConfigurationRequest withKeyName(String keyName)
The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
keyName
- The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSecurityGroups
public List<String> getSecurityGroups()
One or more security groups with which to associate the instances.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
- Returns:
- One or more security groups with which to associate the
instances.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
-
setSecurityGroups
public void setSecurityGroups(Collection<String> securityGroups)
One or more security groups with which to associate the instances.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
- Parameters:
securityGroups
- One or more security groups with which to associate the instances.If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
-
withSecurityGroups
public CreateLaunchConfigurationRequest withSecurityGroups(String... securityGroups)
One or more security groups with which to associate the instances.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
orwithSecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
securityGroups
- One or more security groups with which to associate the instances.If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSecurityGroups
public CreateLaunchConfigurationRequest withSecurityGroups(Collection<String> securityGroups)
One or more security groups with which to associate the instances.
If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
- Parameters:
securityGroups
- One or more security groups with which to associate the instances.If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.
If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClassicLinkVPCId
public void setClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter is supported only if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
classicLinkVPCId
- The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter is supported only if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
-
getClassicLinkVPCId
public String getClassicLinkVPCId()
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter is supported only if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter is supported only if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
-
withClassicLinkVPCId
public CreateLaunchConfigurationRequest withClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter is supported only if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
classicLinkVPCId
- The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter is supported only if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getClassicLinkVPCSecurityGroups
public List<String> getClassicLinkVPCSecurityGroups()
The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
-
setClassicLinkVPCSecurityGroups
public void setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
classicLinkVPCSecurityGroups
- The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
-
withClassicLinkVPCSecurityGroups
public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setClassicLinkVPCSecurityGroups(java.util.Collection)
orwithClassicLinkVPCSecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
classicLinkVPCSecurityGroups
- The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withClassicLinkVPCSecurityGroups
public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
classicLinkVPCSecurityGroups
- The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserData
public void setUserData(String userData)
The user data to make available to the launched EC2 instances. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
userData
- The user data to make available to the launched EC2 instances. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.
-
getUserData
public String getUserData()
The user data to make available to the launched EC2 instances. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The user data to make available to the launched EC2 instances. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.
-
withUserData
public CreateLaunchConfigurationRequest withUserData(String userData)
The user data to make available to the launched EC2 instances. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
userData
- The user data to make available to the launched EC2 instances. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance to use to create the launch configuration.
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
- Parameters:
instanceId
- The ID of the instance to use to create the launch configuration.The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
-
getInstanceId
public String getInstanceId()
The ID of the instance to use to create the launch configuration.
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
- Returns:
- The ID of the instance to use to create the launch
configuration.
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
-
withInstanceId
public CreateLaunchConfigurationRequest withInstanceId(String instanceId)
The ID of the instance to use to create the launch configuration.
The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
- Parameters:
instanceId
- The ID of the instance to use to create the launch configuration.The new launch configuration derives attributes from the instance, with the exception of the block device mapping.
To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.
For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
instanceType
- The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
-
getInstanceType
public String getInstanceType()
The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
-
withInstanceType
public CreateLaunchConfigurationRequest withInstanceType(String instanceType)
The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
instanceType
- The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKernelId
public void setKernelId(String kernelId)
The ID of the kernel associated with the AMI.
- Parameters:
kernelId
- The ID of the kernel associated with the AMI.
-
getKernelId
public String getKernelId()
The ID of the kernel associated with the AMI.
- Returns:
- The ID of the kernel associated with the AMI.
-
withKernelId
public CreateLaunchConfigurationRequest withKernelId(String kernelId)
The ID of the kernel associated with the AMI.
- Parameters:
kernelId
- The ID of the kernel associated with the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRamdiskId
public void setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
- Parameters:
ramdiskId
- The ID of the RAM disk associated with the AMI.
-
getRamdiskId
public String getRamdiskId()
The ID of the RAM disk associated with the AMI.
- Returns:
- The ID of the RAM disk associated with the AMI.
-
withRamdiskId
public CreateLaunchConfigurationRequest withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
- Parameters:
ramdiskId
- The ID of the RAM disk associated with the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBlockDeviceMappings
public List<BlockDeviceMapping> getBlockDeviceMappings()
One or more mappings that specify how block devices are exposed to the instance. For more information, see Block Device Mapping in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- One or more mappings that specify how block devices are exposed to the instance. For more information, see Block Device Mapping in the Amazon Elastic Compute Cloud User Guide.
-
setBlockDeviceMappings
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance. For more information, see Block Device Mapping in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
blockDeviceMappings
- One or more mappings that specify how block devices are exposed to the instance. For more information, see Block Device Mapping in the Amazon Elastic Compute Cloud User Guide.
-
withBlockDeviceMappings
public CreateLaunchConfigurationRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance. For more information, see Block Device Mapping in the Amazon Elastic Compute Cloud User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
orwithBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.- Parameters:
blockDeviceMappings
- One or more mappings that specify how block devices are exposed to the instance. For more information, see Block Device Mapping in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
public CreateLaunchConfigurationRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more mappings that specify how block devices are exposed to the instance. For more information, see Block Device Mapping in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
blockDeviceMappings
- One or more mappings that specify how block devices are exposed to the instance. For more information, see Block Device Mapping in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceMonitoring
public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring if it is disabled. Detailed monitoring is enabled by default.
When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, by specifying
False
, CloudWatch generates metrics every 5 minutes. For more information, see Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.- Parameters:
instanceMonitoring
- Enables detailed monitoring if it is disabled. Detailed monitoring is enabled by default.When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, by specifying
False
, CloudWatch generates metrics every 5 minutes. For more information, see Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.
-
getInstanceMonitoring
public InstanceMonitoring getInstanceMonitoring()
Enables detailed monitoring if it is disabled. Detailed monitoring is enabled by default.
When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, by specifying
False
, CloudWatch generates metrics every 5 minutes. For more information, see Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.- Returns:
- Enables detailed monitoring if it is disabled. Detailed
monitoring is enabled by default.
When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, by specifying
False
, CloudWatch generates metrics every 5 minutes. For more information, see Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.
-
withInstanceMonitoring
public CreateLaunchConfigurationRequest withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Enables detailed monitoring if it is disabled. Detailed monitoring is enabled by default.
When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, by specifying
False
, CloudWatch generates metrics every 5 minutes. For more information, see Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.- Parameters:
instanceMonitoring
- Enables detailed monitoring if it is disabled. Detailed monitoring is enabled by default.When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, by specifying
False
, CloudWatch generates metrics every 5 minutes. For more information, see Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSpotPrice
public void setSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Parameters:
spotPrice
- The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
-
getSpotPrice
public String getSpotPrice()
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Returns:
- The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
-
withSpotPrice
public CreateLaunchConfigurationRequest withSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Parameters:
spotPrice
- The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamInstanceProfile
public void setIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
- Parameters:
iamInstanceProfile
- The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
-
getIamInstanceProfile
public String getIamInstanceProfile()
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
- Returns:
- The name or the Amazon Resource Name (ARN) of the instance
profile associated with the IAM role for the instance.
EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
-
withIamInstanceProfile
public CreateLaunchConfigurationRequest withIamInstanceProfile(String iamInstanceProfile)
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
- Parameters:
iamInstanceProfile
- The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbsOptimized
public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. By default, the instance is not optimized for EBS I/O. The optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization is not available with all instance types. Additional usage charges apply. For more information, see Amazon EBS-Optimized Instances in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. By default, the instance is not optimized for EBS I/O. The optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization is not available with all instance types. Additional usage charges apply. For more information, see Amazon EBS-Optimized Instances in the Amazon Elastic Compute Cloud User Guide.
-
getEbsOptimized
public Boolean getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O. By default, the instance is not optimized for EBS I/O. The optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization is not available with all instance types. Additional usage charges apply. For more information, see Amazon EBS-Optimized Instances in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- Indicates whether the instance is optimized for Amazon EBS I/O. By default, the instance is not optimized for EBS I/O. The optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization is not available with all instance types. Additional usage charges apply. For more information, see Amazon EBS-Optimized Instances in the Amazon Elastic Compute Cloud User Guide.
-
withEbsOptimized
public CreateLaunchConfigurationRequest withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. By default, the instance is not optimized for EBS I/O. The optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization is not available with all instance types. Additional usage charges apply. For more information, see Amazon EBS-Optimized Instances in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. By default, the instance is not optimized for EBS I/O. The optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization is not available with all instance types. Additional usage charges apply. For more information, see Amazon EBS-Optimized Instances in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEbsOptimized
public Boolean isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O. By default, the instance is not optimized for EBS I/O. The optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization is not available with all instance types. Additional usage charges apply. For more information, see Amazon EBS-Optimized Instances in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- Indicates whether the instance is optimized for Amazon EBS I/O. By default, the instance is not optimized for EBS I/O. The optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization is not available with all instance types. Additional usage charges apply. For more information, see Amazon EBS-Optimized Instances in the Amazon Elastic Compute Cloud User Guide.
-
setAssociatePublicIpAddress
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet when you create your group.
Default: If the instance is launched into a default subnet, the default is
true
. If the instance is launched into a nondefault subnet, the default isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Parameters:
associatePublicIpAddress
- Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.If you specify this parameter, be sure to specify at least one subnet when you create your group.
Default: If the instance is launched into a default subnet, the default is
true
. If the instance is launched into a nondefault subnet, the default isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.
-
getAssociatePublicIpAddress
public Boolean getAssociatePublicIpAddress()
Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet when you create your group.
Default: If the instance is launched into a default subnet, the default is
true
. If the instance is launched into a nondefault subnet, the default isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Used for groups that launch instances into a virtual private
cloud (VPC). Specifies whether to assign a public IP address to
each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto
Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet when you create your group.
Default: If the instance is launched into a default subnet, the default is
true
. If the instance is launched into a nondefault subnet, the default isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.
-
withAssociatePublicIpAddress
public CreateLaunchConfigurationRequest withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet when you create your group.
Default: If the instance is launched into a default subnet, the default is
true
. If the instance is launched into a nondefault subnet, the default isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Parameters:
associatePublicIpAddress
- Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.If you specify this parameter, be sure to specify at least one subnet when you create your group.
Default: If the instance is launched into a default subnet, the default is
true
. If the instance is launched into a nondefault subnet, the default isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAssociatePublicIpAddress
public Boolean isAssociatePublicIpAddress()
Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet when you create your group.
Default: If the instance is launched into a default subnet, the default is
true
. If the instance is launched into a nondefault subnet, the default isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Used for groups that launch instances into a virtual private
cloud (VPC). Specifies whether to assign a public IP address to
each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto
Scaling Developer Guide.
If you specify this parameter, be sure to specify at least one subnet when you create your group.
Default: If the instance is launched into a default subnet, the default is
true
. If the instance is launched into a nondefault subnet, the default isfalse
. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.
-
setPlacementTenancy
public void setPlacementTenancy(String placementTenancy)
The tenancy of the instance. An instance with a tenancy of
dedicated
runs on single-tenant hardware and can only be launched into a VPC.You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
- Parameters:
placementTenancy
- The tenancy of the instance. An instance with a tenancy ofdedicated
runs on single-tenant hardware and can only be launched into a VPC.You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
-
getPlacementTenancy
public String getPlacementTenancy()
The tenancy of the instance. An instance with a tenancy of
dedicated
runs on single-tenant hardware and can only be launched into a VPC.You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
- Returns:
- The tenancy of the instance. An instance with a tenancy of
dedicated
runs on single-tenant hardware and can only be launched into a VPC.You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
-
withPlacementTenancy
public CreateLaunchConfigurationRequest withPlacementTenancy(String placementTenancy)
The tenancy of the instance. An instance with a tenancy of
dedicated
runs on single-tenant hardware and can only be launched into a VPC.You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
- Parameters:
placementTenancy
- The tenancy of the instance. An instance with a tenancy ofdedicated
runs on single-tenant hardware and can only be launched into a VPC.You must set the value of this parameter to
dedicated
if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set todefault
).If you specify this parameter, be sure to specify at least one subnet when you create your group.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Valid values:
default
|dedicated
- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateLaunchConfigurationRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-