AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateGeneratedTemplateRequest.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/TemplateConfiguration.h>
12#include <aws/cloudformation/model/ResourceDefinition.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudFormation
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDFORMATION_API UpdateGeneratedTemplateRequest();
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 "UpdateGeneratedTemplate"; }
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& GetGeneratedTemplateName() const{ return m_generatedTemplateName; }
47 inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; }
48 inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; }
49 inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); }
50 inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); }
53 inline UpdateGeneratedTemplateRequest& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;}
55
57
60 inline const Aws::String& GetNewGeneratedTemplateName() const{ return m_newGeneratedTemplateName; }
61 inline bool NewGeneratedTemplateNameHasBeenSet() const { return m_newGeneratedTemplateNameHasBeenSet; }
62 inline void SetNewGeneratedTemplateName(const Aws::String& value) { m_newGeneratedTemplateNameHasBeenSet = true; m_newGeneratedTemplateName = value; }
63 inline void SetNewGeneratedTemplateName(Aws::String&& value) { m_newGeneratedTemplateNameHasBeenSet = true; m_newGeneratedTemplateName = std::move(value); }
64 inline void SetNewGeneratedTemplateName(const char* value) { m_newGeneratedTemplateNameHasBeenSet = true; m_newGeneratedTemplateName.assign(value); }
69
71
74 inline const Aws::Vector<ResourceDefinition>& GetAddResources() const{ return m_addResources; }
75 inline bool AddResourcesHasBeenSet() const { return m_addResourcesHasBeenSet; }
76 inline void SetAddResources(const Aws::Vector<ResourceDefinition>& value) { m_addResourcesHasBeenSet = true; m_addResources = value; }
77 inline void SetAddResources(Aws::Vector<ResourceDefinition>&& value) { m_addResourcesHasBeenSet = true; m_addResources = std::move(value); }
80 inline UpdateGeneratedTemplateRequest& AddAddResources(const ResourceDefinition& value) { m_addResourcesHasBeenSet = true; m_addResources.push_back(value); return *this; }
81 inline UpdateGeneratedTemplateRequest& AddAddResources(ResourceDefinition&& value) { m_addResourcesHasBeenSet = true; m_addResources.push_back(std::move(value)); return *this; }
83
85
89 inline const Aws::Vector<Aws::String>& GetRemoveResources() const{ return m_removeResources; }
90 inline bool RemoveResourcesHasBeenSet() const { return m_removeResourcesHasBeenSet; }
91 inline void SetRemoveResources(const Aws::Vector<Aws::String>& value) { m_removeResourcesHasBeenSet = true; m_removeResources = value; }
92 inline void SetRemoveResources(Aws::Vector<Aws::String>&& value) { m_removeResourcesHasBeenSet = true; m_removeResources = std::move(value); }
95 inline UpdateGeneratedTemplateRequest& AddRemoveResources(const Aws::String& value) { m_removeResourcesHasBeenSet = true; m_removeResources.push_back(value); return *this; }
96 inline UpdateGeneratedTemplateRequest& AddRemoveResources(Aws::String&& value) { m_removeResourcesHasBeenSet = true; m_removeResources.push_back(std::move(value)); return *this; }
97 inline UpdateGeneratedTemplateRequest& AddRemoveResources(const char* value) { m_removeResourcesHasBeenSet = true; m_removeResources.push_back(value); return *this; }
99
101
108 inline bool GetRefreshAllResources() const{ return m_refreshAllResources; }
109 inline bool RefreshAllResourcesHasBeenSet() const { return m_refreshAllResourcesHasBeenSet; }
110 inline void SetRefreshAllResources(bool value) { m_refreshAllResourcesHasBeenSet = true; m_refreshAllResources = value; }
113
115
119 inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
120 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
121 inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
122 inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
126 private:
127
128 Aws::String m_generatedTemplateName;
129 bool m_generatedTemplateNameHasBeenSet = false;
130
131 Aws::String m_newGeneratedTemplateName;
132 bool m_newGeneratedTemplateNameHasBeenSet = false;
133
134 Aws::Vector<ResourceDefinition> m_addResources;
135 bool m_addResourcesHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_removeResources;
138 bool m_removeResourcesHasBeenSet = false;
139
140 bool m_refreshAllResources;
141 bool m_refreshAllResourcesHasBeenSet = false;
142
143 TemplateConfiguration m_templateConfiguration;
144 bool m_templateConfigurationHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace CloudFormation
149} // namespace Aws
UpdateGeneratedTemplateRequest & AddRemoveResources(const Aws::String &value)
UpdateGeneratedTemplateRequest & AddAddResources(ResourceDefinition &&value)
UpdateGeneratedTemplateRequest & WithGeneratedTemplateName(const char *value)
const Aws::Vector< ResourceDefinition > & GetAddResources() const
UpdateGeneratedTemplateRequest & WithTemplateConfiguration(TemplateConfiguration &&value)
UpdateGeneratedTemplateRequest & WithGeneratedTemplateName(const Aws::String &value)
UpdateGeneratedTemplateRequest & WithTemplateConfiguration(const TemplateConfiguration &value)
void SetAddResources(Aws::Vector< ResourceDefinition > &&value)
UpdateGeneratedTemplateRequest & WithRemoveResources(Aws::Vector< Aws::String > &&value)
UpdateGeneratedTemplateRequest & AddRemoveResources(const char *value)
UpdateGeneratedTemplateRequest & WithNewGeneratedTemplateName(const Aws::String &value)
UpdateGeneratedTemplateRequest & WithGeneratedTemplateName(Aws::String &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
UpdateGeneratedTemplateRequest & WithNewGeneratedTemplateName(Aws::String &&value)
UpdateGeneratedTemplateRequest & WithAddResources(Aws::Vector< ResourceDefinition > &&value)
UpdateGeneratedTemplateRequest & WithRemoveResources(const Aws::Vector< Aws::String > &value)
UpdateGeneratedTemplateRequest & AddAddResources(const ResourceDefinition &value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdateGeneratedTemplateRequest & AddRemoveResources(Aws::String &&value)
UpdateGeneratedTemplateRequest & WithNewGeneratedTemplateName(const char *value)
void SetAddResources(const Aws::Vector< ResourceDefinition > &value)
UpdateGeneratedTemplateRequest & WithAddResources(const Aws::Vector< ResourceDefinition > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector