7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/opsworks/model/StackConfigurationManager.h>
11#include <aws/opsworks/model/ChefConfiguration.h>
12#include <aws/opsworks/model/Source.h>
13#include <aws/opsworks/model/RootDeviceType.h>
14#include <aws/opsworks/model/StackAttributesKeys.h>
40 AWS_OPSWORKS_API
Stack() =
default;
52 template<
typename StackIdT = Aws::String>
53 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet =
true; m_stackId = std::forward<StackIdT>(value); }
54 template<
typename StackIdT = Aws::String>
64 template<
typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
66 template<
typename NameT = Aws::String>
76 template<
typename ArnT = Aws::String>
77 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
78 template<
typename ArnT = Aws::String>
91 template<
typename RegionT = Aws::String>
92 void SetRegion(RegionT&& value) { m_regionHasBeenSet =
true; m_region = std::forward<RegionT>(value); }
93 template<
typename RegionT = Aws::String>
103 template<
typename VpcIdT = Aws::String>
104 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet =
true; m_vpcId = std::forward<VpcIdT>(value); }
105 template<
typename VpcIdT = Aws::String>
115 template<
typename AttributesT = Aws::Map<StackAttributesKeys, Aws::String>>
116 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
117 template<
typename AttributesT = Aws::Map<StackAttributesKeys, Aws::String>>
120 m_attributesHasBeenSet =
true; m_attributes.emplace(key, value);
return *
this;
130 template<
typename ServiceRoleArnT = Aws::String>
131 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet =
true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
132 template<
typename ServiceRoleArnT = Aws::String>
145 template<
typename DefaultInstanceProfileArnT = Aws::String>
146 void SetDefaultInstanceProfileArn(DefaultInstanceProfileArnT&& value) { m_defaultInstanceProfileArnHasBeenSet =
true; m_defaultInstanceProfileArn = std::forward<DefaultInstanceProfileArnT>(value); }
147 template<
typename DefaultInstanceProfileArnT = Aws::String>
157 template<
typename DefaultOsT = Aws::String>
158 void SetDefaultOs(DefaultOsT&& value) { m_defaultOsHasBeenSet =
true; m_defaultOs = std::forward<DefaultOsT>(value); }
159 template<
typename DefaultOsT = Aws::String>
169 template<
typename HostnameThemeT = Aws::String>
170 void SetHostnameTheme(HostnameThemeT&& value) { m_hostnameThemeHasBeenSet =
true; m_hostnameTheme = std::forward<HostnameThemeT>(value); }
171 template<
typename HostnameThemeT = Aws::String>
183 template<
typename DefaultAvailabilityZoneT = Aws::String>
184 void SetDefaultAvailabilityZone(DefaultAvailabilityZoneT&& value) { m_defaultAvailabilityZoneHasBeenSet =
true; m_defaultAvailabilityZone = std::forward<DefaultAvailabilityZoneT>(value); }
185 template<
typename DefaultAvailabilityZoneT = Aws::String>
195 template<
typename DefaultSubnetIdT = Aws::String>
196 void SetDefaultSubnetId(DefaultSubnetIdT&& value) { m_defaultSubnetIdHasBeenSet =
true; m_defaultSubnetId = std::forward<DefaultSubnetIdT>(value); }
197 template<
typename DefaultSubnetIdT = Aws::String>
214 template<
typename CustomJsonT = Aws::String>
215 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet =
true; m_customJson = std::forward<CustomJsonT>(value); }
216 template<
typename CustomJsonT = Aws::String>
226 template<
typename ConfigurationManagerT = StackConfigurationManager>
227 void SetConfigurationManager(ConfigurationManagerT&& value) { m_configurationManagerHasBeenSet =
true; m_configurationManager = std::forward<ConfigurationManagerT>(value); }
228 template<
typename ConfigurationManagerT = StackConfigurationManager>
241 template<
typename ChefConfigurationT = ChefConfiguration>
242 void SetChefConfiguration(ChefConfigurationT&& value) { m_chefConfigurationHasBeenSet =
true; m_chefConfiguration = std::forward<ChefConfigurationT>(value); }
243 template<
typename ChefConfigurationT = ChefConfiguration>
253 inline void SetUseCustomCookbooks(
bool value) { m_useCustomCookbooksHasBeenSet =
true; m_useCustomCookbooks = value; }
279 template<
typename CustomCookbooksSourceT = Source>
280 void SetCustomCookbooksSource(CustomCookbooksSourceT&& value) { m_customCookbooksSourceHasBeenSet =
true; m_customCookbooksSource = std::forward<CustomCookbooksSourceT>(value); }
281 template<
typename CustomCookbooksSourceT = Source>
292 template<
typename DefaultSshKeyNameT = Aws::String>
293 void SetDefaultSshKeyName(DefaultSshKeyNameT&& value) { m_defaultSshKeyNameHasBeenSet =
true; m_defaultSshKeyName = std::forward<DefaultSshKeyNameT>(value); }
294 template<
typename DefaultSshKeyNameT = Aws::String>
304 template<
typename CreatedAtT = Aws::String>
305 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
306 template<
typename CreatedAtT = Aws::String>
331 template<
typename AgentVersionT = Aws::String>
332 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet =
true; m_agentVersion = std::forward<AgentVersionT>(value); }
333 template<
typename AgentVersionT = Aws::String>
339 bool m_stackIdHasBeenSet =
false;
342 bool m_nameHasBeenSet =
false;
345 bool m_arnHasBeenSet =
false;
348 bool m_regionHasBeenSet =
false;
351 bool m_vpcIdHasBeenSet =
false;
354 bool m_attributesHasBeenSet =
false;
357 bool m_serviceRoleArnHasBeenSet =
false;
360 bool m_defaultInstanceProfileArnHasBeenSet =
false;
363 bool m_defaultOsHasBeenSet =
false;
366 bool m_hostnameThemeHasBeenSet =
false;
369 bool m_defaultAvailabilityZoneHasBeenSet =
false;
372 bool m_defaultSubnetIdHasBeenSet =
false;
375 bool m_customJsonHasBeenSet =
false;
378 bool m_configurationManagerHasBeenSet =
false;
381 bool m_chefConfigurationHasBeenSet =
false;
383 bool m_useCustomCookbooks{
false};
384 bool m_useCustomCookbooksHasBeenSet =
false;
386 bool m_useOpsworksSecurityGroups{
false};
387 bool m_useOpsworksSecurityGroupsHasBeenSet =
false;
389 Source m_customCookbooksSource;
390 bool m_customCookbooksSourceHasBeenSet =
false;
393 bool m_defaultSshKeyNameHasBeenSet =
false;
396 bool m_createdAtHasBeenSet =
false;
399 bool m_defaultRootDeviceTypeHasBeenSet =
false;
402 bool m_agentVersionHasBeenSet =
false;
bool GetUseCustomCookbooks() const
const Aws::String & GetName() const
bool DefaultAvailabilityZoneHasBeenSet() const
const Aws::String & GetServiceRoleArn() const
const Aws::String & GetArn() const
void SetAgentVersion(AgentVersionT &&value)
bool UseOpsworksSecurityGroupsHasBeenSet() const
void SetDefaultRootDeviceType(RootDeviceType value)
void SetStackId(StackIdT &&value)
bool CustomCookbooksSourceHasBeenSet() const
const Aws::String & GetDefaultSshKeyName() const
void SetCustomJson(CustomJsonT &&value)
bool ServiceRoleArnHasBeenSet() const
const StackConfigurationManager & GetConfigurationManager() const
const Aws::String & GetDefaultOs() const
void SetDefaultSshKeyName(DefaultSshKeyNameT &&value)
Stack & WithDefaultSshKeyName(DefaultSshKeyNameT &&value)
Stack & WithCustomCookbooksSource(CustomCookbooksSourceT &&value)
void SetArn(ArnT &&value)
void SetUseOpsworksSecurityGroups(bool value)
const Source & GetCustomCookbooksSource() const
Stack & WithDefaultAvailabilityZone(DefaultAvailabilityZoneT &&value)
void SetRegion(RegionT &&value)
Stack & WithStackId(StackIdT &&value)
void SetDefaultSubnetId(DefaultSubnetIdT &&value)
void SetConfigurationManager(ConfigurationManagerT &&value)
Stack & WithDefaultSubnetId(DefaultSubnetIdT &&value)
bool AttributesHasBeenSet() const
const ChefConfiguration & GetChefConfiguration() const
Stack & WithVpcId(VpcIdT &&value)
Stack & WithCreatedAt(CreatedAtT &&value)
AWS_OPSWORKS_API Stack & operator=(Aws::Utils::Json::JsonView jsonValue)
Stack & WithCustomJson(CustomJsonT &&value)
void SetCustomCookbooksSource(CustomCookbooksSourceT &&value)
Stack & WithName(NameT &&value)
Stack & WithConfigurationManager(ConfigurationManagerT &&value)
bool DefaultInstanceProfileArnHasBeenSet() const
void SetServiceRoleArn(ServiceRoleArnT &&value)
bool DefaultSubnetIdHasBeenSet() const
bool HostnameThemeHasBeenSet() const
Stack & WithAgentVersion(AgentVersionT &&value)
Stack & WithHostnameTheme(HostnameThemeT &&value)
bool CustomJsonHasBeenSet() const
AWS_OPSWORKS_API Stack()=default
bool GetUseOpsworksSecurityGroups() const
Stack & WithRegion(RegionT &&value)
Stack & WithAttributes(AttributesT &&value)
bool ConfigurationManagerHasBeenSet() const
Stack & WithChefConfiguration(ChefConfigurationT &&value)
void SetAttributes(AttributesT &&value)
bool ChefConfigurationHasBeenSet() const
Stack & WithDefaultOs(DefaultOsT &&value)
bool DefaultRootDeviceTypeHasBeenSet() const
const Aws::String & GetDefaultSubnetId() const
bool CreatedAtHasBeenSet() const
void SetName(NameT &&value)
Stack & WithArn(ArnT &&value)
const Aws::String & GetAgentVersion() const
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDefaultAvailabilityZone(DefaultAvailabilityZoneT &&value)
const Aws::String & GetVpcId() const
bool VpcIdHasBeenSet() const
const Aws::Map< StackAttributesKeys, Aws::String > & GetAttributes() const
void SetDefaultOs(DefaultOsT &&value)
const Aws::String & GetCreatedAt() const
bool AgentVersionHasBeenSet() const
void SetVpcId(VpcIdT &&value)
bool NameHasBeenSet() const
Stack & WithUseCustomCookbooks(bool value)
bool RegionHasBeenSet() const
Stack & WithDefaultRootDeviceType(RootDeviceType value)
void SetChefConfiguration(ChefConfigurationT &&value)
const Aws::String & GetDefaultInstanceProfileArn() const
Stack & AddAttributes(StackAttributesKeys key, Aws::String value)
bool ArnHasBeenSet() const
const Aws::String & GetStackId() const
Stack & WithUseOpsworksSecurityGroups(bool value)
const Aws::String & GetHostnameTheme() const
const Aws::String & GetRegion() const
RootDeviceType GetDefaultRootDeviceType() const
bool DefaultSshKeyNameHasBeenSet() const
void SetDefaultInstanceProfileArn(DefaultInstanceProfileArnT &&value)
const Aws::String & GetDefaultAvailabilityZone() const
void SetCreatedAt(CreatedAtT &&value)
Stack & WithDefaultInstanceProfileArn(DefaultInstanceProfileArnT &&value)
Stack & WithServiceRoleArn(ServiceRoleArnT &&value)
void SetHostnameTheme(HostnameThemeT &&value)
const Aws::String & GetCustomJson() const
AWS_OPSWORKS_API Stack(Aws::Utils::Json::JsonView jsonValue)
bool DefaultOsHasBeenSet() const
bool UseCustomCookbooksHasBeenSet() const
bool StackIdHasBeenSet() const
void SetUseCustomCookbooks(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
Aws::Utils::Json::JsonValue JsonValue