AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateStackRequest.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 CreateStackRequest() = 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 "CreateStack"; }
37
38 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateStackRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
79 inline const Aws::String& GetRegion() const { return m_region; }
80 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
81 template<typename RegionT = Aws::String>
82 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
83 template<typename RegionT = Aws::String>
84 CreateStackRequest& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
86
88
110 inline const Aws::String& GetVpcId() const { return m_vpcId; }
111 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
112 template<typename VpcIdT = Aws::String>
113 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
114 template<typename VpcIdT = Aws::String>
115 CreateStackRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
117
119
123 inline const Aws::Map<StackAttributesKeys, Aws::String>& GetAttributes() const { return m_attributes; }
124 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
125 template<typename AttributesT = Aws::Map<StackAttributesKeys, Aws::String>>
126 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
127 template<typename AttributesT = Aws::Map<StackAttributesKeys, Aws::String>>
128 CreateStackRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
130 m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this;
131 }
133
135
143 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
144 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
145 template<typename ServiceRoleArnT = Aws::String>
146 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
147 template<typename ServiceRoleArnT = Aws::String>
148 CreateStackRequest& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
150
152
159 inline const Aws::String& GetDefaultInstanceProfileArn() const { return m_defaultInstanceProfileArn; }
160 inline bool DefaultInstanceProfileArnHasBeenSet() const { return m_defaultInstanceProfileArnHasBeenSet; }
161 template<typename DefaultInstanceProfileArnT = Aws::String>
162 void SetDefaultInstanceProfileArn(DefaultInstanceProfileArnT&& value) { m_defaultInstanceProfileArnHasBeenSet = true; m_defaultInstanceProfileArn = std::forward<DefaultInstanceProfileArnT>(value); }
163 template<typename DefaultInstanceProfileArnT = Aws::String>
164 CreateStackRequest& WithDefaultInstanceProfileArn(DefaultInstanceProfileArnT&& value) { SetDefaultInstanceProfileArn(std::forward<DefaultInstanceProfileArnT>(value)); return *this;}
166
168
194 inline const Aws::String& GetDefaultOs() const { return m_defaultOs; }
195 inline bool DefaultOsHasBeenSet() const { return m_defaultOsHasBeenSet; }
196 template<typename DefaultOsT = Aws::String>
197 void SetDefaultOs(DefaultOsT&& value) { m_defaultOsHasBeenSet = true; m_defaultOs = std::forward<DefaultOsT>(value); }
198 template<typename DefaultOsT = Aws::String>
199 CreateStackRequest& WithDefaultOs(DefaultOsT&& value) { SetDefaultOs(std::forward<DefaultOsT>(value)); return *this;}
201
203
220 inline const Aws::String& GetHostnameTheme() const { return m_hostnameTheme; }
221 inline bool HostnameThemeHasBeenSet() const { return m_hostnameThemeHasBeenSet; }
222 template<typename HostnameThemeT = Aws::String>
223 void SetHostnameTheme(HostnameThemeT&& value) { m_hostnameThemeHasBeenSet = true; m_hostnameTheme = std::forward<HostnameThemeT>(value); }
224 template<typename HostnameThemeT = Aws::String>
225 CreateStackRequest& WithHostnameTheme(HostnameThemeT&& value) { SetHostnameTheme(std::forward<HostnameThemeT>(value)); return *this;}
227
229
237 inline const Aws::String& GetDefaultAvailabilityZone() const { return m_defaultAvailabilityZone; }
238 inline bool DefaultAvailabilityZoneHasBeenSet() const { return m_defaultAvailabilityZoneHasBeenSet; }
239 template<typename DefaultAvailabilityZoneT = Aws::String>
240 void SetDefaultAvailabilityZone(DefaultAvailabilityZoneT&& value) { m_defaultAvailabilityZoneHasBeenSet = true; m_defaultAvailabilityZone = std::forward<DefaultAvailabilityZoneT>(value); }
241 template<typename DefaultAvailabilityZoneT = Aws::String>
242 CreateStackRequest& WithDefaultAvailabilityZone(DefaultAvailabilityZoneT&& value) { SetDefaultAvailabilityZone(std::forward<DefaultAvailabilityZoneT>(value)); return *this;}
244
246
254 inline const Aws::String& GetDefaultSubnetId() const { return m_defaultSubnetId; }
255 inline bool DefaultSubnetIdHasBeenSet() const { return m_defaultSubnetIdHasBeenSet; }
256 template<typename DefaultSubnetIdT = Aws::String>
257 void SetDefaultSubnetId(DefaultSubnetIdT&& value) { m_defaultSubnetIdHasBeenSet = true; m_defaultSubnetId = std::forward<DefaultSubnetIdT>(value); }
258 template<typename DefaultSubnetIdT = Aws::String>
259 CreateStackRequest& WithDefaultSubnetId(DefaultSubnetIdT&& value) { SetDefaultSubnetId(std::forward<DefaultSubnetIdT>(value)); return *this;}
261
263
272 inline const Aws::String& GetCustomJson() const { return m_customJson; }
273 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
274 template<typename CustomJsonT = Aws::String>
275 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet = true; m_customJson = std::forward<CustomJsonT>(value); }
276 template<typename CustomJsonT = Aws::String>
277 CreateStackRequest& WithCustomJson(CustomJsonT&& value) { SetCustomJson(std::forward<CustomJsonT>(value)); return *this;}
279
281
287 inline const StackConfigurationManager& GetConfigurationManager() const { return m_configurationManager; }
288 inline bool ConfigurationManagerHasBeenSet() const { return m_configurationManagerHasBeenSet; }
289 template<typename ConfigurationManagerT = StackConfigurationManager>
290 void SetConfigurationManager(ConfigurationManagerT&& value) { m_configurationManagerHasBeenSet = true; m_configurationManager = std::forward<ConfigurationManagerT>(value); }
291 template<typename ConfigurationManagerT = StackConfigurationManager>
292 CreateStackRequest& WithConfigurationManager(ConfigurationManagerT&& value) { SetConfigurationManager(std::forward<ConfigurationManagerT>(value)); return *this;}
294
296
303 inline const ChefConfiguration& GetChefConfiguration() const { return m_chefConfiguration; }
304 inline bool ChefConfigurationHasBeenSet() const { return m_chefConfigurationHasBeenSet; }
305 template<typename ChefConfigurationT = ChefConfiguration>
306 void SetChefConfiguration(ChefConfigurationT&& value) { m_chefConfigurationHasBeenSet = true; m_chefConfiguration = std::forward<ChefConfigurationT>(value); }
307 template<typename ChefConfigurationT = ChefConfiguration>
308 CreateStackRequest& WithChefConfiguration(ChefConfigurationT&& value) { SetChefConfiguration(std::forward<ChefConfigurationT>(value)); return *this;}
310
312
315 inline bool GetUseCustomCookbooks() const { return m_useCustomCookbooks; }
316 inline bool UseCustomCookbooksHasBeenSet() const { return m_useCustomCookbooksHasBeenSet; }
317 inline void SetUseCustomCookbooks(bool value) { m_useCustomCookbooksHasBeenSet = true; m_useCustomCookbooks = value; }
318 inline CreateStackRequest& WithUseCustomCookbooks(bool value) { SetUseCustomCookbooks(value); return *this;}
320
322
341 inline bool GetUseOpsworksSecurityGroups() const { return m_useOpsworksSecurityGroups; }
342 inline bool UseOpsworksSecurityGroupsHasBeenSet() const { return m_useOpsworksSecurityGroupsHasBeenSet; }
343 inline void SetUseOpsworksSecurityGroups(bool value) { m_useOpsworksSecurityGroupsHasBeenSet = true; m_useOpsworksSecurityGroups = value; }
346
348
356 inline const Source& GetCustomCookbooksSource() const { return m_customCookbooksSource; }
357 inline bool CustomCookbooksSourceHasBeenSet() const { return m_customCookbooksSourceHasBeenSet; }
358 template<typename CustomCookbooksSourceT = Source>
359 void SetCustomCookbooksSource(CustomCookbooksSourceT&& value) { m_customCookbooksSourceHasBeenSet = true; m_customCookbooksSource = std::forward<CustomCookbooksSourceT>(value); }
360 template<typename CustomCookbooksSourceT = Source>
361 CreateStackRequest& WithCustomCookbooksSource(CustomCookbooksSourceT&& value) { SetCustomCookbooksSource(std::forward<CustomCookbooksSourceT>(value)); return *this;}
363
365
378 inline const Aws::String& GetDefaultSshKeyName() const { return m_defaultSshKeyName; }
379 inline bool DefaultSshKeyNameHasBeenSet() const { return m_defaultSshKeyNameHasBeenSet; }
380 template<typename DefaultSshKeyNameT = Aws::String>
381 void SetDefaultSshKeyName(DefaultSshKeyNameT&& value) { m_defaultSshKeyNameHasBeenSet = true; m_defaultSshKeyName = std::forward<DefaultSshKeyNameT>(value); }
382 template<typename DefaultSshKeyNameT = Aws::String>
383 CreateStackRequest& WithDefaultSshKeyName(DefaultSshKeyNameT&& value) { SetDefaultSshKeyName(std::forward<DefaultSshKeyNameT>(value)); return *this;}
385
387
394 inline RootDeviceType GetDefaultRootDeviceType() const { return m_defaultRootDeviceType; }
395 inline bool DefaultRootDeviceTypeHasBeenSet() const { return m_defaultRootDeviceTypeHasBeenSet; }
396 inline void SetDefaultRootDeviceType(RootDeviceType value) { m_defaultRootDeviceTypeHasBeenSet = true; m_defaultRootDeviceType = value; }
399
401
416 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
417 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
418 template<typename AgentVersionT = Aws::String>
419 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
420 template<typename AgentVersionT = Aws::String>
421 CreateStackRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
423 private:
424
425 Aws::String m_name;
426 bool m_nameHasBeenSet = false;
427
428 Aws::String m_region;
429 bool m_regionHasBeenSet = false;
430
431 Aws::String m_vpcId;
432 bool m_vpcIdHasBeenSet = false;
433
435 bool m_attributesHasBeenSet = false;
436
437 Aws::String m_serviceRoleArn;
438 bool m_serviceRoleArnHasBeenSet = false;
439
440 Aws::String m_defaultInstanceProfileArn;
441 bool m_defaultInstanceProfileArnHasBeenSet = false;
442
443 Aws::String m_defaultOs;
444 bool m_defaultOsHasBeenSet = false;
445
446 Aws::String m_hostnameTheme;
447 bool m_hostnameThemeHasBeenSet = false;
448
449 Aws::String m_defaultAvailabilityZone;
450 bool m_defaultAvailabilityZoneHasBeenSet = false;
451
452 Aws::String m_defaultSubnetId;
453 bool m_defaultSubnetIdHasBeenSet = false;
454
455 Aws::String m_customJson;
456 bool m_customJsonHasBeenSet = false;
457
458 StackConfigurationManager m_configurationManager;
459 bool m_configurationManagerHasBeenSet = false;
460
461 ChefConfiguration m_chefConfiguration;
462 bool m_chefConfigurationHasBeenSet = false;
463
464 bool m_useCustomCookbooks{false};
465 bool m_useCustomCookbooksHasBeenSet = false;
466
467 bool m_useOpsworksSecurityGroups{false};
468 bool m_useOpsworksSecurityGroupsHasBeenSet = false;
469
470 Source m_customCookbooksSource;
471 bool m_customCookbooksSourceHasBeenSet = false;
472
473 Aws::String m_defaultSshKeyName;
474 bool m_defaultSshKeyNameHasBeenSet = false;
475
476 RootDeviceType m_defaultRootDeviceType{RootDeviceType::NOT_SET};
477 bool m_defaultRootDeviceTypeHasBeenSet = false;
478
479 Aws::String m_agentVersion;
480 bool m_agentVersionHasBeenSet = false;
481 };
482
483} // namespace Model
484} // namespace OpsWorks
485} // namespace Aws
void SetChefConfiguration(ChefConfigurationT &&value)
const Aws::String & GetDefaultAvailabilityZone() const
CreateStackRequest & WithChefConfiguration(ChefConfigurationT &&value)
CreateStackRequest & WithVpcId(VpcIdT &&value)
CreateStackRequest & WithUseCustomCookbooks(bool value)
CreateStackRequest & WithDefaultSshKeyName(DefaultSshKeyNameT &&value)
CreateStackRequest & WithHostnameTheme(HostnameThemeT &&value)
CreateStackRequest & WithAgentVersion(AgentVersionT &&value)
const Aws::Map< StackAttributesKeys, Aws::String > & GetAttributes() const
void SetDefaultRootDeviceType(RootDeviceType value)
CreateStackRequest & WithCustomCookbooksSource(CustomCookbooksSourceT &&value)
void SetDefaultInstanceProfileArn(DefaultInstanceProfileArnT &&value)
const Aws::String & GetDefaultSshKeyName() const
CreateStackRequest & WithConfigurationManager(ConfigurationManagerT &&value)
CreateStackRequest & WithDefaultAvailabilityZone(DefaultAvailabilityZoneT &&value)
const ChefConfiguration & GetChefConfiguration() const
void SetCustomCookbooksSource(CustomCookbooksSourceT &&value)
CreateStackRequest & WithCustomJson(CustomJsonT &&value)
CreateStackRequest & WithName(NameT &&value)
CreateStackRequest & WithDefaultSubnetId(DefaultSubnetIdT &&value)
CreateStackRequest & WithUseOpsworksSecurityGroups(bool value)
CreateStackRequest & WithAttributes(AttributesT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
const Aws::String & GetServiceRoleArn() const
void SetConfigurationManager(ConfigurationManagerT &&value)
void SetHostnameTheme(HostnameThemeT &&value)
const Aws::String & GetAgentVersion() const
const Aws::String & GetDefaultSubnetId() const
AWS_OPSWORKS_API CreateStackRequest()=default
const Aws::String & GetHostnameTheme() const
CreateStackRequest & WithDefaultInstanceProfileArn(DefaultInstanceProfileArnT &&value)
CreateStackRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
CreateStackRequest & WithRegion(RegionT &&value)
void SetServiceRoleArn(ServiceRoleArnT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetDefaultAvailabilityZone(DefaultAvailabilityZoneT &&value)
CreateStackRequest & WithDefaultOs(DefaultOsT &&value)
CreateStackRequest & WithDefaultRootDeviceType(RootDeviceType value)
CreateStackRequest & AddAttributes(StackAttributesKeys key, Aws::String value)
const StackConfigurationManager & GetConfigurationManager() const
void SetDefaultSubnetId(DefaultSubnetIdT &&value)
void SetAgentVersion(AgentVersionT &&value)
void SetDefaultSshKeyName(DefaultSshKeyNameT &&value)
const Aws::String & GetDefaultInstanceProfileArn() const
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