AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
52 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
53 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
54 inline UpdateAppRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
55 inline UpdateAppRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
56 inline UpdateAppRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline UpdateAppRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline UpdateAppRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline UpdateAppRequest& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline UpdateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline UpdateAppRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline UpdateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
91 inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
92 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
93 inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
94 inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
95 inline UpdateAppRequest& WithDataSources(const Aws::Vector<DataSource>& value) { SetDataSources(value); return *this;}
96 inline UpdateAppRequest& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(std::move(value)); return *this;}
97 inline UpdateAppRequest& AddDataSources(const DataSource& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
98 inline UpdateAppRequest& AddDataSources(DataSource&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; }
100
102
105 inline const AppType& GetType() const{ return m_type; }
106 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 inline void SetType(const AppType& value) { m_typeHasBeenSet = true; m_type = value; }
108 inline void SetType(AppType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
109 inline UpdateAppRequest& WithType(const AppType& value) { SetType(value); return *this;}
110 inline UpdateAppRequest& WithType(AppType&& value) { SetType(std::move(value)); return *this;}
112
114
117 inline const Source& GetAppSource() const{ return m_appSource; }
118 inline bool AppSourceHasBeenSet() const { return m_appSourceHasBeenSet; }
119 inline void SetAppSource(const Source& value) { m_appSourceHasBeenSet = true; m_appSource = value; }
120 inline void SetAppSource(Source&& value) { m_appSourceHasBeenSet = true; m_appSource = std::move(value); }
121 inline UpdateAppRequest& WithAppSource(const Source& value) { SetAppSource(value); return *this;}
122 inline UpdateAppRequest& WithAppSource(Source&& value) { SetAppSource(std::move(value)); return *this;}
124
126
130 inline const Aws::Vector<Aws::String>& GetDomains() const{ return m_domains; }
131 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
132 inline void SetDomains(const Aws::Vector<Aws::String>& value) { m_domainsHasBeenSet = true; m_domains = value; }
133 inline void SetDomains(Aws::Vector<Aws::String>&& value) { m_domainsHasBeenSet = true; m_domains = std::move(value); }
134 inline UpdateAppRequest& WithDomains(const Aws::Vector<Aws::String>& value) { SetDomains(value); return *this;}
135 inline UpdateAppRequest& WithDomains(Aws::Vector<Aws::String>&& value) { SetDomains(std::move(value)); return *this;}
136 inline UpdateAppRequest& AddDomains(const Aws::String& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
137 inline UpdateAppRequest& AddDomains(Aws::String&& value) { m_domainsHasBeenSet = true; m_domains.push_back(std::move(value)); return *this; }
138 inline UpdateAppRequest& AddDomains(const char* value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
140
142
145 inline bool GetEnableSsl() const{ return m_enableSsl; }
146 inline bool EnableSslHasBeenSet() const { return m_enableSslHasBeenSet; }
147 inline void SetEnableSsl(bool value) { m_enableSslHasBeenSet = true; m_enableSsl = value; }
148 inline UpdateAppRequest& WithEnableSsl(bool value) { SetEnableSsl(value); return *this;}
150
152
155 inline const SslConfiguration& GetSslConfiguration() const{ return m_sslConfiguration; }
156 inline bool SslConfigurationHasBeenSet() const { return m_sslConfigurationHasBeenSet; }
157 inline void SetSslConfiguration(const SslConfiguration& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = value; }
158 inline void SetSslConfiguration(SslConfiguration&& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = std::move(value); }
159 inline UpdateAppRequest& WithSslConfiguration(const SslConfiguration& value) { SetSslConfiguration(value); return *this;}
160 inline UpdateAppRequest& WithSslConfiguration(SslConfiguration&& value) { SetSslConfiguration(std::move(value)); return *this;}
162
164
168 inline const Aws::Map<AppAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
169 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
170 inline void SetAttributes(const Aws::Map<AppAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
171 inline void SetAttributes(Aws::Map<AppAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
174 inline UpdateAppRequest& AddAttributes(const AppAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
175 inline UpdateAppRequest& AddAttributes(AppAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
176 inline UpdateAppRequest& AddAttributes(const AppAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
177 inline UpdateAppRequest& AddAttributes(AppAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
178 inline UpdateAppRequest& AddAttributes(AppAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
179 inline UpdateAppRequest& AddAttributes(const AppAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
181
183
197 inline const Aws::Vector<EnvironmentVariable>& GetEnvironment() const{ return m_environment; }
198 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
199 inline void SetEnvironment(const Aws::Vector<EnvironmentVariable>& value) { m_environmentHasBeenSet = true; m_environment = value; }
200 inline void SetEnvironment(Aws::Vector<EnvironmentVariable>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
202 inline UpdateAppRequest& WithEnvironment(Aws::Vector<EnvironmentVariable>&& value) { SetEnvironment(std::move(value)); return *this;}
203 inline UpdateAppRequest& AddEnvironment(const EnvironmentVariable& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
204 inline UpdateAppRequest& AddEnvironment(EnvironmentVariable&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
206 private:
207
208 Aws::String m_appId;
209 bool m_appIdHasBeenSet = false;
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 Aws::String m_description;
215 bool m_descriptionHasBeenSet = false;
216
217 Aws::Vector<DataSource> m_dataSources;
218 bool m_dataSourcesHasBeenSet = false;
219
220 AppType m_type;
221 bool m_typeHasBeenSet = false;
222
223 Source m_appSource;
224 bool m_appSourceHasBeenSet = false;
225
226 Aws::Vector<Aws::String> m_domains;
227 bool m_domainsHasBeenSet = false;
228
229 bool m_enableSsl;
230 bool m_enableSslHasBeenSet = false;
231
232 SslConfiguration m_sslConfiguration;
233 bool m_sslConfigurationHasBeenSet = false;
234
236 bool m_attributesHasBeenSet = false;
237
239 bool m_environmentHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace OpsWorks
244} // namespace Aws
UpdateAppRequest & AddEnvironment(EnvironmentVariable &&value)
UpdateAppRequest & WithAppId(const Aws::String &value)
UpdateAppRequest & AddAttributes(AppAttributesKeys &&key, const char *value)
const Aws::Vector< DataSource > & GetDataSources() const
const Aws::String & GetName() const
UpdateAppRequest & WithType(const AppType &value)
UpdateAppRequest & AddDomains(const Aws::String &value)
UpdateAppRequest & WithSslConfiguration(const SslConfiguration &value)
UpdateAppRequest & WithSslConfiguration(SslConfiguration &&value)
UpdateAppRequest & WithAppId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetDomains() const
UpdateAppRequest & WithDomains(Aws::Vector< Aws::String > &&value)
UpdateAppRequest & AddDataSources(DataSource &&value)
UpdateAppRequest & WithName(const char *value)
UpdateAppRequest & AddEnvironment(const EnvironmentVariable &value)
void SetSslConfiguration(const SslConfiguration &value)
UpdateAppRequest & WithEnvironment(Aws::Vector< EnvironmentVariable > &&value)
void SetEnvironment(const Aws::Vector< EnvironmentVariable > &value)
UpdateAppRequest & AddDomains(Aws::String &&value)
void SetAppId(const Aws::String &value)
UpdateAppRequest & WithEnvironment(const Aws::Vector< EnvironmentVariable > &value)
UpdateAppRequest & WithEnableSsl(bool value)
UpdateAppRequest & AddAttributes(AppAttributesKeys &&key, Aws::String &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPSWORKS_API Aws::String SerializePayload() const override
void SetSslConfiguration(SslConfiguration &&value)
UpdateAppRequest & WithDomains(const Aws::Vector< Aws::String > &value)
const Aws::Map< AppAttributesKeys, Aws::String > & GetAttributes() const
void SetAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
UpdateAppRequest & WithType(AppType &&value)
UpdateAppRequest & AddDomains(const char *value)
void SetDomains(const Aws::Vector< Aws::String > &value)
UpdateAppRequest & WithAppId(const char *value)
UpdateAppRequest & AddAttributes(const AppAttributesKeys &key, const char *value)
const Aws::String & GetAppId() const
void SetDomains(Aws::Vector< Aws::String > &&value)
UpdateAppRequest & WithDescription(const char *value)
const Aws::String & GetDescription() const
void SetDescription(Aws::String &&value)
UpdateAppRequest & AddAttributes(const AppAttributesKeys &key, Aws::String &&value)
void SetAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
UpdateAppRequest & WithDataSources(Aws::Vector< DataSource > &&value)
void SetDataSources(Aws::Vector< DataSource > &&value)
UpdateAppRequest & AddDataSources(const DataSource &value)
UpdateAppRequest & WithDescription(const Aws::String &value)
UpdateAppRequest & WithAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
UpdateAppRequest & WithName(Aws::String &&value)
void SetDescription(const Aws::String &value)
UpdateAppRequest & WithName(const Aws::String &value)
void SetEnvironment(Aws::Vector< EnvironmentVariable > &&value)
void SetName(const Aws::String &value)
UpdateAppRequest & AddAttributes(AppAttributesKeys &&key, const Aws::String &value)
UpdateAppRequest & WithAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
void SetDataSources(const Aws::Vector< DataSource > &value)
UpdateAppRequest & WithAppSource(const Source &value)
UpdateAppRequest & WithDescription(Aws::String &&value)
UpdateAppRequest & AddAttributes(const AppAttributesKeys &key, const Aws::String &value)
const SslConfiguration & GetSslConfiguration() const
UpdateAppRequest & WithAppSource(Source &&value)
UpdateAppRequest & WithDataSources(const Aws::Vector< DataSource > &value)
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