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

com.amazonaws.services.autoscaling.model.LaunchConfiguration 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.11.7
Show newest version
/*
 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
 * Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *  http://aws.amazon.com/apache2.0
 *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

package com.amazonaws.services.autoscaling.model;

import java.io.Serializable;

/**
 * 

* Describes a launch configuration. *

*/ public class LaunchConfiguration implements Serializable, Cloneable { /** *

* The name of the launch configuration. *

*/ private String launchConfigurationName; /** *

* The Amazon Resource Name (ARN) of the launch configuration. *

*/ private String launchConfigurationARN; /** *

* The ID of the Amazon Machine Image (AMI). *

*/ private String imageId; /** *

* The name of the key pair. *

*/ private String keyName; /** *

* The security groups to associate with the instances. *

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

* The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances * to. This parameter can only be used if you are launching EC2-Classic * instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

*/ private String classicLinkVPCId; /** *

* The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you specify * a ClassicLink-enabled VPC, and cannot be used otherwise. For more * information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

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

* The user data available to the instances. *

*/ private String userData; /** *

* The instance type for the instances. *

*/ private String instanceType; /** *

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

*/ private String kernelId; /** *

* The ID of the RAM disk associated with the AMI. *

*/ private String ramdiskId; /** *

* A block device mapping, which specifies the block devices for the * instance. *

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

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

*/ private InstanceMonitoring instanceMonitoring; /** *

* The price to bid when launching Spot Instances. *

*/ private String spotPrice; /** *

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

*/ private String iamInstanceProfile; /** *

* The creation date and time for the launch configuration. *

*/ private java.util.Date createdTime; /** *

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

*/ private Boolean ebsOptimized; /** *

* [EC2-VPC] Indicates whether to assign a public IP address to each * instance. *

*/ private Boolean associatePublicIpAddress; /** *

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

*/ private String placementTenancy; /** *

* The name of the launch configuration. *

* * @param launchConfigurationName * The name of the launch configuration. */ public void setLaunchConfigurationName(String launchConfigurationName) { this.launchConfigurationName = launchConfigurationName; } /** *

* The name of the launch configuration. *

* * @return The name of the launch configuration. */ public String getLaunchConfigurationName() { return this.launchConfigurationName; } /** *

* The name of the launch configuration. *

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

* The Amazon Resource Name (ARN) of the launch configuration. *

* * @param launchConfigurationARN * The Amazon Resource Name (ARN) of the launch configuration. */ public void setLaunchConfigurationARN(String launchConfigurationARN) { this.launchConfigurationARN = launchConfigurationARN; } /** *

* The Amazon Resource Name (ARN) of the launch configuration. *

* * @return The Amazon Resource Name (ARN) of the launch configuration. */ public String getLaunchConfigurationARN() { return this.launchConfigurationARN; } /** *

* The Amazon Resource Name (ARN) of the launch configuration. *

* * @param launchConfigurationARN * The Amazon Resource Name (ARN) of the launch configuration. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withLaunchConfigurationARN( String launchConfigurationARN) { setLaunchConfigurationARN(launchConfigurationARN); return this; } /** *

* The ID of the Amazon Machine Image (AMI). *

* * @param imageId * The ID of the Amazon Machine Image (AMI). */ public void setImageId(String imageId) { this.imageId = imageId; } /** *

* The ID of the Amazon Machine Image (AMI). *

* * @return The ID of the Amazon Machine Image (AMI). */ public String getImageId() { return this.imageId; } /** *

* The ID of the Amazon Machine Image (AMI). *

* * @param imageId * The ID of the Amazon Machine Image (AMI). * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withImageId(String imageId) { setImageId(imageId); return this; } /** *

* The name of the key pair. *

* * @param keyName * The name of the key pair. */ public void setKeyName(String keyName) { this.keyName = keyName; } /** *

* The name of the key pair. *

* * @return The name of the key pair. */ public String getKeyName() { return this.keyName; } /** *

* The name of the key pair. *

* * @param keyName * The name of the key pair. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withKeyName(String keyName) { setKeyName(keyName); return this; } /** *

* The security groups to associate with the instances. *

* * @return The security groups to associate with the instances. */ public java.util.List getSecurityGroups() { if (securityGroups == null) { securityGroups = new com.amazonaws.internal.SdkInternalList(); } return securityGroups; } /** *

* The security groups to associate with the instances. *

* * @param securityGroups * The security groups to associate with the instances. */ public void setSecurityGroups(java.util.Collection securityGroups) { if (securityGroups == null) { this.securityGroups = null; return; } this.securityGroups = new com.amazonaws.internal.SdkInternalList( securityGroups); } /** *

* The security groups to associate with the instances. *

*

* 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 * The security groups to associate with the instances. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration 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; } /** *

* The security groups to associate with the instances. *

* * @param securityGroups * The security groups to associate with the instances. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withSecurityGroups( java.util.Collection securityGroups) { setSecurityGroups(securityGroups); return this; } /** *

* The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances * to. This parameter can only be used if you are launching EC2-Classic * instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

* * @param classicLinkVPCId * The ID of a ClassicLink-enabled VPC to link your EC2-Classic * instances to. This parameter can only be used if you are launching * EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User * Guide. */ public void setClassicLinkVPCId(String classicLinkVPCId) { this.classicLinkVPCId = classicLinkVPCId; } /** *

* The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances * to. This parameter can only be used if you are launching EC2-Classic * instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

* * @return The ID of a ClassicLink-enabled VPC to link your EC2-Classic * instances to. This parameter can only be used if you are * launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User * Guide. */ public String getClassicLinkVPCId() { return this.classicLinkVPCId; } /** *

* The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances * to. This parameter can only be used if you are launching EC2-Classic * instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

* * @param classicLinkVPCId * The ID of a ClassicLink-enabled VPC to link your EC2-Classic * instances to. This parameter can only be used if you are launching * EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User * Guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withClassicLinkVPCId(String classicLinkVPCId) { setClassicLinkVPCId(classicLinkVPCId); return this; } /** *

* The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you specify * a ClassicLink-enabled VPC, and cannot be used otherwise. For more * information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

* * @return The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you * specify a ClassicLink-enabled VPC, and cannot be used otherwise. * For more information, see ClassicLink in the Amazon Elastic Compute Cloud User * Guide. */ public java.util.List getClassicLinkVPCSecurityGroups() { if (classicLinkVPCSecurityGroups == null) { classicLinkVPCSecurityGroups = new com.amazonaws.internal.SdkInternalList(); } return classicLinkVPCSecurityGroups; } /** *

* The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you specify * a ClassicLink-enabled VPC, and cannot be used otherwise. For more * information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

* * @param classicLinkVPCSecurityGroups * The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you * specify a ClassicLink-enabled VPC, and cannot be used otherwise. * For more information, see ClassicLink in the Amazon Elastic Compute Cloud User * Guide. */ public void setClassicLinkVPCSecurityGroups( java.util.Collection classicLinkVPCSecurityGroups) { if (classicLinkVPCSecurityGroups == null) { this.classicLinkVPCSecurityGroups = null; return; } this.classicLinkVPCSecurityGroups = new com.amazonaws.internal.SdkInternalList( classicLinkVPCSecurityGroups); } /** *

* The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you specify * a ClassicLink-enabled VPC, and cannot be used otherwise. For more * information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

*

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

* * @param classicLinkVPCSecurityGroups * The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you * specify a ClassicLink-enabled VPC, and cannot be used otherwise. * For more information, see ClassicLink in the Amazon Elastic Compute Cloud User * Guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration 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; } /** *

* The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you specify * a ClassicLink-enabled VPC, and cannot be used otherwise. For more * information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. *

* * @param classicLinkVPCSecurityGroups * The IDs of one or more security groups for the VPC specified in * ClassicLinkVPCId. This parameter is required if you * specify a ClassicLink-enabled VPC, and cannot be used otherwise. * For more information, see ClassicLink in the Amazon Elastic Compute Cloud User * Guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withClassicLinkVPCSecurityGroups( java.util.Collection classicLinkVPCSecurityGroups) { setClassicLinkVPCSecurityGroups(classicLinkVPCSecurityGroups); return this; } /** *

* The user data available to the instances. *

* * @param userData * The user data available to the instances. */ public void setUserData(String userData) { this.userData = userData; } /** *

* The user data available to the instances. *

* * @return The user data available to the instances. */ public String getUserData() { return this.userData; } /** *

* The user data available to the instances. *

* * @param userData * The user data available to the instances. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withUserData(String userData) { setUserData(userData); return this; } /** *

* The instance type for the instances. *

* * @param instanceType * The instance type for the instances. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *

* The instance type for the instances. *

* * @return The instance type for the instances. */ public String getInstanceType() { return this.instanceType; } /** *

* The instance type for the instances. *

* * @param instanceType * The instance type for the instances. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

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

* * @param kernelId * The ID of the kernel associated with the AMI. */ public void setKernelId(String kernelId) { this.kernelId = kernelId; } /** *

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

* * @return The ID of the kernel associated with the AMI. */ public String getKernelId() { return this.kernelId; } /** *

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

* * @param kernelId * The ID of the kernel associated with the AMI. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withKernelId(String kernelId) { setKernelId(kernelId); return this; } /** *

* The ID of the RAM disk associated with the AMI. *

* * @param ramdiskId * The ID of the RAM disk associated with the AMI. */ public void setRamdiskId(String ramdiskId) { this.ramdiskId = ramdiskId; } /** *

* The ID of the RAM disk associated with the AMI. *

* * @return The ID of the RAM disk associated with the AMI. */ public String getRamdiskId() { return this.ramdiskId; } /** *

* The ID of the RAM disk associated with the AMI. *

* * @param ramdiskId * The ID of the RAM disk associated with the AMI. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withRamdiskId(String ramdiskId) { setRamdiskId(ramdiskId); return this; } /** *

* A block device mapping, which specifies the block devices for the * instance. *

* * @return A block device mapping, which specifies the block devices for the * instance. */ public java.util.List getBlockDeviceMappings() { if (blockDeviceMappings == null) { blockDeviceMappings = new com.amazonaws.internal.SdkInternalList(); } return blockDeviceMappings; } /** *

* A block device mapping, which specifies the block devices for the * instance. *

* * @param blockDeviceMappings * A block device mapping, which specifies the block devices for the * instance. */ public void setBlockDeviceMappings( java.util.Collection blockDeviceMappings) { if (blockDeviceMappings == null) { this.blockDeviceMappings = null; return; } this.blockDeviceMappings = new com.amazonaws.internal.SdkInternalList( blockDeviceMappings); } /** *

* A block device mapping, which specifies the block devices for the * instance. *

*

* 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 * A block device mapping, which specifies the block devices for the * instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration 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; } /** *

* A block device mapping, which specifies the block devices for the * instance. *

* * @param blockDeviceMappings * A block device mapping, which specifies the block devices for the * instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withBlockDeviceMappings( java.util.Collection blockDeviceMappings) { setBlockDeviceMappings(blockDeviceMappings); return this; } /** *

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

* * @param instanceMonitoring * Controls whether instances in this group are launched with * detailed monitoring. */ public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring) { this.instanceMonitoring = instanceMonitoring; } /** *

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

* * @return Controls whether instances in this group are launched with * detailed monitoring. */ public InstanceMonitoring getInstanceMonitoring() { return this.instanceMonitoring; } /** *

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

* * @param instanceMonitoring * Controls whether instances in this group are launched with * detailed monitoring. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withInstanceMonitoring( InstanceMonitoring instanceMonitoring) { setInstanceMonitoring(instanceMonitoring); return this; } /** *

* The price to bid when launching Spot Instances. *

* * @param spotPrice * The price to bid when launching Spot Instances. */ public void setSpotPrice(String spotPrice) { this.spotPrice = spotPrice; } /** *

* The price to bid when launching Spot Instances. *

* * @return The price to bid when launching Spot Instances. */ public String getSpotPrice() { return this.spotPrice; } /** *

* The price to bid when launching Spot Instances. *

* * @param spotPrice * The price to bid when launching Spot Instances. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withSpotPrice(String spotPrice) { setSpotPrice(spotPrice); return this; } /** *

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

* * @param iamInstanceProfile * The name or Amazon Resource Name (ARN) of the instance profile * associated with the IAM role for the instance. */ public void setIamInstanceProfile(String iamInstanceProfile) { this.iamInstanceProfile = iamInstanceProfile; } /** *

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

* * @return The name or Amazon Resource Name (ARN) of the instance profile * associated with the IAM role for the instance. */ public String getIamInstanceProfile() { return this.iamInstanceProfile; } /** *

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

* * @param iamInstanceProfile * The name or Amazon Resource Name (ARN) of the instance profile * associated with the IAM role for the instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withIamInstanceProfile(String iamInstanceProfile) { setIamInstanceProfile(iamInstanceProfile); return this; } /** *

* The creation date and time for the launch configuration. *

* * @param createdTime * The creation date and time for the launch configuration. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* The creation date and time for the launch configuration. *

* * @return The creation date and time for the launch configuration. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* The creation date and time for the launch configuration. *

* * @param createdTime * The creation date and time for the launch configuration. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** *

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

* * @param ebsOptimized * Controls whether the instance is optimized for EBS I/O ( * true) or not (false). */ public void setEbsOptimized(Boolean ebsOptimized) { this.ebsOptimized = ebsOptimized; } /** *

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

* * @return Controls whether the instance is optimized for EBS I/O ( * true) or not (false). */ public Boolean getEbsOptimized() { return this.ebsOptimized; } /** *

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

* * @param ebsOptimized * Controls whether the instance is optimized for EBS I/O ( * true) or not (false). * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withEbsOptimized(Boolean ebsOptimized) { setEbsOptimized(ebsOptimized); return this; } /** *

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

* * @return Controls whether the instance is optimized for EBS I/O ( * true) or not (false). */ public Boolean isEbsOptimized() { return this.ebsOptimized; } /** *

* [EC2-VPC] Indicates whether to assign a public IP address to each * instance. *

* * @param associatePublicIpAddress * [EC2-VPC] Indicates whether to assign a public IP address to each * instance. */ public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) { this.associatePublicIpAddress = associatePublicIpAddress; } /** *

* [EC2-VPC] Indicates whether to assign a public IP address to each * instance. *

* * @return [EC2-VPC] Indicates whether to assign a public IP address to each * instance. */ public Boolean getAssociatePublicIpAddress() { return this.associatePublicIpAddress; } /** *

* [EC2-VPC] Indicates whether to assign a public IP address to each * instance. *

* * @param associatePublicIpAddress * [EC2-VPC] Indicates whether to assign a public IP address to each * instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withAssociatePublicIpAddress( Boolean associatePublicIpAddress) { setAssociatePublicIpAddress(associatePublicIpAddress); return this; } /** *

* [EC2-VPC] Indicates whether to assign a public IP address to each * instance. *

* * @return [EC2-VPC] Indicates whether to assign a public IP address to each * instance. */ public Boolean isAssociatePublicIpAddress() { return this.associatePublicIpAddress; } /** *

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

* * @param placementTenancy * The tenancy of the instance, either default or * dedicated. An instance with dedicated * tenancy runs in an isolated, single-tenant hardware and can only * be launched into a VPC. */ public void setPlacementTenancy(String placementTenancy) { this.placementTenancy = placementTenancy; } /** *

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

* * @return The tenancy of the instance, either default or * dedicated. An instance with dedicated * tenancy runs in an isolated, single-tenant hardware and can only * be launched into a VPC. */ public String getPlacementTenancy() { return this.placementTenancy; } /** *

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

* * @param placementTenancy * The tenancy of the instance, either default or * dedicated. An instance with dedicated * tenancy runs in an isolated, single-tenant hardware and can only * be launched into a VPC. * @return Returns a reference to this object so that method calls can be * chained together. */ public LaunchConfiguration withPlacementTenancy(String placementTenancy) { setPlacementTenancy(placementTenancy); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLaunchConfigurationName() != null) sb.append("LaunchConfigurationName: " + getLaunchConfigurationName() + ","); if (getLaunchConfigurationARN() != null) sb.append("LaunchConfigurationARN: " + getLaunchConfigurationARN() + ","); if (getImageId() != null) sb.append("ImageId: " + getImageId() + ","); if (getKeyName() != null) sb.append("KeyName: " + getKeyName() + ","); if (getSecurityGroups() != null) sb.append("SecurityGroups: " + getSecurityGroups() + ","); if (getClassicLinkVPCId() != null) sb.append("ClassicLinkVPCId: " + getClassicLinkVPCId() + ","); if (getClassicLinkVPCSecurityGroups() != null) sb.append("ClassicLinkVPCSecurityGroups: " + getClassicLinkVPCSecurityGroups() + ","); if (getUserData() != null) sb.append("UserData: " + getUserData() + ","); if (getInstanceType() != null) sb.append("InstanceType: " + getInstanceType() + ","); if (getKernelId() != null) sb.append("KernelId: " + getKernelId() + ","); if (getRamdiskId() != null) sb.append("RamdiskId: " + getRamdiskId() + ","); if (getBlockDeviceMappings() != null) sb.append("BlockDeviceMappings: " + getBlockDeviceMappings() + ","); if (getInstanceMonitoring() != null) sb.append("InstanceMonitoring: " + getInstanceMonitoring() + ","); if (getSpotPrice() != null) sb.append("SpotPrice: " + getSpotPrice() + ","); if (getIamInstanceProfile() != null) sb.append("IamInstanceProfile: " + getIamInstanceProfile() + ","); if (getCreatedTime() != null) sb.append("CreatedTime: " + getCreatedTime() + ","); if (getEbsOptimized() != null) sb.append("EbsOptimized: " + getEbsOptimized() + ","); if (getAssociatePublicIpAddress() != null) sb.append("AssociatePublicIpAddress: " + getAssociatePublicIpAddress() + ","); if (getPlacementTenancy() != null) sb.append("PlacementTenancy: " + getPlacementTenancy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LaunchConfiguration == false) return false; LaunchConfiguration other = (LaunchConfiguration) obj; if (other.getLaunchConfigurationName() == null ^ this.getLaunchConfigurationName() == null) return false; if (other.getLaunchConfigurationName() != null && other.getLaunchConfigurationName().equals( this.getLaunchConfigurationName()) == false) return false; if (other.getLaunchConfigurationARN() == null ^ this.getLaunchConfigurationARN() == null) return false; if (other.getLaunchConfigurationARN() != null && other.getLaunchConfigurationARN().equals( this.getLaunchConfigurationARN()) == 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.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.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getEbsOptimized() == null ^ this.getEbsOptimized() == null) return false; if (other.getEbsOptimized() != null && other.getEbsOptimized().equals(this.getEbsOptimized()) == false) return false; if (other.getAssociatePublicIpAddress() == null ^ this.getAssociatePublicIpAddress() == null) return false; if (other.getAssociatePublicIpAddress() != null && other.getAssociatePublicIpAddress().equals( this.getAssociatePublicIpAddress()) == false) return false; if (other.getPlacementTenancy() == null ^ this.getPlacementTenancy() == null) return false; if (other.getPlacementTenancy() != null && other.getPlacementTenancy().equals( this.getPlacementTenancy()) == false) return false; return true; } @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 + ((getClassicLinkVPCId() == null) ? 0 : getClassicLinkVPCId() .hashCode()); hashCode = prime * hashCode + ((getClassicLinkVPCSecurityGroups() == null) ? 0 : getClassicLinkVPCSecurityGroups().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 + ((getEbsOptimized() == null) ? 0 : getEbsOptimized() .hashCode()); hashCode = prime * hashCode + ((getAssociatePublicIpAddress() == null) ? 0 : getAssociatePublicIpAddress().hashCode()); hashCode = prime * hashCode + ((getPlacementTenancy() == null) ? 0 : getPlacementTenancy() .hashCode()); return hashCode; } @Override public LaunchConfiguration clone() { try { return (LaunchConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy