AWS SDK for C++  0.14.3
AWS SDK for C++
CreateLayerRequest.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
26 
27 namespace Aws
28 {
29 namespace OpsWorks
30 {
31 namespace Model
32 {
33 
37  {
38  public:
40  Aws::String SerializePayload() const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
47  inline const Aws::String& GetStackId() const{ return m_stackId; }
48 
52  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
53 
57  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
58 
62  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
63 
67  inline CreateLayerRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
68 
72  inline CreateLayerRequest& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
73 
77  inline CreateLayerRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
78 
84  inline const LayerType& GetType() const{ return m_type; }
85 
91  inline void SetType(const LayerType& value) { m_typeHasBeenSet = true; m_type = value; }
92 
98  inline void SetType(LayerType&& value) { m_typeHasBeenSet = true; m_type = value; }
99 
105  inline CreateLayerRequest& WithType(const LayerType& value) { SetType(value); return *this;}
106 
112  inline CreateLayerRequest& WithType(LayerType&& value) { SetType(value); return *this;}
113 
117  inline const Aws::String& GetName() const{ return m_name; }
118 
122  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
123 
127  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
128 
132  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
133 
137  inline CreateLayerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
138 
142  inline CreateLayerRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
143 
147  inline CreateLayerRequest& WithName(const char* value) { SetName(value); return *this;}
148 
159  inline const Aws::String& GetShortname() const{ return m_shortname; }
160 
171  inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
172 
183  inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
184 
195  inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
196 
207  inline CreateLayerRequest& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
208 
219  inline CreateLayerRequest& WithShortname(Aws::String&& value) { SetShortname(value); return *this;}
220 
231  inline CreateLayerRequest& WithShortname(const char* value) { SetShortname(value); return *this;}
232 
238  inline const Aws::Map<LayerAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
239 
245  inline void SetAttributes(const Aws::Map<LayerAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
246 
252  inline void SetAttributes(Aws::Map<LayerAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
253 
259  inline CreateLayerRequest& WithAttributes(const Aws::Map<LayerAttributesKeys, Aws::String>& value) { SetAttributes(value); return *this;}
260 
266  inline CreateLayerRequest& WithAttributes(Aws::Map<LayerAttributesKeys, Aws::String>&& value) { SetAttributes(value); return *this;}
267 
273  inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
274 
280  inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
281 
287  inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
288 
294  inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
295 
301  inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
302 
308  inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
309 
316  inline const Aws::String& GetCustomInstanceProfileArn() const{ return m_customInstanceProfileArn; }
317 
324  inline void SetCustomInstanceProfileArn(const Aws::String& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = value; }
325 
332  inline void SetCustomInstanceProfileArn(Aws::String&& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = value; }
333 
340  inline void SetCustomInstanceProfileArn(const char* value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn.assign(value); }
341 
348  inline CreateLayerRequest& WithCustomInstanceProfileArn(const Aws::String& value) { SetCustomInstanceProfileArn(value); return *this;}
349 
356  inline CreateLayerRequest& WithCustomInstanceProfileArn(Aws::String&& value) { SetCustomInstanceProfileArn(value); return *this;}
357 
364  inline CreateLayerRequest& WithCustomInstanceProfileArn(const char* value) { SetCustomInstanceProfileArn(value); return *this;}
365 
374  inline const Aws::String& GetCustomJson() const{ return m_customJson; }
375 
384  inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
385 
394  inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
395 
404  inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
405 
414  inline CreateLayerRequest& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
415 
424  inline CreateLayerRequest& WithCustomJson(Aws::String&& value) { SetCustomJson(value); return *this;}
425 
434  inline CreateLayerRequest& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
435 
439  inline const Aws::Vector<Aws::String>& GetCustomSecurityGroupIds() const{ return m_customSecurityGroupIds; }
440 
444  inline void SetCustomSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = value; }
445 
449  inline void SetCustomSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = value; }
450 
454  inline CreateLayerRequest& WithCustomSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetCustomSecurityGroupIds(value); return *this;}
455 
459  inline CreateLayerRequest& WithCustomSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetCustomSecurityGroupIds(value); return *this;}
460 
464  inline CreateLayerRequest& AddCustomSecurityGroupIds(const Aws::String& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
465 
469  inline CreateLayerRequest& AddCustomSecurityGroupIds(Aws::String&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
470 
474  inline CreateLayerRequest& AddCustomSecurityGroupIds(const char* value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
475 
480  inline const Aws::Vector<Aws::String>& GetPackages() const{ return m_packages; }
481 
486  inline void SetPackages(const Aws::Vector<Aws::String>& value) { m_packagesHasBeenSet = true; m_packages = value; }
487 
492  inline void SetPackages(Aws::Vector<Aws::String>&& value) { m_packagesHasBeenSet = true; m_packages = value; }
493 
498  inline CreateLayerRequest& WithPackages(const Aws::Vector<Aws::String>& value) { SetPackages(value); return *this;}
499 
504  inline CreateLayerRequest& WithPackages(Aws::Vector<Aws::String>&& value) { SetPackages(value); return *this;}
505 
510  inline CreateLayerRequest& AddPackages(const Aws::String& value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
511 
516  inline CreateLayerRequest& AddPackages(Aws::String&& value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
517 
522  inline CreateLayerRequest& AddPackages(const char* value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
523 
528  inline const Aws::Vector<VolumeConfiguration>& GetVolumeConfigurations() const{ return m_volumeConfigurations; }
529 
534  inline void SetVolumeConfigurations(const Aws::Vector<VolumeConfiguration>& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = value; }
535 
540  inline void SetVolumeConfigurations(Aws::Vector<VolumeConfiguration>&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = value; }
541 
546  inline CreateLayerRequest& WithVolumeConfigurations(const Aws::Vector<VolumeConfiguration>& value) { SetVolumeConfigurations(value); return *this;}
547 
552  inline CreateLayerRequest& WithVolumeConfigurations(Aws::Vector<VolumeConfiguration>&& value) { SetVolumeConfigurations(value); return *this;}
553 
558  inline CreateLayerRequest& AddVolumeConfigurations(const VolumeConfiguration& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(value); return *this; }
559 
564  inline CreateLayerRequest& AddVolumeConfigurations(VolumeConfiguration&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(value); return *this; }
565 
569  inline bool GetEnableAutoHealing() const{ return m_enableAutoHealing; }
570 
574  inline void SetEnableAutoHealing(bool value) { m_enableAutoHealingHasBeenSet = true; m_enableAutoHealing = value; }
575 
579  inline CreateLayerRequest& WithEnableAutoHealing(bool value) { SetEnableAutoHealing(value); return *this;}
580 
588  inline bool GetAutoAssignElasticIps() const{ return m_autoAssignElasticIps; }
589 
597  inline void SetAutoAssignElasticIps(bool value) { m_autoAssignElasticIpsHasBeenSet = true; m_autoAssignElasticIps = value; }
598 
606  inline CreateLayerRequest& WithAutoAssignElasticIps(bool value) { SetAutoAssignElasticIps(value); return *this;}
607 
614  inline bool GetAutoAssignPublicIps() const{ return m_autoAssignPublicIps; }
615 
622  inline void SetAutoAssignPublicIps(bool value) { m_autoAssignPublicIpsHasBeenSet = true; m_autoAssignPublicIps = value; }
623 
630  inline CreateLayerRequest& WithAutoAssignPublicIps(bool value) { SetAutoAssignPublicIps(value); return *this;}
631 
636  inline const Recipes& GetCustomRecipes() const{ return m_customRecipes; }
637 
642  inline void SetCustomRecipes(const Recipes& value) { m_customRecipesHasBeenSet = true; m_customRecipes = value; }
643 
648  inline void SetCustomRecipes(Recipes&& value) { m_customRecipesHasBeenSet = true; m_customRecipes = value; }
649 
654  inline CreateLayerRequest& WithCustomRecipes(const Recipes& value) { SetCustomRecipes(value); return *this;}
655 
660  inline CreateLayerRequest& WithCustomRecipes(Recipes&& value) { SetCustomRecipes(value); return *this;}
661 
673  inline bool GetInstallUpdatesOnBoot() const{ return m_installUpdatesOnBoot; }
674 
686  inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
687 
699  inline CreateLayerRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
700 
704  inline bool GetUseEbsOptimizedInstances() const{ return m_useEbsOptimizedInstances; }
705 
709  inline void SetUseEbsOptimizedInstances(bool value) { m_useEbsOptimizedInstancesHasBeenSet = true; m_useEbsOptimizedInstances = value; }
710 
714  inline CreateLayerRequest& WithUseEbsOptimizedInstances(bool value) { SetUseEbsOptimizedInstances(value); return *this;}
715 
721  inline const LifecycleEventConfiguration& GetLifecycleEventConfiguration() const{ return m_lifecycleEventConfiguration; }
722 
728  inline void SetLifecycleEventConfiguration(const LifecycleEventConfiguration& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = value; }
729 
735  inline void SetLifecycleEventConfiguration(LifecycleEventConfiguration&& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = value; }
736 
742  inline CreateLayerRequest& WithLifecycleEventConfiguration(const LifecycleEventConfiguration& value) { SetLifecycleEventConfiguration(value); return *this;}
743 
749  inline CreateLayerRequest& WithLifecycleEventConfiguration(LifecycleEventConfiguration&& value) { SetLifecycleEventConfiguration(value); return *this;}
750 
751  private:
752  Aws::String m_stackId;
753  bool m_stackIdHasBeenSet;
754  LayerType m_type;
755  bool m_typeHasBeenSet;
756  Aws::String m_name;
757  bool m_nameHasBeenSet;
758  Aws::String m_shortname;
759  bool m_shortnameHasBeenSet;
761  bool m_attributesHasBeenSet;
762  Aws::String m_customInstanceProfileArn;
763  bool m_customInstanceProfileArnHasBeenSet;
764  Aws::String m_customJson;
765  bool m_customJsonHasBeenSet;
766  Aws::Vector<Aws::String> m_customSecurityGroupIds;
767  bool m_customSecurityGroupIdsHasBeenSet;
768  Aws::Vector<Aws::String> m_packages;
769  bool m_packagesHasBeenSet;
770  Aws::Vector<VolumeConfiguration> m_volumeConfigurations;
771  bool m_volumeConfigurationsHasBeenSet;
772  bool m_enableAutoHealing;
773  bool m_enableAutoHealingHasBeenSet;
774  bool m_autoAssignElasticIps;
775  bool m_autoAssignElasticIpsHasBeenSet;
776  bool m_autoAssignPublicIps;
777  bool m_autoAssignPublicIpsHasBeenSet;
778  Recipes m_customRecipes;
779  bool m_customRecipesHasBeenSet;
780  bool m_installUpdatesOnBoot;
781  bool m_installUpdatesOnBootHasBeenSet;
782  bool m_useEbsOptimizedInstances;
783  bool m_useEbsOptimizedInstancesHasBeenSet;
784  LifecycleEventConfiguration m_lifecycleEventConfiguration;
785  bool m_lifecycleEventConfigurationHasBeenSet;
786  };
787 
788 } // namespace Model
789 } // namespace OpsWorks
790 } // namespace Aws
void SetVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
CreateLayerRequest & WithVolumeConfigurations(const Aws::Vector< VolumeConfiguration > &value)
void SetLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
CreateLayerRequest & WithCustomJson(const char *value)
CreateLayerRequest & AddCustomSecurityGroupIds(const Aws::String &value)
CreateLayerRequest & WithCustomJson(Aws::String &&value)
CreateLayerRequest & WithLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
CreateLayerRequest & AddAttributes(LayerAttributesKeys &&key, const char *value)
void SetAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
CreateLayerRequest & WithStackId(Aws::String &&value)
const Aws::String & GetStackId() const
CreateLayerRequest & AddPackages(const Aws::String &value)
CreateLayerRequest & WithPackages(Aws::Vector< Aws::String > &&value)
const Aws::Vector< VolumeConfiguration > & GetVolumeConfigurations() const
CreateLayerRequest & AddVolumeConfigurations(VolumeConfiguration &&value)
CreateLayerRequest & WithInstallUpdatesOnBoot(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateLayerRequest & AddCustomSecurityGroupIds(Aws::String &&value)
void SetType(const LayerType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
const Aws::String & GetCustomJson() const
void SetShortname(const Aws::String &value)
CreateLayerRequest & WithCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateLayerRequest & WithShortname(const Aws::String &value)
const Aws::Map< LayerAttributesKeys, Aws::String > & GetAttributes() const
void SetCustomJson(const Aws::String &value)
CreateLayerRequest & WithVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
CreateLayerRequest & WithUseEbsOptimizedInstances(bool value)
CreateLayerRequest & WithAttributes(const Aws::Map< LayerAttributesKeys, Aws::String > &value)
const Aws::Vector< Aws::String > & GetPackages() const
void SetCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetShortname() const
CreateLayerRequest & WithType(LayerType &&value)
void SetCustomInstanceProfileArn(const char *value)
void SetCustomRecipes(const Recipes &value)
CreateLayerRequest & WithAttributes(Aws::Map< LayerAttributesKeys, Aws::String > &&value)
void SetLifecycleEventConfiguration(const LifecycleEventConfiguration &value)
CreateLayerRequest & WithCustomSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateLayerRequest & AddCustomSecurityGroupIds(const char *value)
void SetCustomInstanceProfileArn(Aws::String &&value)
CreateLayerRequest & WithShortname(Aws::String &&value)
CreateLayerRequest & WithLifecycleEventConfiguration(LifecycleEventConfiguration &&value)
void SetName(const Aws::String &value)
void SetVolumeConfigurations(Aws::Vector< VolumeConfiguration > &&value)
CreateLayerRequest & WithEnableAutoHealing(bool value)
void SetPackages(const Aws::Vector< Aws::String > &value)
CreateLayerRequest & AddPackages(const char *value)
void SetCustomSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetStackId(const Aws::String &value)
CreateLayerRequest & AddAttributes(LayerAttributesKeys &&key, const Aws::String &value)
CreateLayerRequest & WithCustomInstanceProfileArn(Aws::String &&value)
CreateLayerRequest & WithCustomRecipes(const Recipes &value)
CreateLayerRequest & WithAutoAssignElasticIps(bool value)
CreateLayerRequest & WithCustomRecipes(Recipes &&value)
void SetCustomInstanceProfileArn(const Aws::String &value)
CreateLayerRequest & WithShortname(const char *value)
CreateLayerRequest & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
CreateLayerRequest & WithName(const char *value)
CreateLayerRequest & AddAttributes(LayerAttributesKeys &&key, Aws::String &&value)
const Aws::Vector< Aws::String > & GetCustomSecurityGroupIds() const
CreateLayerRequest & AddAttributes(const LayerAttributesKeys &key, Aws::String &&value)
CreateLayerRequest & AddAttributes(const LayerAttributesKeys &key, const Aws::String &value)
CreateLayerRequest & AddPackages(Aws::String &&value)
void SetPackages(Aws::Vector< Aws::String > &&value)
CreateLayerRequest & WithPackages(const Aws::Vector< Aws::String > &value)
CreateLayerRequest & AddAttributes(const LayerAttributesKeys &key, const char *value)
const Aws::String & GetCustomInstanceProfileArn() const
CreateLayerRequest & WithAutoAssignPublicIps(bool value)
const LifecycleEventConfiguration & GetLifecycleEventConfiguration() const
CreateLayerRequest & WithCustomInstanceProfileArn(const Aws::String &value)
CreateLayerRequest & WithName(const Aws::String &value)
CreateLayerRequest & AddVolumeConfigurations(const VolumeConfiguration &value)
CreateLayerRequest & WithCustomInstanceProfileArn(const char *value)
CreateLayerRequest & WithStackId(const Aws::String &value)
CreateLayerRequest & WithCustomJson(const Aws::String &value)
JSON (JavaScript Object Notation).
CreateLayerRequest & WithStackId(const char *value)
CreateLayerRequest & WithType(const LayerType &value)