AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
30 AWS_IMAGEBUILDER_API UpdateInfrastructureConfigurationRequest() = default;
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 template<typename InfrastructureConfigurationArnT = Aws::String>
49 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value); }
50 template<typename InfrastructureConfigurationArnT = Aws::String>
51 UpdateInfrastructureConfigurationRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 UpdateInfrastructureConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
72 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const { return m_instanceTypes; }
73 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
74 template<typename InstanceTypesT = Aws::Vector<Aws::String>>
75 void SetInstanceTypes(InstanceTypesT&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::forward<InstanceTypesT>(value); }
76 template<typename InstanceTypesT = Aws::Vector<Aws::String>>
77 UpdateInfrastructureConfigurationRequest& WithInstanceTypes(InstanceTypesT&& value) { SetInstanceTypes(std::forward<InstanceTypesT>(value)); return *this;}
78 template<typename InstanceTypesT = Aws::String>
79 UpdateInfrastructureConfigurationRequest& AddInstanceTypes(InstanceTypesT&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value)); return *this; }
81
83
87 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
88 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
89 template<typename InstanceProfileNameT = Aws::String>
90 void SetInstanceProfileName(InstanceProfileNameT&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::forward<InstanceProfileNameT>(value); }
91 template<typename InstanceProfileNameT = Aws::String>
92 UpdateInfrastructureConfigurationRequest& WithInstanceProfileName(InstanceProfileNameT&& value) { SetInstanceProfileName(std::forward<InstanceProfileNameT>(value)); return *this;}
94
96
100 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
101 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
102 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
103 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
104 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
105 UpdateInfrastructureConfigurationRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
106 template<typename SecurityGroupIdsT = Aws::String>
107 UpdateInfrastructureConfigurationRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
109
111
115 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
116 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
117 template<typename SubnetIdT = Aws::String>
118 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
119 template<typename SubnetIdT = Aws::String>
120 UpdateInfrastructureConfigurationRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
122
124
127 inline const Logging& GetLogging() const { return m_logging; }
128 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
129 template<typename LoggingT = Logging>
130 void SetLogging(LoggingT&& value) { m_loggingHasBeenSet = true; m_logging = std::forward<LoggingT>(value); }
131 template<typename LoggingT = Logging>
132 UpdateInfrastructureConfigurationRequest& WithLogging(LoggingT&& value) { SetLogging(std::forward<LoggingT>(value)); return *this;}
134
136
140 inline const Aws::String& GetKeyPair() const { return m_keyPair; }
141 inline bool KeyPairHasBeenSet() const { return m_keyPairHasBeenSet; }
142 template<typename KeyPairT = Aws::String>
143 void SetKeyPair(KeyPairT&& value) { m_keyPairHasBeenSet = true; m_keyPair = std::forward<KeyPairT>(value); }
144 template<typename KeyPairT = Aws::String>
145 UpdateInfrastructureConfigurationRequest& WithKeyPair(KeyPairT&& value) { SetKeyPair(std::forward<KeyPairT>(value)); return *this;}
147
149
155 inline bool GetTerminateInstanceOnFailure() const { return m_terminateInstanceOnFailure; }
156 inline bool TerminateInstanceOnFailureHasBeenSet() const { return m_terminateInstanceOnFailureHasBeenSet; }
157 inline void SetTerminateInstanceOnFailure(bool value) { m_terminateInstanceOnFailureHasBeenSet = true; m_terminateInstanceOnFailure = value; }
160
162
169 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
170 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
171 template<typename SnsTopicArnT = Aws::String>
172 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
173 template<typename SnsTopicArnT = Aws::String>
174 UpdateInfrastructureConfigurationRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
176
178
181 inline const Aws::Map<Aws::String, Aws::String>& GetResourceTags() const { return m_resourceTags; }
182 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
183 template<typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
184 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
185 template<typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
186 UpdateInfrastructureConfigurationRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
187 template<typename ResourceTagsKeyT = Aws::String, typename ResourceTagsValueT = Aws::String>
188 UpdateInfrastructureConfigurationRequest& AddResourceTags(ResourceTagsKeyT&& key, ResourceTagsValueT&& value) {
189 m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value)); return *this;
190 }
192
194
206 inline const InstanceMetadataOptions& GetInstanceMetadataOptions() const { return m_instanceMetadataOptions; }
207 inline bool InstanceMetadataOptionsHasBeenSet() const { return m_instanceMetadataOptionsHasBeenSet; }
208 template<typename InstanceMetadataOptionsT = InstanceMetadataOptions>
209 void SetInstanceMetadataOptions(InstanceMetadataOptionsT&& value) { m_instanceMetadataOptionsHasBeenSet = true; m_instanceMetadataOptions = std::forward<InstanceMetadataOptionsT>(value); }
210 template<typename InstanceMetadataOptionsT = InstanceMetadataOptions>
211 UpdateInfrastructureConfigurationRequest& WithInstanceMetadataOptions(InstanceMetadataOptionsT&& value) { SetInstanceMetadataOptions(std::forward<InstanceMetadataOptionsT>(value)); return *this;}
213
215
219 inline const Placement& GetPlacement() const { return m_placement; }
220 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
221 template<typename PlacementT = Placement>
222 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet = true; m_placement = std::forward<PlacementT>(value); }
223 template<typename PlacementT = Placement>
224 UpdateInfrastructureConfigurationRequest& WithPlacement(PlacementT&& value) { SetPlacement(std::forward<PlacementT>(value)); return *this;}
226
228
234 inline const Aws::String& GetClientToken() const { return m_clientToken; }
235 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
236 template<typename ClientTokenT = Aws::String>
237 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
238 template<typename ClientTokenT = Aws::String>
239 UpdateInfrastructureConfigurationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
241 private:
242
243 Aws::String m_infrastructureConfigurationArn;
244 bool m_infrastructureConfigurationArnHasBeenSet = false;
245
246 Aws::String m_description;
247 bool m_descriptionHasBeenSet = false;
248
249 Aws::Vector<Aws::String> m_instanceTypes;
250 bool m_instanceTypesHasBeenSet = false;
251
252 Aws::String m_instanceProfileName;
253 bool m_instanceProfileNameHasBeenSet = false;
254
255 Aws::Vector<Aws::String> m_securityGroupIds;
256 bool m_securityGroupIdsHasBeenSet = false;
257
258 Aws::String m_subnetId;
259 bool m_subnetIdHasBeenSet = false;
260
261 Logging m_logging;
262 bool m_loggingHasBeenSet = false;
263
264 Aws::String m_keyPair;
265 bool m_keyPairHasBeenSet = false;
266
267 bool m_terminateInstanceOnFailure{false};
268 bool m_terminateInstanceOnFailureHasBeenSet = false;
269
270 Aws::String m_snsTopicArn;
271 bool m_snsTopicArnHasBeenSet = false;
272
274 bool m_resourceTagsHasBeenSet = false;
275
276 InstanceMetadataOptions m_instanceMetadataOptions;
277 bool m_instanceMetadataOptionsHasBeenSet = false;
278
279 Placement m_placement;
280 bool m_placementHasBeenSet = false;
281
283 bool m_clientTokenHasBeenSet = true;
284 };
285
286} // namespace Model
287} // namespace imagebuilder
288} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
UpdateInfrastructureConfigurationRequest & WithInstanceMetadataOptions(InstanceMetadataOptionsT &&value)
UpdateInfrastructureConfigurationRequest & WithPlacement(PlacementT &&value)
UpdateInfrastructureConfigurationRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
UpdateInfrastructureConfigurationRequest & WithDescription(DescriptionT &&value)
UpdateInfrastructureConfigurationRequest & WithSnsTopicArn(SnsTopicArnT &&value)
UpdateInfrastructureConfigurationRequest & WithInstanceTypes(InstanceTypesT &&value)
UpdateInfrastructureConfigurationRequest & WithResourceTags(ResourceTagsT &&value)
UpdateInfrastructureConfigurationRequest & WithClientToken(ClientTokenT &&value)
UpdateInfrastructureConfigurationRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
UpdateInfrastructureConfigurationRequest & WithInstanceProfileName(InstanceProfileNameT &&value)
UpdateInfrastructureConfigurationRequest & AddResourceTags(ResourceTagsKeyT &&key, ResourceTagsValueT &&value)
UpdateInfrastructureConfigurationRequest & WithSubnetId(SubnetIdT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
UpdateInfrastructureConfigurationRequest & AddInstanceTypes(InstanceTypesT &&value)
UpdateInfrastructureConfigurationRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
UpdateInfrastructureConfigurationRequest & WithTerminateInstanceOnFailure(bool 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