AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateConfigurationTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/ConfigurationOptionSetting.h>
12#include <aws/elasticbeanstalk/model/OptionSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ElasticBeanstalk {
18namespace Model {
19
27 public:
28 AWS_ELASTICBEANSTALK_API UpdateConfigurationTemplateRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateConfigurationTemplate"; }
35
36 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
49 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
50 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
51 template <typename ApplicationNameT = Aws::String>
52 void SetApplicationName(ApplicationNameT&& value) {
53 m_applicationNameHasBeenSet = true;
54 m_applicationName = std::forward<ApplicationNameT>(value);
55 }
56 template <typename ApplicationNameT = Aws::String>
58 SetApplicationName(std::forward<ApplicationNameT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::String& GetTemplateName() const { return m_templateName; }
70 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
71 template <typename TemplateNameT = Aws::String>
72 void SetTemplateName(TemplateNameT&& value) {
73 m_templateNameHasBeenSet = true;
74 m_templateName = std::forward<TemplateNameT>(value);
75 }
76 template <typename TemplateNameT = Aws::String>
78 SetTemplateName(std::forward<TemplateNameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
107 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
108 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
109 void SetOptionSettings(OptionSettingsT&& value) {
110 m_optionSettingsHasBeenSet = true;
111 m_optionSettings = std::forward<OptionSettingsT>(value);
112 }
113 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
115 SetOptionSettings(std::forward<OptionSettingsT>(value));
116 return *this;
117 }
118 template <typename OptionSettingsT = ConfigurationOptionSetting>
120 m_optionSettingsHasBeenSet = true;
121 m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value));
122 return *this;
123 }
125
127
132 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const { return m_optionsToRemove; }
133 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
134 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
135 void SetOptionsToRemove(OptionsToRemoveT&& value) {
136 m_optionsToRemoveHasBeenSet = true;
137 m_optionsToRemove = std::forward<OptionsToRemoveT>(value);
138 }
139 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
141 SetOptionsToRemove(std::forward<OptionsToRemoveT>(value));
142 return *this;
143 }
144 template <typename OptionsToRemoveT = OptionSpecification>
146 m_optionsToRemoveHasBeenSet = true;
147 m_optionsToRemove.emplace_back(std::forward<OptionsToRemoveT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_applicationName;
153
154 Aws::String m_templateName;
155
156 Aws::String m_description;
157
159
160 Aws::Vector<OptionSpecification> m_optionsToRemove;
161 bool m_applicationNameHasBeenSet = false;
162 bool m_templateNameHasBeenSet = false;
163 bool m_descriptionHasBeenSet = false;
164 bool m_optionSettingsHasBeenSet = false;
165 bool m_optionsToRemoveHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace ElasticBeanstalk
170} // namespace Aws
UpdateConfigurationTemplateRequest & AddOptionsToRemove(OptionsToRemoveT &&value)
UpdateConfigurationTemplateRequest & WithOptionSettings(OptionSettingsT &&value)
UpdateConfigurationTemplateRequest & AddOptionSettings(OptionSettingsT &&value)
UpdateConfigurationTemplateRequest & WithOptionsToRemove(OptionsToRemoveT &&value)
UpdateConfigurationTemplateRequest & WithDescription(DescriptionT &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICBEANSTALK_API UpdateConfigurationTemplateRequest()=default
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
UpdateConfigurationTemplateRequest & WithApplicationName(ApplicationNameT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
UpdateConfigurationTemplateRequest & WithTemplateName(TemplateNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector