AWS SDK for C++  0.12.9
AWS SDK for C++
CreateAppRequest.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
27 
28 namespace Aws
29 {
30 namespace OpsWorks
31 {
32 namespace Model
33 {
34 
38  {
39  public:
41  Aws::String SerializePayload() const override;
42 
43  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
44 
48  inline const Aws::String& GetStackId() const{ return m_stackId; }
49 
53  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
54 
58  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
59 
63  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
64 
68  inline CreateAppRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
69 
73  inline CreateAppRequest& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
74 
78  inline CreateAppRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
79 
83  inline const Aws::String& GetShortname() const{ return m_shortname; }
84 
88  inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
89 
93  inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
94 
98  inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
99 
103  inline CreateAppRequest& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
104 
108  inline CreateAppRequest& WithShortname(Aws::String&& value) { SetShortname(value); return *this;}
109 
113  inline CreateAppRequest& WithShortname(const char* value) { SetShortname(value); return *this;}
114 
118  inline const Aws::String& GetName() const{ return m_name; }
119 
123  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
124 
128  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
129 
133  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
134 
138  inline CreateAppRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
139 
143  inline CreateAppRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
144 
148  inline CreateAppRequest& WithName(const char* value) { SetName(value); return *this;}
149 
153  inline const Aws::String& GetDescription() const{ return m_description; }
154 
158  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
159 
163  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
164 
168  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
169 
173  inline CreateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
174 
178  inline CreateAppRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
179 
183  inline CreateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
184 
188  inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
189 
193  inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
194 
198  inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
199 
203  inline CreateAppRequest& WithDataSources(const Aws::Vector<DataSource>& value) { SetDataSources(value); return *this;}
204 
208  inline CreateAppRequest& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(value); return *this;}
209 
213  inline CreateAppRequest& AddDataSources(const DataSource& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
214 
218  inline CreateAppRequest& AddDataSources(DataSource&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
219 
227  inline const AppType& GetType() const{ return m_type; }
228 
236  inline void SetType(const AppType& value) { m_typeHasBeenSet = true; m_type = value; }
237 
245  inline void SetType(AppType&& value) { m_typeHasBeenSet = true; m_type = value; }
246 
254  inline CreateAppRequest& WithType(const AppType& value) { SetType(value); return *this;}
255 
263  inline CreateAppRequest& WithType(AppType&& value) { SetType(value); return *this;}
264 
268  inline const Source& GetAppSource() const{ return m_appSource; }
269 
273  inline void SetAppSource(const Source& value) { m_appSourceHasBeenSet = true; m_appSource = value; }
274 
278  inline void SetAppSource(Source&& value) { m_appSourceHasBeenSet = true; m_appSource = value; }
279 
283  inline CreateAppRequest& WithAppSource(const Source& value) { SetAppSource(value); return *this;}
284 
288  inline CreateAppRequest& WithAppSource(Source&& value) { SetAppSource(value); return *this;}
289 
294  inline const Aws::Vector<Aws::String>& GetDomains() const{ return m_domains; }
295 
300  inline void SetDomains(const Aws::Vector<Aws::String>& value) { m_domainsHasBeenSet = true; m_domains = value; }
301 
306  inline void SetDomains(Aws::Vector<Aws::String>&& value) { m_domainsHasBeenSet = true; m_domains = value; }
307 
312  inline CreateAppRequest& WithDomains(const Aws::Vector<Aws::String>& value) { SetDomains(value); return *this;}
313 
318  inline CreateAppRequest& WithDomains(Aws::Vector<Aws::String>&& value) { SetDomains(value); return *this;}
319 
324  inline CreateAppRequest& AddDomains(const Aws::String& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
325 
330  inline CreateAppRequest& AddDomains(Aws::String&& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
331 
336  inline CreateAppRequest& AddDomains(const char* value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
337 
341  inline bool GetEnableSsl() const{ return m_enableSsl; }
342 
346  inline void SetEnableSsl(bool value) { m_enableSslHasBeenSet = true; m_enableSsl = value; }
347 
351  inline CreateAppRequest& WithEnableSsl(bool value) { SetEnableSsl(value); return *this;}
352 
356  inline const SslConfiguration& GetSslConfiguration() const{ return m_sslConfiguration; }
357 
361  inline void SetSslConfiguration(const SslConfiguration& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = value; }
362 
366  inline void SetSslConfiguration(SslConfiguration&& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = value; }
367 
371  inline CreateAppRequest& WithSslConfiguration(const SslConfiguration& value) { SetSslConfiguration(value); return *this;}
372 
376  inline CreateAppRequest& WithSslConfiguration(SslConfiguration&& value) { SetSslConfiguration(value); return *this;}
377 
382  inline const Aws::Map<AppAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
383 
388  inline void SetAttributes(const Aws::Map<AppAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
389 
394  inline void SetAttributes(Aws::Map<AppAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
395 
400  inline CreateAppRequest& WithAttributes(const Aws::Map<AppAttributesKeys, Aws::String>& value) { SetAttributes(value); return *this;}
401 
406  inline CreateAppRequest& WithAttributes(Aws::Map<AppAttributesKeys, Aws::String>&& value) { SetAttributes(value); return *this;}
407 
412  inline CreateAppRequest& AddAttributes(const AppAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
413 
418  inline CreateAppRequest& AddAttributes(AppAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
419 
424  inline CreateAppRequest& AddAttributes(const AppAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
425 
430  inline CreateAppRequest& AddAttributes(AppAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
431 
436  inline CreateAppRequest& AddAttributes(AppAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
437 
442  inline CreateAppRequest& AddAttributes(const AppAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
443 
459  inline const Aws::Vector<EnvironmentVariable>& GetEnvironment() const{ return m_environment; }
460 
476  inline void SetEnvironment(const Aws::Vector<EnvironmentVariable>& value) { m_environmentHasBeenSet = true; m_environment = value; }
477 
493  inline void SetEnvironment(Aws::Vector<EnvironmentVariable>&& value) { m_environmentHasBeenSet = true; m_environment = value; }
494 
510  inline CreateAppRequest& WithEnvironment(const Aws::Vector<EnvironmentVariable>& value) { SetEnvironment(value); return *this;}
511 
527  inline CreateAppRequest& WithEnvironment(Aws::Vector<EnvironmentVariable>&& value) { SetEnvironment(value); return *this;}
528 
544  inline CreateAppRequest& AddEnvironment(const EnvironmentVariable& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
545 
561  inline CreateAppRequest& AddEnvironment(EnvironmentVariable&& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
562 
563  private:
564  Aws::String m_stackId;
565  bool m_stackIdHasBeenSet;
566  Aws::String m_shortname;
567  bool m_shortnameHasBeenSet;
568  Aws::String m_name;
569  bool m_nameHasBeenSet;
570  Aws::String m_description;
571  bool m_descriptionHasBeenSet;
572  Aws::Vector<DataSource> m_dataSources;
573  bool m_dataSourcesHasBeenSet;
574  AppType m_type;
575  bool m_typeHasBeenSet;
576  Source m_appSource;
577  bool m_appSourceHasBeenSet;
578  Aws::Vector<Aws::String> m_domains;
579  bool m_domainsHasBeenSet;
580  bool m_enableSsl;
581  bool m_enableSslHasBeenSet;
582  SslConfiguration m_sslConfiguration;
583  bool m_sslConfigurationHasBeenSet;
585  bool m_attributesHasBeenSet;
586  Aws::Vector<EnvironmentVariable> m_environment;
587  bool m_environmentHasBeenSet;
588  };
589 
590 } // namespace Model
591 } // namespace OpsWorks
592 } // namespace Aws
CreateAppRequest & WithDataSources(const Aws::Vector< DataSource > &value)
void SetDataSources(Aws::Vector< DataSource > &&value)
CreateAppRequest & WithType(AppType &&value)
void SetEnvironment(const Aws::Vector< EnvironmentVariable > &value)
void SetSslConfiguration(const SslConfiguration &value)
CreateAppRequest & WithAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
CreateAppRequest & AddEnvironment(const EnvironmentVariable &value)
CreateAppRequest & WithName(Aws::String &&value)
CreateAppRequest & AddDataSources(DataSource &&value)
void SetDataSources(const Aws::Vector< DataSource > &value)
CreateAppRequest & WithStackId(Aws::String &&value)
void SetAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
void SetAppSource(const Source &value)
CreateAppRequest & WithShortname(const char *value)
void SetShortname(const Aws::String &value)
CreateAppRequest & WithEnableSsl(bool value)
CreateAppRequest & WithEnvironment(const Aws::Vector< EnvironmentVariable > &value)
CreateAppRequest & WithName(const char *value)
CreateAppRequest & AddEnvironment(EnvironmentVariable &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
CreateAppRequest & WithEnvironment(Aws::Vector< EnvironmentVariable > &&value)
CreateAppRequest & WithAppSource(Source &&value)
void SetDomains(const Aws::Vector< Aws::String > &value)
CreateAppRequest & WithSslConfiguration(SslConfiguration &&value)
void SetStackId(const Aws::String &value)
CreateAppRequest & AddDataSources(const DataSource &value)
CreateAppRequest & AddAttributes(const AppAttributesKeys &key, Aws::String &&value)
CreateAppRequest & AddDomains(const Aws::String &value)
CreateAppRequest & WithName(const Aws::String &value)
CreateAppRequest & WithType(const AppType &value)
CreateAppRequest & WithDomains(Aws::Vector< Aws::String > &&value)
CreateAppRequest & WithShortname(Aws::String &&value)
const Aws::Vector< Aws::String > & GetDomains() const
CreateAppRequest & WithStackId(const char *value)
CreateAppRequest & WithDataSources(Aws::Vector< DataSource > &&value)
const Aws::String & GetDescription() const
CreateAppRequest & AddAttributes(AppAttributesKeys &&key, const Aws::String &value)
void SetSslConfiguration(SslConfiguration &&value)
CreateAppRequest & AddDomains(const char *value)
CreateAppRequest & WithDescription(const Aws::String &value)
CreateAppRequest & AddAttributes(const AppAttributesKeys &key, const char *value)
void SetDomains(Aws::Vector< Aws::String > &&value)
void SetEnvironment(Aws::Vector< EnvironmentVariable > &&value)
CreateAppRequest & AddAttributes(AppAttributesKeys &&key, const char *value)
const Aws::String & GetName() const
CreateAppRequest & WithDomains(const Aws::Vector< Aws::String > &value)
void SetDescription(const Aws::String &value)
CreateAppRequest & WithDescription(const char *value)
const Aws::Vector< DataSource > & GetDataSources() const
CreateAppRequest & WithAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
void SetDescription(Aws::String &&value)
void SetAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
CreateAppRequest & WithStackId(const Aws::String &value)
void SetName(const Aws::String &value)
CreateAppRequest & AddDomains(Aws::String &&value)
CreateAppRequest & AddAttributes(const AppAttributesKeys &key, const Aws::String &value)
void SetStackId(Aws::String &&value)
const Aws::String & GetShortname() const
const Aws::String & GetStackId() const
const Aws::Map< AppAttributesKeys, Aws::String > & GetAttributes() const
CreateAppRequest & AddAttributes(AppAttributesKeys &&key, Aws::String &&value)
CreateAppRequest & WithDescription(Aws::String &&value)
CreateAppRequest & WithSslConfiguration(const SslConfiguration &value)
CreateAppRequest & WithAppSource(const Source &value)
void SetShortname(Aws::String &&value)
CreateAppRequest & WithShortname(const Aws::String &value)
void SetType(const AppType &value)
const SslConfiguration & GetSslConfiguration() const
JSON (JavaScript Object Notation).