/* * 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* 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* 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. *
** 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* 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. *
** 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* 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* 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* 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* 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* 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* 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* 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* 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. *
** 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. *
** 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. *
** 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* 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* 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* 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. *
** * 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. *
** 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. *
** * 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. *
** 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. *
** * 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. *
*