7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opsworks/model/AppType.h>
11#include <aws/opsworks/model/Source.h>
12#include <aws/opsworks/model/SslConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/opsworks/model/DataSource.h>
15#include <aws/opsworks/model/AppAttributesKeys.h>
16#include <aws/opsworks/model/EnvironmentVariable.h>
42 AWS_OPSWORKS_API
App() =
default;
54 template<
typename AppIdT = Aws::String>
55 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet =
true; m_appId = std::forward<AppIdT>(value); }
56 template<
typename AppIdT = Aws::String>
66 template<
typename StackIdT = Aws::String>
67 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet =
true; m_stackId = std::forward<StackIdT>(value); }
68 template<
typename StackIdT = Aws::String>
78 template<
typename ShortnameT = Aws::String>
79 void SetShortname(ShortnameT&& value) { m_shortnameHasBeenSet =
true; m_shortname = std::forward<ShortnameT>(value); }
80 template<
typename ShortnameT = Aws::String>
90 template<
typename NameT = Aws::String>
91 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
92 template<
typename NameT = Aws::String>
102 template<
typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
104 template<
typename DescriptionT = Aws::String>
114 template<
typename DataSourcesT = Aws::Vector<DataSource>>
115 void SetDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet =
true; m_dataSources = std::forward<DataSourcesT>(value); }
116 template<
typename DataSourcesT = Aws::Vector<DataSource>>
118 template<
typename DataSourcesT = DataSource>
119 App&
AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet =
true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
return *
this; }
138 template<
typename AppSourceT = Source>
139 void SetAppSource(AppSourceT&& value) { m_appSourceHasBeenSet =
true; m_appSource = std::forward<AppSourceT>(value); }
140 template<
typename AppSourceT = Source>
151 template<
typename DomainsT = Aws::Vector<Aws::String>>
152 void SetDomains(DomainsT&& value) { m_domainsHasBeenSet =
true; m_domains = std::forward<DomainsT>(value); }
153 template<
typename DomainsT = Aws::Vector<Aws::String>>
155 template<
typename DomainsT = Aws::String>
156 App&
AddDomains(DomainsT&& value) { m_domainsHasBeenSet =
true; m_domains.emplace_back(std::forward<DomainsT>(value));
return *
this; }
165 inline void SetEnableSsl(
bool value) { m_enableSslHasBeenSet =
true; m_enableSsl = value; }
175 template<
typename SslConfigurationT = SslConfiguration>
176 void SetSslConfiguration(SslConfigurationT&& value) { m_sslConfigurationHasBeenSet =
true; m_sslConfiguration = std::forward<SslConfigurationT>(value); }
177 template<
typename SslConfigurationT = SslConfiguration>
187 template<
typename AttributesT = Aws::Map<AppAttributesKeys, Aws::String>>
188 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
189 template<
typename AttributesT = Aws::Map<AppAttributesKeys, Aws::String>>
192 m_attributesHasBeenSet =
true; m_attributes.emplace(key, value);
return *
this;
202 template<
typename CreatedAtT = Aws::String>
203 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
204 template<
typename CreatedAtT = Aws::String>
224 template<
typename EnvironmentT = Aws::Vector<EnvironmentVariable>>
225 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
226 template<
typename EnvironmentT = Aws::Vector<EnvironmentVariable>>
228 template<
typename EnvironmentT = EnvironmentVariable>
229 App&
AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment.emplace_back(std::forward<EnvironmentT>(value));
return *
this; }
234 bool m_appIdHasBeenSet =
false;
237 bool m_stackIdHasBeenSet =
false;
240 bool m_shortnameHasBeenSet =
false;
243 bool m_nameHasBeenSet =
false;
246 bool m_descriptionHasBeenSet =
false;
249 bool m_dataSourcesHasBeenSet =
false;
252 bool m_typeHasBeenSet =
false;
255 bool m_appSourceHasBeenSet =
false;
258 bool m_domainsHasBeenSet =
false;
260 bool m_enableSsl{
false};
261 bool m_enableSslHasBeenSet =
false;
263 SslConfiguration m_sslConfiguration;
264 bool m_sslConfigurationHasBeenSet =
false;
267 bool m_attributesHasBeenSet =
false;
270 bool m_createdAtHasBeenSet =
false;
273 bool m_environmentHasBeenSet =
false;
App & WithEnableSsl(bool value)
bool StackIdHasBeenSet() const
App & AddDomains(DomainsT &&value)
App & WithAppSource(AppSourceT &&value)
App & WithSslConfiguration(SslConfigurationT &&value)
App & WithStackId(StackIdT &&value)
bool EnvironmentHasBeenSet() const
App & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetCreatedAt() const
bool DescriptionHasBeenSet() const
bool AppSourceHasBeenSet() const
const Source & GetAppSource() const
const Aws::String & GetStackId() const
App & WithDataSources(DataSourcesT &&value)
App & AddAttributes(AppAttributesKeys key, Aws::String value)
void SetDomains(DomainsT &&value)
bool DataSourcesHasBeenSet() const
void SetType(AppType value)
App & WithShortname(ShortnameT &&value)
const Aws::String & GetDescription() const
bool NameHasBeenSet() const
void SetSslConfiguration(SslConfigurationT &&value)
const Aws::Vector< EnvironmentVariable > & GetEnvironment() const
void SetAttributes(AttributesT &&value)
App & WithDomains(DomainsT &&value)
AWS_OPSWORKS_API App(Aws::Utils::Json::JsonView jsonValue)
bool EnableSslHasBeenSet() const
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetShortname() const
void SetDescription(DescriptionT &&value)
App & WithName(NameT &&value)
AWS_OPSWORKS_API App & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetName() const
void SetDataSources(DataSourcesT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
void SetName(NameT &&value)
bool GetEnableSsl() const
void SetAppSource(AppSourceT &&value)
void SetEnvironment(EnvironmentT &&value)
void SetShortname(ShortnameT &&value)
App & AddEnvironment(EnvironmentT &&value)
bool SslConfigurationHasBeenSet() const
bool CreatedAtHasBeenSet() const
const Aws::Vector< Aws::String > & GetDomains() const
void SetAppId(AppIdT &&value)
const Aws::Map< AppAttributesKeys, Aws::String > & GetAttributes() const
bool DomainsHasBeenSet() const
const SslConfiguration & GetSslConfiguration() const
App & WithDescription(DescriptionT &&value)
const Aws::String & GetAppId() const
App & WithType(AppType value)
bool TypeHasBeenSet() const
bool AttributesHasBeenSet() const
bool ShortnameHasBeenSet() const
App & WithEnvironment(EnvironmentT &&value)
App & WithAppId(AppIdT &&value)
AWS_OPSWORKS_API App()=default
bool AppIdHasBeenSet() const
void SetStackId(StackIdT &&value)
App & AddDataSources(DataSourcesT &&value)
App & WithAttributes(AttributesT &&value)
void SetEnableSsl(bool value)
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
Aws::Utils::Json::JsonValue JsonValue