AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateGeneratedTemplateRequest.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 CreateGeneratedTemplateRequest() = 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 "CreateGeneratedTemplate"; }
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
45 inline const Aws::Vector<ResourceDefinition>& GetResources() const { return m_resources; }
46 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
47 template <typename ResourcesT = Aws::Vector<ResourceDefinition>>
48 void SetResources(ResourcesT&& value) {
49 m_resourcesHasBeenSet = true;
50 m_resources = std::forward<ResourcesT>(value);
51 }
52 template <typename ResourcesT = Aws::Vector<ResourceDefinition>>
54 SetResources(std::forward<ResourcesT>(value));
55 return *this;
56 }
57 template <typename ResourcesT = ResourceDefinition>
59 m_resourcesHasBeenSet = true;
60 m_resources.emplace_back(std::forward<ResourcesT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetGeneratedTemplateName() const { return m_generatedTemplateName; }
70 inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; }
71 template <typename GeneratedTemplateNameT = Aws::String>
72 void SetGeneratedTemplateName(GeneratedTemplateNameT&& value) {
73 m_generatedTemplateNameHasBeenSet = true;
74 m_generatedTemplateName = std::forward<GeneratedTemplateNameT>(value);
75 }
76 template <typename GeneratedTemplateNameT = Aws::String>
78 SetGeneratedTemplateName(std::forward<GeneratedTemplateNameT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetStackName() const { return m_stackName; }
89 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
90 template <typename StackNameT = Aws::String>
91 void SetStackName(StackNameT&& value) {
92 m_stackNameHasBeenSet = true;
93 m_stackName = std::forward<StackNameT>(value);
94 }
95 template <typename StackNameT = Aws::String>
97 SetStackName(std::forward<StackNameT>(value));
98 return *this;
99 }
101
103
107 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
108 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
109 template <typename TemplateConfigurationT = TemplateConfiguration>
110 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
111 m_templateConfigurationHasBeenSet = true;
112 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
113 }
114 template <typename TemplateConfigurationT = TemplateConfiguration>
116 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
117 return *this;
118 }
120 private:
122
123 Aws::String m_generatedTemplateName;
124
125 Aws::String m_stackName;
126
127 TemplateConfiguration m_templateConfiguration;
128 bool m_resourcesHasBeenSet = false;
129 bool m_generatedTemplateNameHasBeenSet = false;
130 bool m_stackNameHasBeenSet = false;
131 bool m_templateConfigurationHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace CloudFormation
136} // namespace Aws
const Aws::Vector< ResourceDefinition > & GetResources() const
CreateGeneratedTemplateRequest & WithStackName(StackNameT &&value)
CreateGeneratedTemplateRequest & WithTemplateConfiguration(TemplateConfigurationT &&value)
AWS_CLOUDFORMATION_API CreateGeneratedTemplateRequest()=default
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
CreateGeneratedTemplateRequest & WithGeneratedTemplateName(GeneratedTemplateNameT &&value)
CreateGeneratedTemplateRequest & WithResources(ResourcesT &&value)
CreateGeneratedTemplateRequest & AddResources(ResourcesT &&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