AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateLayerRequest.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/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>
17#include <utility>
18
19namespace Aws
20{
21namespace OpsWorks
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_OPSWORKS_API UpdateLayerRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateLayer"; }
38
39 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetLayerId() const{ return m_layerId; }
49 inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
50 inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
51 inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); }
52 inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
53 inline UpdateLayerRequest& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
54 inline UpdateLayerRequest& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;}
55 inline UpdateLayerRequest& WithLayerId(const char* value) { SetLayerId(value); return *this;}
57
59
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline UpdateLayerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline UpdateLayerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline UpdateLayerRequest& WithName(const char* value) { SetName(value); return *this;}
72
74
84 inline const Aws::String& GetShortname() const{ return m_shortname; }
85 inline bool ShortnameHasBeenSet() const { return m_shortnameHasBeenSet; }
86 inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
87 inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = std::move(value); }
88 inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
89 inline UpdateLayerRequest& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
90 inline UpdateLayerRequest& WithShortname(Aws::String&& value) { SetShortname(std::move(value)); return *this;}
91 inline UpdateLayerRequest& WithShortname(const char* value) { SetShortname(value); return *this;}
93
95
99 inline const Aws::Map<LayerAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
100 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
101 inline void SetAttributes(const Aws::Map<LayerAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
102 inline void SetAttributes(Aws::Map<LayerAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
105 inline UpdateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
106 inline UpdateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
107 inline UpdateLayerRequest& AddAttributes(const LayerAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
108 inline UpdateLayerRequest& AddAttributes(LayerAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
109 inline UpdateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
110 inline UpdateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
112
114
118 inline const CloudWatchLogsConfiguration& GetCloudWatchLogsConfiguration() const{ return m_cloudWatchLogsConfiguration; }
119 inline bool CloudWatchLogsConfigurationHasBeenSet() const { return m_cloudWatchLogsConfigurationHasBeenSet; }
120 inline void SetCloudWatchLogsConfiguration(const CloudWatchLogsConfiguration& value) { m_cloudWatchLogsConfigurationHasBeenSet = true; m_cloudWatchLogsConfiguration = value; }
121 inline void SetCloudWatchLogsConfiguration(CloudWatchLogsConfiguration&& value) { m_cloudWatchLogsConfigurationHasBeenSet = true; m_cloudWatchLogsConfiguration = std::move(value); }
125
127
133 inline const Aws::String& GetCustomInstanceProfileArn() const{ return m_customInstanceProfileArn; }
134 inline bool CustomInstanceProfileArnHasBeenSet() const { return m_customInstanceProfileArnHasBeenSet; }
135 inline void SetCustomInstanceProfileArn(const Aws::String& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = value; }
136 inline void SetCustomInstanceProfileArn(Aws::String&& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = std::move(value); }
137 inline void SetCustomInstanceProfileArn(const char* value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn.assign(value); }
140 inline UpdateLayerRequest& WithCustomInstanceProfileArn(const char* value) { SetCustomInstanceProfileArn(value); return *this;}
142
144
151 inline const Aws::String& GetCustomJson() const{ return m_customJson; }
152 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
153 inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
154 inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = std::move(value); }
155 inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
156 inline UpdateLayerRequest& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
157 inline UpdateLayerRequest& WithCustomJson(Aws::String&& value) { SetCustomJson(std::move(value)); return *this;}
158 inline UpdateLayerRequest& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
160
162
165 inline const Aws::Vector<Aws::String>& GetCustomSecurityGroupIds() const{ return m_customSecurityGroupIds; }
166 inline bool CustomSecurityGroupIdsHasBeenSet() const { return m_customSecurityGroupIdsHasBeenSet; }
167 inline void SetCustomSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = value; }
168 inline void SetCustomSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = std::move(value); }
171 inline UpdateLayerRequest& AddCustomSecurityGroupIds(const Aws::String& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
172 inline UpdateLayerRequest& AddCustomSecurityGroupIds(Aws::String&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(std::move(value)); return *this; }
173 inline UpdateLayerRequest& AddCustomSecurityGroupIds(const char* value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
175
177
181 inline const Aws::Vector<Aws::String>& GetPackages() const{ return m_packages; }
182 inline bool PackagesHasBeenSet() const { return m_packagesHasBeenSet; }
183 inline void SetPackages(const Aws::Vector<Aws::String>& value) { m_packagesHasBeenSet = true; m_packages = value; }
184 inline void SetPackages(Aws::Vector<Aws::String>&& value) { m_packagesHasBeenSet = true; m_packages = std::move(value); }
185 inline UpdateLayerRequest& WithPackages(const Aws::Vector<Aws::String>& value) { SetPackages(value); return *this;}
186 inline UpdateLayerRequest& WithPackages(Aws::Vector<Aws::String>&& value) { SetPackages(std::move(value)); return *this;}
187 inline UpdateLayerRequest& AddPackages(const Aws::String& value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
188 inline UpdateLayerRequest& AddPackages(Aws::String&& value) { m_packagesHasBeenSet = true; m_packages.push_back(std::move(value)); return *this; }
189 inline UpdateLayerRequest& AddPackages(const char* value) { m_packagesHasBeenSet = true; m_packages.push_back(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 inline void SetVolumeConfigurations(const Aws::Vector<VolumeConfiguration>& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = value; }
200 inline void SetVolumeConfigurations(Aws::Vector<VolumeConfiguration>&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = std::move(value); }
203 inline UpdateLayerRequest& AddVolumeConfigurations(const VolumeConfiguration& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(value); return *this; }
204 inline UpdateLayerRequest& AddVolumeConfigurations(VolumeConfiguration&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(std::move(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 UpdateLayerRequest& 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 UpdateLayerRequest& 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 UpdateLayerRequest& 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 inline void SetCustomRecipes(const Recipes& value) { m_customRecipesHasBeenSet = true; m_customRecipes = value; }
252 inline void SetCustomRecipes(Recipes&& value) { m_customRecipesHasBeenSet = true; m_customRecipes = std::move(value); }
253 inline UpdateLayerRequest& WithCustomRecipes(const Recipes& value) { SetCustomRecipes(value); return *this;}
254 inline UpdateLayerRequest& WithCustomRecipes(Recipes&& value) { SetCustomRecipes(std::move(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 UpdateLayerRequest& 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
289 inline const LifecycleEventConfiguration& GetLifecycleEventConfiguration() const{ return m_lifecycleEventConfiguration; }
290 inline bool LifecycleEventConfigurationHasBeenSet() const { return m_lifecycleEventConfigurationHasBeenSet; }
291 inline void SetLifecycleEventConfiguration(const LifecycleEventConfiguration& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = value; }
292 inline void SetLifecycleEventConfiguration(LifecycleEventConfiguration&& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = std::move(value); }
296 private:
297
298 Aws::String m_layerId;
299 bool m_layerIdHasBeenSet = false;
300
301 Aws::String m_name;
302 bool m_nameHasBeenSet = false;
303
304 Aws::String m_shortname;
305 bool m_shortnameHasBeenSet = false;
306
308 bool m_attributesHasBeenSet = false;
309
310 CloudWatchLogsConfiguration m_cloudWatchLogsConfiguration;
311 bool m_cloudWatchLogsConfigurationHasBeenSet = false;
312
313 Aws::String m_customInstanceProfileArn;
314 bool m_customInstanceProfileArnHasBeenSet = false;
315
316 Aws::String m_customJson;
317 bool m_customJsonHasBeenSet = false;
318
319 Aws::Vector<Aws::String> m_customSecurityGroupIds;
320 bool m_customSecurityGroupIdsHasBeenSet = false;
321
322 Aws::Vector<Aws::String> m_packages;
323 bool m_packagesHasBeenSet = false;
324
325 Aws::Vector<VolumeConfiguration> m_volumeConfigurations;
326 bool m_volumeConfigurationsHasBeenSet = false;
327
328 bool m_enableAutoHealing;
329 bool m_enableAutoHealingHasBeenSet = false;
330
331 bool m_autoAssignElasticIps;
332 bool m_autoAssignElasticIpsHasBeenSet = false;
333
334 bool m_autoAssignPublicIps;
335 bool m_autoAssignPublicIpsHasBeenSet = false;
336
337 Recipes m_customRecipes;
338 bool m_customRecipesHasBeenSet = false;
339
340 bool m_installUpdatesOnBoot;
341 bool m_installUpdatesOnBootHasBeenSet = false;
342
343 bool m_useEbsOptimizedInstances;
344 bool m_useEbsOptimizedInstancesHasBeenSet = false;
345
346 LifecycleEventConfiguration m_lifecycleEventConfiguration;
347 bool m_lifecycleEventConfigurationHasBeenSet = false;
348 };
349
350} // namespace Model
351} // namespace OpsWorks
352} // namespace Aws
UpdateLayerRequest & WithShortname(const char *value)
UpdateLayerRequest & WithCloudWatchLogsConfiguration(const CloudWatchLogsConfiguration &value)
UpdateLayerRequest & WithAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
UpdateLayerRequest & WithEnableAutoHealing(bool value)
void SetCustomInstanceProfileArn(Aws::String &&value)
UpdateLayerRequest & AddAttributes(LayerAttributesKeys &&key, const Aws::String &value)
void SetShortname(const Aws::String &value)
UpdateLayerRequest & WithLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
UpdateLayerRequest & WithInstallUpdatesOnBoot(bool value)
UpdateLayerRequest & WithPackages(Aws::Vector< Aws::String > &&value)
UpdateLayerRequest & WithCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateLayerRequest & WithCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateLayerRequest & WithPackages(const Aws::Vector< Aws::String > &value)
void SetAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
UpdateLayerRequest & WithName(const char *value)
void SetCloudWatchLogsConfiguration(CloudWatchLogsConfiguration &&value)
UpdateLayerRequest & WithAutoAssignElasticIps(bool value)
UpdateLayerRequest & WithAutoAssignPublicIps(bool value)
void SetVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
UpdateLayerRequest & WithCustomJson(Aws::String &&value)
UpdateLayerRequest & WithLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
void SetLayerId(const Aws::String &value)
UpdateLayerRequest & WithAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
void SetPackages(Aws::Vector< Aws::String > &&value)
UpdateLayerRequest & AddAttributes(LayerAttributesKeys &&key, Aws::String &&value)
UpdateLayerRequest & WithCustomJson(const Aws::String &value)
UpdateLayerRequest & AddCustomSecurityGroupIds(Aws::String &&value)
UpdateLayerRequest & AddAttributes(LayerAttributesKeys &&key, const char *value)
void SetCloudWatchLogsConfiguration(const CloudWatchLogsConfiguration &value)
UpdateLayerRequest & WithCustomInstanceProfileArn(Aws::String &&value)
UpdateLayerRequest & WithCloudWatchLogsConfiguration(CloudWatchLogsConfiguration &&value)
UpdateLayerRequest & WithShortname(Aws::String &&value)
UpdateLayerRequest & WithCustomInstanceProfileArn(const char *value)
UpdateLayerRequest & WithLayerId(Aws::String &&value)
UpdateLayerRequest & AddCustomSecurityGroupIds(const Aws::String &value)
UpdateLayerRequest & AddPackages(const char *value)
UpdateLayerRequest & AddAttributes(const LayerAttributesKeys &key, const char *value)
UpdateLayerRequest & WithName(Aws::String &&value)
void SetCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
const CloudWatchLogsConfiguration & GetCloudWatchLogsConfiguration() const
UpdateLayerRequest & WithVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
void SetCustomInstanceProfileArn(const Aws::String &value)
void SetCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetPackages() const
void SetVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
void SetCustomInstanceProfileArn(const char *value)
void SetName(const Aws::String &value)
UpdateLayerRequest & AddPackages(Aws::String &&value)
void SetCustomJson(const Aws::String &value)
UpdateLayerRequest & AddVolumeConfigurations(VolumeConfiguration &&value)
UpdateLayerRequest & WithCustomRecipes(const Recipes &value)
UpdateLayerRequest & WithCustomJson(const char *value)
UpdateLayerRequest & AddAttributes(const LayerAttributesKeys &key, Aws::String &&value)
UpdateLayerRequest & AddAttributes(const LayerAttributesKeys &key, const Aws::String &value)
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLayerRequest & WithCustomRecipes(Recipes &&value)
UpdateLayerRequest & AddCustomSecurityGroupIds(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateLayerRequest & WithLayerId(const char *value)
const Aws::String & GetCustomInstanceProfileArn() const
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
UpdateLayerRequest & WithLayerId(const Aws::String &value)
UpdateLayerRequest & WithShortname(const Aws::String &value)
void SetLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
UpdateLayerRequest & AddVolumeConfigurations(const VolumeConfiguration &value)
UpdateLayerRequest & WithUseEbsOptimizedInstances(bool value)
UpdateLayerRequest & AddPackages(const Aws::String &value)
void SetLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
UpdateLayerRequest & WithVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
UpdateLayerRequest & WithCustomInstanceProfileArn(const Aws::String &value)
void SetPackages(const Aws::Vector< Aws::String > &value)
UpdateLayerRequest & WithName(const Aws::String &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