7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/imagebuilder/ImagebuilderRequest.h>
12#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
13#include <aws/imagebuilder/model/InstanceMetadataOptions.h>
14#include <aws/imagebuilder/model/Logging.h>
15#include <aws/imagebuilder/model/Placement.h>
20namespace imagebuilder {
33 inline virtual const char*
GetServiceRequestName()
const override {
return "CreateInfrastructureConfiguration"; }
43 template <
typename NameT = Aws::String>
45 m_nameHasBeenSet =
true;
46 m_name = std::forward<NameT>(value);
48 template <
typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
61 template <
typename DescriptionT = Aws::String>
63 m_descriptionHasBeenSet =
true;
64 m_description = std::forward<DescriptionT>(value);
66 template <
typename DescriptionT = Aws::String>
81 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
83 m_instanceTypesHasBeenSet =
true;
84 m_instanceTypes = std::forward<InstanceTypesT>(value);
86 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
91 template <
typename InstanceTypesT = Aws::String>
93 m_instanceTypesHasBeenSet =
true;
94 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
106 template <
typename InstanceProfileNameT = Aws::String>
108 m_instanceProfileNameHasBeenSet =
true;
109 m_instanceProfileName = std::forward<InstanceProfileNameT>(value);
111 template <
typename InstanceProfileNameT = Aws::String>
125 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
127 m_securityGroupIdsHasBeenSet =
true;
128 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
130 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
135 template <
typename SecurityGroupIdsT = Aws::String>
137 m_securityGroupIdsHasBeenSet =
true;
138 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
150 template <
typename SubnetIdT = Aws::String>
152 m_subnetIdHasBeenSet =
true;
153 m_subnetId = std::forward<SubnetIdT>(value);
155 template <
typename SubnetIdT = Aws::String>
168 template <
typename LoggingT = Logging>
170 m_loggingHasBeenSet =
true;
171 m_logging = std::forward<LoggingT>(value);
173 template <
typename LoggingT = Logging>
187 template <
typename KeyPairT = Aws::String>
189 m_keyPairHasBeenSet =
true;
190 m_keyPair = std::forward<KeyPairT>(value);
192 template <
typename KeyPairT = Aws::String>
209 m_terminateInstanceOnFailureHasBeenSet =
true;
210 m_terminateInstanceOnFailure = value;
228 template <
typename SnsTopicArnT = Aws::String>
230 m_snsTopicArnHasBeenSet =
true;
231 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
233 template <
typename SnsTopicArnT = Aws::String>
247 template <
typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
249 m_resourceTagsHasBeenSet =
true;
250 m_resourceTags = std::forward<ResourceTagsT>(value);
252 template <
typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
257 template <
typename ResourceTagsKeyT = Aws::String,
typename ResourceTagsValueT = Aws::String>
259 m_resourceTagsHasBeenSet =
true;
260 m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value));
272 template <
typename InstanceMetadataOptionsT = InstanceMetadataOptions>
274 m_instanceMetadataOptionsHasBeenSet =
true;
275 m_instanceMetadataOptions = std::forward<InstanceMetadataOptionsT>(value);
277 template <
typename InstanceMetadataOptionsT = InstanceMetadataOptions>
291 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
293 m_tagsHasBeenSet =
true;
294 m_tags = std::forward<TagsT>(value);
296 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
298 SetTags(std::forward<TagsT>(value));
301 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
303 m_tagsHasBeenSet =
true;
304 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
316 template <
typename PlacementT = Placement>
318 m_placementHasBeenSet =
true;
319 m_placement = std::forward<PlacementT>(value);
321 template <
typename PlacementT = Placement>
337 template <
typename ClientTokenT = Aws::String>
339 m_clientTokenHasBeenSet =
true;
340 m_clientToken = std::forward<ClientTokenT>(value);
342 template <
typename ClientTokenT = Aws::String>
365 bool m_terminateInstanceOnFailure{
false};
371 InstanceMetadataOptions m_instanceMetadataOptions;
375 Placement m_placement;
378 bool m_nameHasBeenSet =
false;
379 bool m_descriptionHasBeenSet =
false;
380 bool m_instanceTypesHasBeenSet =
false;
381 bool m_instanceProfileNameHasBeenSet =
false;
382 bool m_securityGroupIdsHasBeenSet =
false;
383 bool m_subnetIdHasBeenSet =
false;
384 bool m_loggingHasBeenSet =
false;
385 bool m_keyPairHasBeenSet =
false;
386 bool m_terminateInstanceOnFailureHasBeenSet =
false;
387 bool m_snsTopicArnHasBeenSet =
false;
388 bool m_resourceTagsHasBeenSet =
false;
389 bool m_instanceMetadataOptionsHasBeenSet =
false;
390 bool m_tagsHasBeenSet =
false;
391 bool m_placementHasBeenSet =
false;
392 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