Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2014 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;
  

The LaunchConfiguration data type.

  
  public class LaunchConfiguration implements Serializable {

    
Specifies the name of the launch configuration.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

  
      private String launchConfigurationName;

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

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

  
      private String launchConfigurationARN;

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

  
      private String imageId;

    
Provides the name of the Amazon EC2 key pair.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

  
      private String keyName;

    
A description of the security groups to associate with the Amazon EC2 instances.
  
The user data available to the launched Amazon EC2 instances.

Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

  
      private String userData;

    
Specifies the instance type of the Amazon EC2 instance.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

  
      private String instanceType;

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

  
      private String kernelId;

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String ramdiskId;

    
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
 
Controls whether instances in this group are launched with detailed monitoring or not.
 
     private InstanceMonitoring instanceMonitoring;

    
Specifies the price to bid when launching Spot Instances.

Constraints:
Length: 1 - 255

 
     private String spotPrice;

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

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String iamInstanceProfile;

    
Provides the creation date and time for this launch configuration.
 
     private java.util.Date createdTime;

    
Specifies whether the instance is optimized for EBS I/O (true) or not (false).
 
     private Boolean ebsOptimized;

    
Specifies whether the instance is associated with a public IP address (true) or not (false).
 
     private Boolean associatePublicIpAddress;

    
Specifies the tenancy of the instance. It can be either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and it can only be launched in a VPC.

Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String placementTenancy;

    
Specifies the name of the launch configuration.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Specifies the name of the launch configuration.
 
     public String getLaunchConfigurationName() {
         return ;
     }
    
    
Specifies the name of the launch configuration.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
launchConfigurationName Specifies the name of the launch configuration.
 
     public void setLaunchConfigurationName(String launchConfigurationName) {
         this. = launchConfigurationName;
     }
    
    
Specifies the name of the launch configuration.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
launchConfigurationName Specifies the name of the launch configuration.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withLaunchConfigurationName(String launchConfigurationName) {
         this. = launchConfigurationName;
         return this;
     }

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

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The launch configuration's Amazon Resource Name (ARN).
 
     public String getLaunchConfigurationARN() {
         return ;
     }
    
    
The launch configuration's Amazon Resource Name (ARN).

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
launchConfigurationARN The launch configuration's Amazon Resource Name (ARN).
 
     public void setLaunchConfigurationARN(String launchConfigurationARN) {
         this. = launchConfigurationARN;
     }
    
    
The launch configuration's Amazon Resource Name (ARN).

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

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
launchConfigurationARN The launch configuration's Amazon Resource Name (ARN).
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withLaunchConfigurationARN(String launchConfigurationARN) {
         this. = launchConfigurationARN;
         return this;
     }

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
 
     public String getImageId() {
         return ;
     }
    
    
Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
imageId Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
 
     public void setImageId(String imageId) {
         this. = imageId;
     }
    
    
Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
imageId Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withImageId(String imageId) {
         this. = imageId;
         return this;
     }

    
Provides the name of the Amazon EC2 key pair.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Provides the name of the Amazon EC2 key pair.
 
     public String getKeyName() {
         return ;
     }
    
    
Provides the name of the Amazon EC2 key pair.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
keyName Provides the name of the Amazon EC2 key pair.
 
     public void setKeyName(String keyName) {
         this. = keyName;
     }
    
    
Provides the name of the Amazon EC2 key pair.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
keyName Provides the name of the Amazon EC2 key pair.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withKeyName(String keyName) {
         this. = keyName;
         return this;
     }

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

Returns:
A description of the security groups to associate with the Amazon EC2 instances.
 
     public java.util.List<StringgetSecurityGroups() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A description of the security groups to associate with the Amazon EC2 instances.

Parameters:
securityGroups A description of the security groups to associate with the Amazon EC2 instances.
 
     public void setSecurityGroups(java.util.Collection<StringsecurityGroups) {
         if (securityGroups == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<StringsecurityGroupsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(securityGroups.size());
         securityGroupsCopy.addAll(securityGroups);
         this. = securityGroupsCopy;
     }
    
    
A description of the security groups to associate with the Amazon EC2 instances.

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

Parameters:
securityGroups A description of the security groups to associate with the Amazon EC2 instances.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withSecurityGroups(String... securityGroups) {
         if (getSecurityGroups() == nullsetSecurityGroups(new java.util.ArrayList<String>(securityGroups.length));
         for (String value : securityGroups) {
             getSecurityGroups().add(value);
         }
         return this;
     }
    
    
A description of the security groups to associate with the Amazon EC2 instances.

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

Parameters:
securityGroups A description of the security groups to associate with the Amazon EC2 instances.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withSecurityGroups(java.util.Collection<StringsecurityGroups) {
         if (securityGroups == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringsecurityGroupsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(securityGroups.size());
             securityGroupsCopy.addAll(securityGroups);
             this. = securityGroupsCopy;
         }
 
         return this;
     }

    
The user data available to the launched Amazon EC2 instances.

Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The user data available to the launched Amazon EC2 instances.
 
     public String getUserData() {
         return ;
     }
    
    
The user data available to the launched Amazon EC2 instances.

Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
userData The user data available to the launched Amazon EC2 instances.
 
     public void setUserData(String userData) {
         this. = userData;
     }
    
    
The user data available to the launched Amazon EC2 instances.

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

Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
userData The user data available to the launched Amazon EC2 instances.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withUserData(String userData) {
         this. = userData;
         return this;
     }

    
Specifies the instance type of the Amazon EC2 instance.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Specifies the instance type of the Amazon EC2 instance.
 
     public String getInstanceType() {
         return ;
     }
    
    
Specifies the instance type of the Amazon EC2 instance.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceType Specifies the instance type of the Amazon EC2 instance.
 
     public void setInstanceType(String instanceType) {
         this. = instanceType;
     }
    
    
Specifies the instance type of the Amazon EC2 instance.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceType Specifies the instance type of the Amazon EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withInstanceType(String instanceType) {
         this. = instanceType;
         return this;
     }

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Provides the ID of the kernel associated with the Amazon EC2 AMI.
 
     public String getKernelId() {
         return ;
     }
    
    
Provides the ID of the kernel associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
kernelId Provides the ID of the kernel associated with the Amazon EC2 AMI.
 
     public void setKernelId(String kernelId) {
         this. = kernelId;
     }
    
    
Provides the ID of the kernel associated with the Amazon EC2 AMI.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
kernelId Provides the ID of the kernel associated with the Amazon EC2 AMI.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withKernelId(String kernelId) {
         this. = kernelId;
         return this;
     }

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Provides ID of the RAM disk associated with the Amazon EC2 AMI.
 
     public String getRamdiskId() {
         return ;
     }
    
    
Provides ID of the RAM disk associated with the Amazon EC2 AMI.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
ramdiskId Provides ID of the RAM disk associated with the Amazon EC2 AMI.
 
     public void setRamdiskId(String ramdiskId) {
         this. = ramdiskId;
     }
    
    
Provides ID of the RAM disk associated with the Amazon EC2 AMI.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
ramdiskId Provides ID of the RAM disk associated with the Amazon EC2 AMI.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withRamdiskId(String ramdiskId) {
         this. = ramdiskId;
         return this;
     }

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

Returns:
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

Parameters:
blockDeviceMappings Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
 
     public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMappingblockDeviceMappings) {
         if (blockDeviceMappings == null) {
             this. = null;
             return;
         }
         blockDeviceMappingsCopy.addAll(blockDeviceMappings);
         this. = blockDeviceMappingsCopy;
     }
    
    
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

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

Parameters:
blockDeviceMappings Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings) {
         if (getBlockDeviceMappings() == nullsetBlockDeviceMappings(new java.util.ArrayList<BlockDeviceMapping>(blockDeviceMappings.length));
         for (BlockDeviceMapping value : blockDeviceMappings) {
             getBlockDeviceMappings().add(value);
         }
         return this;
     }
    
    
Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

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

Parameters:
blockDeviceMappings Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (blockDeviceMappings == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<BlockDeviceMappingblockDeviceMappingsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<BlockDeviceMapping>(blockDeviceMappings.size());
             blockDeviceMappingsCopy.addAll(blockDeviceMappings);
             this. = blockDeviceMappingsCopy;
         }
 
         return this;
     }

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

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

Parameters:
instanceMonitoring Controls whether instances in this group are launched with detailed monitoring or not.
 
     public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring) {
         this. = instanceMonitoring;
     }
    
    
Controls whether instances in this group are launched with detailed monitoring or not.

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

Parameters:
instanceMonitoring Controls whether instances in this group are launched with detailed monitoring or not.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withInstanceMonitoring(InstanceMonitoring instanceMonitoring) {
         this. = instanceMonitoring;
         return this;
     }

    
Specifies the price to bid when launching Spot Instances.

Constraints:
Length: 1 - 255

Returns:
Specifies the price to bid when launching Spot Instances.
 
     public String getSpotPrice() {
         return ;
     }
    
    
Specifies the price to bid when launching Spot Instances.

Constraints:
Length: 1 - 255

Parameters:
spotPrice Specifies the price to bid when launching Spot Instances.
 
     public void setSpotPrice(String spotPrice) {
         this. = spotPrice;
     }
    
    
Specifies the price to bid when launching Spot Instances.

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

Constraints:
Length: 1 - 255

Parameters:
spotPrice Specifies the price to bid when launching Spot Instances.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withSpotPrice(String spotPrice) {
         this. = spotPrice;
         return this;
     }

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

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

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

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
iamInstanceProfile Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
 
     public void setIamInstanceProfile(String iamInstanceProfile) {
         this. = iamInstanceProfile;
     }
    
    
Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.

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

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
iamInstanceProfile Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withIamInstanceProfile(String iamInstanceProfile) {
         this. = iamInstanceProfile;
         return this;
     }

    
Provides the creation date and time for this launch configuration.

Returns:
Provides the creation date and time for this launch configuration.
 
     public java.util.Date getCreatedTime() {
         return ;
     }
    
    
Provides the creation date and time for this launch configuration.

Parameters:
createdTime Provides the creation date and time for this launch configuration.
 
     public void setCreatedTime(java.util.Date createdTime) {
         this. = createdTime;
     }
    
    
Provides the creation date and time for this launch configuration.

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

Parameters:
createdTime Provides the creation date and time for this launch configuration.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withCreatedTime(java.util.Date createdTime) {
         this. = createdTime;
         return this;
     }

    
Specifies whether the instance is optimized for EBS I/O (true) or not (false).

Returns:
Specifies whether the instance is optimized for EBS I/O (true) or not (false).
 
     public Boolean isEbsOptimized() {
         return ;
     }
    
    
Specifies whether the instance is optimized for EBS I/O (true) or not (false).

Parameters:
ebsOptimized Specifies whether the instance is optimized for EBS I/O (true) or not (false).
 
     public void setEbsOptimized(Boolean ebsOptimized) {
         this. = ebsOptimized;
     }
    
    
Specifies whether the instance is optimized for EBS I/O (true) or not (false).

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

Parameters:
ebsOptimized Specifies whether the instance is optimized for EBS I/O (true) or not (false).
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withEbsOptimized(Boolean ebsOptimized) {
         this. = ebsOptimized;
         return this;
     }

    
Specifies whether the instance is optimized for EBS I/O (true) or not (false).

Returns:
Specifies whether the instance is optimized for EBS I/O (true) or not (false).
 
     public Boolean getEbsOptimized() {
         return ;
     }

    
Specifies whether the instance is associated with a public IP address (true) or not (false).

Returns:
Specifies whether the instance is associated with a public IP address (true) or not (false).
 
     public Boolean isAssociatePublicIpAddress() {
         return ;
     }
    
    
Specifies whether the instance is associated with a public IP address (true) or not (false).

Parameters:
associatePublicIpAddress Specifies whether the instance is associated with a public IP address (true) or not (false).
 
     public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
         this. = associatePublicIpAddress;
     }
    
    
Specifies whether the instance is associated with a public IP address (true) or not (false).

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

Parameters:
associatePublicIpAddress Specifies whether the instance is associated with a public IP address (true) or not (false).
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LaunchConfiguration withAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
         this. = associatePublicIpAddress;
         return this;
     }

    
Specifies whether the instance is associated with a public IP address (true) or not (false).

Returns:
Specifies whether the instance is associated with a public IP address (true) or not (false).
 
     public Boolean getAssociatePublicIpAddress() {
         return ;
     }

    
Specifies the tenancy of the instance. It can be either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and it can only be launched in a VPC.

Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Specifies the tenancy of the instance. It can be either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and it can only be launched in a VPC.
 
     public String getPlacementTenancy() {
         return ;
     }
    
    
Specifies the tenancy of the instance. It can be either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and it can only be launched in a VPC.

Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
placementTenancy Specifies the tenancy of the instance. It can be either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and it can only be launched in a VPC.
 
     public void setPlacementTenancy(String placementTenancy) {
         this. = placementTenancy;
     }
    
    
Specifies the tenancy of the instance. It can be either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and it can only be launched in a VPC.

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

Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
placementTenancy Specifies the tenancy of the instance. It can be either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and it can only be launched in a VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
    public LaunchConfiguration withPlacementTenancy(String placementTenancy) {
        this. = placementTenancy;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getLaunchConfigurationName() != nullsb.append("LaunchConfigurationName: " + getLaunchConfigurationName() + ",");
        if (getLaunchConfigurationARN() != nullsb.append("LaunchConfigurationARN: " + getLaunchConfigurationARN() + ",");
        if (getImageId() != nullsb.append("ImageId: " + getImageId() + ",");
        if (getKeyName() != nullsb.append("KeyName: " + getKeyName() + ",");
        if (getSecurityGroups() != nullsb.append("SecurityGroups: " + getSecurityGroups() + ",");
        if (getUserData() != nullsb.append("UserData: " + getUserData() + ",");
        if (getInstanceType() != nullsb.append("InstanceType: " + getInstanceType() + ",");
        if (getKernelId() != nullsb.append("KernelId: " + getKernelId() + ",");
        if (getRamdiskId() != nullsb.append("RamdiskId: " + getRamdiskId() + ",");
        if (getBlockDeviceMappings() != nullsb.append("BlockDeviceMappings: " + getBlockDeviceMappings() + ",");
        if (getInstanceMonitoring() != nullsb.append("InstanceMonitoring: " + getInstanceMonitoring() + ",");
        if (getSpotPrice() != nullsb.append("SpotPrice: " + getSpotPrice() + ",");
        if (getIamInstanceProfile() != nullsb.append("IamInstanceProfile: " + getIamInstanceProfile() + ",");
        if (getCreatedTime() != nullsb.append("CreatedTime: " + getCreatedTime() + ",");
        if (isEbsOptimized() != nullsb.append("EbsOptimized: " + isEbsOptimized() + ",");
        if (isAssociatePublicIpAddress() != nullsb.append("AssociatePublicIpAddress: " + isAssociatePublicIpAddress() + ",");
        if (getPlacementTenancy() != nullsb.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 + ((getLaunchConfigurationARN() == null) ? 0 : getLaunchConfigurationARN().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 + ((getUserData() == null) ? 0 : getUserData().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 + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); 
        hashCode = prime * hashCode + ((isEbsOptimized() == null) ? 0 : isEbsOptimized().hashCode()); 
        hashCode = prime * hashCode + ((isAssociatePublicIpAddress() == null) ? 0 : isAssociatePublicIpAddress().hashCode()); 
        hashCode = prime * hashCode + ((getPlacementTenancy() == null) ? 0 : getPlacementTenancy().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof LaunchConfiguration == falsereturn false;
        LaunchConfiguration other = (LaunchConfiguration)obj;
        
        if (other.getLaunchConfigurationName() == null ^ this.getLaunchConfigurationName() == nullreturn false;
        if (other.getLaunchConfigurationName() != null && other.getLaunchConfigurationName().equals(this.getLaunchConfigurationName()) == falsereturn false
        if (other.getLaunchConfigurationARN() == null ^ this.getLaunchConfigurationARN() == nullreturn false;
        if (other.getLaunchConfigurationARN() != null && other.getLaunchConfigurationARN().equals(this.getLaunchConfigurationARN()) == falsereturn false
        if (other.getImageId() == null ^ this.getImageId() == nullreturn false;
        if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == falsereturn false
        if (other.getKeyName() == null ^ this.getKeyName() == nullreturn false;
        if (other.getKeyName() != null && other.getKeyName().equals(this.getKeyName()) == falsereturn false
        if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == nullreturn false;
        if (other.getSecurityGroups() != null && other.getSecurityGroups().equals(this.getSecurityGroups()) == falsereturn false
        if (other.getUserData() == null ^ this.getUserData() == nullreturn false;
        if (other.getUserData() != null && other.getUserData().equals(this.getUserData()) == falsereturn false
        if (other.getInstanceType() == null ^ this.getInstanceType() == nullreturn false;
        if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == falsereturn false
        if (other.getKernelId() == null ^ this.getKernelId() == nullreturn false;
        if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == falsereturn false
        if (other.getRamdiskId() == null ^ this.getRamdiskId() == nullreturn false;
        if (other.getRamdiskId() != null && other.getRamdiskId().equals(this.getRamdiskId()) == falsereturn false
        if (other.getBlockDeviceMappings() == null ^ this.getBlockDeviceMappings() == nullreturn false;
        if (other.getBlockDeviceMappings() != null && other.getBlockDeviceMappings().equals(this.getBlockDeviceMappings()) == falsereturn false
        if (other.getInstanceMonitoring() == null ^ this.getInstanceMonitoring() == nullreturn false;
        if (other.getInstanceMonitoring() != null && other.getInstanceMonitoring().equals(this.getInstanceMonitoring()) == falsereturn false
        if (other.getSpotPrice() == null ^ this.getSpotPrice() == nullreturn false;
        if (other.getSpotPrice() != null && other.getSpotPrice().equals(this.getSpotPrice()) == falsereturn false
        if (other.getIamInstanceProfile() == null ^ this.getIamInstanceProfile() == nullreturn false;
        if (other.getIamInstanceProfile() != null && other.getIamInstanceProfile().equals(this.getIamInstanceProfile()) == falsereturn false
        if (other.getCreatedTime() == null ^ this.getCreatedTime() == nullreturn false;
        if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == falsereturn false
        if (other.isEbsOptimized() == null ^ this.isEbsOptimized() == nullreturn false;
        if (other.isEbsOptimized() != null && other.isEbsOptimized().equals(this.isEbsOptimized()) == falsereturn false
        if (other.isAssociatePublicIpAddress() == null ^ this.isAssociatePublicIpAddress() == nullreturn false;
        if (other.isAssociatePublicIpAddress() != null && other.isAssociatePublicIpAddress().equals(this.isAssociatePublicIpAddress()) == falsereturn false
        if (other.getPlacementTenancy() == null ^ this.getPlacementTenancy() == nullreturn false;
        if (other.getPlacementTenancy() != null && other.getPlacementTenancy().equals(this.getPlacementTenancy()) == falsereturn false
        return true;
    }
    
}
    
New to GrepCode? Check out our FAQ X