All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.autoscaling.model.CreateLaunchConfigurationRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Auto Scaling module holds the client classes that are used for communicating with Auto Scaling Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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 javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateLaunchConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the launch configuration. This name must be unique per Region per account. *

*/ private String launchConfigurationName; /** *

* The ID of the Amazon Machine Image (AMI) that was assigned during registration. For more information, see Find a Linux AMI in the * Amazon EC2 User Guide for Linux Instances. *

*

* If you specify InstanceId, an ImageId is not required. *

*/ private String imageId; /** *

* The name of the key pair. For more information, see Amazon EC2 key pairs and Amazon EC2 * instances in the Amazon EC2 User Guide for Linux Instances. *

*/ private String keyName; /** *

* A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For more * information, see Control * traffic to your Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud * User Guide. *

*/ private com.amazonaws.internal.SdkInternalList securityGroups; /** *

* Available for backward compatibility. *

*/ private String classicLinkVPCId; /** *

* Available for backward compatibility. *

*/ private com.amazonaws.internal.SdkInternalList classicLinkVPCSecurityGroups; /** *

* The user data to make available to the launched EC2 instances. For more information, see Instance metadata and user * data (Linux) and Instance metadata and * user data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can * load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB. *

*/ private String userData; /** *

* The ID of the instance to use to create the launch configuration. The new launch configuration derives attributes * from the instance, except for 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 in the Amazon EC2 Auto Scaling User Guide. *

*/ private String instanceId; /** *

* Specifies the instance type of the EC2 instance. For information about available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances. *

*

* If you specify InstanceId, an InstanceType is not required. *

*/ private String instanceType; /** *

* The ID of the kernel associated with the AMI. *

* *

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in * the Amazon EC2 User Guide for Linux Instances. *

*
*/ private String kernelId; /** *

* The ID of the RAM disk to select. *

* *

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in * the Amazon EC2 User Guide for Linux Instances. *

*
*/ private String ramdiskId; /** *

* The block device mapping entries that define the block devices to attach to the instances at launch. By default, * the block devices specified in the block device mapping for the AMI are used. For more information, see Block device * mappings in the Amazon EC2 User Guide for Linux Instances. *

*/ private com.amazonaws.internal.SdkInternalList blockDeviceMappings; /** *

* Controls whether instances in this group are launched with detailed (true) or basic ( * false) monitoring. *

*

* The default value is true (enabled). *

* *

* When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged * a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For more information, * see Configure * monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide. *

*
*/ private InstanceMonitoring instanceMonitoring; /** *

* 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 price. For more information, see Request Spot * Instances for fault-tolerant and flexible applications in the Amazon EC2 Auto Scaling User Guide. *

*

* Valid Range: Minimum value of 0.001 *

* *

* When you change your maximum price by creating a new launch configuration, running instances will continue to run * as long as the maximum price for those running instances is higher than the current Spot price. *

*
*/ private String spotPrice; /** *

* The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. * The instance profile contains the IAM role. For more information, see IAM role for applications that run * on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide. *

*/ private String iamInstanceProfile; /** *

* Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 * fees are incurred when you enable EBS optimization for an instance type that is not EBS-optimized by default. For * more information, see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux Instances. *

*

* The default value is false. *

*/ private Boolean ebsOptimized; /** *

* Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a * default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public * IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a * public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. *

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 address. * For more information, see Provide * network connectivity for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User * Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier when you * create your group. *

*/ private Boolean associatePublicIpAddress; /** *

* The tenancy of the instance, either default or dedicated. An instance with * dedicated tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC. To * launch dedicated instances into a shared tenancy VPC (a VPC with the instance placement tenancy attribute set to * default), you must set the value of this property to dedicated. *

*

* If you specify PlacementTenancy, you must specify at least one subnet for * VPCZoneIdentifier when you create your group. *

*

* Valid values: default | dedicated *

*/ private String placementTenancy; /** *

* The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide. *

*/ private InstanceMetadataOptions metadataOptions; /** *

* The name of the launch configuration. This name must be unique per Region per account. *

* * @param launchConfigurationName * The name of the launch configuration. This name must be unique per Region per account. */ public void setLaunchConfigurationName(String launchConfigurationName) { this.launchConfigurationName = launchConfigurationName; } /** *

* The name of the launch configuration. This name must be unique per Region per account. *

* * @return The name of the launch configuration. This name must be unique per Region per account. */ public String getLaunchConfigurationName() { return this.launchConfigurationName; } /** *

* The name of the launch configuration. This name must be unique per Region per account. *

* * @param launchConfigurationName * The name of the launch configuration. This name must be unique per Region per account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withLaunchConfigurationName(String launchConfigurationName) { setLaunchConfigurationName(launchConfigurationName); return this; } /** *

* The ID of the Amazon Machine Image (AMI) that was assigned during registration. For more information, see Find a Linux AMI in the * Amazon EC2 User Guide for Linux Instances. *

*

* If you specify InstanceId, an ImageId is not required. *

* * @param imageId * The ID of the Amazon Machine Image (AMI) that was assigned during registration. For more information, see * Find a Linux AMI in * the Amazon EC2 User Guide for Linux Instances.

*

* If you specify InstanceId, an ImageId is not required. */ public void setImageId(String imageId) { this.imageId = imageId; } /** *

* The ID of the Amazon Machine Image (AMI) that was assigned during registration. For more information, see Find a Linux AMI in the * Amazon EC2 User Guide for Linux Instances. *

*

* If you specify InstanceId, an ImageId is not required. *

* * @return The ID of the Amazon Machine Image (AMI) that was assigned during registration. For more information, see * Find a Linux AMI in * the Amazon EC2 User Guide for Linux Instances.

*

* If you specify InstanceId, an ImageId is not required. */ public String getImageId() { return this.imageId; } /** *

* The ID of the Amazon Machine Image (AMI) that was assigned during registration. For more information, see Find a Linux AMI in the * Amazon EC2 User Guide for Linux Instances. *

*

* If you specify InstanceId, an ImageId is not required. *

* * @param imageId * The ID of the Amazon Machine Image (AMI) that was assigned during registration. For more information, see * Find a Linux AMI in * the Amazon EC2 User Guide for Linux Instances.

*

* If you specify InstanceId, an ImageId is not required. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withImageId(String imageId) { setImageId(imageId); return this; } /** *

* The name of the key pair. For more information, see Amazon EC2 key pairs and Amazon EC2 * instances in the Amazon EC2 User Guide for Linux Instances. *

* * @param keyName * The name of the key pair. For more information, see Amazon EC2 key pairs and * Amazon EC2 instances in the Amazon EC2 User Guide for Linux Instances. */ public void setKeyName(String keyName) { this.keyName = keyName; } /** *

* The name of the key pair. For more information, see Amazon EC2 key pairs and Amazon EC2 * instances in the Amazon EC2 User Guide for Linux Instances. *

* * @return The name of the key pair. For more information, see Amazon EC2 key pairs and * Amazon EC2 instances in the Amazon EC2 User Guide for Linux Instances. */ public String getKeyName() { return this.keyName; } /** *

* The name of the key pair. For more information, see Amazon EC2 key pairs and Amazon EC2 * instances in the Amazon EC2 User Guide for Linux Instances. *

* * @param keyName * The name of the key pair. For more information, see Amazon EC2 key pairs and * Amazon EC2 instances in the Amazon EC2 User Guide for Linux Instances. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withKeyName(String keyName) { setKeyName(keyName); return this; } /** *

* A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For more * information, see Control * traffic to your Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud * User Guide. *

* * @return A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For * more information, see Control traffic to your * Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud User * Guide. */ public java.util.List getSecurityGroups() { if (securityGroups == null) { securityGroups = new com.amazonaws.internal.SdkInternalList(); } return securityGroups; } /** *

* A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For more * information, see Control * traffic to your Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud * User Guide. *

* * @param securityGroups * A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For more * information, see Control traffic to your * Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud User * Guide. */ public void setSecurityGroups(java.util.Collection securityGroups) { if (securityGroups == null) { this.securityGroups = null; return; } this.securityGroups = new com.amazonaws.internal.SdkInternalList(securityGroups); } /** *

* A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For more * information, see Control * traffic to your Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud * User Guide. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want * to override the existing values. *

* * @param securityGroups * A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For more * information, see Control traffic to your * Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud User * Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withSecurityGroups(String... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new com.amazonaws.internal.SdkInternalList(securityGroups.length)); } for (String ele : securityGroups) { this.securityGroups.add(ele); } return this; } /** *

* A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For more * information, see Control * traffic to your Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud * User Guide. *

* * @param securityGroups * A list that contains the security group IDs to assign to the instances in the Auto Scaling group. For more * information, see Control traffic to your * Amazon Web Services resources using security groups in the Amazon Virtual Private Cloud User * Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withSecurityGroups(java.util.Collection securityGroups) { setSecurityGroups(securityGroups); return this; } /** *

* Available for backward compatibility. *

* * @param classicLinkVPCId * Available for backward compatibility. */ public void setClassicLinkVPCId(String classicLinkVPCId) { this.classicLinkVPCId = classicLinkVPCId; } /** *

* Available for backward compatibility. *

* * @return Available for backward compatibility. */ public String getClassicLinkVPCId() { return this.classicLinkVPCId; } /** *

* Available for backward compatibility. *

* * @param classicLinkVPCId * Available for backward compatibility. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withClassicLinkVPCId(String classicLinkVPCId) { setClassicLinkVPCId(classicLinkVPCId); return this; } /** *

* Available for backward compatibility. *

* * @return Available for backward compatibility. */ public java.util.List getClassicLinkVPCSecurityGroups() { if (classicLinkVPCSecurityGroups == null) { classicLinkVPCSecurityGroups = new com.amazonaws.internal.SdkInternalList(); } return classicLinkVPCSecurityGroups; } /** *

* Available for backward compatibility. *

* * @param classicLinkVPCSecurityGroups * Available for backward compatibility. */ public void setClassicLinkVPCSecurityGroups(java.util.Collection classicLinkVPCSecurityGroups) { if (classicLinkVPCSecurityGroups == null) { this.classicLinkVPCSecurityGroups = null; return; } this.classicLinkVPCSecurityGroups = new com.amazonaws.internal.SdkInternalList(classicLinkVPCSecurityGroups); } /** *

* Available for backward compatibility. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setClassicLinkVPCSecurityGroups(java.util.Collection)} or * {@link #withClassicLinkVPCSecurityGroups(java.util.Collection)} if you want to override the existing values. *

* * @param classicLinkVPCSecurityGroups * Available for backward compatibility. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups) { if (this.classicLinkVPCSecurityGroups == null) { setClassicLinkVPCSecurityGroups(new com.amazonaws.internal.SdkInternalList(classicLinkVPCSecurityGroups.length)); } for (String ele : classicLinkVPCSecurityGroups) { this.classicLinkVPCSecurityGroups.add(ele); } return this; } /** *

* Available for backward compatibility. *

* * @param classicLinkVPCSecurityGroups * Available for backward compatibility. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(java.util.Collection classicLinkVPCSecurityGroups) { setClassicLinkVPCSecurityGroups(classicLinkVPCSecurityGroups); return this; } /** *

* The user data to make available to the launched EC2 instances. For more information, see Instance metadata and user * data (Linux) and Instance metadata and * user data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can * load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB. *

* * @param userData * The user data to make available to the launched EC2 instances. For more information, see Instance metadata * and user data (Linux) and Instance metadata * and user data (Windows). If you are using a command line tool, base64-encoding is performed for you, * and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is * limited to 16 KB. */ public void setUserData(String userData) { this.userData = userData; } /** *

* The user data to make available to the launched EC2 instances. For more information, see Instance metadata and user * data (Linux) and Instance metadata and * user data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can * load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB. *

* * @return The user data to make available to the launched EC2 instances. For more information, see Instance metadata * and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, base64-encoding is performed * for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text. User * data is limited to 16 KB. */ public String getUserData() { return this.userData; } /** *

* The user data to make available to the launched EC2 instances. For more information, see Instance metadata and user * data (Linux) and Instance metadata and * user data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can * load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB. *

* * @param userData * The user data to make available to the launched EC2 instances. For more information, see Instance metadata * and user data (Linux) and Instance metadata * and user data (Windows). If you are using a command line tool, base64-encoding is performed for you, * and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is * limited to 16 KB. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withUserData(String userData) { setUserData(userData); return this; } /** *

* The ID of the instance to use to create the launch configuration. The new launch configuration derives attributes * from the instance, except for 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 in the Amazon EC2 Auto Scaling User Guide. *

* * @param instanceId * The ID of the instance to use to create the launch configuration. The new launch configuration derives * attributes from the instance, except for 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 in the Amazon EC2 Auto Scaling User Guide. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** *

* The ID of the instance to use to create the launch configuration. The new launch configuration derives attributes * from the instance, except for 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 in the Amazon EC2 Auto Scaling User Guide. *

* * @return The ID of the instance to use to create the launch configuration. The new launch configuration derives * attributes from the instance, except for 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 in the Amazon EC2 Auto Scaling User Guide. */ public String getInstanceId() { return this.instanceId; } /** *

* The ID of the instance to use to create the launch configuration. The new launch configuration derives attributes * from the instance, except for 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 in the Amazon EC2 Auto Scaling User Guide. *

* * @param instanceId * The ID of the instance to use to create the launch configuration. The new launch configuration derives * attributes from the instance, except for 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 in the Amazon EC2 Auto Scaling User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** *

* Specifies the instance type of the EC2 instance. For information about available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances. *

*

* If you specify InstanceId, an InstanceType is not required. *

* * @param instanceType * Specifies the instance type of the EC2 instance. For information about available instance types, see * Available instance types in the Amazon EC2 User Guide for Linux Instances.

*

* If you specify InstanceId, an InstanceType is not required. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *

* Specifies the instance type of the EC2 instance. For information about available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances. *

*

* If you specify InstanceId, an InstanceType is not required. *

* * @return Specifies the instance type of the EC2 instance. For information about available instance types, see * Available instance types in the Amazon EC2 User Guide for Linux Instances.

*

* If you specify InstanceId, an InstanceType is not required. */ public String getInstanceType() { return this.instanceType; } /** *

* Specifies the instance type of the EC2 instance. For information about available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances. *

*

* If you specify InstanceId, an InstanceType is not required. *

* * @param instanceType * Specifies the instance type of the EC2 instance. For information about available instance types, see * Available instance types in the Amazon EC2 User Guide for Linux Instances.

*

* If you specify InstanceId, an InstanceType is not required. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

* The ID of the kernel associated with the AMI. *

* *

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in * the Amazon EC2 User Guide for Linux Instances. *

*
* * @param kernelId * The ID of the kernel associated with the AMI.

*

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided * kernels in the Amazon EC2 User Guide for Linux Instances. *

*/ public void setKernelId(String kernelId) { this.kernelId = kernelId; } /** *

* The ID of the kernel associated with the AMI. *

* *

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in * the Amazon EC2 User Guide for Linux Instances. *

*
* * @return The ID of the kernel associated with the AMI.

*

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided * kernels in the Amazon EC2 User Guide for Linux Instances. *

*/ public String getKernelId() { return this.kernelId; } /** *

* The ID of the kernel associated with the AMI. *

* *

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in * the Amazon EC2 User Guide for Linux Instances. *

*
* * @param kernelId * The ID of the kernel associated with the AMI.

*

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided * kernels in the Amazon EC2 User Guide for Linux Instances. *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withKernelId(String kernelId) { setKernelId(kernelId); return this; } /** *

* The ID of the RAM disk to select. *

* *

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in * the Amazon EC2 User Guide for Linux Instances. *

*
* * @param ramdiskId * The ID of the RAM disk to select.

*

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided * kernels in the Amazon EC2 User Guide for Linux Instances. *

*/ public void setRamdiskId(String ramdiskId) { this.ramdiskId = ramdiskId; } /** *

* The ID of the RAM disk to select. *

* *

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in * the Amazon EC2 User Guide for Linux Instances. *

*
* * @return The ID of the RAM disk to select.

*

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided * kernels in the Amazon EC2 User Guide for Linux Instances. *

*/ public String getRamdiskId() { return this.ramdiskId; } /** *

* The ID of the RAM disk to select. *

* *

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in * the Amazon EC2 User Guide for Linux Instances. *

*
* * @param ramdiskId * The ID of the RAM disk to select.

*

* We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided * kernels in the Amazon EC2 User Guide for Linux Instances. *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withRamdiskId(String ramdiskId) { setRamdiskId(ramdiskId); return this; } /** *

* The block device mapping entries that define the block devices to attach to the instances at launch. By default, * the block devices specified in the block device mapping for the AMI are used. For more information, see Block device * mappings in the Amazon EC2 User Guide for Linux Instances. *

* * @return The block device mapping entries that define the block devices to attach to the instances at launch. By * default, the block devices specified in the block device mapping for the AMI are used. For more * information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances. */ public java.util.List getBlockDeviceMappings() { if (blockDeviceMappings == null) { blockDeviceMappings = new com.amazonaws.internal.SdkInternalList(); } return blockDeviceMappings; } /** *

* The block device mapping entries that define the block devices to attach to the instances at launch. By default, * the block devices specified in the block device mapping for the AMI are used. For more information, see Block device * mappings in the Amazon EC2 User Guide for Linux Instances. *

* * @param blockDeviceMappings * The block device mapping entries that define the block devices to attach to the instances at launch. By * default, the block devices specified in the block device mapping for the AMI are used. For more * information, see Block device * mappings in the Amazon EC2 User Guide for Linux Instances. */ public void setBlockDeviceMappings(java.util.Collection blockDeviceMappings) { if (blockDeviceMappings == null) { this.blockDeviceMappings = null; return; } this.blockDeviceMappings = new com.amazonaws.internal.SdkInternalList(blockDeviceMappings); } /** *

* The block device mapping entries that define the block devices to attach to the instances at launch. By default, * the block devices specified in the block device mapping for the AMI are used. For more information, see Block device * mappings in the Amazon EC2 User Guide for Linux Instances. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setBlockDeviceMappings(java.util.Collection)} or {@link #withBlockDeviceMappings(java.util.Collection)} * if you want to override the existing values. *

* * @param blockDeviceMappings * The block device mapping entries that define the block devices to attach to the instances at launch. By * default, the block devices specified in the block device mapping for the AMI are used. For more * information, see Block device * mappings in the Amazon EC2 User Guide for Linux Instances. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings) { if (this.blockDeviceMappings == null) { setBlockDeviceMappings(new com.amazonaws.internal.SdkInternalList(blockDeviceMappings.length)); } for (BlockDeviceMapping ele : blockDeviceMappings) { this.blockDeviceMappings.add(ele); } return this; } /** *

* The block device mapping entries that define the block devices to attach to the instances at launch. By default, * the block devices specified in the block device mapping for the AMI are used. For more information, see Block device * mappings in the Amazon EC2 User Guide for Linux Instances. *

* * @param blockDeviceMappings * The block device mapping entries that define the block devices to attach to the instances at launch. By * default, the block devices specified in the block device mapping for the AMI are used. For more * information, see Block device * mappings in the Amazon EC2 User Guide for Linux Instances. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withBlockDeviceMappings(java.util.Collection blockDeviceMappings) { setBlockDeviceMappings(blockDeviceMappings); return this; } /** *

* Controls whether instances in this group are launched with detailed (true) or basic ( * false) monitoring. *

*

* The default value is true (enabled). *

* *

* When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged * a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For more information, * see Configure * monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide. *

*
* * @param instanceMonitoring * Controls whether instances in this group are launched with detailed (true) or basic ( * false) monitoring.

*

* The default value is true (enabled). *

* *

* When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is * charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For * more information, see Configure * monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide. *

*/ public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring) { this.instanceMonitoring = instanceMonitoring; } /** *

* Controls whether instances in this group are launched with detailed (true) or basic ( * false) monitoring. *

*

* The default value is true (enabled). *

* *

* When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged * a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For more information, * see Configure * monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide. *

*
* * @return Controls whether instances in this group are launched with detailed (true) or basic ( * false) monitoring.

*

* The default value is true (enabled). *

* *

* When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is * charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For * more information, see Configure * monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide. *

*/ public InstanceMonitoring getInstanceMonitoring() { return this.instanceMonitoring; } /** *

* Controls whether instances in this group are launched with detailed (true) or basic ( * false) monitoring. *

*

* The default value is true (enabled). *

* *

* When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged * a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For more information, * see Configure * monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide. *

*
* * @param instanceMonitoring * Controls whether instances in this group are launched with detailed (true) or basic ( * false) monitoring.

*

* The default value is true (enabled). *

* *

* When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is * charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. For * more information, see Configure * monitoring for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide. *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withInstanceMonitoring(InstanceMonitoring instanceMonitoring) { setInstanceMonitoring(instanceMonitoring); return this; } /** *

* 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 price. For more information, see Request Spot * Instances for fault-tolerant and flexible applications in the Amazon EC2 Auto Scaling User Guide. *

*

* Valid Range: Minimum value of 0.001 *

* *

* When you change your maximum price by creating a new launch configuration, running instances will continue to run * as long as the maximum price for those running instances is higher than the current Spot price. *

*
* * @param 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 price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon EC2 Auto Scaling User * Guide.

*

* Valid Range: Minimum value of 0.001 *

* *

* When you change your maximum price by creating a new launch configuration, running instances will continue * to run as long as the maximum price for those running instances is higher than the current Spot price. *

*/ public void setSpotPrice(String spotPrice) { this.spotPrice = 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 price. For more information, see Request Spot * Instances for fault-tolerant and flexible applications in the Amazon EC2 Auto Scaling User Guide. *

*

* Valid Range: Minimum value of 0.001 *

* *

* When you change your maximum price by creating a new launch configuration, running instances will continue to run * as long as the maximum price for those running instances is higher than the current Spot price. *

*
* * @return 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 price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon EC2 Auto Scaling User * Guide.

*

* Valid Range: Minimum value of 0.001 *

* *

* When you change your maximum price by creating a new launch configuration, running instances will * continue to run as long as the maximum price for those running instances is higher than the current Spot * price. *

*/ public String getSpotPrice() { return this.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 price. For more information, see Request Spot * Instances for fault-tolerant and flexible applications in the Amazon EC2 Auto Scaling User Guide. *

*

* Valid Range: Minimum value of 0.001 *

* *

* When you change your maximum price by creating a new launch configuration, running instances will continue to run * as long as the maximum price for those running instances is higher than the current Spot price. *

*
* * @param 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 price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon EC2 Auto Scaling User * Guide.

*

* Valid Range: Minimum value of 0.001 *

* *

* When you change your maximum price by creating a new launch configuration, running instances will continue * to run as long as the maximum price for those running instances is higher than the current Spot price. *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withSpotPrice(String spotPrice) { setSpotPrice(spotPrice); return this; } /** *

* The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. * The instance profile contains the IAM role. For more information, see IAM role for applications that run * on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide. *

* * @param iamInstanceProfile * The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the * instance. The instance profile contains the IAM role. For more information, see IAM role for applications * that run on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide. */ public void setIamInstanceProfile(String iamInstanceProfile) { this.iamInstanceProfile = iamInstanceProfile; } /** *

* The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. * The instance profile contains the IAM role. For more information, see IAM role for applications that run * on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide. *

* * @return The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the * instance. The instance profile contains the IAM role. For more information, see IAM role for applications * that run on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide. */ public String getIamInstanceProfile() { return this.iamInstanceProfile; } /** *

* The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. * The instance profile contains the IAM role. For more information, see IAM role for applications that run * on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide. *

* * @param iamInstanceProfile * The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the * instance. The instance profile contains the IAM role. For more information, see IAM role for applications * that run on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withIamInstanceProfile(String iamInstanceProfile) { setIamInstanceProfile(iamInstanceProfile); return this; } /** *

* Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 * fees are incurred when you enable EBS optimization for an instance type that is not EBS-optimized by default. For * more information, see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux Instances. *

*

* The default value is false. *

* * @param ebsOptimized * Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 fees are incurred when you enable EBS optimization for an instance type that is * not EBS-optimized by default. For more information, see Amazon EBS-optimized * instances in the Amazon EC2 User Guide for Linux Instances.

*

* The default value is false. */ public void setEbsOptimized(Boolean ebsOptimized) { this.ebsOptimized = ebsOptimized; } /** *

* Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 * fees are incurred when you enable EBS optimization for an instance type that is not EBS-optimized by default. For * more information, see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux Instances. *

*

* The default value is false. *

* * @return Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 fees are incurred when you enable EBS optimization for an instance type that * is not EBS-optimized by default. For more information, see Amazon EBS-optimized * instances in the Amazon EC2 User Guide for Linux Instances.

*

* The default value is false. */ public Boolean getEbsOptimized() { return this.ebsOptimized; } /** *

* Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 * fees are incurred when you enable EBS optimization for an instance type that is not EBS-optimized by default. For * more information, see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux Instances. *

*

* The default value is false. *

* * @param ebsOptimized * Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 fees are incurred when you enable EBS optimization for an instance type that is * not EBS-optimized by default. For more information, see Amazon EBS-optimized * instances in the Amazon EC2 User Guide for Linux Instances.

*

* The default value is false. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withEbsOptimized(Boolean ebsOptimized) { setEbsOptimized(ebsOptimized); return this; } /** *

* Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 * fees are incurred when you enable EBS optimization for an instance type that is not EBS-optimized by default. For * more information, see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux Instances. *

*

* The default value is false. *

* * @return Specifies whether the launch configuration is optimized for EBS I/O (true) or not ( * false). 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 fees are incurred when you enable EBS optimization for an instance type that * is not EBS-optimized by default. For more information, see Amazon EBS-optimized * instances in the Amazon EC2 User Guide for Linux Instances.

*

* The default value is false. */ public Boolean isEbsOptimized() { return this.ebsOptimized; } /** *

* Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a * default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public * IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a * public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. *

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 address. * For more information, see Provide * network connectivity for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User * Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier when you * create your group. *

* * @param associatePublicIpAddress * Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched * into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to * assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the * default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4 * address on the subnet.

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 * address. For more information, see Provide network connectivity * for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier when * you create your group. */ public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) { this.associatePublicIpAddress = associatePublicIpAddress; } /** *

* Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a * default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public * IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a * public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. *

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 address. * For more information, see Provide * network connectivity for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User * Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier when you * create your group. *

* * @return Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched * into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to * assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the * default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4 * address on the subnet.

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 * address. For more information, see Provide network connectivity * for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier * when you create your group. */ public Boolean getAssociatePublicIpAddress() { return this.associatePublicIpAddress; } /** *

* Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a * default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public * IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a * public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. *

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 address. * For more information, see Provide * network connectivity for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User * Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier when you * create your group. *

* * @param associatePublicIpAddress * Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched * into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to * assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the * default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4 * address on the subnet.

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 * address. For more information, see Provide network connectivity * for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier when * you create your group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withAssociatePublicIpAddress(Boolean associatePublicIpAddress) { setAssociatePublicIpAddress(associatePublicIpAddress); return this; } /** *

* Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched into a * default subnet, the default is to assign a public IPv4 address, unless you disabled the option to assign a public * IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the default is not to assign a * public IPv4 address, unless you enabled the option to assign a public IPv4 address on the subnet. *

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 address. * For more information, see Provide * network connectivity for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User * Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier when you * create your group. *

* * @return Specifies whether to assign a public IPv4 address to the group's instances. If the instance is launched * into a default subnet, the default is to assign a public IPv4 address, unless you disabled the option to * assign a public IPv4 address on the subnet. If the instance is launched into a nondefault subnet, the * default is not to assign a public IPv4 address, unless you enabled the option to assign a public IPv4 * address on the subnet.

*

* If you specify true, each instance in the Auto Scaling group receives a unique public IPv4 * address. For more information, see Provide network connectivity * for your Auto Scaling instances using Amazon VPC in the Amazon EC2 Auto Scaling User Guide. *

*

* If you specify this property, you must specify at least one subnet for VPCZoneIdentifier * when you create your group. */ public Boolean isAssociatePublicIpAddress() { return this.associatePublicIpAddress; } /** *

* The tenancy of the instance, either default or dedicated. An instance with * dedicated tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC. To * launch dedicated instances into a shared tenancy VPC (a VPC with the instance placement tenancy attribute set to * default), you must set the value of this property to dedicated. *

*

* If you specify PlacementTenancy, you must specify at least one subnet for * VPCZoneIdentifier when you create your group. *

*

* Valid values: default | dedicated *

* * @param placementTenancy * The tenancy of the instance, either default or dedicated. An instance with * dedicated tenancy runs on isolated, single-tenant hardware and can only be launched into a * VPC. To launch dedicated instances into a shared tenancy VPC (a VPC with the instance placement tenancy * attribute set to default), you must set the value of this property to dedicated * .

*

* If you specify PlacementTenancy, you must specify at least one subnet for * VPCZoneIdentifier when you create your group. *

*

* Valid values: default | dedicated */ public void setPlacementTenancy(String placementTenancy) { this.placementTenancy = placementTenancy; } /** *

* The tenancy of the instance, either default or dedicated. An instance with * dedicated tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC. To * launch dedicated instances into a shared tenancy VPC (a VPC with the instance placement tenancy attribute set to * default), you must set the value of this property to dedicated. *

*

* If you specify PlacementTenancy, you must specify at least one subnet for * VPCZoneIdentifier when you create your group. *

*

* Valid values: default | dedicated *

* * @return The tenancy of the instance, either default or dedicated. An instance with * dedicated tenancy runs on isolated, single-tenant hardware and can only be launched into a * VPC. To launch dedicated instances into a shared tenancy VPC (a VPC with the instance placement tenancy * attribute set to default), you must set the value of this property to dedicated * .

*

* If you specify PlacementTenancy, you must specify at least one subnet for * VPCZoneIdentifier when you create your group. *

*

* Valid values: default | dedicated */ public String getPlacementTenancy() { return this.placementTenancy; } /** *

* The tenancy of the instance, either default or dedicated. An instance with * dedicated tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC. To * launch dedicated instances into a shared tenancy VPC (a VPC with the instance placement tenancy attribute set to * default), you must set the value of this property to dedicated. *

*

* If you specify PlacementTenancy, you must specify at least one subnet for * VPCZoneIdentifier when you create your group. *

*

* Valid values: default | dedicated *

* * @param placementTenancy * The tenancy of the instance, either default or dedicated. An instance with * dedicated tenancy runs on isolated, single-tenant hardware and can only be launched into a * VPC. To launch dedicated instances into a shared tenancy VPC (a VPC with the instance placement tenancy * attribute set to default), you must set the value of this property to dedicated * .

*

* If you specify PlacementTenancy, you must specify at least one subnet for * VPCZoneIdentifier when you create your group. *

*

* Valid values: default | dedicated * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withPlacementTenancy(String placementTenancy) { setPlacementTenancy(placementTenancy); return this; } /** *

* The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide. *

* * @param metadataOptions * The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide. */ public void setMetadataOptions(InstanceMetadataOptions metadataOptions) { this.metadataOptions = metadataOptions; } /** *

* The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide. *

* * @return The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide. */ public InstanceMetadataOptions getMetadataOptions() { return this.metadataOptions; } /** *

* The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide. *

* * @param metadataOptions * The metadata options for the instances. For more information, see Configure the instance metadata options in the Amazon EC2 Auto Scaling User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchConfigurationRequest withMetadataOptions(InstanceMetadataOptions metadataOptions) { setMetadataOptions(metadataOptions); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @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: ").append(getLaunchConfigurationName()).append(","); if (getImageId() != null) sb.append("ImageId: ").append(getImageId()).append(","); if (getKeyName() != null) sb.append("KeyName: ").append(getKeyName()).append(","); if (getSecurityGroups() != null) sb.append("SecurityGroups: ").append(getSecurityGroups()).append(","); if (getClassicLinkVPCId() != null) sb.append("ClassicLinkVPCId: ").append(getClassicLinkVPCId()).append(","); if (getClassicLinkVPCSecurityGroups() != null) sb.append("ClassicLinkVPCSecurityGroups: ").append(getClassicLinkVPCSecurityGroups()).append(","); if (getUserData() != null) sb.append("UserData: ").append(getUserData()).append(","); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getKernelId() != null) sb.append("KernelId: ").append(getKernelId()).append(","); if (getRamdiskId() != null) sb.append("RamdiskId: ").append(getRamdiskId()).append(","); if (getBlockDeviceMappings() != null) sb.append("BlockDeviceMappings: ").append(getBlockDeviceMappings()).append(","); if (getInstanceMonitoring() != null) sb.append("InstanceMonitoring: ").append(getInstanceMonitoring()).append(","); if (getSpotPrice() != null) sb.append("SpotPrice: ").append(getSpotPrice()).append(","); if (getIamInstanceProfile() != null) sb.append("IamInstanceProfile: ").append(getIamInstanceProfile()).append(","); if (getEbsOptimized() != null) sb.append("EbsOptimized: ").append(getEbsOptimized()).append(","); if (getAssociatePublicIpAddress() != null) sb.append("AssociatePublicIpAddress: ").append(getAssociatePublicIpAddress()).append(","); if (getPlacementTenancy() != null) sb.append("PlacementTenancy: ").append(getPlacementTenancy()).append(","); if (getMetadataOptions() != null) sb.append("MetadataOptions: ").append(getMetadataOptions()); sb.append("}"); return sb.toString(); } @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; if (other.getMetadataOptions() == null ^ this.getMetadataOptions() == null) return false; if (other.getMetadataOptions() != null && other.getMetadataOptions().equals(this.getMetadataOptions()) == false) return false; return true; } @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()); hashCode = prime * hashCode + ((getMetadataOptions() == null) ? 0 : getMetadataOptions().hashCode()); return hashCode; } @Override public CreateLaunchConfigurationRequest clone() { return (CreateLaunchConfigurationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy