AWS SDK for C++  0.12.9
AWS SDK for C++
App.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
26 
27 namespace Aws
28 {
29 namespace Utils
30 {
31 namespace Json
32 {
33  class JsonValue;
34 } // namespace Json
35 } // namespace Utils
36 namespace OpsWorks
37 {
38 namespace Model
39 {
40 
45  {
46  public:
47  App();
48  App(const Aws::Utils::Json::JsonValue& jsonValue);
49  App& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
50  Aws::Utils::Json::JsonValue Jsonize() const;
51 
55  inline const Aws::String& GetAppId() const{ return m_appId; }
56 
60  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
61 
65  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = value; }
66 
70  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
71 
75  inline App& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
76 
80  inline App& WithAppId(Aws::String&& value) { SetAppId(value); return *this;}
81 
85  inline App& WithAppId(const char* value) { SetAppId(value); return *this;}
86 
90  inline const Aws::String& GetStackId() const{ return m_stackId; }
91 
95  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
96 
100  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
101 
105  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
106 
110  inline App& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
111 
115  inline App& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
116 
120  inline App& WithStackId(const char* value) { SetStackId(value); return *this;}
121 
125  inline const Aws::String& GetShortname() const{ return m_shortname; }
126 
130  inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
131 
135  inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
136 
140  inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
141 
145  inline App& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
146 
150  inline App& WithShortname(Aws::String&& value) { SetShortname(value); return *this;}
151 
155  inline App& WithShortname(const char* value) { SetShortname(value); return *this;}
156 
160  inline const Aws::String& GetName() const{ return m_name; }
161 
165  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
166 
170  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
171 
175  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
176 
180  inline App& WithName(const Aws::String& value) { SetName(value); return *this;}
181 
185  inline App& WithName(Aws::String&& value) { SetName(value); return *this;}
186 
190  inline App& WithName(const char* value) { SetName(value); return *this;}
191 
195  inline const Aws::String& GetDescription() const{ return m_description; }
196 
200  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
201 
205  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
206 
210  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
211 
215  inline App& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
216 
220  inline App& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
221 
225  inline App& WithDescription(const char* value) { SetDescription(value); return *this;}
226 
230  inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
231 
235  inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
236 
240  inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
241 
245  inline App& WithDataSources(const Aws::Vector<DataSource>& value) { SetDataSources(value); return *this;}
246 
250  inline App& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(value); return *this;}
251 
255  inline App& AddDataSources(const DataSource& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
256 
260  inline App& AddDataSources(DataSource&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
261 
265  inline const AppType& GetType() const{ return m_type; }
266 
270  inline void SetType(const AppType& value) { m_typeHasBeenSet = true; m_type = value; }
271 
275  inline void SetType(AppType&& value) { m_typeHasBeenSet = true; m_type = value; }
276 
280  inline App& WithType(const AppType& value) { SetType(value); return *this;}
281 
285  inline App& WithType(AppType&& value) { SetType(value); return *this;}
286 
290  inline const Source& GetAppSource() const{ return m_appSource; }
291 
295  inline void SetAppSource(const Source& value) { m_appSourceHasBeenSet = true; m_appSource = value; }
296 
300  inline void SetAppSource(Source&& value) { m_appSourceHasBeenSet = true; m_appSource = value; }
301 
305  inline App& WithAppSource(const Source& value) { SetAppSource(value); return *this;}
306 
310  inline App& WithAppSource(Source&& value) { SetAppSource(value); return *this;}
311 
316  inline const Aws::Vector<Aws::String>& GetDomains() const{ return m_domains; }
317 
322  inline void SetDomains(const Aws::Vector<Aws::String>& value) { m_domainsHasBeenSet = true; m_domains = value; }
323 
328  inline void SetDomains(Aws::Vector<Aws::String>&& value) { m_domainsHasBeenSet = true; m_domains = value; }
329 
334  inline App& WithDomains(const Aws::Vector<Aws::String>& value) { SetDomains(value); return *this;}
335 
340  inline App& WithDomains(Aws::Vector<Aws::String>&& value) { SetDomains(value); return *this;}
341 
346  inline App& AddDomains(const Aws::String& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
347 
352  inline App& AddDomains(Aws::String&& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
353 
358  inline App& AddDomains(const char* value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
359 
363  inline bool GetEnableSsl() const{ return m_enableSsl; }
364 
368  inline void SetEnableSsl(bool value) { m_enableSslHasBeenSet = true; m_enableSsl = value; }
369 
373  inline App& WithEnableSsl(bool value) { SetEnableSsl(value); return *this;}
374 
378  inline const SslConfiguration& GetSslConfiguration() const{ return m_sslConfiguration; }
379 
383  inline void SetSslConfiguration(const SslConfiguration& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = value; }
384 
388  inline void SetSslConfiguration(SslConfiguration&& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = value; }
389 
393  inline App& WithSslConfiguration(const SslConfiguration& value) { SetSslConfiguration(value); return *this;}
394 
398  inline App& WithSslConfiguration(SslConfiguration&& value) { SetSslConfiguration(value); return *this;}
399 
403  inline const Aws::Map<AppAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
404 
408  inline void SetAttributes(const Aws::Map<AppAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
409 
413  inline void SetAttributes(Aws::Map<AppAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
414 
418  inline App& WithAttributes(const Aws::Map<AppAttributesKeys, Aws::String>& value) { SetAttributes(value); return *this;}
419 
423  inline App& WithAttributes(Aws::Map<AppAttributesKeys, Aws::String>&& value) { SetAttributes(value); return *this;}
424 
428  inline App& AddAttributes(const AppAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
429 
433  inline App& AddAttributes(AppAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
434 
438  inline App& AddAttributes(const AppAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
439 
443  inline App& AddAttributes(AppAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
444 
448  inline App& AddAttributes(AppAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
449 
453  inline App& AddAttributes(const AppAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
454 
458  inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
459 
463  inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
464 
468  inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
469 
473  inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
474 
478  inline App& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
479 
483  inline App& WithCreatedAt(Aws::String&& value) { SetCreatedAt(value); return *this;}
484 
488  inline App& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
489 
503  inline const Aws::Vector<EnvironmentVariable>& GetEnvironment() const{ return m_environment; }
504 
518  inline void SetEnvironment(const Aws::Vector<EnvironmentVariable>& value) { m_environmentHasBeenSet = true; m_environment = value; }
519 
533  inline void SetEnvironment(Aws::Vector<EnvironmentVariable>&& value) { m_environmentHasBeenSet = true; m_environment = value; }
534 
548  inline App& WithEnvironment(const Aws::Vector<EnvironmentVariable>& value) { SetEnvironment(value); return *this;}
549 
563  inline App& WithEnvironment(Aws::Vector<EnvironmentVariable>&& value) { SetEnvironment(value); return *this;}
564 
578  inline App& AddEnvironment(const EnvironmentVariable& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
579 
593  inline App& AddEnvironment(EnvironmentVariable&& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
594 
595  private:
596  Aws::String m_appId;
597  bool m_appIdHasBeenSet;
598  Aws::String m_stackId;
599  bool m_stackIdHasBeenSet;
600  Aws::String m_shortname;
601  bool m_shortnameHasBeenSet;
602  Aws::String m_name;
603  bool m_nameHasBeenSet;
604  Aws::String m_description;
605  bool m_descriptionHasBeenSet;
606  Aws::Vector<DataSource> m_dataSources;
607  bool m_dataSourcesHasBeenSet;
608  AppType m_type;
609  bool m_typeHasBeenSet;
610  Source m_appSource;
611  bool m_appSourceHasBeenSet;
612  Aws::Vector<Aws::String> m_domains;
613  bool m_domainsHasBeenSet;
614  bool m_enableSsl;
615  bool m_enableSslHasBeenSet;
616  SslConfiguration m_sslConfiguration;
617  bool m_sslConfigurationHasBeenSet;
619  bool m_attributesHasBeenSet;
620  Aws::String m_createdAt;
621  bool m_createdAtHasBeenSet;
622  Aws::Vector<EnvironmentVariable> m_environment;
623  bool m_environmentHasBeenSet;
624  };
625 
626 } // namespace Model
627 } // namespace OpsWorks
628 } // namespace Aws
App & WithEnableSsl(bool value)
Definition: App.h:373
void SetName(Aws::String &&value)
Definition: App.h:170
void SetAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
Definition: App.h:408
App & WithDescription(const Aws::String &value)
Definition: App.h:215
const Aws::String & GetCreatedAt() const
Definition: App.h:458
void SetDescription(Aws::String &&value)
Definition: App.h:205
App & WithStackId(Aws::String &&value)
Definition: App.h:115
void SetStackId(Aws::String &&value)
Definition: App.h:100
void SetAppSource(Source &&value)
Definition: App.h:300
App & WithType(const AppType &value)
Definition: App.h:280
const Aws::Map< AppAttributesKeys, Aws::String > & GetAttributes() const
Definition: App.h:403
void SetDataSources(const Aws::Vector< DataSource > &value)
Definition: App.h:235
const Aws::String & GetShortname() const
Definition: App.h:125
const SslConfiguration & GetSslConfiguration() const
Definition: App.h:378
App & WithAppId(Aws::String &&value)
Definition: App.h:80
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
Definition: App.h:503
App & AddAttributes(const AppAttributesKeys &key, const char *value)
Definition: App.h:453
const Aws::Vector< DataSource > & GetDataSources() const
Definition: App.h:230
App & WithName(Aws::String &&value)
Definition: App.h:185
const Source & GetAppSource() const
Definition: App.h:290
App & WithShortname(Aws::String &&value)
Definition: App.h:150
App & WithEnvironment(Aws::Vector< EnvironmentVariable > &&value)
Definition: App.h:563
const Aws::String & GetName() const
Definition: App.h:160
App & WithType(AppType &&value)
Definition: App.h:285
App & WithEnvironment(const Aws::Vector< EnvironmentVariable > &value)
Definition: App.h:548
void SetAppId(const Aws::String &value)
Definition: App.h:60
void SetDataSources(Aws::Vector< DataSource > &&value)
Definition: App.h:240
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetStackId(const Aws::String &value)
Definition: App.h:95
App & WithAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
Definition: App.h:423
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
App & WithDataSources(Aws::Vector< DataSource > &&value)
Definition: App.h:250
void SetDomains(const Aws::Vector< Aws::String > &value)
Definition: App.h:322
void SetName(const Aws::String &value)
Definition: App.h:165
void SetShortname(const char *value)
Definition: App.h:140
void SetDescription(const Aws::String &value)
Definition: App.h:200
App & AddDomains(Aws::String &&value)
Definition: App.h:352
bool GetEnableSsl() const
Definition: App.h:363
App & AddAttributes(const AppAttributesKeys &key, const Aws::String &value)
Definition: App.h:428
void SetAppId(const char *value)
Definition: App.h:70
const Aws::String & GetDescription() const
Definition: App.h:195
App & WithStackId(const Aws::String &value)
Definition: App.h:110
App & WithDomains(const Aws::Vector< Aws::String > &value)
Definition: App.h:334
App & WithName(const char *value)
Definition: App.h:190
App & AddDomains(const Aws::String &value)
Definition: App.h:346
App & WithDataSources(const Aws::Vector< DataSource > &value)
Definition: App.h:245
void SetAppId(Aws::String &&value)
Definition: App.h:65
App & AddAttributes(AppAttributesKeys &&key, Aws::String &&value)
Definition: App.h:443
void SetSslConfiguration(SslConfiguration &&value)
Definition: App.h:388
void SetName(const char *value)
Definition: App.h:175
void SetType(const AppType &value)
Definition: App.h:270
void SetShortname(const Aws::String &value)
Definition: App.h:130
App & WithShortname(const char *value)
Definition: App.h:155
const Aws::String & GetStackId() const
Definition: App.h:90
App & WithAppSource(const Source &value)
Definition: App.h:305
App & AddDataSources(DataSource &&value)
Definition: App.h:260
const Aws::String & GetAppId() const
Definition: App.h:55
void SetEnvironment(Aws::Vector< EnvironmentVariable > &&value)
Definition: App.h:533
void SetCreatedAt(const char *value)
Definition: App.h:473
const AppType & GetType() const
Definition: App.h:265
App & WithSslConfiguration(SslConfiguration &&value)
Definition: App.h:398
App & WithAppSource(Source &&value)
Definition: App.h:310
void SetDomains(Aws::Vector< Aws::String > &&value)
Definition: App.h:328
App & WithAppId(const char *value)
Definition: App.h:85
App & AddDomains(const char *value)
Definition: App.h:358
App & AddAttributes(AppAttributesKeys &&key, const Aws::String &value)
Definition: App.h:433
void SetEnvironment(const Aws::Vector< EnvironmentVariable > &value)
Definition: App.h:518
void SetSslConfiguration(const SslConfiguration &value)
Definition: App.h:383
App & AddDataSources(const DataSource &value)
Definition: App.h:255
App & AddEnvironment(const EnvironmentVariable &value)
Definition: App.h:578
void SetCreatedAt(const Aws::String &value)
Definition: App.h:463
App & WithStackId(const char *value)
Definition: App.h:120
App & AddAttributes(const AppAttributesKeys &key, Aws::String &&value)
Definition: App.h:438
App & WithCreatedAt(const Aws::String &value)
Definition: App.h:478
App & WithDescription(const char *value)
Definition: App.h:225
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
const Aws::Vector< Aws::String > & GetDomains() const
Definition: App.h:316
void SetCreatedAt(Aws::String &&value)
Definition: App.h:468
App & WithAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
Definition: App.h:418
App & WithDomains(Aws::Vector< Aws::String > &&value)
Definition: App.h:340
App & AddEnvironment(EnvironmentVariable &&value)
Definition: App.h:593
void SetStackId(const char *value)
Definition: App.h:105
void SetAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
Definition: App.h:413
App & WithShortname(const Aws::String &value)
Definition: App.h:145
void SetDescription(const char *value)
Definition: App.h:210
void SetAppSource(const Source &value)
Definition: App.h:295
App & AddAttributes(AppAttributesKeys &&key, const char *value)
Definition: App.h:448
App & WithSslConfiguration(const SslConfiguration &value)
Definition: App.h:393
App & WithName(const Aws::String &value)
Definition: App.h:180
App & WithAppId(const Aws::String &value)
Definition: App.h:75
App & WithCreatedAt(const char *value)
Definition: App.h:488
void SetEnableSsl(bool value)
Definition: App.h:368
App & WithCreatedAt(Aws::String &&value)
Definition: App.h:483
App & WithDescription(Aws::String &&value)
Definition: App.h:220
void SetShortname(Aws::String &&value)
Definition: App.h:135
JSON (JavaScript Object Notation).
void SetType(AppType &&value)
Definition: App.h:275