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/opsworks/model/LayerType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/opsworks/model/CloudWatchLogsConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/opsworks/model/Recipes.h>
15#include <aws/opsworks/model/LifecycleEventConfiguration.h>
16#include <aws/opsworks/model/LayerAttributesKeys.h>
17#include <aws/opsworks/model/VolumeConfiguration.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>
76 template<
typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
78 template<
typename NameT = Aws::String>
95 template<
typename ShortnameT = Aws::String>
96 void SetShortname(ShortnameT&& value) { m_shortnameHasBeenSet =
true; m_shortname = std::forward<ShortnameT>(value); }
97 template<
typename ShortnameT = Aws::String>
109 template<
typename AttributesT = Aws::Map<LayerAttributesKeys, Aws::String>>
110 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
111 template<
typename AttributesT = Aws::Map<LayerAttributesKeys, Aws::String>>
114 m_attributesHasBeenSet =
true; m_attributes.emplace(key, value);
return *
this;
125 template<
typename CloudWatchLogsConfigurationT = CloudWatchLogsConfiguration>
126 void SetCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT&& value) { m_cloudWatchLogsConfigurationHasBeenSet =
true; m_cloudWatchLogsConfiguration = std::forward<CloudWatchLogsConfigurationT>(value); }
127 template<
typename CloudWatchLogsConfigurationT = CloudWatchLogsConfiguration>
140 template<
typename CustomInstanceProfileArnT = Aws::String>
141 void SetCustomInstanceProfileArn(CustomInstanceProfileArnT&& value) { m_customInstanceProfileArnHasBeenSet =
true; m_customInstanceProfileArn = std::forward<CustomInstanceProfileArnT>(value); }
142 template<
typename CustomInstanceProfileArnT = Aws::String>
157 template<
typename CustomJsonT = Aws::String>
158 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet =
true; m_customJson = std::forward<CustomJsonT>(value); }
159 template<
typename CustomJsonT = Aws::String>
169 template<
typename CustomSecurityGroupIdsT = Aws::Vector<Aws::String>>
170 void SetCustomSecurityGroupIds(CustomSecurityGroupIdsT&& value) { m_customSecurityGroupIdsHasBeenSet =
true; m_customSecurityGroupIds = std::forward<CustomSecurityGroupIdsT>(value); }
171 template<
typename CustomSecurityGroupIdsT = Aws::Vector<Aws::String>>
173 template<
typename CustomSecurityGroupIdsT = Aws::String>
184 template<
typename PackagesT = Aws::Vector<Aws::String>>
185 void SetPackages(PackagesT&& value) { m_packagesHasBeenSet =
true; m_packages = std::forward<PackagesT>(value); }
186 template<
typename PackagesT = Aws::Vector<Aws::String>>
188 template<
typename PackagesT = Aws::String>
199 template<
typename VolumeConfigurationsT = Aws::Vector<VolumeConfiguration>>
200 void SetVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value); }
201 template<
typename VolumeConfigurationsT = Aws::Vector<VolumeConfiguration>>
203 template<
typename VolumeConfigurationsT = VolumeConfiguration>
213 inline void SetEnableAutoHealing(
bool value) { m_enableAutoHealingHasBeenSet =
true; m_enableAutoHealing = value; }
240 inline void SetAutoAssignPublicIps(
bool value) { m_autoAssignPublicIpsHasBeenSet =
true; m_autoAssignPublicIps = value; }
251 template<
typename CustomRecipesT = Recipes>
252 void SetCustomRecipes(CustomRecipesT&& value) { m_customRecipesHasBeenSet =
true; m_customRecipes = std::forward<CustomRecipesT>(value); }
253 template<
typename CustomRecipesT = Recipes>
293 template<
typename LifecycleEventConfigurationT = LifecycleEventConfiguration>
294 void SetLifecycleEventConfiguration(LifecycleEventConfigurationT&& value) { m_lifecycleEventConfigurationHasBeenSet =
true; m_lifecycleEventConfiguration = std::forward<LifecycleEventConfigurationT>(value); }
295 template<
typename LifecycleEventConfigurationT = LifecycleEventConfiguration>
301 bool m_stackIdHasBeenSet =
false;
304 bool m_typeHasBeenSet =
false;
307 bool m_nameHasBeenSet =
false;
310 bool m_shortnameHasBeenSet =
false;
313 bool m_attributesHasBeenSet =
false;
315 CloudWatchLogsConfiguration m_cloudWatchLogsConfiguration;
316 bool m_cloudWatchLogsConfigurationHasBeenSet =
false;
319 bool m_customInstanceProfileArnHasBeenSet =
false;
322 bool m_customJsonHasBeenSet =
false;
325 bool m_customSecurityGroupIdsHasBeenSet =
false;
328 bool m_packagesHasBeenSet =
false;
331 bool m_volumeConfigurationsHasBeenSet =
false;
333 bool m_enableAutoHealing{
false};
334 bool m_enableAutoHealingHasBeenSet =
false;
336 bool m_autoAssignElasticIps{
false};
337 bool m_autoAssignElasticIpsHasBeenSet =
false;
339 bool m_autoAssignPublicIps{
false};
340 bool m_autoAssignPublicIpsHasBeenSet =
false;
342 Recipes m_customRecipes;
343 bool m_customRecipesHasBeenSet =
false;
345 bool m_installUpdatesOnBoot{
false};
346 bool m_installUpdatesOnBootHasBeenSet =
false;
348 bool m_useEbsOptimizedInstances{
false};
349 bool m_useEbsOptimizedInstancesHasBeenSet =
false;
351 LifecycleEventConfiguration m_lifecycleEventConfiguration;
352 bool m_lifecycleEventConfigurationHasBeenSet =
false;
bool CustomJsonHasBeenSet() const
void SetAutoAssignPublicIps(bool value)
void SetInstallUpdatesOnBoot(bool value)
CreateLayerRequest & WithAttributes(AttributesT &&value)
CreateLayerRequest & WithAutoAssignPublicIps(bool value)
CreateLayerRequest & WithAutoAssignElasticIps(bool value)
bool GetAutoAssignElasticIps() const
CreateLayerRequest & WithEnableAutoHealing(bool value)
CreateLayerRequest & WithCustomInstanceProfileArn(CustomInstanceProfileArnT &&value)
CreateLayerRequest & WithShortname(ShortnameT &&value)
const Aws::String & GetCustomInstanceProfileArn() const
void SetCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT &&value)
const Aws::Vector< Aws::String > & GetPackages() const
CreateLayerRequest & WithVolumeConfigurations(VolumeConfigurationsT &&value)
void SetCustomInstanceProfileArn(CustomInstanceProfileArnT &&value)
void SetLifecycleEventConfiguration(LifecycleEventConfigurationT &&value)
const Aws::String & GetShortname() const
void SetName(NameT &&value)
bool AutoAssignElasticIpsHasBeenSet() const
void SetType(LayerType value)
virtual const char * GetServiceRequestName() const override
bool AutoAssignPublicIpsHasBeenSet() const
bool PackagesHasBeenSet() const
bool CloudWatchLogsConfigurationHasBeenSet() const
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
void SetCustomRecipes(CustomRecipesT &&value)
void SetShortname(ShortnameT &&value)
CreateLayerRequest & WithPackages(PackagesT &&value)
void SetAttributes(AttributesT &&value)
bool StackIdHasBeenSet() const
void SetEnableAutoHealing(bool value)
bool CustomInstanceProfileArnHasBeenSet() const
const Recipes & GetCustomRecipes() const
CreateLayerRequest & WithCustomRecipes(CustomRecipesT &&value)
bool VolumeConfigurationsHasBeenSet() const
const Aws::String & GetCustomJson() const
CreateLayerRequest & WithUseEbsOptimizedInstances(bool value)
CreateLayerRequest & WithStackId(StackIdT &&value)
AWS_OPSWORKS_API CreateLayerRequest()=default
CreateLayerRequest & WithName(NameT &&value)
void SetStackId(StackIdT &&value)
void SetCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
bool TypeHasBeenSet() const
bool EnableAutoHealingHasBeenSet() const
bool ShortnameHasBeenSet() const
bool CustomSecurityGroupIdsHasBeenSet() const
void SetCustomJson(CustomJsonT &&value)
bool UseEbsOptimizedInstancesHasBeenSet() const
CreateLayerRequest & WithType(LayerType value)
void SetUseEbsOptimizedInstances(bool value)
CreateLayerRequest & WithCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
const Aws::String & GetName() const
const CloudWatchLogsConfiguration & GetCloudWatchLogsConfiguration() const
const Aws::String & GetStackId() const
bool GetUseEbsOptimizedInstances() const
CreateLayerRequest & WithCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT &&value)
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
void SetPackages(PackagesT &&value)
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
void SetAutoAssignElasticIps(bool value)
bool NameHasBeenSet() const
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
CreateLayerRequest & AddPackages(PackagesT &&value)
bool InstallUpdatesOnBootHasBeenSet() const
AWS_OPSWORKS_API Aws::String SerializePayload() const override
bool LifecycleEventConfigurationHasBeenSet() const
CreateLayerRequest & WithInstallUpdatesOnBoot(bool value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLayerRequest & AddAttributes(LayerAttributesKeys key, Aws::String value)
bool CustomRecipesHasBeenSet() const
CreateLayerRequest & AddVolumeConfigurations(VolumeConfigurationsT &&value)
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
bool GetAutoAssignPublicIps() const
LayerType GetType() const
bool AttributesHasBeenSet() const
CreateLayerRequest & WithLifecycleEventConfiguration(LifecycleEventConfigurationT &&value)
bool GetInstallUpdatesOnBoot() const
CreateLayerRequest & WithCustomJson(CustomJsonT &&value)
bool GetEnableAutoHealing() const
CreateLayerRequest & AddCustomSecurityGroupIds(CustomSecurityGroupIdsT &&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