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>
82 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
84 m_instanceTypesHasBeenSet =
true;
85 m_instanceTypes = std::forward<InstanceTypesT>(value);
87 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
92 template <
typename InstanceTypesT = Aws::String>
94 m_instanceTypesHasBeenSet =
true;
95 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
107 template <
typename InstanceProfileNameT = Aws::String>
109 m_instanceProfileNameHasBeenSet =
true;
110 m_instanceProfileName = std::forward<InstanceProfileNameT>(value);
112 template <
typename InstanceProfileNameT = Aws::String>
126 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
128 m_securityGroupIdsHasBeenSet =
true;
129 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
131 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
136 template <
typename SecurityGroupIdsT = Aws::String>
138 m_securityGroupIdsHasBeenSet =
true;
139 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
151 template <
typename SubnetIdT = Aws::String>
153 m_subnetIdHasBeenSet =
true;
154 m_subnetId = std::forward<SubnetIdT>(value);
156 template <
typename SubnetIdT = Aws::String>
169 template <
typename LoggingT = Logging>
171 m_loggingHasBeenSet =
true;
172 m_logging = std::forward<LoggingT>(value);
174 template <
typename LoggingT = Logging>
188 template <
typename KeyPairT = Aws::String>
190 m_keyPairHasBeenSet =
true;
191 m_keyPair = std::forward<KeyPairT>(value);
193 template <
typename KeyPairT = Aws::String>
210 m_terminateInstanceOnFailureHasBeenSet =
true;
211 m_terminateInstanceOnFailure = value;
229 template <
typename SnsTopicArnT = Aws::String>
231 m_snsTopicArnHasBeenSet =
true;
232 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
234 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));
280 template <
typename InstanceMetadataOptionsT = InstanceMetadataOptions>
282 m_instanceMetadataOptionsHasBeenSet =
true;
283 m_instanceMetadataOptions = std::forward<InstanceMetadataOptionsT>(value);
285 template <
typename InstanceMetadataOptionsT = InstanceMetadataOptions>
299 template <
typename PlacementT = Placement>
301 m_placementHasBeenSet =
true;
302 m_placement = std::forward<PlacementT>(value);
304 template <
typename PlacementT = Placement>
320 template <
typename ClientTokenT = Aws::String>
322 m_clientTokenHasBeenSet =
true;
323 m_clientToken = std::forward<ClientTokenT>(value);
325 template <
typename ClientTokenT = Aws::String>
348 bool m_terminateInstanceOnFailure{
false};
354 InstanceMetadataOptions m_instanceMetadataOptions;
356 Placement m_placement;
359 bool m_infrastructureConfigurationArnHasBeenSet =
false;
360 bool m_descriptionHasBeenSet =
false;
361 bool m_instanceTypesHasBeenSet =
false;
362 bool m_instanceProfileNameHasBeenSet =
false;
363 bool m_securityGroupIdsHasBeenSet =
false;
364 bool m_subnetIdHasBeenSet =
false;
365 bool m_loggingHasBeenSet =
false;
366 bool m_keyPairHasBeenSet =
false;
367 bool m_terminateInstanceOnFailureHasBeenSet =
false;
368 bool m_snsTopicArnHasBeenSet =
false;
369 bool m_resourceTagsHasBeenSet =
false;
370 bool m_instanceMetadataOptionsHasBeenSet =
false;
371 bool m_placementHasBeenSet =
false;
372 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