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/AWSMap.h>
11#include <aws/opsworks/model/CloudWatchLogsConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/opsworks/model/Recipes.h>
14#include <aws/opsworks/model/LifecycleEventConfiguration.h>
15#include <aws/opsworks/model/LayerAttributesKeys.h>
16#include <aws/opsworks/model/VolumeConfiguration.h>
50 template<
typename LayerIdT = Aws::String>
51 void SetLayerId(LayerIdT&& value) { m_layerIdHasBeenSet =
true; m_layerId = std::forward<LayerIdT>(value); }
52 template<
typename LayerIdT = Aws::String>
63 template<
typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
65 template<
typename NameT = Aws::String>
82 template<
typename ShortnameT = Aws::String>
83 void SetShortname(ShortnameT&& value) { m_shortnameHasBeenSet =
true; m_shortname = std::forward<ShortnameT>(value); }
84 template<
typename ShortnameT = Aws::String>
95 template<
typename AttributesT = Aws::Map<LayerAttributesKeys, Aws::String>>
96 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
97 template<
typename AttributesT = Aws::Map<LayerAttributesKeys, Aws::String>>
100 m_attributesHasBeenSet =
true; m_attributes.emplace(key, value);
return *
this;
111 template<
typename CloudWatchLogsConfigurationT = CloudWatchLogsConfiguration>
112 void SetCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT&& value) { m_cloudWatchLogsConfigurationHasBeenSet =
true; m_cloudWatchLogsConfiguration = std::forward<CloudWatchLogsConfigurationT>(value); }
113 template<
typename CloudWatchLogsConfigurationT = CloudWatchLogsConfiguration>
126 template<
typename CustomInstanceProfileArnT = Aws::String>
127 void SetCustomInstanceProfileArn(CustomInstanceProfileArnT&& value) { m_customInstanceProfileArnHasBeenSet =
true; m_customInstanceProfileArn = std::forward<CustomInstanceProfileArnT>(value); }
128 template<
typename CustomInstanceProfileArnT = Aws::String>
142 template<
typename CustomJsonT = Aws::String>
143 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet =
true; m_customJson = std::forward<CustomJsonT>(value); }
144 template<
typename CustomJsonT = Aws::String>
154 template<
typename CustomSecurityGroupIdsT = Aws::Vector<Aws::String>>
155 void SetCustomSecurityGroupIds(CustomSecurityGroupIdsT&& value) { m_customSecurityGroupIdsHasBeenSet =
true; m_customSecurityGroupIds = std::forward<CustomSecurityGroupIdsT>(value); }
156 template<
typename CustomSecurityGroupIdsT = Aws::Vector<Aws::String>>
158 template<
typename CustomSecurityGroupIdsT = Aws::String>
169 template<
typename PackagesT = Aws::Vector<Aws::String>>
170 void SetPackages(PackagesT&& value) { m_packagesHasBeenSet =
true; m_packages = std::forward<PackagesT>(value); }
171 template<
typename PackagesT = Aws::Vector<Aws::String>>
173 template<
typename PackagesT = Aws::String>
184 template<
typename VolumeConfigurationsT = Aws::Vector<VolumeConfiguration>>
185 void SetVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value); }
186 template<
typename VolumeConfigurationsT = Aws::Vector<VolumeConfiguration>>
188 template<
typename VolumeConfigurationsT = VolumeConfiguration>
198 inline void SetEnableAutoHealing(
bool value) { m_enableAutoHealingHasBeenSet =
true; m_enableAutoHealing = value; }
225 inline void SetAutoAssignPublicIps(
bool value) { m_autoAssignPublicIpsHasBeenSet =
true; m_autoAssignPublicIps = value; }
236 template<
typename CustomRecipesT = Recipes>
237 void SetCustomRecipes(CustomRecipesT&& value) { m_customRecipesHasBeenSet =
true; m_customRecipes = std::forward<CustomRecipesT>(value); }
238 template<
typename CustomRecipesT = Recipes>
276 template<
typename LifecycleEventConfigurationT = LifecycleEventConfiguration>
277 void SetLifecycleEventConfiguration(LifecycleEventConfigurationT&& value) { m_lifecycleEventConfigurationHasBeenSet =
true; m_lifecycleEventConfiguration = std::forward<LifecycleEventConfigurationT>(value); }
278 template<
typename LifecycleEventConfigurationT = LifecycleEventConfiguration>
284 bool m_layerIdHasBeenSet =
false;
287 bool m_nameHasBeenSet =
false;
290 bool m_shortnameHasBeenSet =
false;
293 bool m_attributesHasBeenSet =
false;
296 bool m_cloudWatchLogsConfigurationHasBeenSet =
false;
299 bool m_customInstanceProfileArnHasBeenSet =
false;
302 bool m_customJsonHasBeenSet =
false;
305 bool m_customSecurityGroupIdsHasBeenSet =
false;
308 bool m_packagesHasBeenSet =
false;
311 bool m_volumeConfigurationsHasBeenSet =
false;
313 bool m_enableAutoHealing{
false};
314 bool m_enableAutoHealingHasBeenSet =
false;
316 bool m_autoAssignElasticIps{
false};
317 bool m_autoAssignElasticIpsHasBeenSet =
false;
319 bool m_autoAssignPublicIps{
false};
320 bool m_autoAssignPublicIpsHasBeenSet =
false;
322 Recipes m_customRecipes;
323 bool m_customRecipesHasBeenSet =
false;
325 bool m_installUpdatesOnBoot{
false};
326 bool m_installUpdatesOnBootHasBeenSet =
false;
328 bool m_useEbsOptimizedInstances{
false};
329 bool m_useEbsOptimizedInstancesHasBeenSet =
false;
331 LifecycleEventConfiguration m_lifecycleEventConfiguration;
332 bool m_lifecycleEventConfigurationHasBeenSet =
false;
UpdateLayerRequest & WithLayerId(LayerIdT &&value)
UpdateLayerRequest & WithCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT &&value)
UpdateLayerRequest & WithAttributes(AttributesT &&value)
void SetCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
bool GetAutoAssignPublicIps() const
UpdateLayerRequest & WithEnableAutoHealing(bool value)
UpdateLayerRequest & AddCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
bool AutoAssignPublicIpsHasBeenSet() const
bool GetUseEbsOptimizedInstances() const
void SetCustomRecipes(CustomRecipesT &&value)
UpdateLayerRequest & WithInstallUpdatesOnBoot(bool value)
void SetCustomInstanceProfileArn(CustomInstanceProfileArnT &&value)
const Aws::String & GetCustomJson() const
UpdateLayerRequest & WithCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
UpdateLayerRequest & AddVolumeConfigurations(VolumeConfigurationsT &&value)
bool NameHasBeenSet() const
void SetUseEbsOptimizedInstances(bool value)
bool AttributesHasBeenSet() const
UpdateLayerRequest & WithAutoAssignElasticIps(bool value)
UpdateLayerRequest & WithAutoAssignPublicIps(bool value)
UpdateLayerRequest & WithCustomRecipes(CustomRecipesT &&value)
void SetCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
bool EnableAutoHealingHasBeenSet() const
bool LayerIdHasBeenSet() const
UpdateLayerRequest & WithPackages(PackagesT &&value)
bool GetAutoAssignElasticIps() const
void SetShortname(ShortnameT &&value)
void SetAutoAssignElasticIps(bool value)
bool LifecycleEventConfigurationHasBeenSet() const
void SetPackages(PackagesT &&value)
void SetEnableAutoHealing(bool value)
bool CustomRecipesHasBeenSet() const
void SetName(NameT &&value)
const Aws::String & GetName() const
const Recipes & GetCustomRecipes() const
bool GetInstallUpdatesOnBoot() const
AWS_OPSWORKS_API UpdateLayerRequest()=default
bool VolumeConfigurationsHasBeenSet() const
void SetLayerId(LayerIdT &&value)
const CloudWatchLogsConfiguration & GetCloudWatchLogsConfiguration() const
UpdateLayerRequest & WithShortname(ShortnameT &&value)
void SetCustomJson(CustomJsonT &&value)
UpdateLayerRequest & WithName(NameT &&value)
const Aws::String & GetLayerId() const
const Aws::Vector< Aws::String > & GetPackages() const
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
bool CustomJsonHasBeenSet() const
UpdateLayerRequest & WithCustomJson(CustomJsonT &&value)
bool GetEnableAutoHealing() const
void SetAttributes(AttributesT &&value)
const Aws::String & GetShortname() const
bool CustomInstanceProfileArnHasBeenSet() const
void SetInstallUpdatesOnBoot(bool value)
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
void SetAutoAssignPublicIps(bool value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool UseEbsOptimizedInstancesHasBeenSet() const
void SetLifecycleEventConfiguration(LifecycleEventConfigurationT &&value)
bool ShortnameHasBeenSet() const
virtual const char * GetServiceRequestName() const override
bool AutoAssignElasticIpsHasBeenSet() const
UpdateLayerRequest & AddPackages(PackagesT &&value)
const Aws::String & GetCustomInstanceProfileArn() const
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
UpdateLayerRequest & WithLifecycleEventConfiguration(LifecycleEventConfigurationT &&value)
UpdateLayerRequest & AddAttributes(LayerAttributesKeys key, Aws::String value)
UpdateLayerRequest & WithUseEbsOptimizedInstances(bool value)
bool PackagesHasBeenSet() const
bool CloudWatchLogsConfigurationHasBeenSet() const
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
UpdateLayerRequest & WithCustomInstanceProfileArn(CustomInstanceProfileArnT &&value)
bool CustomSecurityGroupIdsHasBeenSet() const
bool InstallUpdatesOnBootHasBeenSet() const
UpdateLayerRequest & WithVolumeConfigurations(VolumeConfigurationsT &&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