7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/LayerType.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>
55 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
56 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
70 inline void SetStackId(
const char* value) { m_stackIdHasBeenSet =
true; m_stackId.assign(value); }
84 inline void SetLayerId(
const char* value) { m_layerIdHasBeenSet =
true; m_layerId.assign(value); }
96 inline void SetType(
const LayerType& value) { m_typeHasBeenSet =
true; m_type = value; }
97 inline void SetType(
LayerType&& value) { m_typeHasBeenSet =
true; m_type = std::move(value); }
110 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
124 inline void SetShortname(
const char* value) { m_shortnameHasBeenSet =
true; m_shortname.assign(value); }
175 inline void SetCustomInstanceProfileArn(
const char* value) { m_customInstanceProfileArnHasBeenSet =
true; m_customInstanceProfileArn.assign(value); }
190 inline void SetCustomJson(
const char* value) { m_customJsonHasBeenSet =
true; m_customJson.assign(value); }
208 inline Layer&
AddCustomSecurityGroupIds(
const char* value) { m_customSecurityGroupIdsHasBeenSet =
true; m_customSecurityGroupIds.push_back(value);
return *
this; }
239 inline Layer&
AddPackages(
const char* value) { m_packagesHasBeenSet =
true; m_packages.push_back(value);
return *
this; }
263 inline void SetEnableAutoHealing(
bool value) { m_enableAutoHealingHasBeenSet =
true; m_enableAutoHealing = value; }
290 inline void SetAutoAssignPublicIps(
bool value) { m_autoAssignPublicIpsHasBeenSet =
true; m_autoAssignPublicIps = value; }
338 inline void SetCreatedAt(
const char* value) { m_createdAtHasBeenSet =
true; m_createdAt.assign(value); }
386 bool m_arnHasBeenSet =
false;
389 bool m_stackIdHasBeenSet =
false;
392 bool m_layerIdHasBeenSet =
false;
395 bool m_typeHasBeenSet =
false;
398 bool m_nameHasBeenSet =
false;
401 bool m_shortnameHasBeenSet =
false;
404 bool m_attributesHasBeenSet =
false;
407 bool m_cloudWatchLogsConfigurationHasBeenSet =
false;
410 bool m_customInstanceProfileArnHasBeenSet =
false;
413 bool m_customJsonHasBeenSet =
false;
416 bool m_customSecurityGroupIdsHasBeenSet =
false;
419 bool m_defaultSecurityGroupNamesHasBeenSet =
false;
422 bool m_packagesHasBeenSet =
false;
425 bool m_volumeConfigurationsHasBeenSet =
false;
427 bool m_enableAutoHealing;
428 bool m_enableAutoHealingHasBeenSet =
false;
430 bool m_autoAssignElasticIps;
431 bool m_autoAssignElasticIpsHasBeenSet =
false;
433 bool m_autoAssignPublicIps;
434 bool m_autoAssignPublicIpsHasBeenSet =
false;
437 bool m_defaultRecipesHasBeenSet =
false;
440 bool m_customRecipesHasBeenSet =
false;
443 bool m_createdAtHasBeenSet =
false;
445 bool m_installUpdatesOnBoot;
446 bool m_installUpdatesOnBootHasBeenSet =
false;
448 bool m_useEbsOptimizedInstances;
449 bool m_useEbsOptimizedInstancesHasBeenSet =
false;
452 bool m_lifecycleEventConfigurationHasBeenSet =
false;
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
Layer & WithAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
Layer & WithName(const char *value)
void SetType(const LayerType &value)
bool NameHasBeenSet() const
void SetEnableAutoHealing(bool value)
bool GetInstallUpdatesOnBoot() const
Layer & WithType(const LayerType &value)
Layer & WithAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
void SetName(const char *value)
const Aws::String & GetArn() const
Layer & WithCloudWatchLogsConfiguration(CloudWatchLogsConfiguration &&value)
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
Layer & AddAttributes(const LayerAttributesKeys &key, const char *value)
bool GetUseEbsOptimizedInstances() const
void SetCustomInstanceProfileArn(const Aws::String &value)
Layer & AddAttributes(LayerAttributesKeys &&key, const char *value)
Layer & WithCreatedAt(const char *value)
const Aws::Vector< Aws::String > & GetDefaultSecurityGroupNames() const
Layer & WithDefaultRecipes(const Recipes &value)
void SetPackages(Aws::Vector< Aws::String > &&value)
Layer & WithCustomRecipes(Recipes &&value)
Layer & WithDefaultSecurityGroupNames(Aws::Vector< Aws::String > &&value)
Layer & WithUseEbsOptimizedInstances(bool value)
const Aws::String & GetCustomJson() const
Layer & WithPackages(Aws::Vector< Aws::String > &&value)
bool PackagesHasBeenSet() const
void SetLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
Layer & AddCustomSecurityGroupIds(Aws::String &&value)
bool AutoAssignElasticIpsHasBeenSet() const
bool GetEnableAutoHealing() const
bool DefaultSecurityGroupNamesHasBeenSet() const
void SetDefaultRecipes(Recipes &&value)
void SetCloudWatchLogsConfiguration(CloudWatchLogsConfiguration &&value)
Layer & AddDefaultSecurityGroupNames(const Aws::String &value)
bool EnableAutoHealingHasBeenSet() const
const Aws::String & GetName() const
Layer & WithCustomJson(Aws::String &&value)
Layer & WithShortname(const Aws::String &value)
const CloudWatchLogsConfiguration & GetCloudWatchLogsConfiguration() const
void SetArn(const char *value)
bool UseEbsOptimizedInstancesHasBeenSet() const
void SetAutoAssignElasticIps(bool value)
void SetCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Layer & AddCustomSecurityGroupIds(const char *value)
void SetDefaultSecurityGroupNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
Layer & WithCustomJson(const Aws::String &value)
const Recipes & GetDefaultRecipes() const
void SetCreatedAt(const Aws::String &value)
Layer & WithCreatedAt(Aws::String &&value)
void SetAutoAssignPublicIps(bool value)
Layer & AddDefaultSecurityGroupNames(const char *value)
void SetLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
void SetLayerId(const char *value)
bool ArnHasBeenSet() const
bool CloudWatchLogsConfigurationHasBeenSet() const
Layer & WithVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
Layer & WithAutoAssignElasticIps(bool value)
bool GetAutoAssignPublicIps() const
Layer & AddAttributes(const LayerAttributesKeys &key, Aws::String &&value)
Layer & WithCloudWatchLogsConfiguration(const CloudWatchLogsConfiguration &value)
const Aws::String & GetCreatedAt() const
bool LifecycleEventConfigurationHasBeenSet() const
bool TypeHasBeenSet() const
bool LayerIdHasBeenSet() const
Layer & AddPackages(Aws::String &&value)
void SetArn(Aws::String &&value)
const Aws::String & GetStackId() const
void SetCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetLayerId() const
Layer & WithDefaultRecipes(Recipes &&value)
void SetCustomJson(const Aws::String &value)
Layer & AddVolumeConfigurations(VolumeConfiguration &&value)
bool CustomSecurityGroupIdsHasBeenSet() const
Layer & WithName(const Aws::String &value)
Layer & AddAttributes(LayerAttributesKeys &&key, const Aws::String &value)
void SetShortname(const char *value)
void SetName(Aws::String &&value)
Layer & WithArn(Aws::String &&value)
Layer & AddDefaultSecurityGroupNames(Aws::String &&value)
void SetCustomJson(const char *value)
void SetCreatedAt(const char *value)
void SetCustomInstanceProfileArn(Aws::String &&value)
Layer & WithCustomJson(const char *value)
void SetCustomInstanceProfileArn(const char *value)
void SetArn(const Aws::String &value)
void SetDefaultRecipes(const Recipes &value)
void SetCustomRecipes(Recipes &&value)
void SetVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
Layer & WithArn(const Aws::String &value)
Layer & WithCustomInstanceProfileArn(const Aws::String &value)
void SetInstallUpdatesOnBoot(bool value)
bool VolumeConfigurationsHasBeenSet() const
Layer & WithLayerId(const char *value)
void SetUseEbsOptimizedInstances(bool value)
Layer & WithVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
void SetDefaultSecurityGroupNames(const Aws::Vector< Aws::String > &value)
Layer & WithShortname(const char *value)
void SetStackId(Aws::String &&value)
Layer & WithName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetPackages() const
Layer & WithCustomInstanceProfileArn(const char *value)
Layer & AddVolumeConfigurations(const VolumeConfiguration &value)
bool StackIdHasBeenSet() const
void SetStackId(const Aws::String &value)
Layer & WithCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Layer & WithEnableAutoHealing(bool value)
Layer & WithInstallUpdatesOnBoot(bool value)
void SetCloudWatchLogsConfiguration(const CloudWatchLogsConfiguration &value)
Layer & WithLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
void SetShortname(const Aws::String &value)
Layer & WithLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
void SetAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
bool ShortnameHasBeenSet() const
AWS_OPSWORKS_API Layer & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CreatedAtHasBeenSet() const
bool DefaultRecipesHasBeenSet() const
Layer & WithShortname(Aws::String &&value)
bool GetAutoAssignElasticIps() const
Layer & WithLayerId(const Aws::String &value)
Layer & AddAttributes(LayerAttributesKeys &&key, Aws::String &&value)
Layer & WithCustomInstanceProfileArn(Aws::String &&value)
Layer & WithPackages(const Aws::Vector< Aws::String > &value)
const LayerType & GetType() const
Layer & WithType(LayerType &&value)
Layer & WithStackId(Aws::String &&value)
bool CustomInstanceProfileArnHasBeenSet() const
Layer & WithAutoAssignPublicIps(bool value)
Layer & WithLayerId(Aws::String &&value)
Layer & WithCreatedAt(const Aws::String &value)
const Recipes & GetCustomRecipes() const
Layer & WithCustomRecipes(const Recipes &value)
Layer & WithStackId(const Aws::String &value)
Layer & WithCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetCustomRecipes(const Recipes &value)
Layer & WithDefaultSecurityGroupNames(const Aws::Vector< Aws::String > &value)
void SetName(const Aws::String &value)
void SetType(LayerType &&value)
bool InstallUpdatesOnBootHasBeenSet() const
void SetCustomJson(Aws::String &&value)
void SetAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
bool CustomJsonHasBeenSet() const
Layer & WithStackId(const char *value)
bool AutoAssignPublicIpsHasBeenSet() const
void SetLayerId(Aws::String &&value)
const Aws::String & GetShortname() const
void SetVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
AWS_OPSWORKS_API Layer(Aws::Utils::Json::JsonView jsonValue)
Layer & AddPackages(const char *value)
const Aws::String & GetCustomInstanceProfileArn() const
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
Layer & AddCustomSecurityGroupIds(const Aws::String &value)
Layer & WithArn(const char *value)
void SetLayerId(const Aws::String &value)
bool AttributesHasBeenSet() const
void SetStackId(const char *value)
void SetCreatedAt(Aws::String &&value)
Layer & AddAttributes(const LayerAttributesKeys &key, const Aws::String &value)
Layer & AddPackages(const Aws::String &value)
void SetPackages(const Aws::Vector< Aws::String > &value)
void SetShortname(Aws::String &&value)
bool CustomRecipesHasBeenSet() const
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