AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateAppRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opsworks/model/AppType.h>
12#include <aws/opsworks/model/Source.h>
13#include <aws/opsworks/model/SslConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/opsworks/model/DataSource.h>
16#include <aws/opsworks/model/AppAttributesKeys.h>
17#include <aws/opsworks/model/EnvironmentVariable.h>
18#include <utility>
19
20namespace Aws
21{
22namespace OpsWorks
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_OPSWORKS_API UpdateAppRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateApp"; }
39
40 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetAppId() const { return m_appId; }
50 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
51 template<typename AppIdT = Aws::String>
52 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
53 template<typename AppIdT = Aws::String>
54 UpdateAppRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 UpdateAppRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 UpdateAppRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
85 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
86 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
87 template<typename DataSourcesT = Aws::Vector<DataSource>>
88 void SetDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::forward<DataSourcesT>(value); }
89 template<typename DataSourcesT = Aws::Vector<DataSource>>
90 UpdateAppRequest& WithDataSources(DataSourcesT&& value) { SetDataSources(std::forward<DataSourcesT>(value)); return *this;}
91 template<typename DataSourcesT = DataSource>
92 UpdateAppRequest& AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value)); return *this; }
94
96
99 inline AppType GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(AppType value) { m_typeHasBeenSet = true; m_type = value; }
102 inline UpdateAppRequest& WithType(AppType value) { SetType(value); return *this;}
104
106
109 inline const Source& GetAppSource() const { return m_appSource; }
110 inline bool AppSourceHasBeenSet() const { return m_appSourceHasBeenSet; }
111 template<typename AppSourceT = Source>
112 void SetAppSource(AppSourceT&& value) { m_appSourceHasBeenSet = true; m_appSource = std::forward<AppSourceT>(value); }
113 template<typename AppSourceT = Source>
114 UpdateAppRequest& WithAppSource(AppSourceT&& value) { SetAppSource(std::forward<AppSourceT>(value)); return *this;}
116
118
122 inline const Aws::Vector<Aws::String>& GetDomains() const { return m_domains; }
123 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
124 template<typename DomainsT = Aws::Vector<Aws::String>>
125 void SetDomains(DomainsT&& value) { m_domainsHasBeenSet = true; m_domains = std::forward<DomainsT>(value); }
126 template<typename DomainsT = Aws::Vector<Aws::String>>
127 UpdateAppRequest& WithDomains(DomainsT&& value) { SetDomains(std::forward<DomainsT>(value)); return *this;}
128 template<typename DomainsT = Aws::String>
129 UpdateAppRequest& AddDomains(DomainsT&& value) { m_domainsHasBeenSet = true; m_domains.emplace_back(std::forward<DomainsT>(value)); return *this; }
131
133
136 inline bool GetEnableSsl() const { return m_enableSsl; }
137 inline bool EnableSslHasBeenSet() const { return m_enableSslHasBeenSet; }
138 inline void SetEnableSsl(bool value) { m_enableSslHasBeenSet = true; m_enableSsl = value; }
139 inline UpdateAppRequest& WithEnableSsl(bool value) { SetEnableSsl(value); return *this;}
141
143
146 inline const SslConfiguration& GetSslConfiguration() const { return m_sslConfiguration; }
147 inline bool SslConfigurationHasBeenSet() const { return m_sslConfigurationHasBeenSet; }
148 template<typename SslConfigurationT = SslConfiguration>
149 void SetSslConfiguration(SslConfigurationT&& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = std::forward<SslConfigurationT>(value); }
150 template<typename SslConfigurationT = SslConfiguration>
151 UpdateAppRequest& WithSslConfiguration(SslConfigurationT&& value) { SetSslConfiguration(std::forward<SslConfigurationT>(value)); return *this;}
153
155
159 inline const Aws::Map<AppAttributesKeys, Aws::String>& GetAttributes() const { return m_attributes; }
160 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
161 template<typename AttributesT = Aws::Map<AppAttributesKeys, Aws::String>>
162 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
163 template<typename AttributesT = Aws::Map<AppAttributesKeys, Aws::String>>
164 UpdateAppRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
166 m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this;
167 }
169
171
185 inline const Aws::Vector<EnvironmentVariable>& GetEnvironment() const { return m_environment; }
186 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
187 template<typename EnvironmentT = Aws::Vector<EnvironmentVariable>>
188 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
189 template<typename EnvironmentT = Aws::Vector<EnvironmentVariable>>
190 UpdateAppRequest& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
191 template<typename EnvironmentT = EnvironmentVariable>
192 UpdateAppRequest& AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment.emplace_back(std::forward<EnvironmentT>(value)); return *this; }
194 private:
195
196 Aws::String m_appId;
197 bool m_appIdHasBeenSet = false;
198
199 Aws::String m_name;
200 bool m_nameHasBeenSet = false;
201
202 Aws::String m_description;
203 bool m_descriptionHasBeenSet = false;
204
205 Aws::Vector<DataSource> m_dataSources;
206 bool m_dataSourcesHasBeenSet = false;
207
209 bool m_typeHasBeenSet = false;
210
211 Source m_appSource;
212 bool m_appSourceHasBeenSet = false;
213
214 Aws::Vector<Aws::String> m_domains;
215 bool m_domainsHasBeenSet = false;
216
217 bool m_enableSsl{false};
218 bool m_enableSslHasBeenSet = false;
219
220 SslConfiguration m_sslConfiguration;
221 bool m_sslConfigurationHasBeenSet = false;
222
224 bool m_attributesHasBeenSet = false;
225
227 bool m_environmentHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace OpsWorks
232} // namespace Aws
UpdateAppRequest & WithEnvironment(EnvironmentT &&value)
UpdateAppRequest & WithName(NameT &&value)
UpdateAppRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
const Aws::String & GetName() const
UpdateAppRequest & WithAppId(AppIdT &&value)
UpdateAppRequest & AddDataSources(DataSourcesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetDomains() const
void SetSslConfiguration(SslConfigurationT &&value)
UpdateAppRequest & WithType(AppType value)
UpdateAppRequest & WithAttributes(AttributesT &&value)
UpdateAppRequest & WithDomains(DomainsT &&value)
UpdateAppRequest & WithEnableSsl(bool value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPSWORKS_API Aws::String SerializePayload() const override
void SetAttributes(AttributesT &&value)
UpdateAppRequest & AddEnvironment(EnvironmentT &&value)
UpdateAppRequest & WithDataSources(DataSourcesT &&value)
const Aws::Map< AppAttributesKeys, Aws::String > & GetAttributes() const
void SetDataSources(DataSourcesT &&value)
AWS_OPSWORKS_API UpdateAppRequest()=default
const Aws::String & GetAppId() const
UpdateAppRequest & WithSslConfiguration(SslConfigurationT &&value)
const Aws::String & GetDescription() const
UpdateAppRequest & WithAppSource(AppSourceT &&value)
void SetEnvironment(EnvironmentT &&value)
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
UpdateAppRequest & AddAttributes(AppAttributesKeys key, Aws::String value)
UpdateAppRequest & AddDomains(DomainsT &&value)
void SetDescription(DescriptionT &&value)
const SslConfiguration & GetSslConfiguration() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector