AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateLayerRequest.h
1
6#pragma once
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>
18#include <utility>
19
20namespace Aws
21{
22namespace OpsWorks
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_OPSWORKS_API CreateLayerRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateLayer"; }
39
40 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetStackId() const { return m_stackId; }
50 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
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>
54 CreateLayerRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
56
58
63 inline LayerType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(LayerType value) { m_typeHasBeenSet = true; m_type = value; }
66 inline CreateLayerRequest& WithType(LayerType value) { SetType(value); return *this;}
68
70
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
79 CreateLayerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
93 inline const Aws::String& GetShortname() const { return m_shortname; }
94 inline bool ShortnameHasBeenSet() const { return m_shortnameHasBeenSet; }
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>
98 CreateLayerRequest& WithShortname(ShortnameT&& value) { SetShortname(std::forward<ShortnameT>(value)); return *this;}
100
102
107 inline const Aws::Map<LayerAttributesKeys, Aws::String>& GetAttributes() const { return m_attributes; }
108 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
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>>
112 CreateLayerRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
114 m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this;
115 }
117
119
123 inline const CloudWatchLogsConfiguration& GetCloudWatchLogsConfiguration() const { return m_cloudWatchLogsConfiguration; }
124 inline bool CloudWatchLogsConfigurationHasBeenSet() const { return m_cloudWatchLogsConfigurationHasBeenSet; }
125 template<typename CloudWatchLogsConfigurationT = CloudWatchLogsConfiguration>
126 void SetCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT&& value) { m_cloudWatchLogsConfigurationHasBeenSet = true; m_cloudWatchLogsConfiguration = std::forward<CloudWatchLogsConfigurationT>(value); }
127 template<typename CloudWatchLogsConfigurationT = CloudWatchLogsConfiguration>
128 CreateLayerRequest& WithCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT&& value) { SetCloudWatchLogsConfiguration(std::forward<CloudWatchLogsConfigurationT>(value)); return *this;}
130
132
138 inline const Aws::String& GetCustomInstanceProfileArn() const { return m_customInstanceProfileArn; }
139 inline bool CustomInstanceProfileArnHasBeenSet() const { return m_customInstanceProfileArnHasBeenSet; }
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>
143 CreateLayerRequest& WithCustomInstanceProfileArn(CustomInstanceProfileArnT&& value) { SetCustomInstanceProfileArn(std::forward<CustomInstanceProfileArnT>(value)); return *this;}
145
147
155 inline const Aws::String& GetCustomJson() const { return m_customJson; }
156 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
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>
160 CreateLayerRequest& WithCustomJson(CustomJsonT&& value) { SetCustomJson(std::forward<CustomJsonT>(value)); return *this;}
162
164
167 inline const Aws::Vector<Aws::String>& GetCustomSecurityGroupIds() const { return m_customSecurityGroupIds; }
168 inline bool CustomSecurityGroupIdsHasBeenSet() const { return m_customSecurityGroupIdsHasBeenSet; }
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>>
172 CreateLayerRequest& WithCustomSecurityGroupIds(CustomSecurityGroupIdsT&& value) { SetCustomSecurityGroupIds(std::forward<CustomSecurityGroupIdsT>(value)); return *this;}
173 template<typename CustomSecurityGroupIdsT = Aws::String>
174 CreateLayerRequest& AddCustomSecurityGroupIds(CustomSecurityGroupIdsT&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.emplace_back(std::forward<CustomSecurityGroupIdsT>(value)); return *this; }
176
178
182 inline const Aws::Vector<Aws::String>& GetPackages() const { return m_packages; }
183 inline bool PackagesHasBeenSet() const { return m_packagesHasBeenSet; }
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>>
187 CreateLayerRequest& WithPackages(PackagesT&& value) { SetPackages(std::forward<PackagesT>(value)); return *this;}
188 template<typename PackagesT = Aws::String>
189 CreateLayerRequest& AddPackages(PackagesT&& value) { m_packagesHasBeenSet = true; m_packages.emplace_back(std::forward<PackagesT>(value)); return *this; }
191
193
197 inline const Aws::Vector<VolumeConfiguration>& GetVolumeConfigurations() const { return m_volumeConfigurations; }
198 inline bool VolumeConfigurationsHasBeenSet() const { return m_volumeConfigurationsHasBeenSet; }
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>>
202 CreateLayerRequest& WithVolumeConfigurations(VolumeConfigurationsT&& value) { SetVolumeConfigurations(std::forward<VolumeConfigurationsT>(value)); return *this;}
203 template<typename VolumeConfigurationsT = VolumeConfiguration>
204 CreateLayerRequest& AddVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value)); return *this; }
206
208
211 inline bool GetEnableAutoHealing() const { return m_enableAutoHealing; }
212 inline bool EnableAutoHealingHasBeenSet() const { return m_enableAutoHealingHasBeenSet; }
213 inline void SetEnableAutoHealing(bool value) { m_enableAutoHealingHasBeenSet = true; m_enableAutoHealing = value; }
214 inline CreateLayerRequest& WithEnableAutoHealing(bool value) { SetEnableAutoHealing(value); return *this;}
216
218
225 inline bool GetAutoAssignElasticIps() const { return m_autoAssignElasticIps; }
226 inline bool AutoAssignElasticIpsHasBeenSet() const { return m_autoAssignElasticIpsHasBeenSet; }
227 inline void SetAutoAssignElasticIps(bool value) { m_autoAssignElasticIpsHasBeenSet = true; m_autoAssignElasticIps = value; }
228 inline CreateLayerRequest& WithAutoAssignElasticIps(bool value) { SetAutoAssignElasticIps(value); return *this;}
230
232
238 inline bool GetAutoAssignPublicIps() const { return m_autoAssignPublicIps; }
239 inline bool AutoAssignPublicIpsHasBeenSet() const { return m_autoAssignPublicIpsHasBeenSet; }
240 inline void SetAutoAssignPublicIps(bool value) { m_autoAssignPublicIpsHasBeenSet = true; m_autoAssignPublicIps = value; }
241 inline CreateLayerRequest& WithAutoAssignPublicIps(bool value) { SetAutoAssignPublicIps(value); return *this;}
243
245
249 inline const Recipes& GetCustomRecipes() const { return m_customRecipes; }
250 inline bool CustomRecipesHasBeenSet() const { return m_customRecipesHasBeenSet; }
251 template<typename CustomRecipesT = Recipes>
252 void SetCustomRecipes(CustomRecipesT&& value) { m_customRecipesHasBeenSet = true; m_customRecipes = std::forward<CustomRecipesT>(value); }
253 template<typename CustomRecipesT = Recipes>
254 CreateLayerRequest& WithCustomRecipes(CustomRecipesT&& value) { SetCustomRecipes(std::forward<CustomRecipesT>(value)); return *this;}
256
258
269 inline bool GetInstallUpdatesOnBoot() const { return m_installUpdatesOnBoot; }
270 inline bool InstallUpdatesOnBootHasBeenSet() const { return m_installUpdatesOnBootHasBeenSet; }
271 inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
272 inline CreateLayerRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
274
276
279 inline bool GetUseEbsOptimizedInstances() const { return m_useEbsOptimizedInstances; }
280 inline bool UseEbsOptimizedInstancesHasBeenSet() const { return m_useEbsOptimizedInstancesHasBeenSet; }
281 inline void SetUseEbsOptimizedInstances(bool value) { m_useEbsOptimizedInstancesHasBeenSet = true; m_useEbsOptimizedInstances = value; }
284
286
291 inline const LifecycleEventConfiguration& GetLifecycleEventConfiguration() const { return m_lifecycleEventConfiguration; }
292 inline bool LifecycleEventConfigurationHasBeenSet() const { return m_lifecycleEventConfigurationHasBeenSet; }
293 template<typename LifecycleEventConfigurationT = LifecycleEventConfiguration>
294 void SetLifecycleEventConfiguration(LifecycleEventConfigurationT&& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = std::forward<LifecycleEventConfigurationT>(value); }
295 template<typename LifecycleEventConfigurationT = LifecycleEventConfiguration>
296 CreateLayerRequest& WithLifecycleEventConfiguration(LifecycleEventConfigurationT&& value) { SetLifecycleEventConfiguration(std::forward<LifecycleEventConfigurationT>(value)); return *this;}
298 private:
299
300 Aws::String m_stackId;
301 bool m_stackIdHasBeenSet = false;
302
304 bool m_typeHasBeenSet = false;
305
306 Aws::String m_name;
307 bool m_nameHasBeenSet = false;
308
309 Aws::String m_shortname;
310 bool m_shortnameHasBeenSet = false;
311
313 bool m_attributesHasBeenSet = false;
314
315 CloudWatchLogsConfiguration m_cloudWatchLogsConfiguration;
316 bool m_cloudWatchLogsConfigurationHasBeenSet = false;
317
318 Aws::String m_customInstanceProfileArn;
319 bool m_customInstanceProfileArnHasBeenSet = false;
320
321 Aws::String m_customJson;
322 bool m_customJsonHasBeenSet = false;
323
324 Aws::Vector<Aws::String> m_customSecurityGroupIds;
325 bool m_customSecurityGroupIdsHasBeenSet = false;
326
327 Aws::Vector<Aws::String> m_packages;
328 bool m_packagesHasBeenSet = false;
329
330 Aws::Vector<VolumeConfiguration> m_volumeConfigurations;
331 bool m_volumeConfigurationsHasBeenSet = false;
332
333 bool m_enableAutoHealing{false};
334 bool m_enableAutoHealingHasBeenSet = false;
335
336 bool m_autoAssignElasticIps{false};
337 bool m_autoAssignElasticIpsHasBeenSet = false;
338
339 bool m_autoAssignPublicIps{false};
340 bool m_autoAssignPublicIpsHasBeenSet = false;
341
342 Recipes m_customRecipes;
343 bool m_customRecipesHasBeenSet = false;
344
345 bool m_installUpdatesOnBoot{false};
346 bool m_installUpdatesOnBootHasBeenSet = false;
347
348 bool m_useEbsOptimizedInstances{false};
349 bool m_useEbsOptimizedInstancesHasBeenSet = false;
350
351 LifecycleEventConfiguration m_lifecycleEventConfiguration;
352 bool m_lifecycleEventConfigurationHasBeenSet = false;
353 };
354
355} // namespace Model
356} // namespace OpsWorks
357} // namespace Aws
CreateLayerRequest & WithAttributes(AttributesT &&value)
CreateLayerRequest & WithAutoAssignPublicIps(bool value)
CreateLayerRequest & WithAutoAssignElasticIps(bool value)
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)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
void SetCustomRecipes(CustomRecipesT &&value)
CreateLayerRequest & WithPackages(PackagesT &&value)
CreateLayerRequest & WithCustomRecipes(CustomRecipesT &&value)
CreateLayerRequest & WithUseEbsOptimizedInstances(bool value)
CreateLayerRequest & WithStackId(StackIdT &&value)
AWS_OPSWORKS_API CreateLayerRequest()=default
CreateLayerRequest & WithName(NameT &&value)
void SetCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
CreateLayerRequest & WithType(LayerType value)
CreateLayerRequest & WithCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
const CloudWatchLogsConfiguration & GetCloudWatchLogsConfiguration() const
CreateLayerRequest & WithCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT &&value)
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
CreateLayerRequest & AddPackages(PackagesT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
CreateLayerRequest & WithInstallUpdatesOnBoot(bool value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLayerRequest & AddAttributes(LayerAttributesKeys key, Aws::String value)
CreateLayerRequest & AddVolumeConfigurations(VolumeConfigurationsT &&value)
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
CreateLayerRequest & WithLifecycleEventConfiguration(LifecycleEventConfigurationT &&value)
CreateLayerRequest & WithCustomJson(CustomJsonT &&value)
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