AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateStackRefactorRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/CloudFormationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/ResourceMapping.h>
12#include <aws/cloudformation/model/StackDefinition.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudFormation
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDFORMATION_API CreateStackRefactorRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateStackRefactor"; }
34
35 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 template<typename DescriptionT = Aws::String>
49 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
50 template<typename DescriptionT = Aws::String>
51 CreateStackRefactorRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
53
55
58 inline bool GetEnableStackCreation() const { return m_enableStackCreation; }
59 inline bool EnableStackCreationHasBeenSet() const { return m_enableStackCreationHasBeenSet; }
60 inline void SetEnableStackCreation(bool value) { m_enableStackCreationHasBeenSet = true; m_enableStackCreation = value; }
63
65
69 inline const Aws::Vector<ResourceMapping>& GetResourceMappings() const { return m_resourceMappings; }
70 inline bool ResourceMappingsHasBeenSet() const { return m_resourceMappingsHasBeenSet; }
71 template<typename ResourceMappingsT = Aws::Vector<ResourceMapping>>
72 void SetResourceMappings(ResourceMappingsT&& value) { m_resourceMappingsHasBeenSet = true; m_resourceMappings = std::forward<ResourceMappingsT>(value); }
73 template<typename ResourceMappingsT = Aws::Vector<ResourceMapping>>
74 CreateStackRefactorRequest& WithResourceMappings(ResourceMappingsT&& value) { SetResourceMappings(std::forward<ResourceMappingsT>(value)); return *this;}
75 template<typename ResourceMappingsT = ResourceMapping>
76 CreateStackRefactorRequest& AddResourceMappings(ResourceMappingsT&& value) { m_resourceMappingsHasBeenSet = true; m_resourceMappings.emplace_back(std::forward<ResourceMappingsT>(value)); return *this; }
78
80
83 inline const Aws::Vector<StackDefinition>& GetStackDefinitions() const { return m_stackDefinitions; }
84 inline bool StackDefinitionsHasBeenSet() const { return m_stackDefinitionsHasBeenSet; }
85 template<typename StackDefinitionsT = Aws::Vector<StackDefinition>>
86 void SetStackDefinitions(StackDefinitionsT&& value) { m_stackDefinitionsHasBeenSet = true; m_stackDefinitions = std::forward<StackDefinitionsT>(value); }
87 template<typename StackDefinitionsT = Aws::Vector<StackDefinition>>
88 CreateStackRefactorRequest& WithStackDefinitions(StackDefinitionsT&& value) { SetStackDefinitions(std::forward<StackDefinitionsT>(value)); return *this;}
89 template<typename StackDefinitionsT = StackDefinition>
90 CreateStackRefactorRequest& AddStackDefinitions(StackDefinitionsT&& value) { m_stackDefinitionsHasBeenSet = true; m_stackDefinitions.emplace_back(std::forward<StackDefinitionsT>(value)); return *this; }
92 private:
93
94 Aws::String m_description;
95 bool m_descriptionHasBeenSet = false;
96
97 bool m_enableStackCreation{false};
98 bool m_enableStackCreationHasBeenSet = false;
99
100 Aws::Vector<ResourceMapping> m_resourceMappings;
101 bool m_resourceMappingsHasBeenSet = false;
102
103 Aws::Vector<StackDefinition> m_stackDefinitions;
104 bool m_stackDefinitionsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CloudFormation
109} // namespace Aws
CreateStackRefactorRequest & WithStackDefinitions(StackDefinitionsT &&value)
CreateStackRefactorRequest & AddStackDefinitions(StackDefinitionsT &&value)
CreateStackRefactorRequest & WithResourceMappings(ResourceMappingsT &&value)
AWS_CLOUDFORMATION_API CreateStackRefactorRequest()=default
const Aws::Vector< ResourceMapping > & GetResourceMappings() const
CreateStackRefactorRequest & AddResourceMappings(ResourceMappingsT &&value)
const Aws::Vector< StackDefinition > & GetStackDefinitions() const
CreateStackRefactorRequest & WithEnableStackCreation(bool value)
CreateStackRefactorRequest & WithDescription(DescriptionT &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector