7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/imagebuilder/model/Logging.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/imagebuilder/model/InstanceMetadataOptions.h>
14#include <aws/imagebuilder/model/Placement.h>
16#include <aws/core/utils/UUID.h>
36 inline virtual const char*
GetServiceRequestName()
const override {
return "CreateInfrastructureConfiguration"; }
47 template<
typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
49 template<
typename NameT = Aws::String>
59 template<
typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
61 template<
typename DescriptionT = Aws::String>
73 template<
typename InstanceTypesT = Aws::Vector<Aws::String>>
74 void SetInstanceTypes(InstanceTypesT&& value) { m_instanceTypesHasBeenSet =
true; m_instanceTypes = std::forward<InstanceTypesT>(value); }
75 template<
typename InstanceTypesT = Aws::Vector<Aws::String>>
77 template<
typename InstanceTypesT = Aws::String>
88 template<
typename InstanceProfileNameT = Aws::String>
89 void SetInstanceProfileName(InstanceProfileNameT&& value) { m_instanceProfileNameHasBeenSet =
true; m_instanceProfileName = std::forward<InstanceProfileNameT>(value); }
90 template<
typename InstanceProfileNameT = Aws::String>
101 template<
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
102 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet =
true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
103 template<
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
105 template<
typename SecurityGroupIdsT = Aws::String>
116 template<
typename SubnetIdT = Aws::String>
117 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet =
true; m_subnetId = std::forward<SubnetIdT>(value); }
118 template<
typename SubnetIdT = Aws::String>
128 template<
typename LoggingT = Logging>
129 void SetLogging(LoggingT&& value) { m_loggingHasBeenSet =
true; m_logging = std::forward<LoggingT>(value); }
130 template<
typename LoggingT = Logging>
141 template<
typename KeyPairT = Aws::String>
142 void SetKeyPair(KeyPairT&& value) { m_keyPairHasBeenSet =
true; m_keyPair = std::forward<KeyPairT>(value); }
143 template<
typename KeyPairT = Aws::String>
170 template<
typename SnsTopicArnT = Aws::String>
171 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet =
true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
172 template<
typename SnsTopicArnT = Aws::String>
183 template<
typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
184 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet =
true; m_resourceTags = std::forward<ResourceTagsT>(value); }
185 template<
typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
187 template<
typename ResourceTagsKeyT = Aws::String,
typename ResourceTagsValueT = Aws::String>
189 m_resourceTagsHasBeenSet =
true; m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value));
return *
this;
200 template<
typename InstanceMetadataOptionsT = InstanceMetadataOptions>
201 void SetInstanceMetadataOptions(InstanceMetadataOptionsT&& value) { m_instanceMetadataOptionsHasBeenSet =
true; m_instanceMetadataOptions = std::forward<InstanceMetadataOptionsT>(value); }
202 template<
typename InstanceMetadataOptionsT = InstanceMetadataOptions>
213 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
214 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
215 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
217 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
219 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
230 template<
typename PlacementT = Placement>
231 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet =
true; m_placement = std::forward<PlacementT>(value); }
232 template<
typename PlacementT = Placement>
245 template<
typename ClientTokenT = Aws::String>
246 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
247 template<
typename ClientTokenT = Aws::String>
253 bool m_nameHasBeenSet =
false;
256 bool m_descriptionHasBeenSet =
false;
259 bool m_instanceTypesHasBeenSet =
false;
262 bool m_instanceProfileNameHasBeenSet =
false;
265 bool m_securityGroupIdsHasBeenSet =
false;
268 bool m_subnetIdHasBeenSet =
false;
271 bool m_loggingHasBeenSet =
false;
274 bool m_keyPairHasBeenSet =
false;
276 bool m_terminateInstanceOnFailure{
false};
277 bool m_terminateInstanceOnFailureHasBeenSet =
false;
280 bool m_snsTopicArnHasBeenSet =
false;
283 bool m_resourceTagsHasBeenSet =
false;
285 InstanceMetadataOptions m_instanceMetadataOptions;
286 bool m_instanceMetadataOptionsHasBeenSet =
false;
289 bool m_tagsHasBeenSet =
false;
291 Placement m_placement;
292 bool m_placementHasBeenSet =
false;
295 bool m_clientTokenHasBeenSet =
true;
static Aws::Utils::UUID PseudoRandomUUID()
CreateInfrastructureConfigurationRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
void SetName(NameT &&value)
void SetInstanceTypes(InstanceTypesT &&value)
void SetTags(TagsT &&value)
bool InstanceMetadataOptionsHasBeenSet() const
bool GetTerminateInstanceOnFailure() const
CreateInfrastructureConfigurationRequest & WithTerminateInstanceOnFailure(bool value)
CreateInfrastructureConfigurationRequest & WithKeyPair(KeyPairT &&value)
bool SecurityGroupIdsHasBeenSet() const
CreateInfrastructureConfigurationRequest & AddInstanceTypes(InstanceTypesT &&value)
bool DescriptionHasBeenSet() const
bool SubnetIdHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithSubnetId(SubnetIdT &&value)
bool InstanceProfileNameHasBeenSet() const
bool ResourceTagsHasBeenSet() const
bool KeyPairHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateInfrastructureConfigurationRequest & AddResourceTags(ResourceTagsKeyT &&key, ResourceTagsValueT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateInfrastructureConfigurationRequest & WithDescription(DescriptionT &&value)
bool TagsHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithPlacement(PlacementT &&value)
const Aws::Vector< Aws::String > & GetInstanceTypes() const
void SetKeyPair(KeyPairT &&value)
void SetClientToken(ClientTokenT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
CreateInfrastructureConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool NameHasBeenSet() const
void SetPlacement(PlacementT &&value)
CreateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(InstanceMetadataOptionsT &&value)
bool LoggingHasBeenSet() const
void SetTerminateInstanceOnFailure(bool value)
bool TerminateInstanceOnFailureHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithResourceTags(ResourceTagsT &&value)
const Logging & GetLogging() const
const Aws::String & GetDescription() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
bool ClientTokenHasBeenSet() const
const Aws::String & GetSubnetId() const
virtual const char * GetServiceRequestName() const override
bool InstanceTypesHasBeenSet() const
bool PlacementHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetResourceTags() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateInfrastructureConfigurationRequest & WithLogging(LoggingT &&value)
void SetInstanceProfileName(InstanceProfileNameT &&value)
const Aws::String & GetInstanceProfileName() const
CreateInfrastructureConfigurationRequest & WithInstanceTypes(InstanceTypesT &&value)
CreateInfrastructureConfigurationRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetInstanceMetadataOptions(InstanceMetadataOptionsT &&value)
const Aws::String & GetKeyPair() const
const Placement & GetPlacement() const
AWS_IMAGEBUILDER_API CreateInfrastructureConfigurationRequest()=default
const Aws::String & GetSnsTopicArn() const
const InstanceMetadataOptions & GetInstanceMetadataOptions() const
void SetResourceTags(ResourceTagsT &&value)
CreateInfrastructureConfigurationRequest & WithName(NameT &&value)
void SetLogging(LoggingT &&value)
void SetDescription(DescriptionT &&value)
void SetSubnetId(SubnetIdT &&value)
CreateInfrastructureConfigurationRequest & WithSnsTopicArn(SnsTopicArnT &&value)
CreateInfrastructureConfigurationRequest & WithTags(TagsT &&value)
bool SnsTopicArnHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithInstanceProfileName(InstanceProfileNameT &&value)
CreateInfrastructureConfigurationRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetName() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector