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>
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>
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>
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>
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>
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>>
103 template<
typename DataSourcesT = DataSource>
104 CreateAppRequest&
AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet =
true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
return *
this; }
127 template<
typename AppSourceT = Source>
128 void SetAppSource(AppSourceT&& value) { m_appSourceHasBeenSet =
true; m_appSource = std::forward<AppSourceT>(value); }
129 template<
typename AppSourceT = Source>
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>>
144 template<
typename DomainsT = Aws::String>
145 CreateAppRequest&
AddDomains(DomainsT&& value) { m_domainsHasBeenSet =
true; m_domains.emplace_back(std::forward<DomainsT>(value));
return *
this; }
154 inline void SetEnableSsl(
bool value) { m_enableSslHasBeenSet =
true; m_enableSsl = value; }
164 template<
typename SslConfigurationT = SslConfiguration>
165 void SetSslConfiguration(SslConfigurationT&& value) { m_sslConfigurationHasBeenSet =
true; m_sslConfiguration = std::forward<SslConfigurationT>(value); }
166 template<
typename SslConfigurationT = SslConfiguration>
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>>
182 m_attributesHasBeenSet =
true; m_attributes.emplace(key, value);
return *
this;
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>>
207 template<
typename EnvironmentT = EnvironmentVariable>
208 CreateAppRequest&
AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment.emplace_back(std::forward<EnvironmentT>(value));
return *
this; }
213 bool m_stackIdHasBeenSet =
false;
216 bool m_shortnameHasBeenSet =
false;
219 bool m_nameHasBeenSet =
false;
222 bool m_descriptionHasBeenSet =
false;
225 bool m_dataSourcesHasBeenSet =
false;
228 bool m_typeHasBeenSet =
false;
231 bool m_appSourceHasBeenSet =
false;
234 bool m_domainsHasBeenSet =
false;
236 bool m_enableSsl{
false};
237 bool m_enableSslHasBeenSet =
false;
239 SslConfiguration m_sslConfiguration;
240 bool m_sslConfigurationHasBeenSet =
false;
243 bool m_attributesHasBeenSet =
false;
246 bool m_environmentHasBeenSet =
false;
bool AppSourceHasBeenSet() const
bool EnableSslHasBeenSet() const
void SetDataSources(DataSourcesT &&value)
CreateAppRequest & WithType(AppType value)
void SetSslConfiguration(SslConfigurationT &&value)
void SetType(AppType value)
void SetEnableSsl(bool value)
const Aws::String & GetStackId() const
CreateAppRequest & WithSslConfiguration(SslConfigurationT &&value)
CreateAppRequest & WithShortname(ShortnameT &&value)
void SetStackId(StackIdT &&value)
bool DescriptionHasBeenSet() const
bool SslConfigurationHasBeenSet() const
AWS_OPSWORKS_API Aws::String SerializePayload() const override
CreateAppRequest & WithEnableSsl(bool value)
bool NameHasBeenSet() const
CreateAppRequest & WithStackId(StackIdT &&value)
void SetName(NameT &&value)
bool DomainsHasBeenSet() const
void SetDescription(DescriptionT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool TypeHasBeenSet() const
void SetDomains(DomainsT &&value)
bool EnvironmentHasBeenSet() const
const Aws::String & GetDescription() const
CreateAppRequest & AddAttributes(AppAttributesKeys key, Aws::String value)
void SetShortname(ShortnameT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
CreateAppRequest & WithEnvironment(EnvironmentT &&value)
bool AttributesHasBeenSet() const
CreateAppRequest & AddEnvironment(EnvironmentT &&value)
const Aws::String & GetName() const
bool StackIdHasBeenSet() const
bool DataSourcesHasBeenSet() const
void SetEnvironment(EnvironmentT &&value)
bool GetEnableSsl() const
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
void SetAppSource(AppSourceT &&value)
const SslConfiguration & GetSslConfiguration() const
CreateAppRequest & WithDomains(DomainsT &&value)
const Source & GetAppSource() const
const Aws::String & GetShortname() const
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
bool ShortnameHasBeenSet() 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