AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAppRequest.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 CreateAppRequest();
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 "CreateApp"; }
39
40 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetStackId() const{ return m_stackId; }
50 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
51 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
52 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
53 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
54 inline CreateAppRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
55 inline CreateAppRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
56 inline CreateAppRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
58
60
63 inline const Aws::String& GetShortname() const{ return m_shortname; }
64 inline bool ShortnameHasBeenSet() const { return m_shortnameHasBeenSet; }
65 inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
66 inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = std::move(value); }
67 inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
68 inline CreateAppRequest& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
69 inline CreateAppRequest& WithShortname(Aws::String&& value) { SetShortname(std::move(value)); return *this;}
70 inline CreateAppRequest& WithShortname(const char* value) { SetShortname(value); return *this;}
72
74
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline CreateAppRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline CreateAppRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline CreateAppRequest& WithName(const char* value) { SetName(value); return *this;}
86
88
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline CreateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline CreateAppRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline CreateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
105 inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
106 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
107 inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
108 inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
109 inline CreateAppRequest& WithDataSources(const Aws::Vector<DataSource>& value) { SetDataSources(value); return *this;}
110 inline CreateAppRequest& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(std::move(value)); return *this;}
111 inline CreateAppRequest& AddDataSources(const DataSource& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
112 inline CreateAppRequest& AddDataSources(DataSource&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; }
114
116
123 inline const AppType& GetType() const{ return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(const AppType& value) { m_typeHasBeenSet = true; m_type = value; }
126 inline void SetType(AppType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
127 inline CreateAppRequest& WithType(const AppType& value) { SetType(value); return *this;}
128 inline CreateAppRequest& WithType(AppType&& value) { SetType(std::move(value)); return *this;}
130
132
135 inline const Source& GetAppSource() const{ return m_appSource; }
136 inline bool AppSourceHasBeenSet() const { return m_appSourceHasBeenSet; }
137 inline void SetAppSource(const Source& value) { m_appSourceHasBeenSet = true; m_appSource = value; }
138 inline void SetAppSource(Source&& value) { m_appSourceHasBeenSet = true; m_appSource = std::move(value); }
139 inline CreateAppRequest& WithAppSource(const Source& value) { SetAppSource(value); return *this;}
140 inline CreateAppRequest& WithAppSource(Source&& value) { SetAppSource(std::move(value)); return *this;}
142
144
148 inline const Aws::Vector<Aws::String>& GetDomains() const{ return m_domains; }
149 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
150 inline void SetDomains(const Aws::Vector<Aws::String>& value) { m_domainsHasBeenSet = true; m_domains = value; }
151 inline void SetDomains(Aws::Vector<Aws::String>&& value) { m_domainsHasBeenSet = true; m_domains = std::move(value); }
152 inline CreateAppRequest& WithDomains(const Aws::Vector<Aws::String>& value) { SetDomains(value); return *this;}
153 inline CreateAppRequest& WithDomains(Aws::Vector<Aws::String>&& value) { SetDomains(std::move(value)); return *this;}
154 inline CreateAppRequest& AddDomains(const Aws::String& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
155 inline CreateAppRequest& AddDomains(Aws::String&& value) { m_domainsHasBeenSet = true; m_domains.push_back(std::move(value)); return *this; }
156 inline CreateAppRequest& AddDomains(const char* value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
158
160
163 inline bool GetEnableSsl() const{ return m_enableSsl; }
164 inline bool EnableSslHasBeenSet() const { return m_enableSslHasBeenSet; }
165 inline void SetEnableSsl(bool value) { m_enableSslHasBeenSet = true; m_enableSsl = value; }
166 inline CreateAppRequest& WithEnableSsl(bool value) { SetEnableSsl(value); return *this;}
168
170
173 inline const SslConfiguration& GetSslConfiguration() const{ return m_sslConfiguration; }
174 inline bool SslConfigurationHasBeenSet() const { return m_sslConfigurationHasBeenSet; }
175 inline void SetSslConfiguration(const SslConfiguration& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = value; }
176 inline void SetSslConfiguration(SslConfiguration&& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = std::move(value); }
177 inline CreateAppRequest& WithSslConfiguration(const SslConfiguration& value) { SetSslConfiguration(value); return *this;}
178 inline CreateAppRequest& WithSslConfiguration(SslConfiguration&& value) { SetSslConfiguration(std::move(value)); return *this;}
180
182
186 inline const Aws::Map<AppAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
187 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
188 inline void SetAttributes(const Aws::Map<AppAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
189 inline void SetAttributes(Aws::Map<AppAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
192 inline CreateAppRequest& AddAttributes(const AppAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
193 inline CreateAppRequest& AddAttributes(AppAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
194 inline CreateAppRequest& AddAttributes(const AppAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
195 inline CreateAppRequest& AddAttributes(AppAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
196 inline CreateAppRequest& AddAttributes(AppAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
197 inline CreateAppRequest& AddAttributes(const AppAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
199
201
215 inline const Aws::Vector<EnvironmentVariable>& GetEnvironment() const{ return m_environment; }
216 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
217 inline void SetEnvironment(const Aws::Vector<EnvironmentVariable>& value) { m_environmentHasBeenSet = true; m_environment = value; }
218 inline void SetEnvironment(Aws::Vector<EnvironmentVariable>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
220 inline CreateAppRequest& WithEnvironment(Aws::Vector<EnvironmentVariable>&& value) { SetEnvironment(std::move(value)); return *this;}
221 inline CreateAppRequest& AddEnvironment(const EnvironmentVariable& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
222 inline CreateAppRequest& AddEnvironment(EnvironmentVariable&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
224 private:
225
226 Aws::String m_stackId;
227 bool m_stackIdHasBeenSet = false;
228
229 Aws::String m_shortname;
230 bool m_shortnameHasBeenSet = false;
231
232 Aws::String m_name;
233 bool m_nameHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 Aws::Vector<DataSource> m_dataSources;
239 bool m_dataSourcesHasBeenSet = false;
240
241 AppType m_type;
242 bool m_typeHasBeenSet = false;
243
244 Source m_appSource;
245 bool m_appSourceHasBeenSet = false;
246
247 Aws::Vector<Aws::String> m_domains;
248 bool m_domainsHasBeenSet = false;
249
250 bool m_enableSsl;
251 bool m_enableSslHasBeenSet = false;
252
253 SslConfiguration m_sslConfiguration;
254 bool m_sslConfigurationHasBeenSet = false;
255
257 bool m_attributesHasBeenSet = false;
258
260 bool m_environmentHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace OpsWorks
265} // namespace Aws
CreateAppRequest & AddAttributes(const AppAttributesKeys &key, Aws::String &&value)
CreateAppRequest & AddDataSources(DataSource &&value)
void SetSslConfiguration(SslConfiguration &&value)
CreateAppRequest & WithShortname(const Aws::String &value)
void SetShortname(Aws::String &&value)
CreateAppRequest & WithDomains(const Aws::Vector< Aws::String > &value)
void SetDescription(Aws::String &&value)
CreateAppRequest & AddAttributes(AppAttributesKeys &&key, Aws::String &&value)
const Aws::String & GetStackId() const
CreateAppRequest & WithStackId(const char *value)
CreateAppRequest & WithAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
CreateAppRequest & AddAttributes(const AppAttributesKeys &key, const Aws::String &value)
void SetEnvironment(Aws::Vector< EnvironmentVariable > &&value)
void SetEnvironment(const Aws::Vector< EnvironmentVariable > &value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
void SetAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
void SetName(const Aws::String &value)
CreateAppRequest & WithEnableSsl(bool value)
CreateAppRequest & WithAttributes(Aws::Map< AppAttributesKeys, Aws::String > &&value)
CreateAppRequest & WithDescription(Aws::String &&value)
CreateAppRequest & AddAttributes(AppAttributesKeys &&key, const Aws::String &value)
void SetDataSources(const Aws::Vector< DataSource > &value)
CreateAppRequest & WithName(const Aws::String &value)
CreateAppRequest & WithName(const char *value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAppRequest & AddEnvironment(const EnvironmentVariable &value)
CreateAppRequest & WithEnvironment(Aws::Vector< EnvironmentVariable > &&value)
CreateAppRequest & WithDataSources(const Aws::Vector< DataSource > &value)
const Aws::String & GetDescription() const
CreateAppRequest & WithStackId(const Aws::String &value)
void SetDomains(const Aws::Vector< Aws::String > &value)
CreateAppRequest & WithShortname(const char *value)
const Aws::Vector< DataSource > & GetDataSources() const
CreateAppRequest & AddDomains(const Aws::String &value)
const Aws::String & GetName() const
CreateAppRequest & WithType(const AppType &value)
void SetDescription(const Aws::String &value)
CreateAppRequest & WithType(AppType &&value)
CreateAppRequest & WithDataSources(Aws::Vector< DataSource > &&value)
CreateAppRequest & AddAttributes(const AppAttributesKeys &key, const char *value)
CreateAppRequest & AddDomains(Aws::String &&value)
const Aws::Vector< Aws::String > & GetDomains() const
CreateAppRequest & AddEnvironment(EnvironmentVariable &&value)
const Aws::Map< AppAttributesKeys, Aws::String > & GetAttributes() const
CreateAppRequest & WithAppSource(const Source &value)
CreateAppRequest & WithSslConfiguration(const SslConfiguration &value)
void SetStackId(const Aws::String &value)
void SetDomains(Aws::Vector< Aws::String > &&value)
void SetShortname(const Aws::String &value)
CreateAppRequest & WithName(Aws::String &&value)
CreateAppRequest & AddDomains(const char *value)
CreateAppRequest & AddAttributes(AppAttributesKeys &&key, const char *value)
virtual const char * GetServiceRequestName() const override
CreateAppRequest & WithShortname(Aws::String &&value)
CreateAppRequest & WithStackId(Aws::String &&value)
const SslConfiguration & GetSslConfiguration() const
CreateAppRequest & WithEnvironment(const Aws::Vector< EnvironmentVariable > &value)
CreateAppRequest & WithSslConfiguration(SslConfiguration &&value)
CreateAppRequest & WithDescription(const Aws::String &value)
void SetAttributes(const Aws::Map< AppAttributesKeys, Aws::String > &value)
CreateAppRequest & WithAppSource(Source &&value)
void SetDataSources(Aws::Vector< DataSource > &&value)
const Aws::String & GetShortname() const
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
CreateAppRequest & WithDomains(Aws::Vector< Aws::String > &&value)
CreateAppRequest & AddDataSources(const DataSource &value)
void SetSslConfiguration(const SslConfiguration &value)
CreateAppRequest & WithDescription(const char *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