AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
App.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opsworks/model/AppType.h>
11#include <aws/opsworks/model/Source.h>
12#include <aws/opsworks/model/SslConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/opsworks/model/DataSource.h>
15#include <aws/opsworks/model/AppAttributesKeys.h>
16#include <aws/opsworks/model/EnvironmentVariable.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace OpsWorks
30{
31namespace Model
32{
33
39 class App
40 {
41 public:
42 AWS_OPSWORKS_API App();
43 AWS_OPSWORKS_API App(Aws::Utils::Json::JsonView jsonValue);
44 AWS_OPSWORKS_API App& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetAppId() const{ return m_appId; }
53 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
54 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
55 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
56 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
57 inline App& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
58 inline App& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
59 inline App& WithAppId(const char* value) { SetAppId(value); return *this;}
61
63
66 inline const Aws::String& GetStackId() const{ return m_stackId; }
67 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
68 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
69 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
70 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
71 inline App& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
72 inline App& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
73 inline App& WithStackId(const char* value) { SetStackId(value); return *this;}
75
77
80 inline const Aws::String& GetShortname() const{ return m_shortname; }
81 inline bool ShortnameHasBeenSet() const { return m_shortnameHasBeenSet; }
82 inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
83 inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = std::move(value); }
84 inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
85 inline App& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
86 inline App& WithShortname(Aws::String&& value) { SetShortname(std::move(value)); return *this;}
87 inline App& WithShortname(const char* value) { SetShortname(value); return *this;}
89
91
94 inline const Aws::String& GetName() const{ return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
98 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
99 inline App& WithName(const Aws::String& value) { SetName(value); return *this;}
100 inline App& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
101 inline App& WithName(const char* value) { SetName(value); return *this;}
103
105
108 inline const Aws::String& GetDescription() const{ return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
111 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
112 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 inline App& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 inline App& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115 inline App& WithDescription(const char* value) { SetDescription(value); return *this;}
117
119
122 inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
123 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
124 inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
125 inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
126 inline App& WithDataSources(const Aws::Vector<DataSource>& value) { SetDataSources(value); return *this;}
127 inline App& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(std::move(value)); return *this;}
128 inline App& AddDataSources(const DataSource& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
129 inline App& AddDataSources(DataSource&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; }
131
133
136 inline const AppType& GetType() const{ return m_type; }
137 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
138 inline void SetType(const AppType& value) { m_typeHasBeenSet = true; m_type = value; }
139 inline void SetType(AppType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
140 inline App& WithType(const AppType& value) { SetType(value); return *this;}
141 inline App& WithType(AppType&& value) { SetType(std::move(value)); return *this;}
143
145
148 inline const Source& GetAppSource() const{ return m_appSource; }
149 inline bool AppSourceHasBeenSet() const { return m_appSourceHasBeenSet; }
150 inline void SetAppSource(const Source& value) { m_appSourceHasBeenSet = true; m_appSource = value; }
151 inline void SetAppSource(Source&& value) { m_appSourceHasBeenSet = true; m_appSource = std::move(value); }
152 inline App& WithAppSource(const Source& value) { SetAppSource(value); return *this;}
153 inline App& WithAppSource(Source&& value) { SetAppSource(std::move(value)); return *this;}
155
157
161 inline const Aws::Vector<Aws::String>& GetDomains() const{ return m_domains; }
162 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
163 inline void SetDomains(const Aws::Vector<Aws::String>& value) { m_domainsHasBeenSet = true; m_domains = value; }
164 inline void SetDomains(Aws::Vector<Aws::String>&& value) { m_domainsHasBeenSet = true; m_domains = std::move(value); }
165 inline App& WithDomains(const Aws::Vector<Aws::String>& value) { SetDomains(value); return *this;}
166 inline App& WithDomains(Aws::Vector<Aws::String>&& value) { SetDomains(std::move(value)); return *this;}
167 inline App& AddDomains(const Aws::String& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
168 inline App& AddDomains(Aws::String&& value) { m_domainsHasBeenSet = true; m_domains.push_back(std::move(value)); return *this; }
169 inline App& AddDomains(const char* value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
171
173
176 inline bool GetEnableSsl() const{ return m_enableSsl; }
177 inline bool EnableSslHasBeenSet() const { return m_enableSslHasBeenSet; }
178 inline void SetEnableSsl(bool value) { m_enableSslHasBeenSet = true; m_enableSsl = value; }
179 inline App& WithEnableSsl(bool value) { SetEnableSsl(value); return *this;}
181
183
186 inline const SslConfiguration& GetSslConfiguration() const{ return m_sslConfiguration; }
187 inline bool SslConfigurationHasBeenSet() const { return m_sslConfigurationHasBeenSet; }
188 inline void SetSslConfiguration(const SslConfiguration& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = value; }
189 inline void SetSslConfiguration(SslConfiguration&& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = std::move(value); }
190 inline App& WithSslConfiguration(const SslConfiguration& value) { SetSslConfiguration(value); return *this;}
191 inline App& WithSslConfiguration(SslConfiguration&& value) { SetSslConfiguration(std::move(value)); return *this;}
193
195
198 inline const Aws::Map<AppAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
199 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
200 inline void SetAttributes(const Aws::Map<AppAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
201 inline void SetAttributes(Aws::Map<AppAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
202 inline App& WithAttributes(const Aws::Map<AppAttributesKeys, Aws::String>& value) { SetAttributes(value); return *this;}
203 inline App& WithAttributes(Aws::Map<AppAttributesKeys, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
204 inline App& AddAttributes(const AppAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
205 inline App& AddAttributes(AppAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
206 inline App& AddAttributes(const AppAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
207 inline App& AddAttributes(AppAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
208 inline App& AddAttributes(AppAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
209 inline App& AddAttributes(const AppAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
211
213
216 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
217 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
218 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
219 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
220 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
221 inline App& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
222 inline App& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
223 inline App& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
225
227
240 inline const Aws::Vector<EnvironmentVariable>& GetEnvironment() const{ return m_environment; }
241 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
242 inline void SetEnvironment(const Aws::Vector<EnvironmentVariable>& value) { m_environmentHasBeenSet = true; m_environment = value; }
243 inline void SetEnvironment(Aws::Vector<EnvironmentVariable>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
244 inline App& WithEnvironment(const Aws::Vector<EnvironmentVariable>& value) { SetEnvironment(value); return *this;}
245 inline App& WithEnvironment(Aws::Vector<EnvironmentVariable>&& value) { SetEnvironment(std::move(value)); return *this;}
246 inline App& AddEnvironment(const EnvironmentVariable& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
247 inline App& AddEnvironment(EnvironmentVariable&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
249 private:
250
251 Aws::String m_appId;
252 bool m_appIdHasBeenSet = false;
253
254 Aws::String m_stackId;
255 bool m_stackIdHasBeenSet = false;
256
257 Aws::String m_shortname;
258 bool m_shortnameHasBeenSet = false;
259
260 Aws::String m_name;
261 bool m_nameHasBeenSet = false;
262
263 Aws::String m_description;
264 bool m_descriptionHasBeenSet = false;
265
266 Aws::Vector<DataSource> m_dataSources;
267 bool m_dataSourcesHasBeenSet = false;
268
269 AppType m_type;
270 bool m_typeHasBeenSet = false;
271
272 Source m_appSource;
273 bool m_appSourceHasBeenSet = false;
274
275 Aws::Vector<Aws::String> m_domains;
276 bool m_domainsHasBeenSet = false;
277
278 bool m_enableSsl;
279 bool m_enableSslHasBeenSet = false;
280
281 SslConfiguration m_sslConfiguration;
282 bool m_sslConfigurationHasBeenSet = false;
283
285 bool m_attributesHasBeenSet = false;
286
287 Aws::String m_createdAt;
288 bool m_createdAtHasBeenSet = false;
289
291 bool m_environmentHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace OpsWorks
296} // namespace Aws
void SetName(const Aws::String &value)
Definition App.h:96
App & WithDomains(const Aws::Vector< Aws::String > &value)
Definition App.h:165
App & WithEnableSsl(bool value)
Definition App.h:179
void SetShortname(Aws::String &&value)
Definition App.h:83
bool StackIdHasBeenSet() const
Definition App.h:67
void SetDataSources(const Aws::Vector< DataSource > &value)
Definition App.h:124
void SetAppId(Aws::String &&value)
Definition App.h:55
App & WithName(const Aws::String &value)
Definition App.h:99
void SetAppSource(const Source &value)
Definition App.h:150
void SetAppId(const Aws::String &value)
Definition App.h:54
App & WithName(Aws::String &&value)
Definition App.h:100
bool EnvironmentHasBeenSet() const
Definition App.h:241
App & WithDataSources(const Aws::Vector< DataSource > &value)
Definition App.h:126
const Aws::String & GetCreatedAt() const
Definition App.h:216
App & WithType(const AppType &value)
Definition App.h:140
bool DescriptionHasBeenSet() const
Definition App.h:109
bool AppSourceHasBeenSet() const
Definition App.h:149
void SetCreatedAt(Aws::String &&value)
Definition App.h:219
const Source & GetAppSource() const
Definition App.h:148
App & WithStackId(Aws::String &&value)
Definition App.h:72
const Aws::String & GetStackId() const
Definition App.h:66
App & WithCreatedAt(const char *value)
Definition App.h:223
void SetSslConfiguration(const SslConfiguration &value)
Definition App.h:188
App & AddDomains(const Aws::String &value)
Definition App.h:167
App & WithAppId(const char *value)
Definition App.h:59
App & WithEnvironment(Aws::Vector< EnvironmentVariable > &&value)
Definition App.h:245
App & WithAppId(const Aws::String &value)
Definition App.h:57
bool DataSourcesHasBeenSet() const
Definition App.h:123
App & WithStackId(const Aws::String &value)
Definition App.h:71
void SetCreatedAt(const char *value)
Definition App.h:220
void SetDataSources(Aws::Vector< DataSource > &&value)
Definition App.h:125
App & WithDescription(const Aws::String &value)
Definition App.h:113
const Aws::String & GetDescription() const
Definition App.h:108
App & AddAttributes(const AppAttributesKeys &key, Aws::String &&value)
Definition App.h:206
bool NameHasBeenSet() const
Definition App.h:95
App & WithAppSource(Source &&value)
Definition App.h:153
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
Definition App.h:240
App & WithShortname(Aws::String &&value)
Definition App.h:86
void SetDomains(const Aws::Vector< Aws::String > &value)
Definition App.h:163
AWS_OPSWORKS_API App(Aws::Utils::Json::JsonView jsonValue)
bool EnableSslHasBeenSet() const
Definition App.h:177
void SetType(AppType &&value)
Definition App.h:139
void SetAppId(const char *value)
Definition App.h:56
void SetStackId(const char *value)
Definition App.h:70
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetShortname() const
Definition App.h:80
App & AddDataSources(DataSource &&value)
Definition App.h:129
App & WithName(const char *value)
Definition App.h:101
App & WithShortname(const Aws::String &value)
Definition App.h:85
App & AddDomains(const char *value)
Definition App.h:169
App & WithStackId(const char *value)
Definition App.h:73
App & WithDescription(Aws::String &&value)
Definition App.h:114
void SetDescription(Aws::String &&value)
Definition App.h:111
void SetEnvironment(Aws::Vector< EnvironmentVariable > &&value)
Definition App.h:243
AWS_OPSWORKS_API App & operator=(Aws::Utils::Json::JsonView jsonValue)
App & AddEnvironment(const EnvironmentVariable &value)
Definition App.h:246
void SetStackId(Aws::String &&value)
Definition App.h:69
const AppType & GetType() const
Definition App.h:136
const Aws::String & GetName() const
Definition App.h:94
App & AddDomains(Aws::String &&value)
Definition App.h:168
App & WithDomains(Aws::Vector< Aws::String > &&value)
Definition App.h:166
App & AddEnvironment(EnvironmentVariable &&value)
Definition App.h:247
void SetCreatedAt(const Aws::String &value)
Definition App.h:218
void SetAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
Definition App.h:201
void SetStackId(const Aws::String &value)
Definition App.h:68
const Aws::Vector< DataSource > & GetDataSources() const
Definition App.h:122
bool GetEnableSsl() const
Definition App.h:176
App & WithAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
Definition App.h:203
App & WithType(AppType &&value)
Definition App.h:141
App & WithDataSources(Aws::Vector< DataSource > &&value)
Definition App.h:127
App & AddAttributes(const AppAttributesKeys &key, const char *value)
Definition App.h:209
App & AddAttributes(AppAttributesKeys &&key, Aws::String &&value)
Definition App.h:207
App & AddAttributes(AppAttributesKeys &&key, const Aws::String &value)
Definition App.h:205
void SetAppSource(Source &&value)
Definition App.h:151
App & WithDescription(const char *value)
Definition App.h:115
bool SslConfigurationHasBeenSet() const
Definition App.h:187
App & WithSslConfiguration(const SslConfiguration &value)
Definition App.h:190
App & WithSslConfiguration(SslConfiguration &&value)
Definition App.h:191
App & WithAppSource(const Source &value)
Definition App.h:152
bool CreatedAtHasBeenSet() const
Definition App.h:217
const Aws::Vector< Aws::String > & GetDomains() const
Definition App.h:161
void SetShortname(const Aws::String &value)
Definition App.h:82
App & AddAttributes(const AppAttributesKeys &key, const Aws::String &value)
Definition App.h:204
void SetName(Aws::String &&value)
Definition App.h:97
void SetAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
Definition App.h:200
App & WithCreatedAt(const Aws::String &value)
Definition App.h:221
const Aws::Map< AppAttributesKeys, Aws::String > & GetAttributes() const
Definition App.h:198
App & AddAttributes(AppAttributesKeys &&key, const char *value)
Definition App.h:208
App & WithEnvironment(const Aws::Vector< EnvironmentVariable > &value)
Definition App.h:244
void SetDescription(const Aws::String &value)
Definition App.h:110
bool DomainsHasBeenSet() const
Definition App.h:162
const SslConfiguration & GetSslConfiguration() const
Definition App.h:186
void SetSslConfiguration(SslConfiguration &&value)
Definition App.h:189
const Aws::String & GetAppId() const
Definition App.h:52
void SetType(const AppType &value)
Definition App.h:138
void SetName(const char *value)
Definition App.h:98
App & WithAppId(Aws::String &&value)
Definition App.h:58
bool TypeHasBeenSet() const
Definition App.h:137
bool AttributesHasBeenSet() const
Definition App.h:199
bool ShortnameHasBeenSet() const
Definition App.h:81
App & WithCreatedAt(Aws::String &&value)
Definition App.h:222
void SetDescription(const char *value)
Definition App.h:112
App & WithAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
Definition App.h:202
void SetDomains(Aws::Vector< Aws::String > &&value)
Definition App.h:164
bool AppIdHasBeenSet() const
Definition App.h:53
void SetEnvironment(const Aws::Vector< EnvironmentVariable > &value)
Definition App.h:242
void SetShortname(const char *value)
Definition App.h:84
AWS_OPSWORKS_API App()
App & WithShortname(const char *value)
Definition App.h:87
void SetEnableSsl(bool value)
Definition App.h:178
App & AddDataSources(const DataSource &value)
Definition App.h:128
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
Aws::Utils::Json::JsonValue JsonValue