/* * Copyright 2018-2023 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 UpdateInfrastructureConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update. *

*/ private String infrastructureConfigurationArn; /** *

* 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 to place the instance used to customize your Amazon EC2 AMI in. *

*/ 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 idempotency token used to make this request idempotent. *

*/ private String clientToken; /** *

* 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. For more information about instance metadata options, see one of the following links: *

* */ private InstanceMetadataOptions instanceMetadataOptions; /** *

* The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update. *

* * @param infrastructureConfigurationArn * The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update. */ public void setInfrastructureConfigurationArn(String infrastructureConfigurationArn) { this.infrastructureConfigurationArn = infrastructureConfigurationArn; } /** *

* The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update. *

* * @return The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update. */ public String getInfrastructureConfigurationArn() { return this.infrastructureConfigurationArn; } /** *

* The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update. *

* * @param infrastructureConfigurationArn * The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInfrastructureConfigurationRequest withInfrastructureConfigurationArn(String infrastructureConfigurationArn) { setInfrastructureConfigurationArn(infrastructureConfigurationArn); 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 UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest withSecurityGroupIds(java.util.Collection securityGroupIds) { setSecurityGroupIds(securityGroupIds); return this; } /** *

* The subnet ID to place the instance used to customize your Amazon EC2 AMI in. *

* * @param subnetId * The subnet ID to place the instance used to customize your Amazon EC2 AMI in. */ public void setSubnetId(String subnetId) { this.subnetId = subnetId; } /** *

* The subnet ID to place the instance used to customize your Amazon EC2 AMI in. *

* * @return The subnet ID to place the instance used to customize your Amazon EC2 AMI in. */ public String getSubnetId() { return this.subnetId; } /** *

* The subnet ID to place the instance used to customize your Amazon EC2 AMI in. *

* * @param subnetId * The subnet ID to place the instance used to customize your Amazon EC2 AMI in. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest withSnsTopicArn(String snsTopicArn) { setSnsTopicArn(snsTopicArn); return this; } /** *

* The idempotency token used to make this request idempotent. *

* * @param clientToken * The idempotency token used to make this request idempotent. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* The idempotency token used to make this request idempotent. *

* * @return The idempotency token used to make this request idempotent. */ public String getClientToken() { return this.clientToken; } /** *

* The idempotency token used to make this request idempotent. *

* * @param clientToken * The idempotency token used to make this request idempotent. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInfrastructureConfigurationRequest withClientToken(String clientToken) { setClientToken(clientToken); 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 UpdateInfrastructureConfigurationRequest withResourceTags(java.util.Map resourceTags) { setResourceTags(resourceTags); return this; } /** * Add a single ResourceTags entry * * @see UpdateInfrastructureConfigurationRequest#withResourceTags * @returns a reference to this object so that method calls can be chained together. */ public UpdateInfrastructureConfigurationRequest 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 UpdateInfrastructureConfigurationRequest 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. For more information about instance metadata options, see one of the following links: *

* * * @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. For more information about instance metadata options, see one of the * following links:

*
    *
  • *

    * * Configure the instance metadata options in the Amazon EC2 User Guide for Linux * instances. *

    *
  • *
  • *

    * Configure the instance metadata options in the Amazon EC2 Windows Guide for Windows * 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. For more information about instance metadata options, see one of the following links: *

    * * * @return The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch * EC2 build and test instances. For more information about instance metadata options, see one of the * following links:

    *
      *
    • *

      * * Configure the instance metadata options in the Amazon EC2 User Guide for Linux * instances. *

      *
    • *
    • *

      * Configure the instance metadata options in the Amazon EC2 Windows Guide for Windows * 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. For more information about instance metadata options, see one of the following links: *

      * * * @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. For more information about instance metadata options, see one of the * following links:

      *
        *
      • *

        * * Configure the instance metadata options in the Amazon EC2 User Guide for Linux * instances. *

        *
      • *
      • *

        * Configure the instance metadata options in the Amazon EC2 Windows Guide for Windows * instances. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInfrastructureConfigurationRequest withInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions) { setInstanceMetadataOptions(instanceMetadataOptions); 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 (getInfrastructureConfigurationArn() != null) sb.append("InfrastructureConfigurationArn: ").append(getInfrastructureConfigurationArn()).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 (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getResourceTags() != null) sb.append("ResourceTags: ").append(getResourceTags()).append(","); if (getInstanceMetadataOptions() != null) sb.append("InstanceMetadataOptions: ").append(getInstanceMetadataOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateInfrastructureConfigurationRequest == false) return false; UpdateInfrastructureConfigurationRequest other = (UpdateInfrastructureConfigurationRequest) obj; if (other.getInfrastructureConfigurationArn() == null ^ this.getInfrastructureConfigurationArn() == null) return false; if (other.getInfrastructureConfigurationArn() != null && other.getInfrastructureConfigurationArn().equals(this.getInfrastructureConfigurationArn()) == 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.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInfrastructureConfigurationArn() == null) ? 0 : getInfrastructureConfigurationArn().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 + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getResourceTags() == null) ? 0 : getResourceTags().hashCode()); hashCode = prime * hashCode + ((getInstanceMetadataOptions() == null) ? 0 : getInstanceMetadataOptions().hashCode()); return hashCode; } @Override public UpdateInfrastructureConfigurationRequest clone() { return (UpdateInfrastructureConfigurationRequest) super.clone(); } }