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"; }
49 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
63 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
95 inline void SetInstanceProfileName(
const char* value) { m_instanceProfileNameHasBeenSet =
true; m_instanceProfileName.assign(value); }
126 inline void SetSubnetId(
const char* value) { m_subnetIdHasBeenSet =
true; m_subnetId.assign(value); }
139 inline void SetLogging(
Logging&& value) { m_loggingHasBeenSet =
true; m_logging = std::move(value); }
153 inline void SetKeyPair(
const char* value) { m_keyPairHasBeenSet =
true; m_keyPair.assign(value); }
184 inline void SetSnsTopicArn(
const char* value) { m_snsTopicArnHasBeenSet =
true; m_snsTopicArn.assign(value); }
267 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
275 bool m_nameHasBeenSet =
false;
278 bool m_descriptionHasBeenSet =
false;
281 bool m_instanceTypesHasBeenSet =
false;
284 bool m_instanceProfileNameHasBeenSet =
false;
287 bool m_securityGroupIdsHasBeenSet =
false;
290 bool m_subnetIdHasBeenSet =
false;
293 bool m_loggingHasBeenSet =
false;
296 bool m_keyPairHasBeenSet =
false;
298 bool m_terminateInstanceOnFailure;
299 bool m_terminateInstanceOnFailureHasBeenSet =
false;
302 bool m_snsTopicArnHasBeenSet =
false;
305 bool m_resourceTagsHasBeenSet =
false;
308 bool m_instanceMetadataOptionsHasBeenSet =
false;
311 bool m_tagsHasBeenSet =
false;
314 bool m_placementHasBeenSet =
false;
317 bool m_clientTokenHasBeenSet =
false;
void SetSnsTopicArn(const Aws::String &value)
const Aws::String & GetClientToken() const
CreateInfrastructureConfigurationRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetResourceTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInfrastructureConfigurationRequest & AddInstanceTypes(const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
bool InstanceMetadataOptionsHasBeenSet() const
bool GetTerminateInstanceOnFailure() const
CreateInfrastructureConfigurationRequest & WithTerminateInstanceOnFailure(bool value)
void SetSubnetId(const char *value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetDescription(const char *value)
CreateInfrastructureConfigurationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInfrastructureConfigurationRequest & WithClientToken(Aws::String &&value)
CreateInfrastructureConfigurationRequest & AddResourceTags(const char *key, const char *value)
CreateInfrastructureConfigurationRequest & AddTags(const char *key, Aws::String &&value)
bool SecurityGroupIdsHasBeenSet() const
bool DescriptionHasBeenSet() const
bool SubnetIdHasBeenSet() const
CreateInfrastructureConfigurationRequest & AddTags(Aws::String &&key, Aws::String &&value)
bool InstanceProfileNameHasBeenSet() const
bool ResourceTagsHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithClientToken(const Aws::String &value)
bool KeyPairHasBeenSet() const
CreateInfrastructureConfigurationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithName(const Aws::String &value)
void SetKeyPair(const char *value)
CreateInfrastructureConfigurationRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateInfrastructureConfigurationRequest & AddSecurityGroupIds(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithPlacement(const Placement &value)
void SetKeyPair(const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithInstanceTypes(const Aws::Vector< Aws::String > &value)
CreateInfrastructureConfigurationRequest & WithLogging(const Logging &value)
CreateInfrastructureConfigurationRequest & AddTags(const char *key, const char *value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateInfrastructureConfigurationRequest & AddResourceTags(Aws::String &&key, const Aws::String &value)
void SetName(const char *value)
CreateInfrastructureConfigurationRequest & WithPlacement(Placement &&value)
CreateInfrastructureConfigurationRequest & WithKeyPair(Aws::String &&value)
bool TagsHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithName(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithResourceTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetResourceTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSnsTopicArn(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Aws::String > & GetInstanceTypes() const
void SetInstanceProfileName(Aws::String &&value)
void SetClientToken(const char *value)
CreateInfrastructureConfigurationRequest & WithSubnetId(const char *value)
CreateInfrastructureConfigurationRequest & WithName(const char *value)
void SetSnsTopicArn(const char *value)
CreateInfrastructureConfigurationRequest & AddSecurityGroupIds(const char *value)
bool NameHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithKeyPair(const char *value)
CreateInfrastructureConfigurationRequest & AddInstanceTypes(Aws::String &&value)
void SetName(Aws::String &&value)
CreateInfrastructureConfigurationRequest & AddTags(Aws::String &&key, const char *value)
void SetInstanceTypes(const Aws::Vector< Aws::String > &value)
CreateInfrastructureConfigurationRequest & WithSubnetId(Aws::String &&value)
void SetInstanceMetadataOptions(const InstanceMetadataOptions &value)
void SetName(const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithInstanceTypes(Aws::Vector< Aws::String > &&value)
CreateInfrastructureConfigurationRequest & WithKeyPair(const Aws::String &value)
bool LoggingHasBeenSet() const
CreateInfrastructureConfigurationRequest & AddResourceTags(const Aws::String &key, Aws::String &&value)
CreateInfrastructureConfigurationRequest & AddSecurityGroupIds(const Aws::String &value)
CreateInfrastructureConfigurationRequest & AddResourceTags(Aws::String &&key, Aws::String &&value)
void SetInstanceProfileName(const char *value)
AWS_IMAGEBUILDER_API CreateInfrastructureConfigurationRequest()
void SetTerminateInstanceOnFailure(bool value)
bool TerminateInstanceOnFailureHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithSnsTopicArn(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithResourceTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetInstanceProfileName(const Aws::String &value)
const Logging & GetLogging() const
const Aws::String & GetDescription() const
void SetKeyPair(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithDescription(const Aws::String &value)
void SetInstanceTypes(Aws::Vector< Aws::String > &&value)
void SetInstanceMetadataOptions(InstanceMetadataOptions &&value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateInfrastructureConfigurationRequest & WithSnsTopicArn(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
bool ClientTokenHasBeenSet() const
const Aws::String & GetSubnetId() const
virtual const char * GetServiceRequestName() const override
bool InstanceTypesHasBeenSet() const
bool PlacementHasBeenSet() const
void SetLogging(const Logging &value)
const Aws::Map< Aws::String, Aws::String > & GetResourceTags() const
CreateInfrastructureConfigurationRequest & AddResourceTags(const char *key, Aws::String &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetClientToken(const Aws::String &value)
const Aws::String & GetInstanceProfileName() const
CreateInfrastructureConfigurationRequest & WithSubnetId(const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithClientToken(const char *value)
CreateInfrastructureConfigurationRequest & WithInstanceProfileName(const char *value)
CreateInfrastructureConfigurationRequest & WithDescription(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithSnsTopicArn(const Aws::String &value)
const Aws::String & GetKeyPair() const
const Placement & GetPlacement() const
CreateInfrastructureConfigurationRequest & AddInstanceTypes(const char *value)
void SetPlacement(Placement &&value)
const Aws::String & GetSnsTopicArn() const
CreateInfrastructureConfigurationRequest & AddResourceTags(const Aws::String &key, const Aws::String &value)
CreateInfrastructureConfigurationRequest & AddResourceTags(Aws::String &&key, const char *value)
const InstanceMetadataOptions & GetInstanceMetadataOptions() const
void SetClientToken(Aws::String &&value)
void SetSubnetId(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithInstanceProfileName(Aws::String &&value)
CreateInfrastructureConfigurationRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetLogging(Logging &&value)
CreateInfrastructureConfigurationRequest & WithInstanceProfileName(const Aws::String &value)
void SetPlacement(const Placement &value)
CreateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(InstanceMetadataOptions &&value)
void SetDescription(const Aws::String &value)
void SetSubnetId(const Aws::String &value)
bool SnsTopicArnHasBeenSet() const
CreateInfrastructureConfigurationRequest & WithDescription(const char *value)
CreateInfrastructureConfigurationRequest & WithLogging(Logging &&value)
CreateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(const InstanceMetadataOptions &value)
const Aws::String & GetName() const
CreateInfrastructureConfigurationRequest & AddTags(const Aws::String &key, Aws::String &&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