AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename LayerIdT = Aws::String>
51 void SetLayerId(LayerIdT&& value) { m_layerIdHasBeenSet = true; m_layerId = std::forward<LayerIdT>(value); }
52 template<typename LayerIdT = Aws::String>
53 UpdateLayerRequest& WithLayerId(LayerIdT&& value) { SetLayerId(std::forward<LayerIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 UpdateLayerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
80 inline const Aws::String& GetShortname() const { return m_shortname; }
81 inline bool ShortnameHasBeenSet() const { return m_shortnameHasBeenSet; }
82 template<typename ShortnameT = Aws::String>
83 void SetShortname(ShortnameT&& value) { m_shortnameHasBeenSet = true; m_shortname = std::forward<ShortnameT>(value); }
84 template<typename ShortnameT = Aws::String>
85 UpdateLayerRequest& WithShortname(ShortnameT&& value) { SetShortname(std::forward<ShortnameT>(value)); return *this;}
87
89
93 inline const Aws::Map<LayerAttributesKeys, Aws::String>& GetAttributes() const { return m_attributes; }
94 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
95 template<typename AttributesT = Aws::Map<LayerAttributesKeys, Aws::String>>
96 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
97 template<typename AttributesT = Aws::Map<LayerAttributesKeys, Aws::String>>
98 UpdateLayerRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
100 m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this;
101 }
103
105
109 inline const CloudWatchLogsConfiguration& GetCloudWatchLogsConfiguration() const { return m_cloudWatchLogsConfiguration; }
110 inline bool CloudWatchLogsConfigurationHasBeenSet() const { return m_cloudWatchLogsConfigurationHasBeenSet; }
111 template<typename CloudWatchLogsConfigurationT = CloudWatchLogsConfiguration>
112 void SetCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT&& value) { m_cloudWatchLogsConfigurationHasBeenSet = true; m_cloudWatchLogsConfiguration = std::forward<CloudWatchLogsConfigurationT>(value); }
113 template<typename CloudWatchLogsConfigurationT = CloudWatchLogsConfiguration>
114 UpdateLayerRequest& WithCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT&& value) { SetCloudWatchLogsConfiguration(std::forward<CloudWatchLogsConfigurationT>(value)); return *this;}
116
118
124 inline const Aws::String& GetCustomInstanceProfileArn() const { return m_customInstanceProfileArn; }
125 inline bool CustomInstanceProfileArnHasBeenSet() const { return m_customInstanceProfileArnHasBeenSet; }
126 template<typename CustomInstanceProfileArnT = Aws::String>
127 void SetCustomInstanceProfileArn(CustomInstanceProfileArnT&& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = std::forward<CustomInstanceProfileArnT>(value); }
128 template<typename CustomInstanceProfileArnT = Aws::String>
129 UpdateLayerRequest& WithCustomInstanceProfileArn(CustomInstanceProfileArnT&& value) { SetCustomInstanceProfileArn(std::forward<CustomInstanceProfileArnT>(value)); return *this;}
131
133
140 inline const Aws::String& GetCustomJson() const { return m_customJson; }
141 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
142 template<typename CustomJsonT = Aws::String>
143 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet = true; m_customJson = std::forward<CustomJsonT>(value); }
144 template<typename CustomJsonT = Aws::String>
145 UpdateLayerRequest& WithCustomJson(CustomJsonT&& value) { SetCustomJson(std::forward<CustomJsonT>(value)); return *this;}
147
149
152 inline const Aws::Vector<Aws::String>& GetCustomSecurityGroupIds() const { return m_customSecurityGroupIds; }
153 inline bool CustomSecurityGroupIdsHasBeenSet() const { return m_customSecurityGroupIdsHasBeenSet; }
154 template<typename CustomSecurityGroupIdsT = Aws::Vector<Aws::String>>
155 void SetCustomSecurityGroupIds(CustomSecurityGroupIdsT&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = std::forward<CustomSecurityGroupIdsT>(value); }
156 template<typename CustomSecurityGroupIdsT = Aws::Vector<Aws::String>>
157 UpdateLayerRequest& WithCustomSecurityGroupIds(CustomSecurityGroupIdsT&& value) { SetCustomSecurityGroupIds(std::forward<CustomSecurityGroupIdsT>(value)); return *this;}
158 template<typename CustomSecurityGroupIdsT = Aws::String>
159 UpdateLayerRequest& AddCustomSecurityGroupIds(CustomSecurityGroupIdsT&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.emplace_back(std::forward<CustomSecurityGroupIdsT>(value)); return *this; }
161
163
167 inline const Aws::Vector<Aws::String>& GetPackages() const { return m_packages; }
168 inline bool PackagesHasBeenSet() const { return m_packagesHasBeenSet; }
169 template<typename PackagesT = Aws::Vector<Aws::String>>
170 void SetPackages(PackagesT&& value) { m_packagesHasBeenSet = true; m_packages = std::forward<PackagesT>(value); }
171 template<typename PackagesT = Aws::Vector<Aws::String>>
172 UpdateLayerRequest& WithPackages(PackagesT&& value) { SetPackages(std::forward<PackagesT>(value)); return *this;}
173 template<typename PackagesT = Aws::String>
174 UpdateLayerRequest& AddPackages(PackagesT&& value) { m_packagesHasBeenSet = true; m_packages.emplace_back(std::forward<PackagesT>(value)); return *this; }
176
178
182 inline const Aws::Vector<VolumeConfiguration>& GetVolumeConfigurations() const { return m_volumeConfigurations; }
183 inline bool VolumeConfigurationsHasBeenSet() const { return m_volumeConfigurationsHasBeenSet; }
184 template<typename VolumeConfigurationsT = Aws::Vector<VolumeConfiguration>>
185 void SetVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value); }
186 template<typename VolumeConfigurationsT = Aws::Vector<VolumeConfiguration>>
187 UpdateLayerRequest& WithVolumeConfigurations(VolumeConfigurationsT&& value) { SetVolumeConfigurations(std::forward<VolumeConfigurationsT>(value)); return *this;}
188 template<typename VolumeConfigurationsT = VolumeConfiguration>
189 UpdateLayerRequest& AddVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value)); return *this; }
191
193
196 inline bool GetEnableAutoHealing() const { return m_enableAutoHealing; }
197 inline bool EnableAutoHealingHasBeenSet() const { return m_enableAutoHealingHasBeenSet; }
198 inline void SetEnableAutoHealing(bool value) { m_enableAutoHealingHasBeenSet = true; m_enableAutoHealing = value; }
199 inline UpdateLayerRequest& WithEnableAutoHealing(bool value) { SetEnableAutoHealing(value); return *this;}
201
203
210 inline bool GetAutoAssignElasticIps() const { return m_autoAssignElasticIps; }
211 inline bool AutoAssignElasticIpsHasBeenSet() const { return m_autoAssignElasticIpsHasBeenSet; }
212 inline void SetAutoAssignElasticIps(bool value) { m_autoAssignElasticIpsHasBeenSet = true; m_autoAssignElasticIps = value; }
213 inline UpdateLayerRequest& WithAutoAssignElasticIps(bool value) { SetAutoAssignElasticIps(value); return *this;}
215
217
223 inline bool GetAutoAssignPublicIps() const { return m_autoAssignPublicIps; }
224 inline bool AutoAssignPublicIpsHasBeenSet() const { return m_autoAssignPublicIpsHasBeenSet; }
225 inline void SetAutoAssignPublicIps(bool value) { m_autoAssignPublicIpsHasBeenSet = true; m_autoAssignPublicIps = value; }
226 inline UpdateLayerRequest& WithAutoAssignPublicIps(bool value) { SetAutoAssignPublicIps(value); return *this;}
228
230
234 inline const Recipes& GetCustomRecipes() const { return m_customRecipes; }
235 inline bool CustomRecipesHasBeenSet() const { return m_customRecipesHasBeenSet; }
236 template<typename CustomRecipesT = Recipes>
237 void SetCustomRecipes(CustomRecipesT&& value) { m_customRecipesHasBeenSet = true; m_customRecipes = std::forward<CustomRecipesT>(value); }
238 template<typename CustomRecipesT = Recipes>
239 UpdateLayerRequest& WithCustomRecipes(CustomRecipesT&& value) { SetCustomRecipes(std::forward<CustomRecipesT>(value)); return *this;}
241
243
254 inline bool GetInstallUpdatesOnBoot() const { return m_installUpdatesOnBoot; }
255 inline bool InstallUpdatesOnBootHasBeenSet() const { return m_installUpdatesOnBootHasBeenSet; }
256 inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
257 inline UpdateLayerRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
259
261
264 inline bool GetUseEbsOptimizedInstances() const { return m_useEbsOptimizedInstances; }
265 inline bool UseEbsOptimizedInstancesHasBeenSet() const { return m_useEbsOptimizedInstancesHasBeenSet; }
266 inline void SetUseEbsOptimizedInstances(bool value) { m_useEbsOptimizedInstancesHasBeenSet = true; m_useEbsOptimizedInstances = value; }
269
271
274 inline const LifecycleEventConfiguration& GetLifecycleEventConfiguration() const { return m_lifecycleEventConfiguration; }
275 inline bool LifecycleEventConfigurationHasBeenSet() const { return m_lifecycleEventConfigurationHasBeenSet; }
276 template<typename LifecycleEventConfigurationT = LifecycleEventConfiguration>
277 void SetLifecycleEventConfiguration(LifecycleEventConfigurationT&& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = std::forward<LifecycleEventConfigurationT>(value); }
278 template<typename LifecycleEventConfigurationT = LifecycleEventConfiguration>
279 UpdateLayerRequest& WithLifecycleEventConfiguration(LifecycleEventConfigurationT&& value) { SetLifecycleEventConfiguration(std::forward<LifecycleEventConfigurationT>(value)); return *this;}
281 private:
282
283 Aws::String m_layerId;
284 bool m_layerIdHasBeenSet = false;
285
286 Aws::String m_name;
287 bool m_nameHasBeenSet = false;
288
289 Aws::String m_shortname;
290 bool m_shortnameHasBeenSet = false;
291
293 bool m_attributesHasBeenSet = false;
294
295 CloudWatchLogsConfiguration m_cloudWatchLogsConfiguration;
296 bool m_cloudWatchLogsConfigurationHasBeenSet = false;
297
298 Aws::String m_customInstanceProfileArn;
299 bool m_customInstanceProfileArnHasBeenSet = false;
300
301 Aws::String m_customJson;
302 bool m_customJsonHasBeenSet = false;
303
304 Aws::Vector<Aws::String> m_customSecurityGroupIds;
305 bool m_customSecurityGroupIdsHasBeenSet = false;
306
307 Aws::Vector<Aws::String> m_packages;
308 bool m_packagesHasBeenSet = false;
309
310 Aws::Vector<VolumeConfiguration> m_volumeConfigurations;
311 bool m_volumeConfigurationsHasBeenSet = false;
312
313 bool m_enableAutoHealing{false};
314 bool m_enableAutoHealingHasBeenSet = false;
315
316 bool m_autoAssignElasticIps{false};
317 bool m_autoAssignElasticIpsHasBeenSet = false;
318
319 bool m_autoAssignPublicIps{false};
320 bool m_autoAssignPublicIpsHasBeenSet = false;
321
322 Recipes m_customRecipes;
323 bool m_customRecipesHasBeenSet = false;
324
325 bool m_installUpdatesOnBoot{false};
326 bool m_installUpdatesOnBootHasBeenSet = false;
327
328 bool m_useEbsOptimizedInstances{false};
329 bool m_useEbsOptimizedInstancesHasBeenSet = false;
330
331 LifecycleEventConfiguration m_lifecycleEventConfiguration;
332 bool m_lifecycleEventConfigurationHasBeenSet = false;
333 };
334
335} // namespace Model
336} // namespace OpsWorks
337} // namespace Aws
UpdateLayerRequest & WithLayerId(LayerIdT &&value)
UpdateLayerRequest & WithCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT &&value)
UpdateLayerRequest & WithAttributes(AttributesT &&value)
void SetCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
UpdateLayerRequest & WithEnableAutoHealing(bool value)
UpdateLayerRequest & AddCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
void SetCustomRecipes(CustomRecipesT &&value)
UpdateLayerRequest & WithInstallUpdatesOnBoot(bool value)
void SetCustomInstanceProfileArn(CustomInstanceProfileArnT &&value)
UpdateLayerRequest & WithCustomSecurityGroupIds(CustomSecurityGroupIdsT &&value)
UpdateLayerRequest & AddVolumeConfigurations(VolumeConfigurationsT &&value)
UpdateLayerRequest & WithAutoAssignElasticIps(bool value)
UpdateLayerRequest & WithAutoAssignPublicIps(bool value)
UpdateLayerRequest & WithCustomRecipes(CustomRecipesT &&value)
void SetCloudWatchLogsConfiguration(CloudWatchLogsConfigurationT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
UpdateLayerRequest & WithPackages(PackagesT &&value)
AWS_OPSWORKS_API UpdateLayerRequest()=default
const CloudWatchLogsConfiguration & GetCloudWatchLogsConfiguration() const
UpdateLayerRequest & WithShortname(ShortnameT &&value)
UpdateLayerRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetPackages() const
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
UpdateLayerRequest & WithCustomJson(CustomJsonT &&value)
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetLifecycleEventConfiguration(LifecycleEventConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
UpdateLayerRequest & AddPackages(PackagesT &&value)
const Aws::String & GetCustomInstanceProfileArn() const
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
UpdateLayerRequest & WithLifecycleEventConfiguration(LifecycleEventConfigurationT &&value)
UpdateLayerRequest & AddAttributes(LayerAttributesKeys key, Aws::String value)
UpdateLayerRequest & WithUseEbsOptimizedInstances(bool value)
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
UpdateLayerRequest & WithCustomInstanceProfileArn(CustomInstanceProfileArnT &&value)
UpdateLayerRequest & WithVolumeConfigurations(VolumeConfigurationsT &&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