AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
52 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
53 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
54 inline CreateLayerRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
55 inline CreateLayerRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
56 inline CreateLayerRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
58
60
65 inline const LayerType& GetType() const{ return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(const LayerType& value) { m_typeHasBeenSet = true; m_type = value; }
68 inline void SetType(LayerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
69 inline CreateLayerRequest& WithType(const LayerType& value) { SetType(value); return *this;}
70 inline CreateLayerRequest& WithType(LayerType&& value) { SetType(std::move(value)); return *this;}
72
74
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline CreateLayerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline CreateLayerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline CreateLayerRequest& WithName(const char* value) { SetName(value); return *this;}
87
89
99 inline const Aws::String& GetShortname() const{ return m_shortname; }
100 inline bool ShortnameHasBeenSet() const { return m_shortnameHasBeenSet; }
101 inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
102 inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = std::move(value); }
103 inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
104 inline CreateLayerRequest& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
105 inline CreateLayerRequest& WithShortname(Aws::String&& value) { SetShortname(std::move(value)); return *this;}
106 inline CreateLayerRequest& WithShortname(const char* value) { SetShortname(value); return *this;}
108
110
115 inline const Aws::Map<LayerAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
116 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
117 inline void SetAttributes(const Aws::Map<LayerAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
118 inline void SetAttributes(Aws::Map<LayerAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
121 inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
122 inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
123 inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
124 inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
125 inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
126 inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
128
130
134 inline const CloudWatchLogsConfiguration& GetCloudWatchLogsConfiguration() const{ return m_cloudWatchLogsConfiguration; }
135 inline bool CloudWatchLogsConfigurationHasBeenSet() const { return m_cloudWatchLogsConfigurationHasBeenSet; }
136 inline void SetCloudWatchLogsConfiguration(const CloudWatchLogsConfiguration& value) { m_cloudWatchLogsConfigurationHasBeenSet = true; m_cloudWatchLogsConfiguration = value; }
137 inline void SetCloudWatchLogsConfiguration(CloudWatchLogsConfiguration&& value) { m_cloudWatchLogsConfigurationHasBeenSet = true; m_cloudWatchLogsConfiguration = std::move(value); }
141
143
149 inline const Aws::String& GetCustomInstanceProfileArn() const{ return m_customInstanceProfileArn; }
150 inline bool CustomInstanceProfileArnHasBeenSet() const { return m_customInstanceProfileArnHasBeenSet; }
151 inline void SetCustomInstanceProfileArn(const Aws::String& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = value; }
152 inline void SetCustomInstanceProfileArn(Aws::String&& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = std::move(value); }
153 inline void SetCustomInstanceProfileArn(const char* value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn.assign(value); }
156 inline CreateLayerRequest& WithCustomInstanceProfileArn(const char* value) { SetCustomInstanceProfileArn(value); return *this;}
158
160
168 inline const Aws::String& GetCustomJson() const{ return m_customJson; }
169 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
170 inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
171 inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = std::move(value); }
172 inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
173 inline CreateLayerRequest& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
174 inline CreateLayerRequest& WithCustomJson(Aws::String&& value) { SetCustomJson(std::move(value)); return *this;}
175 inline CreateLayerRequest& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
177
179
182 inline const Aws::Vector<Aws::String>& GetCustomSecurityGroupIds() const{ return m_customSecurityGroupIds; }
183 inline bool CustomSecurityGroupIdsHasBeenSet() const { return m_customSecurityGroupIdsHasBeenSet; }
184 inline void SetCustomSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = value; }
185 inline void SetCustomSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = std::move(value); }
188 inline CreateLayerRequest& AddCustomSecurityGroupIds(const Aws::String& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
189 inline CreateLayerRequest& AddCustomSecurityGroupIds(Aws::String&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(std::move(value)); return *this; }
190 inline CreateLayerRequest& AddCustomSecurityGroupIds(const char* value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
192
194
198 inline const Aws::Vector<Aws::String>& GetPackages() const{ return m_packages; }
199 inline bool PackagesHasBeenSet() const { return m_packagesHasBeenSet; }
200 inline void SetPackages(const Aws::Vector<Aws::String>& value) { m_packagesHasBeenSet = true; m_packages = value; }
201 inline void SetPackages(Aws::Vector<Aws::String>&& value) { m_packagesHasBeenSet = true; m_packages = std::move(value); }
202 inline CreateLayerRequest& WithPackages(const Aws::Vector<Aws::String>& value) { SetPackages(value); return *this;}
203 inline CreateLayerRequest& WithPackages(Aws::Vector<Aws::String>&& value) { SetPackages(std::move(value)); return *this;}
204 inline CreateLayerRequest& AddPackages(const Aws::String& value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
205 inline CreateLayerRequest& AddPackages(Aws::String&& value) { m_packagesHasBeenSet = true; m_packages.push_back(std::move(value)); return *this; }
206 inline CreateLayerRequest& AddPackages(const char* value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
208
210
214 inline const Aws::Vector<VolumeConfiguration>& GetVolumeConfigurations() const{ return m_volumeConfigurations; }
215 inline bool VolumeConfigurationsHasBeenSet() const { return m_volumeConfigurationsHasBeenSet; }
216 inline void SetVolumeConfigurations(const Aws::Vector<VolumeConfiguration>& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = value; }
217 inline void SetVolumeConfigurations(Aws::Vector<VolumeConfiguration>&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = std::move(value); }
220 inline CreateLayerRequest& AddVolumeConfigurations(const VolumeConfiguration& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(value); return *this; }
221 inline CreateLayerRequest& AddVolumeConfigurations(VolumeConfiguration&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(std::move(value)); return *this; }
223
225
228 inline bool GetEnableAutoHealing() const{ return m_enableAutoHealing; }
229 inline bool EnableAutoHealingHasBeenSet() const { return m_enableAutoHealingHasBeenSet; }
230 inline void SetEnableAutoHealing(bool value) { m_enableAutoHealingHasBeenSet = true; m_enableAutoHealing = value; }
231 inline CreateLayerRequest& WithEnableAutoHealing(bool value) { SetEnableAutoHealing(value); return *this;}
233
235
242 inline bool GetAutoAssignElasticIps() const{ return m_autoAssignElasticIps; }
243 inline bool AutoAssignElasticIpsHasBeenSet() const { return m_autoAssignElasticIpsHasBeenSet; }
244 inline void SetAutoAssignElasticIps(bool value) { m_autoAssignElasticIpsHasBeenSet = true; m_autoAssignElasticIps = value; }
245 inline CreateLayerRequest& WithAutoAssignElasticIps(bool value) { SetAutoAssignElasticIps(value); return *this;}
247
249
255 inline bool GetAutoAssignPublicIps() const{ return m_autoAssignPublicIps; }
256 inline bool AutoAssignPublicIpsHasBeenSet() const { return m_autoAssignPublicIpsHasBeenSet; }
257 inline void SetAutoAssignPublicIps(bool value) { m_autoAssignPublicIpsHasBeenSet = true; m_autoAssignPublicIps = value; }
258 inline CreateLayerRequest& WithAutoAssignPublicIps(bool value) { SetAutoAssignPublicIps(value); return *this;}
260
262
266 inline const Recipes& GetCustomRecipes() const{ return m_customRecipes; }
267 inline bool CustomRecipesHasBeenSet() const { return m_customRecipesHasBeenSet; }
268 inline void SetCustomRecipes(const Recipes& value) { m_customRecipesHasBeenSet = true; m_customRecipes = value; }
269 inline void SetCustomRecipes(Recipes&& value) { m_customRecipesHasBeenSet = true; m_customRecipes = std::move(value); }
270 inline CreateLayerRequest& WithCustomRecipes(const Recipes& value) { SetCustomRecipes(value); return *this;}
271 inline CreateLayerRequest& WithCustomRecipes(Recipes&& value) { SetCustomRecipes(std::move(value)); return *this;}
273
275
286 inline bool GetInstallUpdatesOnBoot() const{ return m_installUpdatesOnBoot; }
287 inline bool InstallUpdatesOnBootHasBeenSet() const { return m_installUpdatesOnBootHasBeenSet; }
288 inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
289 inline CreateLayerRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
291
293
296 inline bool GetUseEbsOptimizedInstances() const{ return m_useEbsOptimizedInstances; }
297 inline bool UseEbsOptimizedInstancesHasBeenSet() const { return m_useEbsOptimizedInstancesHasBeenSet; }
298 inline void SetUseEbsOptimizedInstances(bool value) { m_useEbsOptimizedInstancesHasBeenSet = true; m_useEbsOptimizedInstances = value; }
301
303
308 inline const LifecycleEventConfiguration& GetLifecycleEventConfiguration() const{ return m_lifecycleEventConfiguration; }
309 inline bool LifecycleEventConfigurationHasBeenSet() const { return m_lifecycleEventConfigurationHasBeenSet; }
310 inline void SetLifecycleEventConfiguration(const LifecycleEventConfiguration& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = value; }
311 inline void SetLifecycleEventConfiguration(LifecycleEventConfiguration&& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = std::move(value); }
315 private:
316
317 Aws::String m_stackId;
318 bool m_stackIdHasBeenSet = false;
319
320 LayerType m_type;
321 bool m_typeHasBeenSet = false;
322
323 Aws::String m_name;
324 bool m_nameHasBeenSet = false;
325
326 Aws::String m_shortname;
327 bool m_shortnameHasBeenSet = false;
328
330 bool m_attributesHasBeenSet = false;
331
332 CloudWatchLogsConfiguration m_cloudWatchLogsConfiguration;
333 bool m_cloudWatchLogsConfigurationHasBeenSet = false;
334
335 Aws::String m_customInstanceProfileArn;
336 bool m_customInstanceProfileArnHasBeenSet = false;
337
338 Aws::String m_customJson;
339 bool m_customJsonHasBeenSet = false;
340
341 Aws::Vector<Aws::String> m_customSecurityGroupIds;
342 bool m_customSecurityGroupIdsHasBeenSet = false;
343
344 Aws::Vector<Aws::String> m_packages;
345 bool m_packagesHasBeenSet = false;
346
347 Aws::Vector<VolumeConfiguration> m_volumeConfigurations;
348 bool m_volumeConfigurationsHasBeenSet = false;
349
350 bool m_enableAutoHealing;
351 bool m_enableAutoHealingHasBeenSet = false;
352
353 bool m_autoAssignElasticIps;
354 bool m_autoAssignElasticIpsHasBeenSet = false;
355
356 bool m_autoAssignPublicIps;
357 bool m_autoAssignPublicIpsHasBeenSet = false;
358
359 Recipes m_customRecipes;
360 bool m_customRecipesHasBeenSet = false;
361
362 bool m_installUpdatesOnBoot;
363 bool m_installUpdatesOnBootHasBeenSet = false;
364
365 bool m_useEbsOptimizedInstances;
366 bool m_useEbsOptimizedInstancesHasBeenSet = false;
367
368 LifecycleEventConfiguration m_lifecycleEventConfiguration;
369 bool m_lifecycleEventConfigurationHasBeenSet = false;
370 };
371
372} // namespace Model
373} // namespace OpsWorks
374} // namespace Aws
void SetCloudWatchLogsConfiguration(const CloudWatchLogsConfiguration &value)
CreateLayerRequest & WithAutoAssignPublicIps(bool value)
CreateLayerRequest & WithAutoAssignElasticIps(bool value)
void SetAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
CreateLayerRequest & WithAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
CreateLayerRequest & WithEnableAutoHealing(bool value)
void SetLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
CreateLayerRequest & AddCustomSecurityGroupIds(const Aws::String &value)
const Aws::String & GetCustomInstanceProfileArn() const
CreateLayerRequest & WithShortname(const char *value)
CreateLayerRequest & AddAttributes(const LayerAttributesKeys &key, const Aws::String &value)
const Aws::Vector< Aws::String > & GetPackages() const
void SetStackId(const Aws::String &value)
CreateLayerRequest & WithCustomJson(const Aws::String &value)
CreateLayerRequest & AddPackages(const char *value)
void SetCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetPackages(Aws::Vector< Aws::String > &&value)
CreateLayerRequest & WithStackId(const Aws::String &value)
CreateLayerRequest & WithName(const Aws::String &value)
CreateLayerRequest & WithCustomJson(Aws::String &&value)
CreateLayerRequest & AddVolumeConfigurations(VolumeConfiguration &&value)
CreateLayerRequest & AddCustomSecurityGroupIds(const char *value)
CreateLayerRequest & WithType(LayerType &&value)
virtual const char * GetServiceRequestName() const override
CreateLayerRequest & AddVolumeConfigurations(const VolumeConfiguration &value)
CreateLayerRequest & AddPackages(Aws::String &&value)
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
CreateLayerRequest & AddPackages(const Aws::String &value)
void SetCustomJson(const Aws::String &value)
CreateLayerRequest & WithCustomJson(const char *value)
CreateLayerRequest & AddCustomSecurityGroupIds(Aws::String &&value)
CreateLayerRequest & AddAttributes(const LayerAttributesKeys &key, Aws::String &&value)
CreateLayerRequest & WithCloudWatchLogsConfiguration(CloudWatchLogsConfiguration &&value)
CreateLayerRequest & WithStackId(const char *value)
CreateLayerRequest & WithCloudWatchLogsConfiguration(const CloudWatchLogsConfiguration &value)
CreateLayerRequest & WithCustomRecipes(const Recipes &value)
void SetCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateLayerRequest & WithUseEbsOptimizedInstances(bool value)
void SetLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
CreateLayerRequest & WithPackages(const Aws::Vector< Aws::String > &value)
CreateLayerRequest & WithShortname(const Aws::String &value)
CreateLayerRequest & WithName(const char *value)
CreateLayerRequest & WithVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
void SetCustomInstanceProfileArn(const char *value)
CreateLayerRequest & WithCustomInstanceProfileArn(const Aws::String &value)
CreateLayerRequest & AddAttributes(const LayerAttributesKeys &key, const char *value)
CreateLayerRequest & WithCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetShortname(const Aws::String &value)
void SetName(const Aws::String &value)
CreateLayerRequest & WithCustomInstanceProfileArn(const char *value)
CreateLayerRequest & WithVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
CreateLayerRequest & WithAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
void SetCustomInstanceProfileArn(const Aws::String &value)
const CloudWatchLogsConfiguration & GetCloudWatchLogsConfiguration() const
CreateLayerRequest & WithLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
CreateLayerRequest & WithStackId(Aws::String &&value)
void SetPackages(const Aws::Vector< Aws::String > &value)
void SetVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
CreateLayerRequest & WithType(const LayerType &value)
CreateLayerRequest & AddAttributes(LayerAttributesKeys &&key, Aws::String &&value)
CreateLayerRequest & AddAttributes(LayerAttributesKeys &&key, const Aws::String &value)
CreateLayerRequest & AddAttributes(LayerAttributesKeys &&key, const char *value)
CreateLayerRequest & WithCustomRecipes(Recipes &&value)
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
AWS_OPSWORKS_API Aws::String SerializePayload() const override
CreateLayerRequest & WithPackages(Aws::Vector< Aws::String > &&value)
void SetAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
CreateLayerRequest & WithCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateLayerRequest & WithInstallUpdatesOnBoot(bool value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLayerRequest & WithCustomInstanceProfileArn(Aws::String &&value)
CreateLayerRequest & WithShortname(Aws::String &&value)
CreateLayerRequest & WithName(Aws::String &&value)
void SetCloudWatchLogsConfiguration(CloudWatchLogsConfiguration &&value)
void SetCustomInstanceProfileArn(Aws::String &&value)
void SetVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
CreateLayerRequest & WithLifecycleEventConfiguration(LifecycleEventConfiguration &&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