AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateInfrastructureConfigurationRequest.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 "UpdateInfrastructureConfiguration"; }
37
38 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetInfrastructureConfigurationArn() const{ return m_infrastructureConfigurationArn; }
47 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
48 inline void SetInfrastructureConfigurationArn(const Aws::String& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = value; }
49 inline void SetInfrastructureConfigurationArn(Aws::String&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::move(value); }
50 inline void SetInfrastructureConfigurationArn(const char* value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn.assign(value); }
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline UpdateInfrastructureConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline UpdateInfrastructureConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
76 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const{ return m_instanceTypes; }
77 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
78 inline void SetInstanceTypes(const Aws::Vector<Aws::String>& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = value; }
79 inline void SetInstanceTypes(Aws::Vector<Aws::String>&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::move(value); }
82 inline UpdateInfrastructureConfigurationRequest& AddInstanceTypes(const Aws::String& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
83 inline UpdateInfrastructureConfigurationRequest& AddInstanceTypes(Aws::String&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(std::move(value)); return *this; }
84 inline UpdateInfrastructureConfigurationRequest& AddInstanceTypes(const char* value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
86
88
92 inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; }
93 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
94 inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; }
95 inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); }
96 inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); }
101
103
107 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
108 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
109 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
110 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
113 inline UpdateInfrastructureConfigurationRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
114 inline UpdateInfrastructureConfigurationRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
115 inline UpdateInfrastructureConfigurationRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
117
119
123 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
124 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
125 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
126 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
127 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
129 inline UpdateInfrastructureConfigurationRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
130 inline UpdateInfrastructureConfigurationRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
132
134
137 inline const Logging& GetLogging() const{ return m_logging; }
138 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
139 inline void SetLogging(const Logging& value) { m_loggingHasBeenSet = true; m_logging = value; }
140 inline void SetLogging(Logging&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); }
141 inline UpdateInfrastructureConfigurationRequest& WithLogging(const Logging& value) { SetLogging(value); return *this;}
142 inline UpdateInfrastructureConfigurationRequest& WithLogging(Logging&& value) { SetLogging(std::move(value)); return *this;}
144
146
150 inline const Aws::String& GetKeyPair() const{ return m_keyPair; }
151 inline bool KeyPairHasBeenSet() const { return m_keyPairHasBeenSet; }
152 inline void SetKeyPair(const Aws::String& value) { m_keyPairHasBeenSet = true; m_keyPair = value; }
153 inline void SetKeyPair(Aws::String&& value) { m_keyPairHasBeenSet = true; m_keyPair = std::move(value); }
154 inline void SetKeyPair(const char* value) { m_keyPairHasBeenSet = true; m_keyPair.assign(value); }
155 inline UpdateInfrastructureConfigurationRequest& WithKeyPair(const Aws::String& value) { SetKeyPair(value); return *this;}
156 inline UpdateInfrastructureConfigurationRequest& WithKeyPair(Aws::String&& value) { SetKeyPair(std::move(value)); return *this;}
157 inline UpdateInfrastructureConfigurationRequest& WithKeyPair(const char* value) { SetKeyPair(value); return *this;}
159
161
167 inline bool GetTerminateInstanceOnFailure() const{ return m_terminateInstanceOnFailure; }
168 inline bool TerminateInstanceOnFailureHasBeenSet() const { return m_terminateInstanceOnFailureHasBeenSet; }
169 inline void SetTerminateInstanceOnFailure(bool value) { m_terminateInstanceOnFailureHasBeenSet = true; m_terminateInstanceOnFailure = value; }
172
174
181 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
182 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
183 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
184 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
185 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
187 inline UpdateInfrastructureConfigurationRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
188 inline UpdateInfrastructureConfigurationRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
190
192
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 UpdateInfrastructureConfigurationRequest& AddResourceTags(const Aws::String& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; }
202 inline UpdateInfrastructureConfigurationRequest& AddResourceTags(Aws::String&& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; }
203 inline UpdateInfrastructureConfigurationRequest& AddResourceTags(const Aws::String& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; }
204 inline UpdateInfrastructureConfigurationRequest& AddResourceTags(Aws::String&& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), std::move(value)); return *this; }
205 inline UpdateInfrastructureConfigurationRequest& AddResourceTags(const char* key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; }
206 inline UpdateInfrastructureConfigurationRequest& AddResourceTags(Aws::String&& key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; }
207 inline UpdateInfrastructureConfigurationRequest& AddResourceTags(const char* key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; }
209
211
223 inline const InstanceMetadataOptions& GetInstanceMetadataOptions() const{ return m_instanceMetadataOptions; }
224 inline bool InstanceMetadataOptionsHasBeenSet() const { return m_instanceMetadataOptionsHasBeenSet; }
225 inline void SetInstanceMetadataOptions(const InstanceMetadataOptions& value) { m_instanceMetadataOptionsHasBeenSet = true; m_instanceMetadataOptions = value; }
226 inline void SetInstanceMetadataOptions(InstanceMetadataOptions&& value) { m_instanceMetadataOptionsHasBeenSet = true; m_instanceMetadataOptions = std::move(value); }
230
232
236 inline const Placement& GetPlacement() const{ return m_placement; }
237 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
238 inline void SetPlacement(const Placement& value) { m_placementHasBeenSet = true; m_placement = value; }
239 inline void SetPlacement(Placement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
241 inline UpdateInfrastructureConfigurationRequest& WithPlacement(Placement&& value) { SetPlacement(std::move(value)); return *this;}
243
245
251 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
252 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
253 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
254 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
255 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
257 inline UpdateInfrastructureConfigurationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
258 inline UpdateInfrastructureConfigurationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
260 private:
261
262 Aws::String m_infrastructureConfigurationArn;
263 bool m_infrastructureConfigurationArnHasBeenSet = false;
264
265 Aws::String m_description;
266 bool m_descriptionHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_instanceTypes;
269 bool m_instanceTypesHasBeenSet = false;
270
271 Aws::String m_instanceProfileName;
272 bool m_instanceProfileNameHasBeenSet = false;
273
274 Aws::Vector<Aws::String> m_securityGroupIds;
275 bool m_securityGroupIdsHasBeenSet = false;
276
277 Aws::String m_subnetId;
278 bool m_subnetIdHasBeenSet = false;
279
280 Logging m_logging;
281 bool m_loggingHasBeenSet = false;
282
283 Aws::String m_keyPair;
284 bool m_keyPairHasBeenSet = false;
285
286 bool m_terminateInstanceOnFailure;
287 bool m_terminateInstanceOnFailureHasBeenSet = false;
288
289 Aws::String m_snsTopicArn;
290 bool m_snsTopicArnHasBeenSet = false;
291
293 bool m_resourceTagsHasBeenSet = false;
294
295 InstanceMetadataOptions m_instanceMetadataOptions;
296 bool m_instanceMetadataOptionsHasBeenSet = false;
297
298 Placement m_placement;
299 bool m_placementHasBeenSet = false;
300
301 Aws::String m_clientToken;
302 bool m_clientTokenHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace imagebuilder
307} // namespace Aws
UpdateInfrastructureConfigurationRequest & WithInfrastructureConfigurationArn(const char *value)
UpdateInfrastructureConfigurationRequest & WithSnsTopicArn(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & AddSecurityGroupIds(const Aws::String &value)
UpdateInfrastructureConfigurationRequest & WithSubnetId(const char *value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(Aws::String &&key, const char *value)
UpdateInfrastructureConfigurationRequest & WithDescription(const Aws::String &value)
UpdateInfrastructureConfigurationRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateInfrastructureConfigurationRequest & WithSubnetId(const Aws::String &value)
UpdateInfrastructureConfigurationRequest & WithInstanceProfileName(const char *value)
UpdateInfrastructureConfigurationRequest & WithDescription(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(Aws::String &&key, const Aws::String &value)
UpdateInfrastructureConfigurationRequest & AddInstanceTypes(const Aws::String &value)
UpdateInfrastructureConfigurationRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateInfrastructureConfigurationRequest & WithResourceTags(const Aws::Map< Aws::String, Aws::String > &value)
UpdateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(const InstanceMetadataOptions &value)
UpdateInfrastructureConfigurationRequest & WithClientToken(const Aws::String &value)
UpdateInfrastructureConfigurationRequest & WithInstanceTypes(const Aws::Vector< Aws::String > &value)
UpdateInfrastructureConfigurationRequest & AddInstanceTypes(const char *value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(const char *key, Aws::String &&value)
UpdateInfrastructureConfigurationRequest & WithPlacement(const Placement &value)
UpdateInfrastructureConfigurationRequest & WithKeyPair(const char *value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(Aws::String &&key, Aws::String &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
UpdateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(InstanceMetadataOptions &&value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(const char *key, const char *value)
UpdateInfrastructureConfigurationRequest & WithResourceTags(Aws::Map< Aws::String, Aws::String > &&value)
UpdateInfrastructureConfigurationRequest & AddSecurityGroupIds(const char *value)
UpdateInfrastructureConfigurationRequest & WithSubnetId(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & WithClientToken(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & WithLogging(const Logging &value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(const Aws::String &key, const Aws::String &value)
UpdateInfrastructureConfigurationRequest & AddInstanceTypes(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & WithPlacement(Placement &&value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(const Aws::String &key, Aws::String &&value)
UpdateInfrastructureConfigurationRequest & WithInfrastructureConfigurationArn(const Aws::String &value)
UpdateInfrastructureConfigurationRequest & WithKeyPair(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & WithInstanceProfileName(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & WithDescription(const char *value)
UpdateInfrastructureConfigurationRequest & WithSnsTopicArn(const Aws::String &value)
UpdateInfrastructureConfigurationRequest & WithKeyPair(const Aws::String &value)
UpdateInfrastructureConfigurationRequest & WithInstanceTypes(Aws::Vector< Aws::String > &&value)
UpdateInfrastructureConfigurationRequest & WithInfrastructureConfigurationArn(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & AddSecurityGroupIds(Aws::String &&value)
UpdateInfrastructureConfigurationRequest & WithTerminateInstanceOnFailure(bool value)
UpdateInfrastructureConfigurationRequest & WithSnsTopicArn(const char *value)
UpdateInfrastructureConfigurationRequest & WithClientToken(const char *value)
UpdateInfrastructureConfigurationRequest & WithInstanceProfileName(const 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