/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details of the infrastructure configuration.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the infrastructure configuration.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the infrastructure configuration.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the infrastructure configuration.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the infrastructure configuration.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the infrastructure configuration.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the infrastructure configuration.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the infrastructure configuration.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the infrastructure configuration.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the infrastructure configuration.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the infrastructure configuration.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithName(const char* value) { SetName(value); return *this;} /** *The description of the infrastructure configuration.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the infrastructure configuration.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the infrastructure configuration.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the infrastructure configuration.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the infrastructure configuration.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The instance types of the infrastructure configuration.
*/ inline const Aws::VectorThe instance types of the infrastructure configuration.
*/ inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; } /** *The instance types of the infrastructure configuration.
*/ inline void SetInstanceTypes(const Aws::VectorThe instance types of the infrastructure configuration.
*/ inline void SetInstanceTypes(Aws::VectorThe instance types of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithInstanceTypes(const Aws::VectorThe instance types of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithInstanceTypes(Aws::VectorThe instance types of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddInstanceTypes(const Aws::String& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; } /** *The instance types of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddInstanceTypes(Aws::String&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(std::move(value)); return *this; } /** *The instance types of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddInstanceTypes(const char* value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; } /** *The instance profile of the infrastructure configuration.
*/ inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; } /** *The instance profile of the infrastructure configuration.
*/ inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; } /** *The instance profile of the infrastructure configuration.
*/ inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; } /** *The instance profile of the infrastructure configuration.
*/ inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); } /** *The instance profile of the infrastructure configuration.
*/ inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); } /** *The instance profile of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithInstanceProfileName(const Aws::String& value) { SetInstanceProfileName(value); return *this;} /** *The instance profile of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithInstanceProfileName(Aws::String&& value) { SetInstanceProfileName(std::move(value)); return *this;} /** *The instance profile of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithInstanceProfileName(const char* value) { SetInstanceProfileName(value); return *this;} /** *The security group IDs of the infrastructure configuration.
*/ inline const Aws::VectorThe security group IDs of the infrastructure configuration.
*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *The security group IDs of the infrastructure configuration.
*/ inline void SetSecurityGroupIds(const Aws::VectorThe security group IDs of the infrastructure configuration.
*/ inline void SetSecurityGroupIds(Aws::VectorThe security group IDs of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithSecurityGroupIds(const Aws::VectorThe security group IDs of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithSecurityGroupIds(Aws::VectorThe security group IDs of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *The security group IDs of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *The security group IDs of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *The subnet ID of the infrastructure configuration.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The subnet ID of the infrastructure configuration.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The subnet ID of the infrastructure configuration.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The subnet ID of the infrastructure configuration.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The subnet ID of the infrastructure configuration.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The subnet ID of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The subnet ID of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The subnet ID of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The logging configuration of the infrastructure configuration.
*/ inline const Logging& GetLogging() const{ return m_logging; } /** *The logging configuration of the infrastructure configuration.
*/ inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; } /** *The logging configuration of the infrastructure configuration.
*/ inline void SetLogging(const Logging& value) { m_loggingHasBeenSet = true; m_logging = value; } /** *The logging configuration of the infrastructure configuration.
*/ inline void SetLogging(Logging&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); } /** *The logging configuration of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithLogging(const Logging& value) { SetLogging(value); return *this;} /** *The logging configuration of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithLogging(Logging&& value) { SetLogging(std::move(value)); return *this;} /** *The Amazon EC2 key pair of the infrastructure configuration.
*/ inline const Aws::String& GetKeyPair() const{ return m_keyPair; } /** *The Amazon EC2 key pair of the infrastructure configuration.
*/ inline bool KeyPairHasBeenSet() const { return m_keyPairHasBeenSet; } /** *The Amazon EC2 key pair of the infrastructure configuration.
*/ inline void SetKeyPair(const Aws::String& value) { m_keyPairHasBeenSet = true; m_keyPair = value; } /** *The Amazon EC2 key pair of the infrastructure configuration.
*/ inline void SetKeyPair(Aws::String&& value) { m_keyPairHasBeenSet = true; m_keyPair = std::move(value); } /** *The Amazon EC2 key pair of the infrastructure configuration.
*/ inline void SetKeyPair(const char* value) { m_keyPairHasBeenSet = true; m_keyPair.assign(value); } /** *The Amazon EC2 key pair of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithKeyPair(const Aws::String& value) { SetKeyPair(value); return *this;} /** *The Amazon EC2 key pair of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithKeyPair(Aws::String&& value) { SetKeyPair(std::move(value)); return *this;} /** *The Amazon EC2 key pair of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithKeyPair(const char* value) { SetKeyPair(value); return *this;} /** *The terminate instance on failure configuration of the infrastructure * configuration.
*/ inline bool GetTerminateInstanceOnFailure() const{ return m_terminateInstanceOnFailure; } /** *The terminate instance on failure configuration of the infrastructure * configuration.
*/ inline bool TerminateInstanceOnFailureHasBeenSet() const { return m_terminateInstanceOnFailureHasBeenSet; } /** *The terminate instance on failure configuration of the infrastructure * configuration.
*/ inline void SetTerminateInstanceOnFailure(bool value) { m_terminateInstanceOnFailureHasBeenSet = true; m_terminateInstanceOnFailure = value; } /** *The terminate instance on failure configuration of the infrastructure * configuration.
*/ inline InfrastructureConfiguration& WithTerminateInstanceOnFailure(bool value) { SetTerminateInstanceOnFailure(value); return *this;} /** *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.
*/ inline const Aws::String& GetSnsTopicArn() const{ return m_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.
*/ inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; } /** *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.
*/ inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; } /** *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.
*/ inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); } /** *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.
*/ inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); } /** *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.
*/ inline InfrastructureConfiguration& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;} /** *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.
*/ inline InfrastructureConfiguration& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;} /** *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.
*/ inline InfrastructureConfiguration& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;} /** *The date on which the infrastructure configuration was created.
*/ inline const Aws::String& GetDateCreated() const{ return m_dateCreated; } /** *The date on which the infrastructure configuration was created.
*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *The date on which the infrastructure configuration was created.
*/ inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *The date on which the infrastructure configuration was created.
*/ inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *The date on which the infrastructure configuration was created.
*/ inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); } /** *The date on which the infrastructure configuration was created.
*/ inline InfrastructureConfiguration& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;} /** *The date on which the infrastructure configuration was created.
*/ inline InfrastructureConfiguration& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;} /** *The date on which the infrastructure configuration was created.
*/ inline InfrastructureConfiguration& WithDateCreated(const char* value) { SetDateCreated(value); return *this;} /** *The date on which the infrastructure configuration was last updated.
*/ inline const Aws::String& GetDateUpdated() const{ return m_dateUpdated; } /** *The date on which the infrastructure configuration was last updated.
*/ inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; } /** *The date on which the infrastructure configuration was last updated.
*/ inline void SetDateUpdated(const Aws::String& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = value; } /** *The date on which the infrastructure configuration was last updated.
*/ inline void SetDateUpdated(Aws::String&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::move(value); } /** *The date on which the infrastructure configuration was last updated.
*/ inline void SetDateUpdated(const char* value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated.assign(value); } /** *The date on which the infrastructure configuration was last updated.
*/ inline InfrastructureConfiguration& WithDateUpdated(const Aws::String& value) { SetDateUpdated(value); return *this;} /** *The date on which the infrastructure configuration was last updated.
*/ inline InfrastructureConfiguration& WithDateUpdated(Aws::String&& value) { SetDateUpdated(std::move(value)); return *this;} /** *The date on which the infrastructure configuration was last updated.
*/ inline InfrastructureConfiguration& WithDateUpdated(const char* value) { SetDateUpdated(value); return *this;} /** *The tags attached to the resource created by Image Builder.
*/ inline const Aws::MapThe tags attached to the resource created by Image Builder.
*/ inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; } /** *The tags attached to the resource created by Image Builder.
*/ inline void SetResourceTags(const Aws::MapThe tags attached to the resource created by Image Builder.
*/ inline void SetResourceTags(Aws::MapThe tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& WithResourceTags(const Aws::MapThe tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& WithResourceTags(Aws::MapThe tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& AddResourceTags(const Aws::String& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; } /** *The tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& AddResourceTags(Aws::String&& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; } /** *The tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& AddResourceTags(const Aws::String& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; } /** *The tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& AddResourceTags(Aws::String&& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& AddResourceTags(const char* key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; } /** *The tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& AddResourceTags(Aws::String&& key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; } /** *The tags attached to the resource created by Image Builder.
*/ inline InfrastructureConfiguration& AddResourceTags(const char* key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; } /** *The instance metadata option settings for the infrastructure * configuration.
*/ inline const InstanceMetadataOptions& GetInstanceMetadataOptions() const{ return m_instanceMetadataOptions; } /** *The instance metadata option settings for the infrastructure * configuration.
*/ inline bool InstanceMetadataOptionsHasBeenSet() const { return m_instanceMetadataOptionsHasBeenSet; } /** *The instance metadata option settings for the infrastructure * configuration.
*/ inline void SetInstanceMetadataOptions(const InstanceMetadataOptions& value) { m_instanceMetadataOptionsHasBeenSet = true; m_instanceMetadataOptions = value; } /** *The instance metadata option settings for the infrastructure * configuration.
*/ inline void SetInstanceMetadataOptions(InstanceMetadataOptions&& value) { m_instanceMetadataOptionsHasBeenSet = true; m_instanceMetadataOptions = std::move(value); } /** *The instance metadata option settings for the infrastructure * configuration.
*/ inline InfrastructureConfiguration& WithInstanceMetadataOptions(const InstanceMetadataOptions& value) { SetInstanceMetadataOptions(value); return *this;} /** *The instance metadata option settings for the infrastructure * configuration.
*/ inline InfrastructureConfiguration& WithInstanceMetadataOptions(InstanceMetadataOptions&& value) { SetInstanceMetadataOptions(std::move(value)); return *this;} /** *The tags of the infrastructure configuration.
*/ inline const Aws::MapThe tags of the infrastructure configuration.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags of the infrastructure configuration.
*/ inline void SetTags(const Aws::MapThe tags of the infrastructure configuration.
*/ inline void SetTags(Aws::MapThe tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithTags(const Aws::MapThe tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& WithTags(Aws::MapThe tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags of the infrastructure configuration.
*/ inline InfrastructureConfiguration& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector