AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateLayerRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
25 
26 namespace Aws
27 {
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
46  inline const Aws::String& GetLayerId() const{ return m_layerId; }
47 
51  inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
52 
56  inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
57 
61  inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
62 
66  inline UpdateLayerRequest& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
67 
71  inline UpdateLayerRequest& WithLayerId(Aws::String&& value) { SetLayerId(value); return *this;}
72 
76  inline UpdateLayerRequest& WithLayerId(const char* value) { SetLayerId(value); return *this;}
77 
81  inline const Aws::String& GetName() const{ return m_name; }
82 
86  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
87 
91  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
97 
101  inline UpdateLayerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
102 
106  inline UpdateLayerRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
107 
111  inline UpdateLayerRequest& WithName(const char* value) { SetName(value); return *this;}
112 
123  inline const Aws::String& GetShortname() const{ return m_shortname; }
124 
135  inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
136 
147  inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
148 
159  inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
160 
171  inline UpdateLayerRequest& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
172 
183  inline UpdateLayerRequest& WithShortname(Aws::String&& value) { SetShortname(value); return *this;}
184 
195  inline UpdateLayerRequest& WithShortname(const char* value) { SetShortname(value); return *this;}
196 
201  inline const Aws::Map<LayerAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
202 
207  inline void SetAttributes(const Aws::Map<LayerAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
208 
213  inline void SetAttributes(Aws::Map<LayerAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
214 
219  inline UpdateLayerRequest& WithAttributes(const Aws::Map<LayerAttributesKeys, Aws::String>& value) { SetAttributes(value); return *this;}
220 
225  inline UpdateLayerRequest& WithAttributes(Aws::Map<LayerAttributesKeys, Aws::String>&& value) { SetAttributes(value); return *this;}
226 
231  inline UpdateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
232 
237  inline UpdateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
238 
243  inline UpdateLayerRequest& AddAttributes(const LayerAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
244 
249  inline UpdateLayerRequest& AddAttributes(LayerAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
250 
255  inline UpdateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
256 
261  inline UpdateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
262 
269  inline const Aws::String& GetCustomInstanceProfileArn() const{ return m_customInstanceProfileArn; }
270 
277  inline void SetCustomInstanceProfileArn(const Aws::String& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = value; }
278 
285  inline void SetCustomInstanceProfileArn(Aws::String&& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = value; }
286 
293  inline void SetCustomInstanceProfileArn(const char* value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn.assign(value); }
294 
301  inline UpdateLayerRequest& WithCustomInstanceProfileArn(const Aws::String& value) { SetCustomInstanceProfileArn(value); return *this;}
302 
309  inline UpdateLayerRequest& WithCustomInstanceProfileArn(Aws::String&& value) { SetCustomInstanceProfileArn(value); return *this;}
310 
317  inline UpdateLayerRequest& WithCustomInstanceProfileArn(const char* value) { SetCustomInstanceProfileArn(value); return *this;}
318 
326  inline const Aws::String& GetCustomJson() const{ return m_customJson; }
327 
335  inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
336 
344  inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
345 
353  inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
354 
362  inline UpdateLayerRequest& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
363 
371  inline UpdateLayerRequest& WithCustomJson(Aws::String&& value) { SetCustomJson(value); return *this;}
372 
380  inline UpdateLayerRequest& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
381 
385  inline const Aws::Vector<Aws::String>& GetCustomSecurityGroupIds() const{ return m_customSecurityGroupIds; }
386 
390  inline void SetCustomSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = value; }
391 
395  inline void SetCustomSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = value; }
396 
400  inline UpdateLayerRequest& WithCustomSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetCustomSecurityGroupIds(value); return *this;}
401 
405  inline UpdateLayerRequest& WithCustomSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetCustomSecurityGroupIds(value); return *this;}
406 
410  inline UpdateLayerRequest& AddCustomSecurityGroupIds(const Aws::String& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
411 
415  inline UpdateLayerRequest& AddCustomSecurityGroupIds(Aws::String&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
416 
420  inline UpdateLayerRequest& AddCustomSecurityGroupIds(const char* value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
421 
426  inline const Aws::Vector<Aws::String>& GetPackages() const{ return m_packages; }
427 
432  inline void SetPackages(const Aws::Vector<Aws::String>& value) { m_packagesHasBeenSet = true; m_packages = value; }
433 
438  inline void SetPackages(Aws::Vector<Aws::String>&& value) { m_packagesHasBeenSet = true; m_packages = value; }
439 
444  inline UpdateLayerRequest& WithPackages(const Aws::Vector<Aws::String>& value) { SetPackages(value); return *this;}
445 
450  inline UpdateLayerRequest& WithPackages(Aws::Vector<Aws::String>&& value) { SetPackages(value); return *this;}
451 
456  inline UpdateLayerRequest& AddPackages(const Aws::String& value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
457 
462  inline UpdateLayerRequest& AddPackages(Aws::String&& value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
463 
468  inline UpdateLayerRequest& AddPackages(const char* value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
469 
474  inline const Aws::Vector<VolumeConfiguration>& GetVolumeConfigurations() const{ return m_volumeConfigurations; }
475 
480  inline void SetVolumeConfigurations(const Aws::Vector<VolumeConfiguration>& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = value; }
481 
486  inline void SetVolumeConfigurations(Aws::Vector<VolumeConfiguration>&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = value; }
487 
492  inline UpdateLayerRequest& WithVolumeConfigurations(const Aws::Vector<VolumeConfiguration>& value) { SetVolumeConfigurations(value); return *this;}
493 
498  inline UpdateLayerRequest& WithVolumeConfigurations(Aws::Vector<VolumeConfiguration>&& value) { SetVolumeConfigurations(value); return *this;}
499 
504  inline UpdateLayerRequest& AddVolumeConfigurations(const VolumeConfiguration& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(value); return *this; }
505 
510  inline UpdateLayerRequest& AddVolumeConfigurations(VolumeConfiguration&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(value); return *this; }
511 
515  inline bool GetEnableAutoHealing() const{ return m_enableAutoHealing; }
516 
520  inline void SetEnableAutoHealing(bool value) { m_enableAutoHealingHasBeenSet = true; m_enableAutoHealing = value; }
521 
525  inline UpdateLayerRequest& WithEnableAutoHealing(bool value) { SetEnableAutoHealing(value); return *this;}
526 
534  inline bool GetAutoAssignElasticIps() const{ return m_autoAssignElasticIps; }
535 
543  inline void SetAutoAssignElasticIps(bool value) { m_autoAssignElasticIpsHasBeenSet = true; m_autoAssignElasticIps = value; }
544 
552  inline UpdateLayerRequest& WithAutoAssignElasticIps(bool value) { SetAutoAssignElasticIps(value); return *this;}
553 
560  inline bool GetAutoAssignPublicIps() const{ return m_autoAssignPublicIps; }
561 
568  inline void SetAutoAssignPublicIps(bool value) { m_autoAssignPublicIpsHasBeenSet = true; m_autoAssignPublicIps = value; }
569 
576  inline UpdateLayerRequest& WithAutoAssignPublicIps(bool value) { SetAutoAssignPublicIps(value); return *this;}
577 
582  inline const Recipes& GetCustomRecipes() const{ return m_customRecipes; }
583 
588  inline void SetCustomRecipes(const Recipes& value) { m_customRecipesHasBeenSet = true; m_customRecipes = value; }
589 
594  inline void SetCustomRecipes(Recipes&& value) { m_customRecipesHasBeenSet = true; m_customRecipes = value; }
595 
600  inline UpdateLayerRequest& WithCustomRecipes(const Recipes& value) { SetCustomRecipes(value); return *this;}
601 
606  inline UpdateLayerRequest& WithCustomRecipes(Recipes&& value) { SetCustomRecipes(value); return *this;}
607 
619  inline bool GetInstallUpdatesOnBoot() const{ return m_installUpdatesOnBoot; }
620 
632  inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
633 
645  inline UpdateLayerRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
646 
650  inline bool GetUseEbsOptimizedInstances() const{ return m_useEbsOptimizedInstances; }
651 
655  inline void SetUseEbsOptimizedInstances(bool value) { m_useEbsOptimizedInstancesHasBeenSet = true; m_useEbsOptimizedInstances = value; }
656 
660  inline UpdateLayerRequest& WithUseEbsOptimizedInstances(bool value) { SetUseEbsOptimizedInstances(value); return *this;}
661 
665  inline const LifecycleEventConfiguration& GetLifecycleEventConfiguration() const{ return m_lifecycleEventConfiguration; }
666 
670  inline void SetLifecycleEventConfiguration(const LifecycleEventConfiguration& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = value; }
671 
675  inline void SetLifecycleEventConfiguration(LifecycleEventConfiguration&& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = value; }
676 
680  inline UpdateLayerRequest& WithLifecycleEventConfiguration(const LifecycleEventConfiguration& value) { SetLifecycleEventConfiguration(value); return *this;}
681 
685  inline UpdateLayerRequest& WithLifecycleEventConfiguration(LifecycleEventConfiguration&& value) { SetLifecycleEventConfiguration(value); return *this;}
686 
687  private:
688  Aws::String m_layerId;
689  bool m_layerIdHasBeenSet;
690  Aws::String m_name;
691  bool m_nameHasBeenSet;
692  Aws::String m_shortname;
693  bool m_shortnameHasBeenSet;
695  bool m_attributesHasBeenSet;
696  Aws::String m_customInstanceProfileArn;
697  bool m_customInstanceProfileArnHasBeenSet;
698  Aws::String m_customJson;
699  bool m_customJsonHasBeenSet;
700  Aws::Vector<Aws::String> m_customSecurityGroupIds;
701  bool m_customSecurityGroupIdsHasBeenSet;
702  Aws::Vector<Aws::String> m_packages;
703  bool m_packagesHasBeenSet;
704  Aws::Vector<VolumeConfiguration> m_volumeConfigurations;
705  bool m_volumeConfigurationsHasBeenSet;
706  bool m_enableAutoHealing;
707  bool m_enableAutoHealingHasBeenSet;
708  bool m_autoAssignElasticIps;
709  bool m_autoAssignElasticIpsHasBeenSet;
710  bool m_autoAssignPublicIps;
711  bool m_autoAssignPublicIpsHasBeenSet;
712  Recipes m_customRecipes;
713  bool m_customRecipesHasBeenSet;
714  bool m_installUpdatesOnBoot;
715  bool m_installUpdatesOnBootHasBeenSet;
716  bool m_useEbsOptimizedInstances;
717  bool m_useEbsOptimizedInstancesHasBeenSet;
718  LifecycleEventConfiguration m_lifecycleEventConfiguration;
719  bool m_lifecycleEventConfigurationHasBeenSet;
720  };
721 
722 } // namespace Model
723 } // namespace OpsWorks
724 } // namespace Aws
UpdateLayerRequest & AddCustomSecurityGroupIds(Aws::String &&value)
UpdateLayerRequest & AddPackages(Aws::String &&value)
void SetCustomInstanceProfileArn(Aws::String &&value)
UpdateLayerRequest & WithAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
UpdateLayerRequest & WithCustomInstanceProfileArn(Aws::String &&value)
void SetLayerId(const Aws::String &value)
UpdateLayerRequest & WithCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateLayerRequest & WithVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
UpdateLayerRequest & WithUseEbsOptimizedInstances(bool value)
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
UpdateLayerRequest & WithLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
const Aws::String & GetCustomJson() const
void SetPackages(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetCustomJson(const Aws::String &value)
void SetAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
void SetCustomInstanceProfileArn(const char *value)
void SetCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateLayerRequest & WithLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
UpdateLayerRequest & WithVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
UpdateLayerRequest & WithShortname(Aws::String &&value)
UpdateLayerRequest & WithCustomRecipes(Recipes &&value)
UpdateLayerRequest & AddPackages(const char *value)
UpdateLayerRequest & WithCustomRecipes(const Recipes &value)
void SetPackages(Aws::Vector< Aws::String > &&value)
void SetAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
UpdateLayerRequest & AddAttributes(const LayerAttributesKeys &key, const Aws::String &value)
UpdateLayerRequest & WithShortname(const char *value)
void SetCustomInstanceProfileArn(const Aws::String &value)
UpdateLayerRequest & AddAttributes(LayerAttributesKeys &&key, const char *value)
void SetVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
UpdateLayerRequest & AddCustomSecurityGroupIds(const char *value)
UpdateLayerRequest & AddAttributes(const LayerAttributesKeys &key, Aws::String &&value)
UpdateLayerRequest & WithName(const Aws::String &value)
UpdateLayerRequest & WithCustomJson(Aws::String &&value)
UpdateLayerRequest & AddAttributes(LayerAttributesKeys &&key, Aws::String &&value)
const Aws::String & GetCustomInstanceProfileArn() const
UpdateLayerRequest & AddPackages(const Aws::String &value)
UpdateLayerRequest & WithLayerId(const char *value)
UpdateLayerRequest & WithName(Aws::String &&value)
void SetName(const Aws::String &value)
UpdateLayerRequest & WithAutoAssignPublicIps(bool value)
UpdateLayerRequest & AddVolumeConfigurations(VolumeConfiguration &&value)
UpdateLayerRequest & WithAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
UpdateLayerRequest & WithName(const char *value)
UpdateLayerRequest & AddCustomSecurityGroupIds(const Aws::String &value)
UpdateLayerRequest & WithCustomJson(const Aws::String &value)
UpdateLayerRequest & WithCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetShortname(const Aws::String &value)
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
UpdateLayerRequest & WithCustomInstanceProfileArn(const Aws::String &value)
UpdateLayerRequest & WithInstallUpdatesOnBoot(bool value)
UpdateLayerRequest & AddAttributes(const LayerAttributesKeys &key, const char *value)
void SetLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
const Aws::String & GetName() const
UpdateLayerRequest & WithEnableAutoHealing(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
UpdateLayerRequest & WithLayerId(Aws::String &&value)
UpdateLayerRequest & WithPackages(Aws::Vector< Aws::String > &&value)
void SetVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
void SetCustomRecipes(const Recipes &value)
UpdateLayerRequest & WithLayerId(const Aws::String &value)
UpdateLayerRequest & WithShortname(const Aws::String &value)
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
UpdateLayerRequest & WithCustomInstanceProfileArn(const char *value)
UpdateLayerRequest & WithPackages(const Aws::Vector< Aws::String > &value)
const Aws::String & GetLayerId() const
const Aws::Vector< Aws::String > & GetPackages() const
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
void SetLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
UpdateLayerRequest & WithCustomJson(const char *value)
void SetCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateLayerRequest & WithAutoAssignElasticIps(bool value)
const Aws::String & GetShortname() const
UpdateLayerRequest & AddAttributes(LayerAttributesKeys &&key, const Aws::String &value)
UpdateLayerRequest & AddVolumeConfigurations(const VolumeConfiguration &value)
JSON (JavaScript Object Notation).