AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateStackRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/opsworks/model/StackConfigurationManager.h>
12#include <aws/opsworks/model/ChefConfiguration.h>
13#include <aws/opsworks/model/Source.h>
14#include <aws/opsworks/model/RootDeviceType.h>
15#include <aws/opsworks/model/StackAttributesKeys.h>
16#include <utility>
17
18namespace Aws
19{
20namespace OpsWorks
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_OPSWORKS_API UpdateStackRequest() = 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 "UpdateStack"; }
37
38 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetStackId() const { return m_stackId; }
48 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
49 template<typename StackIdT = Aws::String>
50 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
51 template<typename StackIdT = Aws::String>
52 UpdateStackRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 UpdateStackRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
72 inline const Aws::Map<StackAttributesKeys, Aws::String>& GetAttributes() const { return m_attributes; }
73 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
74 template<typename AttributesT = Aws::Map<StackAttributesKeys, Aws::String>>
75 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
76 template<typename AttributesT = Aws::Map<StackAttributesKeys, Aws::String>>
77 UpdateStackRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
79 m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this;
80 }
82
84
87 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
88 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
89 template<typename ServiceRoleArnT = Aws::String>
90 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
91 template<typename ServiceRoleArnT = Aws::String>
92 UpdateStackRequest& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
94
96
102 inline const Aws::String& GetDefaultInstanceProfileArn() const { return m_defaultInstanceProfileArn; }
103 inline bool DefaultInstanceProfileArnHasBeenSet() const { return m_defaultInstanceProfileArnHasBeenSet; }
104 template<typename DefaultInstanceProfileArnT = Aws::String>
105 void SetDefaultInstanceProfileArn(DefaultInstanceProfileArnT&& value) { m_defaultInstanceProfileArnHasBeenSet = true; m_defaultInstanceProfileArn = std::forward<DefaultInstanceProfileArnT>(value); }
106 template<typename DefaultInstanceProfileArnT = Aws::String>
107 UpdateStackRequest& WithDefaultInstanceProfileArn(DefaultInstanceProfileArnT&& value) { SetDefaultInstanceProfileArn(std::forward<DefaultInstanceProfileArnT>(value)); return *this;}
109
111
136 inline const Aws::String& GetDefaultOs() const { return m_defaultOs; }
137 inline bool DefaultOsHasBeenSet() const { return m_defaultOsHasBeenSet; }
138 template<typename DefaultOsT = Aws::String>
139 void SetDefaultOs(DefaultOsT&& value) { m_defaultOsHasBeenSet = true; m_defaultOs = std::forward<DefaultOsT>(value); }
140 template<typename DefaultOsT = Aws::String>
141 UpdateStackRequest& WithDefaultOs(DefaultOsT&& value) { SetDefaultOs(std::forward<DefaultOsT>(value)); return *this;}
143
145
162 inline const Aws::String& GetHostnameTheme() const { return m_hostnameTheme; }
163 inline bool HostnameThemeHasBeenSet() const { return m_hostnameThemeHasBeenSet; }
164 template<typename HostnameThemeT = Aws::String>
165 void SetHostnameTheme(HostnameThemeT&& value) { m_hostnameThemeHasBeenSet = true; m_hostnameTheme = std::forward<HostnameThemeT>(value); }
166 template<typename HostnameThemeT = Aws::String>
167 UpdateStackRequest& WithHostnameTheme(HostnameThemeT&& value) { SetHostnameTheme(std::forward<HostnameThemeT>(value)); return *this;}
169
171
179 inline const Aws::String& GetDefaultAvailabilityZone() const { return m_defaultAvailabilityZone; }
180 inline bool DefaultAvailabilityZoneHasBeenSet() const { return m_defaultAvailabilityZoneHasBeenSet; }
181 template<typename DefaultAvailabilityZoneT = Aws::String>
182 void SetDefaultAvailabilityZone(DefaultAvailabilityZoneT&& value) { m_defaultAvailabilityZoneHasBeenSet = true; m_defaultAvailabilityZone = std::forward<DefaultAvailabilityZoneT>(value); }
183 template<typename DefaultAvailabilityZoneT = Aws::String>
184 UpdateStackRequest& WithDefaultAvailabilityZone(DefaultAvailabilityZoneT&& value) { SetDefaultAvailabilityZone(std::forward<DefaultAvailabilityZoneT>(value)); return *this;}
186
188
196 inline const Aws::String& GetDefaultSubnetId() const { return m_defaultSubnetId; }
197 inline bool DefaultSubnetIdHasBeenSet() const { return m_defaultSubnetIdHasBeenSet; }
198 template<typename DefaultSubnetIdT = Aws::String>
199 void SetDefaultSubnetId(DefaultSubnetIdT&& value) { m_defaultSubnetIdHasBeenSet = true; m_defaultSubnetId = std::forward<DefaultSubnetIdT>(value); }
200 template<typename DefaultSubnetIdT = Aws::String>
201 UpdateStackRequest& WithDefaultSubnetId(DefaultSubnetIdT&& value) { SetDefaultSubnetId(std::forward<DefaultSubnetIdT>(value)); return *this;}
203
205
214 inline const Aws::String& GetCustomJson() const { return m_customJson; }
215 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
216 template<typename CustomJsonT = Aws::String>
217 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet = true; m_customJson = std::forward<CustomJsonT>(value); }
218 template<typename CustomJsonT = Aws::String>
219 UpdateStackRequest& WithCustomJson(CustomJsonT&& value) { SetCustomJson(std::forward<CustomJsonT>(value)); return *this;}
221
223
229 inline const StackConfigurationManager& GetConfigurationManager() const { return m_configurationManager; }
230 inline bool ConfigurationManagerHasBeenSet() const { return m_configurationManagerHasBeenSet; }
231 template<typename ConfigurationManagerT = StackConfigurationManager>
232 void SetConfigurationManager(ConfigurationManagerT&& value) { m_configurationManagerHasBeenSet = true; m_configurationManager = std::forward<ConfigurationManagerT>(value); }
233 template<typename ConfigurationManagerT = StackConfigurationManager>
234 UpdateStackRequest& WithConfigurationManager(ConfigurationManagerT&& value) { SetConfigurationManager(std::forward<ConfigurationManagerT>(value)); return *this;}
236
238
245 inline const ChefConfiguration& GetChefConfiguration() const { return m_chefConfiguration; }
246 inline bool ChefConfigurationHasBeenSet() const { return m_chefConfigurationHasBeenSet; }
247 template<typename ChefConfigurationT = ChefConfiguration>
248 void SetChefConfiguration(ChefConfigurationT&& value) { m_chefConfigurationHasBeenSet = true; m_chefConfiguration = std::forward<ChefConfigurationT>(value); }
249 template<typename ChefConfigurationT = ChefConfiguration>
250 UpdateStackRequest& WithChefConfiguration(ChefConfigurationT&& value) { SetChefConfiguration(std::forward<ChefConfigurationT>(value)); return *this;}
252
254
257 inline bool GetUseCustomCookbooks() const { return m_useCustomCookbooks; }
258 inline bool UseCustomCookbooksHasBeenSet() const { return m_useCustomCookbooksHasBeenSet; }
259 inline void SetUseCustomCookbooks(bool value) { m_useCustomCookbooksHasBeenSet = true; m_useCustomCookbooks = value; }
260 inline UpdateStackRequest& WithUseCustomCookbooks(bool value) { SetUseCustomCookbooks(value); return *this;}
262
264
272 inline const Source& GetCustomCookbooksSource() const { return m_customCookbooksSource; }
273 inline bool CustomCookbooksSourceHasBeenSet() const { return m_customCookbooksSourceHasBeenSet; }
274 template<typename CustomCookbooksSourceT = Source>
275 void SetCustomCookbooksSource(CustomCookbooksSourceT&& value) { m_customCookbooksSourceHasBeenSet = true; m_customCookbooksSource = std::forward<CustomCookbooksSourceT>(value); }
276 template<typename CustomCookbooksSourceT = Source>
277 UpdateStackRequest& WithCustomCookbooksSource(CustomCookbooksSourceT&& value) { SetCustomCookbooksSource(std::forward<CustomCookbooksSourceT>(value)); return *this;}
279
281
294 inline const Aws::String& GetDefaultSshKeyName() const { return m_defaultSshKeyName; }
295 inline bool DefaultSshKeyNameHasBeenSet() const { return m_defaultSshKeyNameHasBeenSet; }
296 template<typename DefaultSshKeyNameT = Aws::String>
297 void SetDefaultSshKeyName(DefaultSshKeyNameT&& value) { m_defaultSshKeyNameHasBeenSet = true; m_defaultSshKeyName = std::forward<DefaultSshKeyNameT>(value); }
298 template<typename DefaultSshKeyNameT = Aws::String>
299 UpdateStackRequest& WithDefaultSshKeyName(DefaultSshKeyNameT&& value) { SetDefaultSshKeyName(std::forward<DefaultSshKeyNameT>(value)); return *this;}
301
303
310 inline RootDeviceType GetDefaultRootDeviceType() const { return m_defaultRootDeviceType; }
311 inline bool DefaultRootDeviceTypeHasBeenSet() const { return m_defaultRootDeviceTypeHasBeenSet; }
312 inline void SetDefaultRootDeviceType(RootDeviceType value) { m_defaultRootDeviceTypeHasBeenSet = true; m_defaultRootDeviceType = value; }
315
317
336 inline bool GetUseOpsworksSecurityGroups() const { return m_useOpsworksSecurityGroups; }
337 inline bool UseOpsworksSecurityGroupsHasBeenSet() const { return m_useOpsworksSecurityGroupsHasBeenSet; }
338 inline void SetUseOpsworksSecurityGroups(bool value) { m_useOpsworksSecurityGroupsHasBeenSet = true; m_useOpsworksSecurityGroups = value; }
341
343
358 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
359 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
360 template<typename AgentVersionT = Aws::String>
361 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
362 template<typename AgentVersionT = Aws::String>
363 UpdateStackRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
365 private:
366
367 Aws::String m_stackId;
368 bool m_stackIdHasBeenSet = false;
369
370 Aws::String m_name;
371 bool m_nameHasBeenSet = false;
372
374 bool m_attributesHasBeenSet = false;
375
376 Aws::String m_serviceRoleArn;
377 bool m_serviceRoleArnHasBeenSet = false;
378
379 Aws::String m_defaultInstanceProfileArn;
380 bool m_defaultInstanceProfileArnHasBeenSet = false;
381
382 Aws::String m_defaultOs;
383 bool m_defaultOsHasBeenSet = false;
384
385 Aws::String m_hostnameTheme;
386 bool m_hostnameThemeHasBeenSet = false;
387
388 Aws::String m_defaultAvailabilityZone;
389 bool m_defaultAvailabilityZoneHasBeenSet = false;
390
391 Aws::String m_defaultSubnetId;
392 bool m_defaultSubnetIdHasBeenSet = false;
393
394 Aws::String m_customJson;
395 bool m_customJsonHasBeenSet = false;
396
397 StackConfigurationManager m_configurationManager;
398 bool m_configurationManagerHasBeenSet = false;
399
400 ChefConfiguration m_chefConfiguration;
401 bool m_chefConfigurationHasBeenSet = false;
402
403 bool m_useCustomCookbooks{false};
404 bool m_useCustomCookbooksHasBeenSet = false;
405
406 Source m_customCookbooksSource;
407 bool m_customCookbooksSourceHasBeenSet = false;
408
409 Aws::String m_defaultSshKeyName;
410 bool m_defaultSshKeyNameHasBeenSet = false;
411
412 RootDeviceType m_defaultRootDeviceType{RootDeviceType::NOT_SET};
413 bool m_defaultRootDeviceTypeHasBeenSet = false;
414
415 bool m_useOpsworksSecurityGroups{false};
416 bool m_useOpsworksSecurityGroupsHasBeenSet = false;
417
418 Aws::String m_agentVersion;
419 bool m_agentVersionHasBeenSet = false;
420 };
421
422} // namespace Model
423} // namespace OpsWorks
424} // namespace Aws
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateStackRequest & WithDefaultSubnetId(DefaultSubnetIdT &&value)
void SetAgentVersion(AgentVersionT &&value)
void SetHostnameTheme(HostnameThemeT &&value)
void SetDefaultInstanceProfileArn(DefaultInstanceProfileArnT &&value)
void SetDefaultSshKeyName(DefaultSshKeyNameT &&value)
const Aws::String & GetDefaultInstanceProfileArn() const
void SetDefaultRootDeviceType(RootDeviceType value)
virtual const char * GetServiceRequestName() const override
UpdateStackRequest & WithStackId(StackIdT &&value)
void SetServiceRoleArn(ServiceRoleArnT &&value)
UpdateStackRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
UpdateStackRequest & WithChefConfiguration(ChefConfigurationT &&value)
UpdateStackRequest & WithAgentVersion(AgentVersionT &&value)
void SetDefaultSubnetId(DefaultSubnetIdT &&value)
const Aws::String & GetServiceRoleArn() const
void SetChefConfiguration(ChefConfigurationT &&value)
const Aws::String & GetHostnameTheme() const
UpdateStackRequest & WithDefaultOs(DefaultOsT &&value)
const StackConfigurationManager & GetConfigurationManager() const
AWS_OPSWORKS_API UpdateStackRequest()=default
UpdateStackRequest & WithDefaultRootDeviceType(RootDeviceType value)
const Aws::String & GetDefaultSshKeyName() const
void SetCustomCookbooksSource(CustomCookbooksSourceT &&value)
UpdateStackRequest & WithDefaultSshKeyName(DefaultSshKeyNameT &&value)
UpdateStackRequest & WithCustomJson(CustomJsonT &&value)
UpdateStackRequest & WithCustomCookbooksSource(CustomCookbooksSourceT &&value)
UpdateStackRequest & WithName(NameT &&value)
const ChefConfiguration & GetChefConfiguration() const
UpdateStackRequest & WithUseOpsworksSecurityGroups(bool value)
UpdateStackRequest & WithConfigurationManager(ConfigurationManagerT &&value)
UpdateStackRequest & WithDefaultAvailabilityZone(DefaultAvailabilityZoneT &&value)
const Aws::String & GetDefaultSubnetId() const
UpdateStackRequest & WithDefaultInstanceProfileArn(DefaultInstanceProfileArnT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
const Aws::String & GetAgentVersion() const
const Aws::String & GetDefaultAvailabilityZone() const
UpdateStackRequest & WithAttributes(AttributesT &&value)
const Aws::Map< StackAttributesKeys, Aws::String > & GetAttributes() const
UpdateStackRequest & WithUseCustomCookbooks(bool value)
void SetDefaultAvailabilityZone(DefaultAvailabilityZoneT &&value)
void SetConfigurationManager(ConfigurationManagerT &&value)
UpdateStackRequest & AddAttributes(StackAttributesKeys key, Aws::String value)
UpdateStackRequest & WithHostnameTheme(HostnameThemeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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