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 "UpdateInfrastructureConfiguration"; }
44 template <
typename InfrastructureConfigurationArnT = Aws::String>
46 m_infrastructureConfigurationArnHasBeenSet =
true;
47 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
49 template <
typename InfrastructureConfigurationArnT = Aws::String>
62 template <
typename DescriptionT = Aws::String>
64 m_descriptionHasBeenSet =
true;
65 m_description = std::forward<DescriptionT>(value);
67 template <
typename DescriptionT = Aws::String>
85 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
87 m_instanceTypesHasBeenSet =
true;
88 m_instanceTypes = std::forward<InstanceTypesT>(value);
90 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
95 template <
typename InstanceTypesT = Aws::String>
97 m_instanceTypesHasBeenSet =
true;
98 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
110 template <
typename InstanceProfileNameT = Aws::String>
112 m_instanceProfileNameHasBeenSet =
true;
113 m_instanceProfileName = std::forward<InstanceProfileNameT>(value);
115 template <
typename InstanceProfileNameT = Aws::String>
129 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
131 m_securityGroupIdsHasBeenSet =
true;
132 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
134 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
139 template <
typename SecurityGroupIdsT = Aws::String>
141 m_securityGroupIdsHasBeenSet =
true;
142 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
156 template <
typename SubnetIdT = Aws::String>
158 m_subnetIdHasBeenSet =
true;
159 m_subnetId = std::forward<SubnetIdT>(value);
161 template <
typename SubnetIdT = Aws::String>
176 template <
typename LoggingT = Logging>
178 m_loggingHasBeenSet =
true;
179 m_logging = std::forward<LoggingT>(value);
181 template <
typename LoggingT = Logging>
195 template <
typename KeyPairT = Aws::String>
197 m_keyPairHasBeenSet =
true;
198 m_keyPair = std::forward<KeyPairT>(value);
200 template <
typename KeyPairT = Aws::String>
216 m_terminateInstanceOnFailureHasBeenSet =
true;
217 m_terminateInstanceOnFailure = value;
237 template <
typename SnsTopicArnT = Aws::String>
239 m_snsTopicArnHasBeenSet =
true;
240 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
242 template <
typename SnsTopicArnT = Aws::String>
259 template <
typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
261 m_resourceTagsHasBeenSet =
true;
262 m_resourceTags = std::forward<ResourceTagsT>(value);
264 template <
typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
269 template <
typename ResourceTagsKeyT = Aws::String,
typename ResourceTagsValueT = Aws::String>
271 m_resourceTagsHasBeenSet =
true;
272 m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value));
293 template <
typename InstanceMetadataOptionsT = InstanceMetadataOptions>
295 m_instanceMetadataOptionsHasBeenSet =
true;
296 m_instanceMetadataOptions = std::forward<InstanceMetadataOptionsT>(value);
298 template <
typename InstanceMetadataOptionsT = InstanceMetadataOptions>
313 template <
typename PlacementT = Placement>
315 m_placementHasBeenSet =
true;
316 m_placement = std::forward<PlacementT>(value);
318 template <
typename PlacementT = Placement>
336 template <
typename ClientTokenT = Aws::String>
338 m_clientTokenHasBeenSet =
true;
339 m_clientToken = std::forward<ClientTokenT>(value);
341 template <
typename ClientTokenT = Aws::String>
364 bool m_terminateInstanceOnFailure{
false};
370 InstanceMetadataOptions m_instanceMetadataOptions;
372 Placement m_placement;
375 bool m_infrastructureConfigurationArnHasBeenSet =
false;
376 bool m_descriptionHasBeenSet =
false;
377 bool m_instanceTypesHasBeenSet =
false;
378 bool m_instanceProfileNameHasBeenSet =
false;
379 bool m_securityGroupIdsHasBeenSet =
false;
380 bool m_subnetIdHasBeenSet =
false;
381 bool m_loggingHasBeenSet =
false;
382 bool m_keyPairHasBeenSet =
false;
383 bool m_terminateInstanceOnFailureHasBeenSet =
false;
384 bool m_snsTopicArnHasBeenSet =
false;
385 bool m_resourceTagsHasBeenSet =
false;
386 bool m_instanceMetadataOptionsHasBeenSet =
false;
387 bool m_placementHasBeenSet =
false;
388 bool m_clientTokenHasBeenSet =
true;
static Aws::Utils::UUID PseudoRandomUUID()
UpdateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(InstanceMetadataOptionsT &&value)
bool InstanceProfileNameHasBeenSet() const
bool InstanceTypesHasBeenSet() const
const Aws::String & GetClientToken() const
UpdateInfrastructureConfigurationRequest & WithPlacement(PlacementT &&value)
bool PlacementHasBeenSet() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
bool SubnetIdHasBeenSet() const
bool GetTerminateInstanceOnFailure() const
UpdateInfrastructureConfigurationRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetResourceTags(ResourceTagsT &&value)
UpdateInfrastructureConfigurationRequest & WithDescription(DescriptionT &&value)
bool LoggingHasBeenSet() const
UpdateInfrastructureConfigurationRequest & WithSnsTopicArn(SnsTopicArnT &&value)
const InstanceMetadataOptions & GetInstanceMetadataOptions() const
bool KeyPairHasBeenSet() const
const Aws::String & GetDescription() const
bool SnsTopicArnHasBeenSet() const
UpdateInfrastructureConfigurationRequest & WithInstanceTypes(InstanceTypesT &&value)
void SetKeyPair(KeyPairT &&value)
bool InstanceMetadataOptionsHasBeenSet() const
bool InfrastructureConfigurationArnHasBeenSet() const
void SetPlacement(PlacementT &&value)
UpdateInfrastructureConfigurationRequest & WithResourceTags(ResourceTagsT &&value)
UpdateInfrastructureConfigurationRequest & WithClientToken(ClientTokenT &&value)
UpdateInfrastructureConfigurationRequest & WithLogging(LoggingT &&value)
const Aws::Map< Aws::String, Aws::String > & GetResourceTags() const
void SetSubnetId(SubnetIdT &&value)
void SetClientToken(ClientTokenT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
UpdateInfrastructureConfigurationRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
UpdateInfrastructureConfigurationRequest & WithInstanceProfileName(InstanceProfileNameT &&value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(ResourceTagsKeyT &&key, ResourceTagsValueT &&value)
const Aws::Vector< Aws::String > & GetInstanceTypes() const
UpdateInfrastructureConfigurationRequest & WithKeyPair(KeyPairT &&value)
AWS_IMAGEBUILDER_API UpdateInfrastructureConfigurationRequest()=default
bool TerminateInstanceOnFailureHasBeenSet() const
const Logging & GetLogging() const
UpdateInfrastructureConfigurationRequest & WithSubnetId(SubnetIdT &&value)
const Aws::String & GetSubnetId() const
void SetInstanceTypes(InstanceTypesT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
void SetInstanceProfileName(InstanceProfileNameT &&value)
bool ResourceTagsHasBeenSet() const
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
UpdateInfrastructureConfigurationRequest & AddInstanceTypes(InstanceTypesT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetInstanceProfileName() const
virtual const char * GetServiceRequestName() const override
bool ClientTokenHasBeenSet() const
bool DescriptionHasBeenSet() const
const Aws::String & GetKeyPair() const
void SetInstanceMetadataOptions(InstanceMetadataOptionsT &&value)
void SetTerminateInstanceOnFailure(bool value)
UpdateInfrastructureConfigurationRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
bool SecurityGroupIdsHasBeenSet() const
UpdateInfrastructureConfigurationRequest & WithTerminateInstanceOnFailure(bool value)
const Aws::String & GetInfrastructureConfigurationArn() const
const Aws::String & GetSnsTopicArn() const
void SetDescription(DescriptionT &&value)
const Placement & GetPlacement() const
void SetLogging(LoggingT &&value)
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