AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CloneStackRequest.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/core/utils/memory/stl/AWSVector.h>
15#include <aws/opsworks/model/RootDeviceType.h>
16#include <aws/opsworks/model/StackAttributesKeys.h>
17#include <utility>
18
19namespace Aws
20{
21namespace OpsWorks
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_OPSWORKS_API CloneStackRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CloneStack"; }
38
39 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetSourceStackId() const { return m_sourceStackId; }
49 inline bool SourceStackIdHasBeenSet() const { return m_sourceStackIdHasBeenSet; }
50 template<typename SourceStackIdT = Aws::String>
51 void SetSourceStackId(SourceStackIdT&& value) { m_sourceStackIdHasBeenSet = true; m_sourceStackId = std::forward<SourceStackIdT>(value); }
52 template<typename SourceStackIdT = Aws::String>
53 CloneStackRequest& WithSourceStackId(SourceStackIdT&& value) { SetSourceStackId(std::forward<SourceStackIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 CloneStackRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
76 inline const Aws::String& GetRegion() const { return m_region; }
77 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
78 template<typename RegionT = Aws::String>
79 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
80 template<typename RegionT = Aws::String>
81 CloneStackRequest& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
83
85
107 inline const Aws::String& GetVpcId() const { return m_vpcId; }
108 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
109 template<typename VpcIdT = Aws::String>
110 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
111 template<typename VpcIdT = Aws::String>
112 CloneStackRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
114
116
120 inline const Aws::Map<StackAttributesKeys, Aws::String>& GetAttributes() const { return m_attributes; }
121 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
122 template<typename AttributesT = Aws::Map<StackAttributesKeys, Aws::String>>
123 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
124 template<typename AttributesT = Aws::Map<StackAttributesKeys, Aws::String>>
125 CloneStackRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
127 m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this;
128 }
130
132
145 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
146 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
147 template<typename ServiceRoleArnT = Aws::String>
148 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
149 template<typename ServiceRoleArnT = Aws::String>
150 CloneStackRequest& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
152
154
161 inline const Aws::String& GetDefaultInstanceProfileArn() const { return m_defaultInstanceProfileArn; }
162 inline bool DefaultInstanceProfileArnHasBeenSet() const { return m_defaultInstanceProfileArnHasBeenSet; }
163 template<typename DefaultInstanceProfileArnT = Aws::String>
164 void SetDefaultInstanceProfileArn(DefaultInstanceProfileArnT&& value) { m_defaultInstanceProfileArnHasBeenSet = true; m_defaultInstanceProfileArn = std::forward<DefaultInstanceProfileArnT>(value); }
165 template<typename DefaultInstanceProfileArnT = Aws::String>
166 CloneStackRequest& WithDefaultInstanceProfileArn(DefaultInstanceProfileArnT&& value) { SetDefaultInstanceProfileArn(std::forward<DefaultInstanceProfileArnT>(value)); return *this;}
168
170
196 inline const Aws::String& GetDefaultOs() const { return m_defaultOs; }
197 inline bool DefaultOsHasBeenSet() const { return m_defaultOsHasBeenSet; }
198 template<typename DefaultOsT = Aws::String>
199 void SetDefaultOs(DefaultOsT&& value) { m_defaultOsHasBeenSet = true; m_defaultOs = std::forward<DefaultOsT>(value); }
200 template<typename DefaultOsT = Aws::String>
201 CloneStackRequest& WithDefaultOs(DefaultOsT&& value) { SetDefaultOs(std::forward<DefaultOsT>(value)); return *this;}
203
205
222 inline const Aws::String& GetHostnameTheme() const { return m_hostnameTheme; }
223 inline bool HostnameThemeHasBeenSet() const { return m_hostnameThemeHasBeenSet; }
224 template<typename HostnameThemeT = Aws::String>
225 void SetHostnameTheme(HostnameThemeT&& value) { m_hostnameThemeHasBeenSet = true; m_hostnameTheme = std::forward<HostnameThemeT>(value); }
226 template<typename HostnameThemeT = Aws::String>
227 CloneStackRequest& WithHostnameTheme(HostnameThemeT&& value) { SetHostnameTheme(std::forward<HostnameThemeT>(value)); return *this;}
229
231
239 inline const Aws::String& GetDefaultAvailabilityZone() const { return m_defaultAvailabilityZone; }
240 inline bool DefaultAvailabilityZoneHasBeenSet() const { return m_defaultAvailabilityZoneHasBeenSet; }
241 template<typename DefaultAvailabilityZoneT = Aws::String>
242 void SetDefaultAvailabilityZone(DefaultAvailabilityZoneT&& value) { m_defaultAvailabilityZoneHasBeenSet = true; m_defaultAvailabilityZone = std::forward<DefaultAvailabilityZoneT>(value); }
243 template<typename DefaultAvailabilityZoneT = Aws::String>
244 CloneStackRequest& WithDefaultAvailabilityZone(DefaultAvailabilityZoneT&& value) { SetDefaultAvailabilityZone(std::forward<DefaultAvailabilityZoneT>(value)); return *this;}
246
248
256 inline const Aws::String& GetDefaultSubnetId() const { return m_defaultSubnetId; }
257 inline bool DefaultSubnetIdHasBeenSet() const { return m_defaultSubnetIdHasBeenSet; }
258 template<typename DefaultSubnetIdT = Aws::String>
259 void SetDefaultSubnetId(DefaultSubnetIdT&& value) { m_defaultSubnetIdHasBeenSet = true; m_defaultSubnetId = std::forward<DefaultSubnetIdT>(value); }
260 template<typename DefaultSubnetIdT = Aws::String>
261 CloneStackRequest& WithDefaultSubnetId(DefaultSubnetIdT&& value) { SetDefaultSubnetId(std::forward<DefaultSubnetIdT>(value)); return *this;}
263
265
273 inline const Aws::String& GetCustomJson() const { return m_customJson; }
274 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
275 template<typename CustomJsonT = Aws::String>
276 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet = true; m_customJson = std::forward<CustomJsonT>(value); }
277 template<typename CustomJsonT = Aws::String>
278 CloneStackRequest& WithCustomJson(CustomJsonT&& value) { SetCustomJson(std::forward<CustomJsonT>(value)); return *this;}
280
282
288 inline const StackConfigurationManager& GetConfigurationManager() const { return m_configurationManager; }
289 inline bool ConfigurationManagerHasBeenSet() const { return m_configurationManagerHasBeenSet; }
290 template<typename ConfigurationManagerT = StackConfigurationManager>
291 void SetConfigurationManager(ConfigurationManagerT&& value) { m_configurationManagerHasBeenSet = true; m_configurationManager = std::forward<ConfigurationManagerT>(value); }
292 template<typename ConfigurationManagerT = StackConfigurationManager>
293 CloneStackRequest& WithConfigurationManager(ConfigurationManagerT&& value) { SetConfigurationManager(std::forward<ConfigurationManagerT>(value)); return *this;}
295
297
304 inline const ChefConfiguration& GetChefConfiguration() const { return m_chefConfiguration; }
305 inline bool ChefConfigurationHasBeenSet() const { return m_chefConfigurationHasBeenSet; }
306 template<typename ChefConfigurationT = ChefConfiguration>
307 void SetChefConfiguration(ChefConfigurationT&& value) { m_chefConfigurationHasBeenSet = true; m_chefConfiguration = std::forward<ChefConfigurationT>(value); }
308 template<typename ChefConfigurationT = ChefConfiguration>
309 CloneStackRequest& WithChefConfiguration(ChefConfigurationT&& value) { SetChefConfiguration(std::forward<ChefConfigurationT>(value)); return *this;}
311
313
316 inline bool GetUseCustomCookbooks() const { return m_useCustomCookbooks; }
317 inline bool UseCustomCookbooksHasBeenSet() const { return m_useCustomCookbooksHasBeenSet; }
318 inline void SetUseCustomCookbooks(bool value) { m_useCustomCookbooksHasBeenSet = true; m_useCustomCookbooks = value; }
319 inline CloneStackRequest& WithUseCustomCookbooks(bool value) { SetUseCustomCookbooks(value); return *this;}
321
323
342 inline bool GetUseOpsworksSecurityGroups() const { return m_useOpsworksSecurityGroups; }
343 inline bool UseOpsworksSecurityGroupsHasBeenSet() const { return m_useOpsworksSecurityGroupsHasBeenSet; }
344 inline void SetUseOpsworksSecurityGroups(bool value) { m_useOpsworksSecurityGroupsHasBeenSet = true; m_useOpsworksSecurityGroups = value; }
347
349
357 inline const Source& GetCustomCookbooksSource() const { return m_customCookbooksSource; }
358 inline bool CustomCookbooksSourceHasBeenSet() const { return m_customCookbooksSourceHasBeenSet; }
359 template<typename CustomCookbooksSourceT = Source>
360 void SetCustomCookbooksSource(CustomCookbooksSourceT&& value) { m_customCookbooksSourceHasBeenSet = true; m_customCookbooksSource = std::forward<CustomCookbooksSourceT>(value); }
361 template<typename CustomCookbooksSourceT = Source>
362 CloneStackRequest& WithCustomCookbooksSource(CustomCookbooksSourceT&& value) { SetCustomCookbooksSource(std::forward<CustomCookbooksSourceT>(value)); return *this;}
364
366
379 inline const Aws::String& GetDefaultSshKeyName() const { return m_defaultSshKeyName; }
380 inline bool DefaultSshKeyNameHasBeenSet() const { return m_defaultSshKeyNameHasBeenSet; }
381 template<typename DefaultSshKeyNameT = Aws::String>
382 void SetDefaultSshKeyName(DefaultSshKeyNameT&& value) { m_defaultSshKeyNameHasBeenSet = true; m_defaultSshKeyName = std::forward<DefaultSshKeyNameT>(value); }
383 template<typename DefaultSshKeyNameT = Aws::String>
384 CloneStackRequest& WithDefaultSshKeyName(DefaultSshKeyNameT&& value) { SetDefaultSshKeyName(std::forward<DefaultSshKeyNameT>(value)); return *this;}
386
388
391 inline bool GetClonePermissions() const { return m_clonePermissions; }
392 inline bool ClonePermissionsHasBeenSet() const { return m_clonePermissionsHasBeenSet; }
393 inline void SetClonePermissions(bool value) { m_clonePermissionsHasBeenSet = true; m_clonePermissions = value; }
394 inline CloneStackRequest& WithClonePermissions(bool value) { SetClonePermissions(value); return *this;}
396
398
401 inline const Aws::Vector<Aws::String>& GetCloneAppIds() const { return m_cloneAppIds; }
402 inline bool CloneAppIdsHasBeenSet() const { return m_cloneAppIdsHasBeenSet; }
403 template<typename CloneAppIdsT = Aws::Vector<Aws::String>>
404 void SetCloneAppIds(CloneAppIdsT&& value) { m_cloneAppIdsHasBeenSet = true; m_cloneAppIds = std::forward<CloneAppIdsT>(value); }
405 template<typename CloneAppIdsT = Aws::Vector<Aws::String>>
406 CloneStackRequest& WithCloneAppIds(CloneAppIdsT&& value) { SetCloneAppIds(std::forward<CloneAppIdsT>(value)); return *this;}
407 template<typename CloneAppIdsT = Aws::String>
408 CloneStackRequest& AddCloneAppIds(CloneAppIdsT&& value) { m_cloneAppIdsHasBeenSet = true; m_cloneAppIds.emplace_back(std::forward<CloneAppIdsT>(value)); return *this; }
410
412
419 inline RootDeviceType GetDefaultRootDeviceType() const { return m_defaultRootDeviceType; }
420 inline bool DefaultRootDeviceTypeHasBeenSet() const { return m_defaultRootDeviceTypeHasBeenSet; }
421 inline void SetDefaultRootDeviceType(RootDeviceType value) { m_defaultRootDeviceTypeHasBeenSet = true; m_defaultRootDeviceType = value; }
424
426
441 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
442 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
443 template<typename AgentVersionT = Aws::String>
444 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
445 template<typename AgentVersionT = Aws::String>
446 CloneStackRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
448 private:
449
450 Aws::String m_sourceStackId;
451 bool m_sourceStackIdHasBeenSet = false;
452
453 Aws::String m_name;
454 bool m_nameHasBeenSet = false;
455
456 Aws::String m_region;
457 bool m_regionHasBeenSet = false;
458
459 Aws::String m_vpcId;
460 bool m_vpcIdHasBeenSet = false;
461
463 bool m_attributesHasBeenSet = false;
464
465 Aws::String m_serviceRoleArn;
466 bool m_serviceRoleArnHasBeenSet = false;
467
468 Aws::String m_defaultInstanceProfileArn;
469 bool m_defaultInstanceProfileArnHasBeenSet = false;
470
471 Aws::String m_defaultOs;
472 bool m_defaultOsHasBeenSet = false;
473
474 Aws::String m_hostnameTheme;
475 bool m_hostnameThemeHasBeenSet = false;
476
477 Aws::String m_defaultAvailabilityZone;
478 bool m_defaultAvailabilityZoneHasBeenSet = false;
479
480 Aws::String m_defaultSubnetId;
481 bool m_defaultSubnetIdHasBeenSet = false;
482
483 Aws::String m_customJson;
484 bool m_customJsonHasBeenSet = false;
485
486 StackConfigurationManager m_configurationManager;
487 bool m_configurationManagerHasBeenSet = false;
488
489 ChefConfiguration m_chefConfiguration;
490 bool m_chefConfigurationHasBeenSet = false;
491
492 bool m_useCustomCookbooks{false};
493 bool m_useCustomCookbooksHasBeenSet = false;
494
495 bool m_useOpsworksSecurityGroups{false};
496 bool m_useOpsworksSecurityGroupsHasBeenSet = false;
497
498 Source m_customCookbooksSource;
499 bool m_customCookbooksSourceHasBeenSet = false;
500
501 Aws::String m_defaultSshKeyName;
502 bool m_defaultSshKeyNameHasBeenSet = false;
503
504 bool m_clonePermissions{false};
505 bool m_clonePermissionsHasBeenSet = false;
506
507 Aws::Vector<Aws::String> m_cloneAppIds;
508 bool m_cloneAppIdsHasBeenSet = false;
509
510 RootDeviceType m_defaultRootDeviceType{RootDeviceType::NOT_SET};
511 bool m_defaultRootDeviceTypeHasBeenSet = false;
512
513 Aws::String m_agentVersion;
514 bool m_agentVersionHasBeenSet = false;
515 };
516
517} // namespace Model
518} // namespace OpsWorks
519} // namespace Aws
const Aws::String & GetDefaultInstanceProfileArn() const
CloneStackRequest & WithUseCustomCookbooks(bool value)
const StackConfigurationManager & GetConfigurationManager() const
CloneStackRequest & WithVpcId(VpcIdT &&value)
CloneStackRequest & WithConfigurationManager(ConfigurationManagerT &&value)
CloneStackRequest & WithSourceStackId(SourceStackIdT &&value)
CloneStackRequest & WithChefConfiguration(ChefConfigurationT &&value)
CloneStackRequest & WithDefaultSubnetId(DefaultSubnetIdT &&value)
void SetSourceStackId(SourceStackIdT &&value)
void SetDefaultSubnetId(DefaultSubnetIdT &&value)
void SetDefaultInstanceProfileArn(DefaultInstanceProfileArnT &&value)
CloneStackRequest & WithCustomJson(CustomJsonT &&value)
void SetCustomCookbooksSource(CustomCookbooksSourceT &&value)
const Aws::String & GetDefaultAvailabilityZone() const
CloneStackRequest & WithCloneAppIds(CloneAppIdsT &&value)
const Aws::String & GetDefaultSubnetId() const
const Aws::String & GetRegion() const
void SetDefaultRootDeviceType(RootDeviceType value)
CloneStackRequest & WithUseOpsworksSecurityGroups(bool value)
CloneStackRequest & WithAgentVersion(AgentVersionT &&value)
CloneStackRequest & WithName(NameT &&value)
const Aws::String & GetDefaultSshKeyName() const
CloneStackRequest & WithDefaultInstanceProfileArn(DefaultInstanceProfileArnT &&value)
CloneStackRequest & WithClonePermissions(bool value)
const Aws::String & GetServiceRoleArn() const
CloneStackRequest & WithDefaultOs(DefaultOsT &&value)
void SetDefaultAvailabilityZone(DefaultAvailabilityZoneT &&value)
CloneStackRequest & WithCustomCookbooksSource(CustomCookbooksSourceT &&value)
const Aws::Vector< Aws::String > & GetCloneAppIds() const
void SetHostnameTheme(HostnameThemeT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
void SetConfigurationManager(ConfigurationManagerT &&value)
void SetServiceRoleArn(ServiceRoleArnT &&value)
CloneStackRequest & AddAttributes(StackAttributesKeys key, Aws::String value)
CloneStackRequest & AddCloneAppIds(CloneAppIdsT &&value)
virtual const char * GetServiceRequestName() const override
CloneStackRequest & WithDefaultRootDeviceType(RootDeviceType value)
AWS_OPSWORKS_API CloneStackRequest()=default
void SetAgentVersion(AgentVersionT &&value)
const Aws::String & GetAgentVersion() const
CloneStackRequest & WithDefaultAvailabilityZone(DefaultAvailabilityZoneT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CloneStackRequest & WithRegion(RegionT &&value)
const Aws::String & GetSourceStackId() const
CloneStackRequest & WithAttributes(AttributesT &&value)
void SetCloneAppIds(CloneAppIdsT &&value)
const Aws::String & GetHostnameTheme() const
const Aws::String & GetCustomJson() const
const ChefConfiguration & GetChefConfiguration() const
CloneStackRequest & WithDefaultSshKeyName(DefaultSshKeyNameT &&value)
CloneStackRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
void SetChefConfiguration(ChefConfigurationT &&value)
CloneStackRequest & WithHostnameTheme(HostnameThemeT &&value)
const Aws::Map< StackAttributesKeys, Aws::String > & GetAttributes() const
void SetDefaultSshKeyName(DefaultSshKeyNameT &&value)
const Aws::String & GetDefaultOs() 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
std::vector< T, Aws::Allocator< T > > Vector