/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.autoscaling.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
* <p>
* Creates a launch configuration.
* </p>
* <p>
* If you exceed your maximum limit of launch configurations, which by default
* is 100 per region, the call fails. For information about viewing and updating
* this limit, see <a>DescribeAccountLimits</a>.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/LaunchConfiguration.html"
* >Launch Configurations</a> in the <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public class CreateLaunchConfigurationRequest extends AmazonWebServiceRequest implements
Serializable {
/**
* <p>
* The name of the launch configuration. This name must be unique within the
* scope of your AWS account.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String launchConfigurationName;
/**
* <p>
* The ID of the Amazon Machine Image (AMI) to use to launch your EC2
* instances. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html"
* >Finding an AMI</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String imageId;
/**
* <p>
* The name of the key pair. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html"
* >Amazon EC2 Key Pairs</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String keyName;
/**
* <p>
* One or more security groups with which to associate the instances.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security group IDs.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual Private Cloud
* User Guide</i>.
* </p>
*/
private java.util.List<String> securityGroups = new java.util.ArrayList<String>();
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String classicLinkVPCId;
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
*/
private java.util.List<String> classicLinkVPCSecurityGroups = new java.util.ArrayList<String>();
/**
* <p>
* The user data to make available to the launched EC2 instances. For more
* information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html"
* >Instance Metadata and User Data</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 21847<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String userData;
/**
* <p>
* The ID of the instance to use to create the launch configuration.
* </p>
* <p>
* The new launch configuration derives attributes from the instance, with
* the exception of the block device mapping.
* </p>
* <p>
* To create a launch configuration with a block device mapping or override
* any other instance attributes, specify them as part of the same request.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html"
* >Create a Launch Configuration Using an EC2 Instance</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 19<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String instanceId;
/**
* <p>
* The instance type of the EC2 instance. For information about available
* instance types, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes"
* > Available Instance Types</a> in the <i>Amazon Elastic Compute Cloud
* User Guide.</i>
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String instanceType;
/**
* <p>
* The ID of the kernel associated with the AMI.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String kernelId;
/**
* <p>
* The ID of the RAM disk associated with the AMI.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String ramdiskId;
/**
* <p>
* One or more mappings that specify how block devices are exposed to the
* instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*/
private java.util.List<BlockDeviceMapping> blockDeviceMappings = new java.util.ArrayList<BlockDeviceMapping>();
/**
* <p>
* Enables detailed monitoring if it is disabled. Detailed monitoring is
* enabled by default.
* </p>
* <p>
* 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 <code>False</code>, CloudWatch generates
* metrics every 5 minutes. For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html"
* >Monitoring Your Auto Scaling Instances and Groups</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
*/
private InstanceMonitoring instanceMonitoring;
/**
* <p>
* 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
* <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html"
* >Launching Spot Instances in Your Auto Scaling Group</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
*/
private String spotPrice;
/**
* <p>
* The name or the Amazon Resource Name (ARN) of the instance profile
* associated with the IAM role for the instance.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html"
* >Launch Auto Scaling Instances with an IAM Role</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 1600<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String iamInstanceProfile;
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
*/
private Boolean ebsOptimized;
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet, the default
* is <code>true</code>. If the instance is launched into a nondefault
* subnet, the default is <code>false</code>. For more information, see <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*/
private Boolean associatePublicIpAddress;
/**
* <p>
* The tenancy of the instance. An instance with a tenancy of
* <code>dedicated</code> runs on single-tenant hardware and can only be
* launched into a VPC.
* </p>
* <p>
* You must set the value of this parameter to <code>dedicated</code> if
* want to launch Dedicated Instances into a shared tenancy VPC (VPC with
* instance placement tenancy attribute set to <code>default</code>).
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* Valid values: <code>default</code> | <code>dedicated</code>
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 64<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*/
private String placementTenancy;
/**
* <p>
* The name of the launch configuration. This name must be unique within the
* scope of your AWS account.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The name of the launch configuration. This name must be unique
* within the scope of your AWS account.
* </p>
*/
public String getLaunchConfigurationName() {
return launchConfigurationName;
}
/**
* <p>
* The name of the launch configuration. This name must be unique within the
* scope of your AWS account.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param launchConfigurationName <p>
* The name of the launch configuration. This name must be unique
* within the scope of your AWS account.
* </p>
*/
public void setLaunchConfigurationName(String launchConfigurationName) {
this.launchConfigurationName = launchConfigurationName;
}
/**
* <p>
* The name of the launch configuration. This name must be unique within the
* scope of your AWS account.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param launchConfigurationName <p>
* The name of the launch configuration. This name must be unique
* within the scope of your AWS account.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withLaunchConfigurationName(
String launchConfigurationName) {
this.launchConfigurationName = launchConfigurationName;
return this;
}
/**
* <p>
* The ID of the Amazon Machine Image (AMI) to use to launch your EC2
* instances. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html"
* >Finding an AMI</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The ID of the Amazon Machine Image (AMI) to use to launch your
* EC2 instances. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html"
* >Finding an AMI</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*/
public String getImageId() {
return imageId;
}
/**
* <p>
* The ID of the Amazon Machine Image (AMI) to use to launch your EC2
* instances. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html"
* >Finding an AMI</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param imageId <p>
* The ID of the Amazon Machine Image (AMI) to use to launch your
* EC2 instances. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html"
* >Finding an AMI</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
*/
public void setImageId(String imageId) {
this.imageId = imageId;
}
/**
* <p>
* The ID of the Amazon Machine Image (AMI) to use to launch your EC2
* instances. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html"
* >Finding an AMI</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param imageId <p>
* The ID of the Amazon Machine Image (AMI) to use to launch your
* EC2 instances. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html"
* >Finding an AMI</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withImageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* <p>
* The name of the key pair. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html"
* >Amazon EC2 Key Pairs</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The name of the key pair. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html"
* >Amazon EC2 Key Pairs</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
*/
public String getKeyName() {
return keyName;
}
/**
* <p>
* The name of the key pair. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html"
* >Amazon EC2 Key Pairs</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param keyName <p>
* The name of the key pair. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html"
* >Amazon EC2 Key Pairs</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
*/
public void setKeyName(String keyName) {
this.keyName = keyName;
}
/**
* <p>
* The name of the key pair. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html"
* >Amazon EC2 Key Pairs</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param keyName <p>
* The name of the key pair. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html"
* >Amazon EC2 Key Pairs</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withKeyName(String keyName) {
this.keyName = keyName;
return this;
}
/**
* <p>
* One or more security groups with which to associate the instances.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security group IDs.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual Private Cloud
* User Guide</i>.
* </p>
*
* @return <p>
* One or more security groups with which to associate the
* instances.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security group
* IDs. For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual
* Private Cloud User Guide</i>.
* </p>
*/
public java.util.List<String> getSecurityGroups() {
return securityGroups;
}
/**
* <p>
* One or more security groups with which to associate the instances.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security group IDs.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual Private Cloud
* User Guide</i>.
* </p>
*
* @param securityGroups <p>
* One or more security groups with which to associate the
* instances.
* </p>
* <p>
* 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 <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security
* group IDs. For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual
* Private Cloud User Guide</i>.
* </p>
*/
public void setSecurityGroups(java.util.Collection<String> securityGroups) {
if (securityGroups == null) {
this.securityGroups = null;
return;
}
this.securityGroups = new java.util.ArrayList<String>(securityGroups);
}
/**
* <p>
* One or more security groups with which to associate the instances.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security group IDs.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual Private Cloud
* User Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param securityGroups <p>
* One or more security groups with which to associate the
* instances.
* </p>
* <p>
* 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 <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security
* group IDs. For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual
* Private Cloud User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withSecurityGroups(String... securityGroups) {
if (getSecurityGroups() == null) {
this.securityGroups = new java.util.ArrayList<String>(securityGroups.length);
}
for (String value : securityGroups) {
this.securityGroups.add(value);
}
return this;
}
/**
* <p>
* One or more security groups with which to associate the instances.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security group IDs.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual Private Cloud
* User Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param securityGroups <p>
* One or more security groups with which to associate the
* instances.
* </p>
* <p>
* 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 <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html"
* >Amazon EC2 Security Groups</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
* <p>
* If your instances are launched into a VPC, specify security
* group IDs. For more information, see <a href=
* "http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html"
* >Security Groups for Your VPC</a> in the <i>Amazon Virtual
* Private Cloud User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withSecurityGroups(
java.util.Collection<String> securityGroups) {
setSecurityGroups(securityGroups);
return this;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* 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 <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*/
public String getClassicLinkVPCId() {
return classicLinkVPCId;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param classicLinkVPCId <p>
* 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 <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*/
public void setClassicLinkVPCId(String classicLinkVPCId) {
this.classicLinkVPCId = classicLinkVPCId;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param classicLinkVPCId <p>
* 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 <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withClassicLinkVPCId(String classicLinkVPCId) {
this.classicLinkVPCId = classicLinkVPCId;
return this;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
*
* @return <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*/
public java.util.List<String> getClassicLinkVPCSecurityGroups() {
return classicLinkVPCSecurityGroups;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
*
* @param classicLinkVPCSecurityGroups <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*/
public void setClassicLinkVPCSecurityGroups(
java.util.Collection<String> classicLinkVPCSecurityGroups) {
if (classicLinkVPCSecurityGroups == null) {
this.classicLinkVPCSecurityGroups = null;
return;
}
this.classicLinkVPCSecurityGroups = new java.util.ArrayList<String>(
classicLinkVPCSecurityGroups);
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param classicLinkVPCSecurityGroups <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(
String... classicLinkVPCSecurityGroups) {
if (getClassicLinkVPCSecurityGroups() == null) {
this.classicLinkVPCSecurityGroups = new java.util.ArrayList<String>(
classicLinkVPCSecurityGroups.length);
}
for (String value : classicLinkVPCSecurityGroups) {
this.classicLinkVPCSecurityGroups.add(value);
}
return this;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param classicLinkVPCSecurityGroups <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html"
* >ClassicLink</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(
java.util.Collection<String> classicLinkVPCSecurityGroups) {
setClassicLinkVPCSecurityGroups(classicLinkVPCSecurityGroups);
return this;
}
/**
* <p>
* The user data to make available to the launched EC2 instances. For more
* information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html"
* >Instance Metadata and User Data</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 21847<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The user data to make available to the launched EC2 instances.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html"
* >Instance Metadata and User Data</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
*/
public String getUserData() {
return userData;
}
/**
* <p>
* The user data to make available to the launched EC2 instances. For more
* information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html"
* >Instance Metadata and User Data</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 21847<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param userData <p>
* The user data to make available to the launched EC2 instances.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html"
* >Instance Metadata and User Data</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
*/
public void setUserData(String userData) {
this.userData = userData;
}
/**
* <p>
* The user data to make available to the launched EC2 instances. For more
* information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html"
* >Instance Metadata and User Data</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 21847<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param userData <p>
* The user data to make available to the launched EC2 instances.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html"
* >Instance Metadata and User Data</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withUserData(String userData) {
this.userData = userData;
return this;
}
/**
* <p>
* The ID of the instance to use to create the launch configuration.
* </p>
* <p>
* The new launch configuration derives attributes from the instance, with
* the exception of the block device mapping.
* </p>
* <p>
* To create a launch configuration with a block device mapping or override
* any other instance attributes, specify them as part of the same request.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html"
* >Create a Launch Configuration Using an EC2 Instance</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 19<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The ID of the instance to use to create the launch configuration.
* </p>
* <p>
* The new launch configuration derives attributes from the
* instance, with the exception of the block device mapping.
* </p>
* <p>
* To create a launch configuration with a block device mapping or
* override any other instance attributes, specify them as part of
* the same request.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html"
* >Create a Launch Configuration Using an EC2 Instance</a> in the
* <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public String getInstanceId() {
return instanceId;
}
/**
* <p>
* The ID of the instance to use to create the launch configuration.
* </p>
* <p>
* The new launch configuration derives attributes from the instance, with
* the exception of the block device mapping.
* </p>
* <p>
* To create a launch configuration with a block device mapping or override
* any other instance attributes, specify them as part of the same request.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html"
* >Create a Launch Configuration Using an EC2 Instance</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 19<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param instanceId <p>
* The ID of the instance to use to create the launch
* configuration.
* </p>
* <p>
* The new launch configuration derives attributes from the
* instance, with the exception of the block device mapping.
* </p>
* <p>
* To create a launch configuration with a block device mapping
* or override any other instance attributes, specify them as
* part of the same request.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html"
* >Create a Launch Configuration Using an EC2 Instance</a> in
* the <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
/**
* <p>
* The ID of the instance to use to create the launch configuration.
* </p>
* <p>
* The new launch configuration derives attributes from the instance, with
* the exception of the block device mapping.
* </p>
* <p>
* To create a launch configuration with a block device mapping or override
* any other instance attributes, specify them as part of the same request.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html"
* >Create a Launch Configuration Using an EC2 Instance</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 19<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param instanceId <p>
* The ID of the instance to use to create the launch
* configuration.
* </p>
* <p>
* The new launch configuration derives attributes from the
* instance, with the exception of the block device mapping.
* </p>
* <p>
* To create a launch configuration with a block device mapping
* or override any other instance attributes, specify them as
* part of the same request.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html"
* >Create a Launch Configuration Using an EC2 Instance</a> in
* the <i>Auto Scaling Developer Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>
* The instance type of the EC2 instance. For information about available
* instance types, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes"
* > Available Instance Types</a> in the <i>Amazon Elastic Compute Cloud
* User Guide.</i>
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The instance type of the EC2 instance. For information about
* available instance types, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes"
* > Available Instance Types</a> in the <i>Amazon Elastic Compute
* Cloud User Guide.</i>
* </p>
*/
public String getInstanceType() {
return instanceType;
}
/**
* <p>
* The instance type of the EC2 instance. For information about available
* instance types, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes"
* > Available Instance Types</a> in the <i>Amazon Elastic Compute Cloud
* User Guide.</i>
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param instanceType <p>
* The instance type of the EC2 instance. For information about
* available instance types, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes"
* > Available Instance Types</a> in the <i>Amazon Elastic
* Compute Cloud User Guide.</i>
* </p>
*/
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
/**
* <p>
* The instance type of the EC2 instance. For information about available
* instance types, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes"
* > Available Instance Types</a> in the <i>Amazon Elastic Compute Cloud
* User Guide.</i>
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param instanceType <p>
* The instance type of the EC2 instance. For information about
* available instance types, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes"
* > Available Instance Types</a> in the <i>Amazon Elastic
* Compute Cloud User Guide.</i>
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withInstanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>
* The ID of the kernel associated with the AMI.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The ID of the kernel associated with the AMI.
* </p>
*/
public String getKernelId() {
return kernelId;
}
/**
* <p>
* The ID of the kernel associated with the AMI.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param kernelId <p>
* The ID of the kernel associated with the AMI.
* </p>
*/
public void setKernelId(String kernelId) {
this.kernelId = kernelId;
}
/**
* <p>
* The ID of the kernel associated with the AMI.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param kernelId <p>
* The ID of the kernel associated with the AMI.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withKernelId(String kernelId) {
this.kernelId = kernelId;
return this;
}
/**
* <p>
* The ID of the RAM disk associated with the AMI.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The ID of the RAM disk associated with the AMI.
* </p>
*/
public String getRamdiskId() {
return ramdiskId;
}
/**
* <p>
* The ID of the RAM disk associated with the AMI.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param ramdiskId <p>
* The ID of the RAM disk associated with the AMI.
* </p>
*/
public void setRamdiskId(String ramdiskId) {
this.ramdiskId = ramdiskId;
}
/**
* <p>
* The ID of the RAM disk associated with the AMI.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param ramdiskId <p>
* The ID of the RAM disk associated with the AMI.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withRamdiskId(String ramdiskId) {
this.ramdiskId = ramdiskId;
return this;
}
/**
* <p>
* One or more mappings that specify how block devices are exposed to the
* instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*
* @return <p>
* One or more mappings that specify how block devices are exposed
* to the instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
*/
public java.util.List<BlockDeviceMapping> getBlockDeviceMappings() {
return blockDeviceMappings;
}
/**
* <p>
* One or more mappings that specify how block devices are exposed to the
* instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*
* @param blockDeviceMappings <p>
* One or more mappings that specify how block devices are
* exposed to the instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
*/
public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings) {
if (blockDeviceMappings == null) {
this.blockDeviceMappings = null;
return;
}
this.blockDeviceMappings = new java.util.ArrayList<BlockDeviceMapping>(blockDeviceMappings);
}
/**
* <p>
* One or more mappings that specify how block devices are exposed to the
* instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param blockDeviceMappings <p>
* One or more mappings that specify how block devices are
* exposed to the instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withBlockDeviceMappings(
BlockDeviceMapping... blockDeviceMappings) {
if (getBlockDeviceMappings() == null) {
this.blockDeviceMappings = new java.util.ArrayList<BlockDeviceMapping>(
blockDeviceMappings.length);
}
for (BlockDeviceMapping value : blockDeviceMappings) {
this.blockDeviceMappings.add(value);
}
return this;
}
/**
* <p>
* One or more mappings that specify how block devices are exposed to the
* instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param blockDeviceMappings <p>
* One or more mappings that specify how block devices are
* exposed to the instance. For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html"
* >Block Device Mapping</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withBlockDeviceMappings(
java.util.Collection<BlockDeviceMapping> blockDeviceMappings) {
setBlockDeviceMappings(blockDeviceMappings);
return this;
}
/**
* <p>
* Enables detailed monitoring if it is disabled. Detailed monitoring is
* enabled by default.
* </p>
* <p>
* 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 <code>False</code>, CloudWatch generates
* metrics every 5 minutes. For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html"
* >Monitoring Your Auto Scaling Instances and Groups</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
*
* @return <p>
* Enables detailed monitoring if it is disabled. Detailed
* monitoring is enabled by default.
* </p>
* <p>
* 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 <code>False</code>,
* CloudWatch generates metrics every 5 minutes. For more
* information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html"
* >Monitoring Your Auto Scaling Instances and Groups</a> in the
* <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public InstanceMonitoring getInstanceMonitoring() {
return instanceMonitoring;
}
/**
* <p>
* Enables detailed monitoring if it is disabled. Detailed monitoring is
* enabled by default.
* </p>
* <p>
* 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 <code>False</code>, CloudWatch generates
* metrics every 5 minutes. For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html"
* >Monitoring Your Auto Scaling Instances and Groups</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
*
* @param instanceMonitoring <p>
* Enables detailed monitoring if it is disabled. Detailed
* monitoring is enabled by default.
* </p>
* <p>
* 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
* <code>False</code>, CloudWatch generates metrics every 5
* minutes. For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html"
* >Monitoring Your Auto Scaling Instances and Groups</a> in the
* <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring) {
this.instanceMonitoring = instanceMonitoring;
}
/**
* <p>
* Enables detailed monitoring if it is disabled. Detailed monitoring is
* enabled by default.
* </p>
* <p>
* 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 <code>False</code>, CloudWatch generates
* metrics every 5 minutes. For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html"
* >Monitoring Your Auto Scaling Instances and Groups</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param instanceMonitoring <p>
* Enables detailed monitoring if it is disabled. Detailed
* monitoring is enabled by default.
* </p>
* <p>
* 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
* <code>False</code>, CloudWatch generates metrics every 5
* minutes. For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html"
* >Monitoring Your Auto Scaling Instances and Groups</a> in the
* <i>Auto Scaling Developer Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withInstanceMonitoring(
InstanceMonitoring instanceMonitoring) {
this.instanceMonitoring = instanceMonitoring;
return this;
}
/**
* <p>
* 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
* <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html"
* >Launching Spot Instances in Your Auto Scaling Group</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
*
* @return <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html"
* >Launching Spot Instances in Your Auto Scaling Group</a> in the
* <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public String getSpotPrice() {
return spotPrice;
}
/**
* <p>
* 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
* <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html"
* >Launching Spot Instances in Your Auto Scaling Group</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
*
* @param spotPrice <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html"
* >Launching Spot Instances in Your Auto Scaling Group</a> in
* the <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public void setSpotPrice(String spotPrice) {
this.spotPrice = spotPrice;
}
/**
* <p>
* 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
* <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html"
* >Launching Spot Instances in Your Auto Scaling Group</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 255<br/>
*
* @param spotPrice <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html"
* >Launching Spot Instances in Your Auto Scaling Group</a> in
* the <i>Auto Scaling Developer Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withSpotPrice(String spotPrice) {
this.spotPrice = spotPrice;
return this;
}
/**
* <p>
* The name or the Amazon Resource Name (ARN) of the instance profile
* associated with the IAM role for the instance.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html"
* >Launch Auto Scaling Instances with an IAM Role</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 1600<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The name or the Amazon Resource Name (ARN) of the instance
* profile associated with the IAM role for the instance.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html"
* >Launch Auto Scaling Instances with an IAM Role</a> in the
* <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public String getIamInstanceProfile() {
return iamInstanceProfile;
}
/**
* <p>
* The name or the Amazon Resource Name (ARN) of the instance profile
* associated with the IAM role for the instance.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html"
* >Launch Auto Scaling Instances with an IAM Role</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 1600<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param iamInstanceProfile <p>
* The name or the Amazon Resource Name (ARN) of the instance
* profile associated with the IAM role for the instance.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html"
* >Launch Auto Scaling Instances with an IAM Role</a> in the
* <i>Auto Scaling Developer Guide</i>.
* </p>
*/
public void setIamInstanceProfile(String iamInstanceProfile) {
this.iamInstanceProfile = iamInstanceProfile;
}
/**
* <p>
* The name or the Amazon Resource Name (ARN) of the instance profile
* associated with the IAM role for the instance.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html"
* >Launch Auto Scaling Instances with an IAM Role</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 1600<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param iamInstanceProfile <p>
* The name or the Amazon Resource Name (ARN) of the instance
* profile associated with the IAM role for the instance.
* </p>
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html"
* >Launch Auto Scaling Instances with an IAM Role</a> in the
* <i>Auto Scaling Developer Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withIamInstanceProfile(String iamInstanceProfile) {
this.iamInstanceProfile = iamInstanceProfile;
return this;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
*
* @return <p>
* 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 <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
*/
public Boolean isEbsOptimized() {
return ebsOptimized;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
*
* @return <p>
* 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 <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
*/
public Boolean getEbsOptimized() {
return ebsOptimized;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
*
* @param ebsOptimized <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
*/
public void setEbsOptimized(Boolean ebsOptimized) {
this.ebsOptimized = ebsOptimized;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param ebsOptimized <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html"
* >Amazon EBS-Optimized Instances</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withEbsOptimized(Boolean ebsOptimized) {
this.ebsOptimized = ebsOptimized;
return this;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet, the default
* is <code>true</code>. If the instance is launched into a nondefault
* subnet, the default is <code>false</code>. For more information, see <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*
* @return <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one
* subnet when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet, the
* default is <code>true</code>. If the instance is launched into a
* nondefault subnet, the default is <code>false</code>. For more
* information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
*/
public Boolean isAssociatePublicIpAddress() {
return associatePublicIpAddress;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet, the default
* is <code>true</code>. If the instance is launched into a nondefault
* subnet, the default is <code>false</code>. For more information, see <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*
* @return <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one
* subnet when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet, the
* default is <code>true</code>. If the instance is launched into a
* nondefault subnet, the default is <code>false</code>. For more
* information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute Cloud
* User Guide</i>.
* </p>
*/
public Boolean getAssociatePublicIpAddress() {
return associatePublicIpAddress;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet, the default
* is <code>true</code>. If the instance is launched into a nondefault
* subnet, the default is <code>false</code>. For more information, see <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
*
* @param associatePublicIpAddress <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one
* subnet when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet,
* the default is <code>true</code>. If the instance is launched
* into a nondefault subnet, the default is <code>false</code>.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
*/
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
this.associatePublicIpAddress = associatePublicIpAddress;
}
/**
* <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet, the default
* is <code>true</code>. If the instance is launched into a nondefault
* subnet, the default is <code>false</code>. For more information, see <a
* href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param associatePublicIpAddress <p>
* 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 <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one
* subnet when you create your group.
* </p>
* <p>
* Default: If the instance is launched into a default subnet,
* the default is <code>true</code>. If the instance is launched
* into a nondefault subnet, the default is <code>false</code>.
* For more information, see <a href=
* "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html"
* >Supported Platforms</a> in the <i>Amazon Elastic Compute
* Cloud User Guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withAssociatePublicIpAddress(
Boolean associatePublicIpAddress) {
this.associatePublicIpAddress = associatePublicIpAddress;
return this;
}
/**
* <p>
* The tenancy of the instance. An instance with a tenancy of
* <code>dedicated</code> runs on single-tenant hardware and can only be
* launched into a VPC.
* </p>
* <p>
* You must set the value of this parameter to <code>dedicated</code> if
* want to launch Dedicated Instances into a shared tenancy VPC (VPC with
* instance placement tenancy attribute set to <code>default</code>).
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* Valid values: <code>default</code> | <code>dedicated</code>
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 64<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @return <p>
* The tenancy of the instance. An instance with a tenancy of
* <code>dedicated</code> runs on single-tenant hardware and can
* only be launched into a VPC.
* </p>
* <p>
* You must set the value of this parameter to
* <code>dedicated</code> if want to launch Dedicated Instances into
* a shared tenancy VPC (VPC with instance placement tenancy
* attribute set to <code>default</code>).
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one
* subnet when you create your group.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* Valid values: <code>default</code> | <code>dedicated</code>
* </p>
*/
public String getPlacementTenancy() {
return placementTenancy;
}
/**
* <p>
* The tenancy of the instance. An instance with a tenancy of
* <code>dedicated</code> runs on single-tenant hardware and can only be
* launched into a VPC.
* </p>
* <p>
* You must set the value of this parameter to <code>dedicated</code> if
* want to launch Dedicated Instances into a shared tenancy VPC (VPC with
* instance placement tenancy attribute set to <code>default</code>).
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* Valid values: <code>default</code> | <code>dedicated</code>
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 64<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param placementTenancy <p>
* The tenancy of the instance. An instance with a tenancy of
* <code>dedicated</code> runs on single-tenant hardware and can
* only be launched into a VPC.
* </p>
* <p>
* You must set the value of this parameter to
* <code>dedicated</code> if want to launch Dedicated Instances
* into a shared tenancy VPC (VPC with instance placement tenancy
* attribute set to <code>default</code>).
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one
* subnet when you create your group.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* Valid values: <code>default</code> | <code>dedicated</code>
* </p>
*/
public void setPlacementTenancy(String placementTenancy) {
this.placementTenancy = placementTenancy;
}
/**
* <p>
* The tenancy of the instance. An instance with a tenancy of
* <code>dedicated</code> runs on single-tenant hardware and can only be
* launched into a VPC.
* </p>
* <p>
* You must set the value of this parameter to <code>dedicated</code> if
* want to launch Dedicated Instances into a shared tenancy VPC (VPC with
* instance placement tenancy attribute set to <code>default</code>).
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one subnet
* when you create your group.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto Scaling
* Developer Guide</i>.
* </p>
* <p>
* Valid values: <code>default</code> | <code>dedicated</code>
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 64<br/>
* <b>Pattern: </b>[ -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* <br/>
*
* @param placementTenancy <p>
* The tenancy of the instance. An instance with a tenancy of
* <code>dedicated</code> runs on single-tenant hardware and can
* only be launched into a VPC.
* </p>
* <p>
* You must set the value of this parameter to
* <code>dedicated</code> if want to launch Dedicated Instances
* into a shared tenancy VPC (VPC with instance placement tenancy
* attribute set to <code>default</code>).
* </p>
* <p>
* If you specify this parameter, be sure to specify at least one
* subnet when you create your group.
* </p>
* <p>
* For more information, see <a href=
* "http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html"
* >Launching Auto Scaling Instances in a VPC</a> in the <i>Auto
* Scaling Developer Guide</i>.
* </p>
* <p>
* Valid values: <code>default</code> | <code>dedicated</code>
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateLaunchConfigurationRequest withPlacementTenancy(String placementTenancy) {
this.placementTenancy = placementTenancy;
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getLaunchConfigurationName() != null)
sb.append("LaunchConfigurationName: " + getLaunchConfigurationName() + ",");
if (getImageId() != null)
sb.append("ImageId: " + getImageId() + ",");
if (getKeyName() != null)
sb.append("KeyName: " + getKeyName() + ",");
if (getSecurityGroups() != null)
sb.append("SecurityGroups: " + getSecurityGroups() + ",");
if (getClassicLinkVPCId() != null)
sb.append("ClassicLinkVPCId: " + getClassicLinkVPCId() + ",");
if (getClassicLinkVPCSecurityGroups() != null)
sb.append("ClassicLinkVPCSecurityGroups: " + getClassicLinkVPCSecurityGroups() + ",");
if (getUserData() != null)
sb.append("UserData: " + getUserData() + ",");
if (getInstanceId() != null)
sb.append("InstanceId: " + getInstanceId() + ",");
if (getInstanceType() != null)
sb.append("InstanceType: " + getInstanceType() + ",");
if (getKernelId() != null)
sb.append("KernelId: " + getKernelId() + ",");
if (getRamdiskId() != null)
sb.append("RamdiskId: " + getRamdiskId() + ",");
if (getBlockDeviceMappings() != null)
sb.append("BlockDeviceMappings: " + getBlockDeviceMappings() + ",");
if (getInstanceMonitoring() != null)
sb.append("InstanceMonitoring: " + getInstanceMonitoring() + ",");
if (getSpotPrice() != null)
sb.append("SpotPrice: " + getSpotPrice() + ",");
if (getIamInstanceProfile() != null)
sb.append("IamInstanceProfile: " + getIamInstanceProfile() + ",");
if (getEbsOptimized() != null)
sb.append("EbsOptimized: " + getEbsOptimized() + ",");
if (getAssociatePublicIpAddress() != null)
sb.append("AssociatePublicIpAddress: " + getAssociatePublicIpAddress() + ",");
if (getPlacementTenancy() != null)
sb.append("PlacementTenancy: " + getPlacementTenancy());
sb.append("}");
return sb.toString();
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime
* hashCode
+ ((getLaunchConfigurationName() == null) ? 0 : getLaunchConfigurationName()
.hashCode());
hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode());
hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode());
hashCode = prime * hashCode
+ ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode());
hashCode = prime * hashCode
+ ((getClassicLinkVPCId() == null) ? 0 : getClassicLinkVPCId().hashCode());
hashCode = prime
* hashCode
+ ((getClassicLinkVPCSecurityGroups() == null) ? 0
: getClassicLinkVPCSecurityGroups().hashCode());
hashCode = prime * hashCode + ((getUserData() == null) ? 0 : getUserData().hashCode());
hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
hashCode = prime * hashCode
+ ((getInstanceType() == null) ? 0 : getInstanceType().hashCode());
hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode());
hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
hashCode = prime * hashCode
+ ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode());
hashCode = prime * hashCode
+ ((getInstanceMonitoring() == null) ? 0 : getInstanceMonitoring().hashCode());
hashCode = prime * hashCode + ((getSpotPrice() == null) ? 0 : getSpotPrice().hashCode());
hashCode = prime * hashCode
+ ((getIamInstanceProfile() == null) ? 0 : getIamInstanceProfile().hashCode());
hashCode = prime * hashCode
+ ((getEbsOptimized() == null) ? 0 : getEbsOptimized().hashCode());
hashCode = prime
* hashCode
+ ((getAssociatePublicIpAddress() == null) ? 0 : getAssociatePublicIpAddress()
.hashCode());
hashCode = prime * hashCode
+ ((getPlacementTenancy() == null) ? 0 : getPlacementTenancy().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateLaunchConfigurationRequest == false)
return false;
CreateLaunchConfigurationRequest other = (CreateLaunchConfigurationRequest) obj;
if (other.getLaunchConfigurationName() == null ^ this.getLaunchConfigurationName() == null)
return false;
if (other.getLaunchConfigurationName() != null
&& other.getLaunchConfigurationName().equals(this.getLaunchConfigurationName()) == false)
return false;
if (other.getImageId() == null ^ this.getImageId() == null)
return false;
if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false)
return false;
if (other.getKeyName() == null ^ this.getKeyName() == null)
return false;
if (other.getKeyName() != null && other.getKeyName().equals(this.getKeyName()) == false)
return false;
if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == null)
return false;
if (other.getSecurityGroups() != null
&& other.getSecurityGroups().equals(this.getSecurityGroups()) == false)
return false;
if (other.getClassicLinkVPCId() == null ^ this.getClassicLinkVPCId() == null)
return false;
if (other.getClassicLinkVPCId() != null
&& other.getClassicLinkVPCId().equals(this.getClassicLinkVPCId()) == false)
return false;
if (other.getClassicLinkVPCSecurityGroups() == null
^ this.getClassicLinkVPCSecurityGroups() == null)
return false;
if (other.getClassicLinkVPCSecurityGroups() != null
&& other.getClassicLinkVPCSecurityGroups().equals(
this.getClassicLinkVPCSecurityGroups()) == false)
return false;
if (other.getUserData() == null ^ this.getUserData() == null)
return false;
if (other.getUserData() != null && other.getUserData().equals(this.getUserData()) == false)
return false;
if (other.getInstanceId() == null ^ this.getInstanceId() == null)
return false;
if (other.getInstanceId() != null
&& other.getInstanceId().equals(this.getInstanceId()) == false)
return false;
if (other.getInstanceType() == null ^ this.getInstanceType() == null)
return false;
if (other.getInstanceType() != null
&& other.getInstanceType().equals(this.getInstanceType()) == false)
return false;
if (other.getKernelId() == null ^ this.getKernelId() == null)
return false;
if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false)
return false;
if (other.getRamdiskId() == null ^ this.getRamdiskId() == null)
return false;
if (other.getRamdiskId() != null
&& other.getRamdiskId().equals(this.getRamdiskId()) == false)
return false;
if (other.getBlockDeviceMappings() == null ^ this.getBlockDeviceMappings() == null)
return false;
if (other.getBlockDeviceMappings() != null
&& other.getBlockDeviceMappings().equals(this.getBlockDeviceMappings()) == false)
return false;
if (other.getInstanceMonitoring() == null ^ this.getInstanceMonitoring() == null)
return false;
if (other.getInstanceMonitoring() != null
&& other.getInstanceMonitoring().equals(this.getInstanceMonitoring()) == false)
return false;
if (other.getSpotPrice() == null ^ this.getSpotPrice() == null)
return false;
if (other.getSpotPrice() != null
&& other.getSpotPrice().equals(this.getSpotPrice()) == false)
return false;
if (other.getIamInstanceProfile() == null ^ this.getIamInstanceProfile() == null)
return false;
if (other.getIamInstanceProfile() != null
&& other.getIamInstanceProfile().equals(this.getIamInstanceProfile()) == false)
return false;
if (other.getEbsOptimized() == null ^ this.getEbsOptimized() == null)
return false;
if (other.getEbsOptimized() != null
&& other.getEbsOptimized().equals(this.getEbsOptimized()) == false)
return false;
if (other.getAssociatePublicIpAddress() == null
^ this.getAssociatePublicIpAddress() == null)
return false;
if (other.getAssociatePublicIpAddress() != null
&& other.getAssociatePublicIpAddress().equals(this.getAssociatePublicIpAddress()) == false)
return false;
if (other.getPlacementTenancy() == null ^ this.getPlacementTenancy() == null)
return false;
if (other.getPlacementTenancy() != null
&& other.getPlacementTenancy().equals(this.getPlacementTenancy()) == false)
return false;
return true;
}
}