AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename StackIdT = Aws::String>
52 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
53 template<typename StackIdT = Aws::String>
54 CreateAppRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetShortname() const { return m_shortname; }
62 inline bool ShortnameHasBeenSet() const { return m_shortnameHasBeenSet; }
63 template<typename ShortnameT = Aws::String>
64 void SetShortname(ShortnameT&& value) { m_shortnameHasBeenSet = true; m_shortname = std::forward<ShortnameT>(value); }
65 template<typename ShortnameT = Aws::String>
66 CreateAppRequest& WithShortname(ShortnameT&& value) { SetShortname(std::forward<ShortnameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 CreateAppRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 CreateAppRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
97 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
98 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
99 template<typename DataSourcesT = Aws::Vector<DataSource>>
100 void SetDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::forward<DataSourcesT>(value); }
101 template<typename DataSourcesT = Aws::Vector<DataSource>>
102 CreateAppRequest& WithDataSources(DataSourcesT&& value) { SetDataSources(std::forward<DataSourcesT>(value)); return *this;}
103 template<typename DataSourcesT = DataSource>
104 CreateAppRequest& AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value)); return *this; }
106
108
115 inline AppType GetType() const { return m_type; }
116 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 inline void SetType(AppType value) { m_typeHasBeenSet = true; m_type = value; }
118 inline CreateAppRequest& WithType(AppType value) { SetType(value); return *this;}
120
122
125 inline const Source& GetAppSource() const { return m_appSource; }
126 inline bool AppSourceHasBeenSet() const { return m_appSourceHasBeenSet; }
127 template<typename AppSourceT = Source>
128 void SetAppSource(AppSourceT&& value) { m_appSourceHasBeenSet = true; m_appSource = std::forward<AppSourceT>(value); }
129 template<typename AppSourceT = Source>
130 CreateAppRequest& WithAppSource(AppSourceT&& value) { SetAppSource(std::forward<AppSourceT>(value)); return *this;}
132
134
138 inline const Aws::Vector<Aws::String>& GetDomains() const { return m_domains; }
139 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
140 template<typename DomainsT = Aws::Vector<Aws::String>>
141 void SetDomains(DomainsT&& value) { m_domainsHasBeenSet = true; m_domains = std::forward<DomainsT>(value); }
142 template<typename DomainsT = Aws::Vector<Aws::String>>
143 CreateAppRequest& WithDomains(DomainsT&& value) { SetDomains(std::forward<DomainsT>(value)); return *this;}
144 template<typename DomainsT = Aws::String>
145 CreateAppRequest& AddDomains(DomainsT&& value) { m_domainsHasBeenSet = true; m_domains.emplace_back(std::forward<DomainsT>(value)); return *this; }
147
149
152 inline bool GetEnableSsl() const { return m_enableSsl; }
153 inline bool EnableSslHasBeenSet() const { return m_enableSslHasBeenSet; }
154 inline void SetEnableSsl(bool value) { m_enableSslHasBeenSet = true; m_enableSsl = value; }
155 inline CreateAppRequest& WithEnableSsl(bool value) { SetEnableSsl(value); return *this;}
157
159
162 inline const SslConfiguration& GetSslConfiguration() const { return m_sslConfiguration; }
163 inline bool SslConfigurationHasBeenSet() const { return m_sslConfigurationHasBeenSet; }
164 template<typename SslConfigurationT = SslConfiguration>
165 void SetSslConfiguration(SslConfigurationT&& value) { m_sslConfigurationHasBeenSet = true; m_sslConfiguration = std::forward<SslConfigurationT>(value); }
166 template<typename SslConfigurationT = SslConfiguration>
167 CreateAppRequest& WithSslConfiguration(SslConfigurationT&& value) { SetSslConfiguration(std::forward<SslConfigurationT>(value)); return *this;}
169
171
175 inline const Aws::Map<AppAttributesKeys, Aws::String>& GetAttributes() const { return m_attributes; }
176 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
177 template<typename AttributesT = Aws::Map<AppAttributesKeys, Aws::String>>
178 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
179 template<typename AttributesT = Aws::Map<AppAttributesKeys, Aws::String>>
180 CreateAppRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
182 m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this;
183 }
185
187
201 inline const Aws::Vector<EnvironmentVariable>& GetEnvironment() const { return m_environment; }
202 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
203 template<typename EnvironmentT = Aws::Vector<EnvironmentVariable>>
204 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
205 template<typename EnvironmentT = Aws::Vector<EnvironmentVariable>>
206 CreateAppRequest& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
207 template<typename EnvironmentT = EnvironmentVariable>
208 CreateAppRequest& AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment.emplace_back(std::forward<EnvironmentT>(value)); return *this; }
210 private:
211
212 Aws::String m_stackId;
213 bool m_stackIdHasBeenSet = false;
214
215 Aws::String m_shortname;
216 bool m_shortnameHasBeenSet = false;
217
218 Aws::String m_name;
219 bool m_nameHasBeenSet = false;
220
221 Aws::String m_description;
222 bool m_descriptionHasBeenSet = false;
223
224 Aws::Vector<DataSource> m_dataSources;
225 bool m_dataSourcesHasBeenSet = false;
226
228 bool m_typeHasBeenSet = false;
229
230 Source m_appSource;
231 bool m_appSourceHasBeenSet = false;
232
233 Aws::Vector<Aws::String> m_domains;
234 bool m_domainsHasBeenSet = false;
235
236 bool m_enableSsl{false};
237 bool m_enableSslHasBeenSet = false;
238
239 SslConfiguration m_sslConfiguration;
240 bool m_sslConfigurationHasBeenSet = false;
241
243 bool m_attributesHasBeenSet = false;
244
246 bool m_environmentHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace OpsWorks
251} // namespace Aws
void SetDataSources(DataSourcesT &&value)
CreateAppRequest & WithType(AppType value)
void SetSslConfiguration(SslConfigurationT &&value)
const Aws::String & GetStackId() const
CreateAppRequest & WithSslConfiguration(SslConfigurationT &&value)
CreateAppRequest & WithShortname(ShortnameT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
CreateAppRequest & WithEnableSsl(bool value)
CreateAppRequest & WithStackId(StackIdT &&value)
void SetDescription(DescriptionT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetDescription() const
CreateAppRequest & AddAttributes(AppAttributesKeys key, Aws::String value)
const Aws::Vector< DataSource > & GetDataSources() const
CreateAppRequest & WithEnvironment(EnvironmentT &&value)
CreateAppRequest & AddEnvironment(EnvironmentT &&value)
const Aws::String & GetName() const
void SetEnvironment(EnvironmentT &&value)
const Aws::Vector< Aws::String > & GetDomains() const
CreateAppRequest & AddDataSources(DataSourcesT &&value)
CreateAppRequest & AddDomains(DomainsT &&value)
const Aws::Map< AppAttributesKeys, Aws::String > & GetAttributes() const
void SetAttributes(AttributesT &&value)
CreateAppRequest & WithDescription(DescriptionT &&value)
CreateAppRequest & WithAttributes(AttributesT &&value)
CreateAppRequest & WithAppSource(AppSourceT &&value)
virtual const char * GetServiceRequestName() const override
const SslConfiguration & GetSslConfiguration() const
CreateAppRequest & WithDomains(DomainsT &&value)
const Aws::String & GetShortname() const
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
AWS_OPSWORKS_API CreateAppRequest()=default
CreateAppRequest & WithDataSources(DataSourcesT &&value)
CreateAppRequest & WithName(NameT &&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