AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInfrastructureConfigurationRequest.h
1
6#pragma once
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>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace imagebuilder
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateInfrastructureConfiguration"; }
37
38 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateInfrastructureConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateInfrastructureConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateInfrastructureConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline CreateInfrastructureConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateInfrastructureConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
75 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const{ return m_instanceTypes; }
76 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
77 inline void SetInstanceTypes(const Aws::Vector<Aws::String>& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = value; }
78 inline void SetInstanceTypes(Aws::Vector<Aws::String>&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::move(value); }
81 inline CreateInfrastructureConfigurationRequest& AddInstanceTypes(const Aws::String& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
82 inline CreateInfrastructureConfigurationRequest& AddInstanceTypes(Aws::String&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(std::move(value)); return *this; }
83 inline CreateInfrastructureConfigurationRequest& AddInstanceTypes(const char* value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
85
87
91 inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; }
92 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
93 inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; }
94 inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); }
95 inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); }
100
102
106 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
107 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
108 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
109 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
112 inline CreateInfrastructureConfigurationRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
113 inline CreateInfrastructureConfigurationRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
114 inline CreateInfrastructureConfigurationRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
116
118
122 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
123 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
124 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
125 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
126 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
128 inline CreateInfrastructureConfigurationRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
129 inline CreateInfrastructureConfigurationRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
131
133
136 inline const Logging& GetLogging() const{ return m_logging; }
137 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
138 inline void SetLogging(const Logging& value) { m_loggingHasBeenSet = true; m_logging = value; }
139 inline void SetLogging(Logging&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); }
140 inline CreateInfrastructureConfigurationRequest& WithLogging(const Logging& value) { SetLogging(value); return *this;}
141 inline CreateInfrastructureConfigurationRequest& WithLogging(Logging&& value) { SetLogging(std::move(value)); return *this;}
143
145
149 inline const Aws::String& GetKeyPair() const{ return m_keyPair; }
150 inline bool KeyPairHasBeenSet() const { return m_keyPairHasBeenSet; }
151 inline void SetKeyPair(const Aws::String& value) { m_keyPairHasBeenSet = true; m_keyPair = value; }
152 inline void SetKeyPair(Aws::String&& value) { m_keyPairHasBeenSet = true; m_keyPair = std::move(value); }
153 inline void SetKeyPair(const char* value) { m_keyPairHasBeenSet = true; m_keyPair.assign(value); }
154 inline CreateInfrastructureConfigurationRequest& WithKeyPair(const Aws::String& value) { SetKeyPair(value); return *this;}
155 inline CreateInfrastructureConfigurationRequest& WithKeyPair(Aws::String&& value) { SetKeyPair(std::move(value)); return *this;}
156 inline CreateInfrastructureConfigurationRequest& WithKeyPair(const char* value) { SetKeyPair(value); return *this;}
158
160
166 inline bool GetTerminateInstanceOnFailure() const{ return m_terminateInstanceOnFailure; }
167 inline bool TerminateInstanceOnFailureHasBeenSet() const { return m_terminateInstanceOnFailureHasBeenSet; }
168 inline void SetTerminateInstanceOnFailure(bool value) { m_terminateInstanceOnFailureHasBeenSet = true; m_terminateInstanceOnFailure = value; }
171
173
180 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
181 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
182 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
183 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
184 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
186 inline CreateInfrastructureConfigurationRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
187 inline CreateInfrastructureConfigurationRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
189
191
195 inline const Aws::Map<Aws::String, Aws::String>& GetResourceTags() const{ return m_resourceTags; }
196 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
197 inline void SetResourceTags(const Aws::Map<Aws::String, Aws::String>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
198 inline void SetResourceTags(Aws::Map<Aws::String, Aws::String>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
201 inline CreateInfrastructureConfigurationRequest& AddResourceTags(const Aws::String& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; }
202 inline CreateInfrastructureConfigurationRequest& AddResourceTags(Aws::String&& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; }
203 inline CreateInfrastructureConfigurationRequest& AddResourceTags(const Aws::String& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; }
204 inline CreateInfrastructureConfigurationRequest& AddResourceTags(Aws::String&& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), std::move(value)); return *this; }
205 inline CreateInfrastructureConfigurationRequest& AddResourceTags(const char* key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; }
206 inline CreateInfrastructureConfigurationRequest& AddResourceTags(Aws::String&& key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; }
207 inline CreateInfrastructureConfigurationRequest& AddResourceTags(const char* key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; }
209
211
215 inline const InstanceMetadataOptions& GetInstanceMetadataOptions() const{ return m_instanceMetadataOptions; }
216 inline bool InstanceMetadataOptionsHasBeenSet() const { return m_instanceMetadataOptionsHasBeenSet; }
217 inline void SetInstanceMetadataOptions(const InstanceMetadataOptions& value) { m_instanceMetadataOptionsHasBeenSet = true; m_instanceMetadataOptions = value; }
218 inline void SetInstanceMetadataOptions(InstanceMetadataOptions&& value) { m_instanceMetadataOptionsHasBeenSet = true; m_instanceMetadataOptions = std::move(value); }
222
224
228 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
229 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
230 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
231 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
234 inline CreateInfrastructureConfigurationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
235 inline CreateInfrastructureConfigurationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
236 inline CreateInfrastructureConfigurationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
237 inline CreateInfrastructureConfigurationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
238 inline CreateInfrastructureConfigurationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
239 inline CreateInfrastructureConfigurationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
240 inline CreateInfrastructureConfigurationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
242
244
248 inline const Placement& GetPlacement() const{ return m_placement; }
249 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
250 inline void SetPlacement(const Placement& value) { m_placementHasBeenSet = true; m_placement = value; }
251 inline void SetPlacement(Placement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
253 inline CreateInfrastructureConfigurationRequest& WithPlacement(Placement&& value) { SetPlacement(std::move(value)); return *this;}
255
257
263 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
264 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
265 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
266 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
267 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
269 inline CreateInfrastructureConfigurationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
270 inline CreateInfrastructureConfigurationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
272 private:
273
274 Aws::String m_name;
275 bool m_nameHasBeenSet = false;
276
277 Aws::String m_description;
278 bool m_descriptionHasBeenSet = false;
279
280 Aws::Vector<Aws::String> m_instanceTypes;
281 bool m_instanceTypesHasBeenSet = false;
282
283 Aws::String m_instanceProfileName;
284 bool m_instanceProfileNameHasBeenSet = false;
285
286 Aws::Vector<Aws::String> m_securityGroupIds;
287 bool m_securityGroupIdsHasBeenSet = false;
288
289 Aws::String m_subnetId;
290 bool m_subnetIdHasBeenSet = false;
291
292 Logging m_logging;
293 bool m_loggingHasBeenSet = false;
294
295 Aws::String m_keyPair;
296 bool m_keyPairHasBeenSet = false;
297
298 bool m_terminateInstanceOnFailure;
299 bool m_terminateInstanceOnFailureHasBeenSet = false;
300
301 Aws::String m_snsTopicArn;
302 bool m_snsTopicArnHasBeenSet = false;
303
305 bool m_resourceTagsHasBeenSet = false;
306
307 InstanceMetadataOptions m_instanceMetadataOptions;
308 bool m_instanceMetadataOptionsHasBeenSet = false;
309
311 bool m_tagsHasBeenSet = false;
312
313 Placement m_placement;
314 bool m_placementHasBeenSet = false;
315
316 Aws::String m_clientToken;
317 bool m_clientTokenHasBeenSet = false;
318 };
319
320} // namespace Model
321} // namespace imagebuilder
322} // namespace Aws
CreateInfrastructureConfigurationRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateInfrastructureConfigurationRequest & AddInstanceTypes(const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInfrastructureConfigurationRequest & WithTerminateInstanceOnFailure(bool 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)
CreateInfrastructureConfigurationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithClientToken(const Aws::String &value)
CreateInfrastructureConfigurationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithName(const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateInfrastructureConfigurationRequest & AddSecurityGroupIds(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithPlacement(const Placement &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)
CreateInfrastructureConfigurationRequest & WithPlacement(Placement &&value)
CreateInfrastructureConfigurationRequest & WithKeyPair(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithName(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithResourceTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInfrastructureConfigurationRequest & WithSubnetId(const char *value)
CreateInfrastructureConfigurationRequest & WithName(const char *value)
CreateInfrastructureConfigurationRequest & AddSecurityGroupIds(const char *value)
CreateInfrastructureConfigurationRequest & WithKeyPair(const char *value)
CreateInfrastructureConfigurationRequest & AddInstanceTypes(Aws::String &&value)
CreateInfrastructureConfigurationRequest & AddTags(Aws::String &&key, const char *value)
CreateInfrastructureConfigurationRequest & WithSubnetId(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithInstanceTypes(Aws::Vector< Aws::String > &&value)
CreateInfrastructureConfigurationRequest & WithKeyPair(const Aws::String &value)
CreateInfrastructureConfigurationRequest & AddResourceTags(const Aws::String &key, Aws::String &&value)
CreateInfrastructureConfigurationRequest & AddSecurityGroupIds(const Aws::String &value)
CreateInfrastructureConfigurationRequest & AddResourceTags(Aws::String &&key, Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithSnsTopicArn(Aws::String &&value)
CreateInfrastructureConfigurationRequest & WithResourceTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInfrastructureConfigurationRequest & WithDescription(const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithSnsTopicArn(const char *value)
CreateInfrastructureConfigurationRequest & AddResourceTags(const char *key, Aws::String &&value)
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)
CreateInfrastructureConfigurationRequest & AddInstanceTypes(const char *value)
CreateInfrastructureConfigurationRequest & AddResourceTags(const Aws::String &key, const Aws::String &value)
CreateInfrastructureConfigurationRequest & AddResourceTags(Aws::String &&key, const char *value)
CreateInfrastructureConfigurationRequest & WithInstanceProfileName(Aws::String &&value)
CreateInfrastructureConfigurationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithInstanceProfileName(const Aws::String &value)
CreateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(InstanceMetadataOptions &&value)
CreateInfrastructureConfigurationRequest & WithDescription(const char *value)
CreateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(const InstanceMetadataOptions &value)
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