AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
UpdateGeneratedTemplateRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/cloudformation/model/ResourceDefinition.h>
10#include <aws/cloudformation/model/TemplateConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudFormation {
18namespace Model {
19
23 public:
24 AWS_CLOUDFORMATION_API UpdateGeneratedTemplateRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateGeneratedTemplate"; }
31
32 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetGeneratedTemplateName() const { return m_generatedTemplateName; }
43 inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; }
44 template <typename GeneratedTemplateNameT = Aws::String>
45 void SetGeneratedTemplateName(GeneratedTemplateNameT&& value) {
46 m_generatedTemplateNameHasBeenSet = true;
47 m_generatedTemplateName = std::forward<GeneratedTemplateNameT>(value);
48 }
49 template <typename GeneratedTemplateNameT = Aws::String>
51 SetGeneratedTemplateName(std::forward<GeneratedTemplateNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetNewGeneratedTemplateName() const { return m_newGeneratedTemplateName; }
61 inline bool NewGeneratedTemplateNameHasBeenSet() const { return m_newGeneratedTemplateNameHasBeenSet; }
62 template <typename NewGeneratedTemplateNameT = Aws::String>
63 void SetNewGeneratedTemplateName(NewGeneratedTemplateNameT&& value) {
64 m_newGeneratedTemplateNameHasBeenSet = true;
65 m_newGeneratedTemplateName = std::forward<NewGeneratedTemplateNameT>(value);
66 }
67 template <typename NewGeneratedTemplateNameT = Aws::String>
69 SetNewGeneratedTemplateName(std::forward<NewGeneratedTemplateNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<ResourceDefinition>& GetAddResources() const { return m_addResources; }
79 inline bool AddResourcesHasBeenSet() const { return m_addResourcesHasBeenSet; }
80 template <typename AddResourcesT = Aws::Vector<ResourceDefinition>>
81 void SetAddResources(AddResourcesT&& value) {
82 m_addResourcesHasBeenSet = true;
83 m_addResources = std::forward<AddResourcesT>(value);
84 }
85 template <typename AddResourcesT = Aws::Vector<ResourceDefinition>>
87 SetAddResources(std::forward<AddResourcesT>(value));
88 return *this;
89 }
90 template <typename AddResourcesT = ResourceDefinition>
92 m_addResourcesHasBeenSet = true;
93 m_addResources.emplace_back(std::forward<AddResourcesT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Vector<Aws::String>& GetRemoveResources() const { return m_removeResources; }
104 inline bool RemoveResourcesHasBeenSet() const { return m_removeResourcesHasBeenSet; }
105 template <typename RemoveResourcesT = Aws::Vector<Aws::String>>
106 void SetRemoveResources(RemoveResourcesT&& value) {
107 m_removeResourcesHasBeenSet = true;
108 m_removeResources = std::forward<RemoveResourcesT>(value);
109 }
110 template <typename RemoveResourcesT = Aws::Vector<Aws::String>>
112 SetRemoveResources(std::forward<RemoveResourcesT>(value));
113 return *this;
114 }
115 template <typename RemoveResourcesT = Aws::String>
117 m_removeResourcesHasBeenSet = true;
118 m_removeResources.emplace_back(std::forward<RemoveResourcesT>(value));
119 return *this;
120 }
122
124
131 inline bool GetRefreshAllResources() const { return m_refreshAllResources; }
132 inline bool RefreshAllResourcesHasBeenSet() const { return m_refreshAllResourcesHasBeenSet; }
133 inline void SetRefreshAllResources(bool value) {
134 m_refreshAllResourcesHasBeenSet = true;
135 m_refreshAllResources = value;
136 }
139 return *this;
140 }
142
144
148 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
149 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
150 template <typename TemplateConfigurationT = TemplateConfiguration>
151 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
152 m_templateConfigurationHasBeenSet = true;
153 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
154 }
155 template <typename TemplateConfigurationT = TemplateConfiguration>
157 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_generatedTemplateName;
163
164 Aws::String m_newGeneratedTemplateName;
165
166 Aws::Vector<ResourceDefinition> m_addResources;
167
168 Aws::Vector<Aws::String> m_removeResources;
169
170 bool m_refreshAllResources{false};
171
172 TemplateConfiguration m_templateConfiguration;
173 bool m_generatedTemplateNameHasBeenSet = false;
174 bool m_newGeneratedTemplateNameHasBeenSet = false;
175 bool m_addResourcesHasBeenSet = false;
176 bool m_removeResourcesHasBeenSet = false;
177 bool m_refreshAllResourcesHasBeenSet = false;
178 bool m_templateConfigurationHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace CloudFormation
183} // namespace Aws
AWS_CLOUDFORMATION_API UpdateGeneratedTemplateRequest()=default
UpdateGeneratedTemplateRequest & WithTemplateConfiguration(TemplateConfigurationT &&value)
const Aws::Vector< ResourceDefinition > & GetAddResources() const
UpdateGeneratedTemplateRequest & WithRemoveResources(RemoveResourcesT &&value)
UpdateGeneratedTemplateRequest & AddRemoveResources(RemoveResourcesT &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
UpdateGeneratedTemplateRequest & AddAddResources(AddResourcesT &&value)
UpdateGeneratedTemplateRequest & WithNewGeneratedTemplateName(NewGeneratedTemplateNameT &&value)
UpdateGeneratedTemplateRequest & WithGeneratedTemplateName(GeneratedTemplateNameT &&value)
UpdateGeneratedTemplateRequest & WithAddResources(AddResourcesT &&value)
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