
com.amazonaws.services.imagebuilder.model.CreateInfrastructureConfigurationRequest Maven / Gradle / Ivy
/*
* 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.imagebuilder.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 CreateInfrastructureConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the infrastructure configuration.
*
*/
private String name;
/**
*
* The description of the infrastructure configuration.
*
*/
private String description;
/**
*
* The instance types of the infrastructure configuration. You can specify one or more instance types to use for
* this build. The service will pick one of these instance types based on availability.
*
*/
private java.util.List instanceTypes;
/**
*
* The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
*
*/
private String instanceProfileName;
/**
*
* The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
*
*/
private java.util.List securityGroupIds;
/**
*
* The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
*
*/
private String subnetId;
/**
*
* The logging configuration of the infrastructure configuration.
*
*/
private Logging logging;
/**
*
* The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to
* create your image.
*
*/
private String keyPair;
/**
*
* The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image
* Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
*
*/
private Boolean terminateInstanceOnFailure;
/**
*
* The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
*
*
*
* EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other
* accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service
* runs under.
*
*
*/
private String snsTopicArn;
/**
*
* The tags attached to the resource created by Image Builder.
*
*/
private java.util.Map resourceTags;
/**
*
* The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build
* and test instances.
*
*/
private InstanceMetadataOptions instanceMetadataOptions;
/**
*
* The tags of the infrastructure configuration.
*
*/
private java.util.Map tags;
/**
*
* Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring
* idempotency in the Amazon EC2 API Reference.
*
*/
private String clientToken;
/**
*
* The name of the infrastructure configuration.
*
*
* @param name
* The name of the infrastructure configuration.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the infrastructure configuration.
*
*
* @return The name of the infrastructure configuration.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the infrastructure configuration.
*
*
* @param name
* The name of the infrastructure configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The description of the infrastructure configuration.
*
*
* @param description
* The description of the infrastructure configuration.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the infrastructure configuration.
*
*
* @return The description of the infrastructure configuration.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the infrastructure configuration.
*
*
* @param description
* The description of the infrastructure configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The instance types of the infrastructure configuration. You can specify one or more instance types to use for
* this build. The service will pick one of these instance types based on availability.
*
*
* @return The instance types of the infrastructure configuration. You can specify one or more instance types to use
* for this build. The service will pick one of these instance types based on availability.
*/
public java.util.List getInstanceTypes() {
return instanceTypes;
}
/**
*
* The instance types of the infrastructure configuration. You can specify one or more instance types to use for
* this build. The service will pick one of these instance types based on availability.
*
*
* @param instanceTypes
* The instance types of the infrastructure configuration. You can specify one or more instance types to use
* for this build. The service will pick one of these instance types based on availability.
*/
public void setInstanceTypes(java.util.Collection instanceTypes) {
if (instanceTypes == null) {
this.instanceTypes = null;
return;
}
this.instanceTypes = new java.util.ArrayList(instanceTypes);
}
/**
*
* The instance types of the infrastructure configuration. You can specify one or more instance types to use for
* this build. The service will pick one of these instance types based on availability.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInstanceTypes(java.util.Collection)} or {@link #withInstanceTypes(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param instanceTypes
* The instance types of the infrastructure configuration. You can specify one or more instance types to use
* for this build. The service will pick one of these instance types based on availability.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withInstanceTypes(String... instanceTypes) {
if (this.instanceTypes == null) {
setInstanceTypes(new java.util.ArrayList(instanceTypes.length));
}
for (String ele : instanceTypes) {
this.instanceTypes.add(ele);
}
return this;
}
/**
*
* The instance types of the infrastructure configuration. You can specify one or more instance types to use for
* this build. The service will pick one of these instance types based on availability.
*
*
* @param instanceTypes
* The instance types of the infrastructure configuration. You can specify one or more instance types to use
* for this build. The service will pick one of these instance types based on availability.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withInstanceTypes(java.util.Collection instanceTypes) {
setInstanceTypes(instanceTypes);
return this;
}
/**
*
* The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
*
*
* @param instanceProfileName
* The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
*/
public void setInstanceProfileName(String instanceProfileName) {
this.instanceProfileName = instanceProfileName;
}
/**
*
* The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
*
*
* @return The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
*/
public String getInstanceProfileName() {
return this.instanceProfileName;
}
/**
*
* The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
*
*
* @param instanceProfileName
* The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withInstanceProfileName(String instanceProfileName) {
setInstanceProfileName(instanceProfileName);
return this;
}
/**
*
* The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
*
*
* @return The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
*/
public java.util.List getSecurityGroupIds() {
return securityGroupIds;
}
/**
*
* The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
*
*
* @param securityGroupIds
* The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
*/
public void setSecurityGroupIds(java.util.Collection securityGroupIds) {
if (securityGroupIds == null) {
this.securityGroupIds = null;
return;
}
this.securityGroupIds = new java.util.ArrayList(securityGroupIds);
}
/**
*
* The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param securityGroupIds
* The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withSecurityGroupIds(String... securityGroupIds) {
if (this.securityGroupIds == null) {
setSecurityGroupIds(new java.util.ArrayList(securityGroupIds.length));
}
for (String ele : securityGroupIds) {
this.securityGroupIds.add(ele);
}
return this;
}
/**
*
* The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
*
*
* @param securityGroupIds
* The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withSecurityGroupIds(java.util.Collection securityGroupIds) {
setSecurityGroupIds(securityGroupIds);
return this;
}
/**
*
* The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
*
*
* @param subnetId
* The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
*/
public void setSubnetId(String subnetId) {
this.subnetId = subnetId;
}
/**
*
* The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
*
*
* @return The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
*/
public String getSubnetId() {
return this.subnetId;
}
/**
*
* The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
*
*
* @param subnetId
* The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withSubnetId(String subnetId) {
setSubnetId(subnetId);
return this;
}
/**
*
* The logging configuration of the infrastructure configuration.
*
*
* @param logging
* The logging configuration of the infrastructure configuration.
*/
public void setLogging(Logging logging) {
this.logging = logging;
}
/**
*
* The logging configuration of the infrastructure configuration.
*
*
* @return The logging configuration of the infrastructure configuration.
*/
public Logging getLogging() {
return this.logging;
}
/**
*
* The logging configuration of the infrastructure configuration.
*
*
* @param logging
* The logging configuration of the infrastructure configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withLogging(Logging logging) {
setLogging(logging);
return this;
}
/**
*
* The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to
* create your image.
*
*
* @param keyPair
* The key pair of the infrastructure configuration. You can use this to log on to and debug the instance
* used to create your image.
*/
public void setKeyPair(String keyPair) {
this.keyPair = keyPair;
}
/**
*
* The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to
* create your image.
*
*
* @return The key pair of the infrastructure configuration. You can use this to log on to and debug the instance
* used to create your image.
*/
public String getKeyPair() {
return this.keyPair;
}
/**
*
* The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to
* create your image.
*
*
* @param keyPair
* The key pair of the infrastructure configuration. You can use this to log on to and debug the instance
* used to create your image.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withKeyPair(String keyPair) {
setKeyPair(keyPair);
return this;
}
/**
*
* The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image
* Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
*
*
* @param terminateInstanceOnFailure
* The terminate instance on failure setting of the infrastructure configuration. Set to false if you want
* Image Builder to retain the instance used to configure your AMI if the build or test phase of your
* workflow fails.
*/
public void setTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure) {
this.terminateInstanceOnFailure = terminateInstanceOnFailure;
}
/**
*
* The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image
* Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
*
*
* @return The terminate instance on failure setting of the infrastructure configuration. Set to false if you want
* Image Builder to retain the instance used to configure your AMI if the build or test phase of your
* workflow fails.
*/
public Boolean getTerminateInstanceOnFailure() {
return this.terminateInstanceOnFailure;
}
/**
*
* The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image
* Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
*
*
* @param terminateInstanceOnFailure
* The terminate instance on failure setting of the infrastructure configuration. Set to false if you want
* Image Builder to retain the instance used to configure your AMI if the build or test phase of your
* workflow fails.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure) {
setTerminateInstanceOnFailure(terminateInstanceOnFailure);
return this;
}
/**
*
* The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image
* Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
*
*
* @return The terminate instance on failure setting of the infrastructure configuration. Set to false if you want
* Image Builder to retain the instance used to configure your AMI if the build or test phase of your
* workflow fails.
*/
public Boolean isTerminateInstanceOnFailure() {
return this.terminateInstanceOnFailure;
}
/**
*
* The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
*
*
*
* EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other
* accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service
* runs under.
*
*
*
* @param snsTopicArn
* The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
*
*
* EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other
* accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder
* service runs under.
*
*/
public void setSnsTopicArn(String snsTopicArn) {
this.snsTopicArn = snsTopicArn;
}
/**
*
* The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
*
*
*
* EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other
* accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service
* runs under.
*
*
*
* @return The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
*
*
* EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other
* accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder
* service runs under.
*
*/
public String getSnsTopicArn() {
return this.snsTopicArn;
}
/**
*
* The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
*
*
*
* EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other
* accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service
* runs under.
*
*
*
* @param snsTopicArn
* The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
*
*
* EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other
* accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder
* service runs under.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withSnsTopicArn(String snsTopicArn) {
setSnsTopicArn(snsTopicArn);
return this;
}
/**
*
* The tags attached to the resource created by Image Builder.
*
*
* @return The tags attached to the resource created by Image Builder.
*/
public java.util.Map getResourceTags() {
return resourceTags;
}
/**
*
* The tags attached to the resource created by Image Builder.
*
*
* @param resourceTags
* The tags attached to the resource created by Image Builder.
*/
public void setResourceTags(java.util.Map resourceTags) {
this.resourceTags = resourceTags;
}
/**
*
* The tags attached to the resource created by Image Builder.
*
*
* @param resourceTags
* The tags attached to the resource created by Image Builder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withResourceTags(java.util.Map resourceTags) {
setResourceTags(resourceTags);
return this;
}
/**
* Add a single ResourceTags entry
*
* @see CreateInfrastructureConfigurationRequest#withResourceTags
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest addResourceTagsEntry(String key, String value) {
if (null == this.resourceTags) {
this.resourceTags = new java.util.HashMap();
}
if (this.resourceTags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.resourceTags.put(key, value);
return this;
}
/**
* Removes all the entries added into ResourceTags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest clearResourceTagsEntries() {
this.resourceTags = null;
return this;
}
/**
*
* The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build
* and test instances.
*
*
* @param instanceMetadataOptions
* The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch
* EC2 build and test instances.
*/
public void setInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions) {
this.instanceMetadataOptions = instanceMetadataOptions;
}
/**
*
* The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build
* and test instances.
*
*
* @return The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch
* EC2 build and test instances.
*/
public InstanceMetadataOptions getInstanceMetadataOptions() {
return this.instanceMetadataOptions;
}
/**
*
* The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build
* and test instances.
*
*
* @param instanceMetadataOptions
* The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch
* EC2 build and test instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions) {
setInstanceMetadataOptions(instanceMetadataOptions);
return this;
}
/**
*
* The tags of the infrastructure configuration.
*
*
* @return The tags of the infrastructure configuration.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* The tags of the infrastructure configuration.
*
*
* @param tags
* The tags of the infrastructure configuration.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* The tags of the infrastructure configuration.
*
*
* @param tags
* The tags of the infrastructure configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see CreateInfrastructureConfigurationRequest#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring
* idempotency in the Amazon EC2 API Reference.
*
*
* @param clientToken
* Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
* see Ensuring
* idempotency in the Amazon EC2 API Reference.
*/
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
/**
*
* Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring
* idempotency in the Amazon EC2 API Reference.
*
*
* @return Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
* see Ensuring
* idempotency in the Amazon EC2 API Reference.
*/
public String getClientToken() {
return this.clientToken;
}
/**
*
* Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring
* idempotency in the Amazon EC2 API Reference.
*
*
* @param clientToken
* Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
* see Ensuring
* idempotency in the Amazon EC2 API Reference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInfrastructureConfigurationRequest withClientToken(String clientToken) {
setClientToken(clientToken);
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 (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getInstanceTypes() != null)
sb.append("InstanceTypes: ").append(getInstanceTypes()).append(",");
if (getInstanceProfileName() != null)
sb.append("InstanceProfileName: ").append(getInstanceProfileName()).append(",");
if (getSecurityGroupIds() != null)
sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(",");
if (getSubnetId() != null)
sb.append("SubnetId: ").append(getSubnetId()).append(",");
if (getLogging() != null)
sb.append("Logging: ").append(getLogging()).append(",");
if (getKeyPair() != null)
sb.append("KeyPair: ").append(getKeyPair()).append(",");
if (getTerminateInstanceOnFailure() != null)
sb.append("TerminateInstanceOnFailure: ").append(getTerminateInstanceOnFailure()).append(",");
if (getSnsTopicArn() != null)
sb.append("SnsTopicArn: ").append(getSnsTopicArn()).append(",");
if (getResourceTags() != null)
sb.append("ResourceTags: ").append(getResourceTags()).append(",");
if (getInstanceMetadataOptions() != null)
sb.append("InstanceMetadataOptions: ").append(getInstanceMetadataOptions()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getClientToken() != null)
sb.append("ClientToken: ").append(getClientToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateInfrastructureConfigurationRequest == false)
return false;
CreateInfrastructureConfigurationRequest other = (CreateInfrastructureConfigurationRequest) obj;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getInstanceTypes() == null ^ this.getInstanceTypes() == null)
return false;
if (other.getInstanceTypes() != null && other.getInstanceTypes().equals(this.getInstanceTypes()) == false)
return false;
if (other.getInstanceProfileName() == null ^ this.getInstanceProfileName() == null)
return false;
if (other.getInstanceProfileName() != null && other.getInstanceProfileName().equals(this.getInstanceProfileName()) == false)
return false;
if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == null)
return false;
if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == false)
return false;
if (other.getSubnetId() == null ^ this.getSubnetId() == null)
return false;
if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == false)
return false;
if (other.getLogging() == null ^ this.getLogging() == null)
return false;
if (other.getLogging() != null && other.getLogging().equals(this.getLogging()) == false)
return false;
if (other.getKeyPair() == null ^ this.getKeyPair() == null)
return false;
if (other.getKeyPair() != null && other.getKeyPair().equals(this.getKeyPair()) == false)
return false;
if (other.getTerminateInstanceOnFailure() == null ^ this.getTerminateInstanceOnFailure() == null)
return false;
if (other.getTerminateInstanceOnFailure() != null && other.getTerminateInstanceOnFailure().equals(this.getTerminateInstanceOnFailure()) == false)
return false;
if (other.getSnsTopicArn() == null ^ this.getSnsTopicArn() == null)
return false;
if (other.getSnsTopicArn() != null && other.getSnsTopicArn().equals(this.getSnsTopicArn()) == false)
return false;
if (other.getResourceTags() == null ^ this.getResourceTags() == null)
return false;
if (other.getResourceTags() != null && other.getResourceTags().equals(this.getResourceTags()) == false)
return false;
if (other.getInstanceMetadataOptions() == null ^ this.getInstanceMetadataOptions() == null)
return false;
if (other.getInstanceMetadataOptions() != null && other.getInstanceMetadataOptions().equals(this.getInstanceMetadataOptions()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getClientToken() == null ^ this.getClientToken() == null)
return false;
if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getInstanceTypes() == null) ? 0 : getInstanceTypes().hashCode());
hashCode = prime * hashCode + ((getInstanceProfileName() == null) ? 0 : getInstanceProfileName().hashCode());
hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode());
hashCode = prime * hashCode + ((getLogging() == null) ? 0 : getLogging().hashCode());
hashCode = prime * hashCode + ((getKeyPair() == null) ? 0 : getKeyPair().hashCode());
hashCode = prime * hashCode + ((getTerminateInstanceOnFailure() == null) ? 0 : getTerminateInstanceOnFailure().hashCode());
hashCode = prime * hashCode + ((getSnsTopicArn() == null) ? 0 : getSnsTopicArn().hashCode());
hashCode = prime * hashCode + ((getResourceTags() == null) ? 0 : getResourceTags().hashCode());
hashCode = prime * hashCode + ((getInstanceMetadataOptions() == null) ? 0 : getInstanceMetadataOptions().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode());
return hashCode;
}
@Override
public CreateInfrastructureConfigurationRequest clone() {
return (CreateInfrastructureConfigurationRequest) super.clone();
}
}